@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
|
@@ -1,92 +1,59 @@
|
|
|
1
1
|
import { jsx as o, jsxs as le, Fragment as gt } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import Xe, { useMemo as ie, useCallback as Ze, useState as he, useRef as se, useContext as
|
|
4
|
-
import { a as nt } from "./
|
|
5
|
-
import { u as
|
|
2
|
+
import Ln from "lodash/throttle";
|
|
3
|
+
import Xe, { useMemo as ie, useCallback as Ze, useState as he, useRef as se, useContext as Le, useEffect as et, forwardRef as Kt, createElement as tt, createContext as An, useImperativeHandle as Wn } from "react";
|
|
4
|
+
import { a as nt } from "./DstheLSK.js";
|
|
5
|
+
import { u as zn } from "./CAA93JLq.js";
|
|
6
6
|
import { u as Gt } from "./FgWHhRFz.js";
|
|
7
7
|
import "./DsaQZE4X.js";
|
|
8
|
-
import "@unicom-cloud/utils/date";
|
|
9
|
-
import "@unicom-cloud/utils/case-name";
|
|
10
|
-
import Z from "@unicom-cloud/utils/class-name";
|
|
11
|
-
import "@unicom-cloud/utils/constant/ui";
|
|
12
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
13
|
-
import "./DS_deHpN.js";
|
|
14
|
-
import { b as Tt, o as Et } from "./d1c9z8T1.js";
|
|
15
|
-
import "@unicom-cloud/utils/emitter";
|
|
16
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
17
|
-
import "lodash/escapeRegExp";
|
|
18
|
-
import Ee from "lodash/isArray";
|
|
19
|
-
import ht from "lodash/isNumber";
|
|
20
|
-
import Ye from "lodash/isString";
|
|
21
|
-
import Qe from "lodash/isFunction";
|
|
22
|
-
import "lodash/camelCase";
|
|
23
|
-
import "lodash/capitalize";
|
|
24
|
-
import "lodash/cloneDeep";
|
|
25
|
-
import "lodash/debounce";
|
|
26
|
-
import Jt from "lodash/get";
|
|
27
|
-
import "lodash/has";
|
|
28
|
-
import "lodash/kebabCase";
|
|
29
|
-
import Mn from "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/uniq";
|
|
36
|
-
import "lodash/upperFirst";
|
|
37
|
-
import "@unicom-cloud/utils/math";
|
|
38
|
-
import Te from "lodash/isPlainObject";
|
|
39
|
-
import { p as zn, a as Vn } from "./ClqoGc3r.js";
|
|
40
|
-
import "@unicom-cloud/utils/pinyin";
|
|
41
|
-
import "./BJ9_azwQ.js";
|
|
42
|
-
import "./CXrVhA6-.js";
|
|
43
|
-
import { r as jn } from "./CHQ8c547.js";
|
|
44
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
45
|
-
import "@unicom-cloud/utils/screenfull";
|
|
46
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
47
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
48
|
-
import "@unicom-cloud/utils/ui-color";
|
|
49
|
-
import "react-is";
|
|
50
|
-
import "@unicom-cloud/utils/tree";
|
|
51
|
-
import { isArray as Ue, isPlainObject as we, isFunction as Be, isNumber as Qt } from "@unicom-cloud/utils/is";
|
|
52
|
-
import "uuid";
|
|
53
|
-
import "./hc_ufgVf.js";
|
|
54
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
55
8
|
import "@unicom-cloud/utils/constant/platform";
|
|
56
9
|
import "./CdXR6dj7.js";
|
|
57
10
|
import "@unicom-cloud/utils/js-cookie";
|
|
58
11
|
import "dayjs";
|
|
12
|
+
import "lodash/debounce";
|
|
59
13
|
import { u as Ft } from "./DfChiMIE.js";
|
|
60
|
-
import "
|
|
61
|
-
import
|
|
14
|
+
import "@unicom-cloud/utils/screenfull";
|
|
15
|
+
import "./ClNkxEcR.js";
|
|
16
|
+
import Te from "lodash/isPlainObject";
|
|
17
|
+
import { u as Mn } from "./Bl3hZtxi.js";
|
|
62
18
|
import "@unicom-cloud/utils/query-string";
|
|
63
19
|
import "react-router";
|
|
64
|
-
import { u as
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
20
|
+
import { u as _n } from "./CVMFAeSw.js";
|
|
21
|
+
import Jt from "../pagination/Pagination.js";
|
|
22
|
+
import Vn from "../spin/index.js";
|
|
23
|
+
import G from "@unicom-cloud/utils/class-name";
|
|
24
|
+
import { b as Tt, o as Et } from "./BcdTSJks.js";
|
|
25
|
+
import { p as jn, a as Un } from "./ClqoGc3r.js";
|
|
26
|
+
import { r as Yn } from "./CHQ8c547.js";
|
|
27
|
+
import ht from "../table/ColGroup.js";
|
|
28
|
+
import { TableContext as Bt } from "../table/context.js";
|
|
29
|
+
import Ee from "lodash/isArray";
|
|
30
|
+
import { defaultComponent as Qt, INTERNAL_EXPAND_KEY as xt, INTERNAL_SELECTION_KEY as Ct } from "../table/constant.js";
|
|
31
|
+
import Xn from "lodash/merge";
|
|
32
|
+
import { getOriginData as Z, isChildrenNotEmpty as It, getSelectedKeysByData as qn, getSelectedKeys as Gn, getSorterPriority as Ot, getSorterFn as Dt, px2Number as Pt, deepCloneData as Jn, getScrollBarHeight as Qn, getScrollBarWidth as Zn } from "../table/util.js";
|
|
33
|
+
import yt from "lodash/isNumber";
|
|
71
34
|
import eo from "../virtual-list/VirtualList.js";
|
|
72
35
|
import to from "@unicom-cloud/icons/IconUiMinus";
|
|
73
36
|
import no from "@unicom-cloud/icons/IconUiPlus";
|
|
74
|
-
import
|
|
75
|
-
import {
|
|
37
|
+
import Ye from "lodash/isString";
|
|
38
|
+
import { C as Ht } from "./CRgtPpMG.js";
|
|
39
|
+
import { R as sn } from "./CxbF1opI.js";
|
|
40
|
+
import Zt from "lodash/get";
|
|
41
|
+
import Qe from "lodash/isFunction";
|
|
76
42
|
import { u as oo } from "./BJeTDXdz.js";
|
|
77
43
|
import ln from "../tooltip/index.js";
|
|
78
44
|
import { m as ro } from "./B5RFT17G.js";
|
|
79
45
|
import so from "@unicom-cloud/icons/IconUiCaretDown";
|
|
80
46
|
import io from "@unicom-cloud/icons/IconUiCaretUp";
|
|
81
47
|
import lo from "@unicom-cloud/icons/IconUiFilter";
|
|
82
|
-
import
|
|
48
|
+
import en from "../button/index.js";
|
|
83
49
|
import { u as ao } from "./2vdCeheu.js";
|
|
84
50
|
import co from "../space/index.js";
|
|
85
51
|
import fo from "../trigger/index.js";
|
|
86
|
-
|
|
52
|
+
import { isArray as Ue, isPlainObject as we, isFunction as He, isNumber as tn } from "@unicom-cloud/utils/is";
|
|
53
|
+
function Ae(l) {
|
|
87
54
|
const a = ie(
|
|
88
|
-
() => Te(
|
|
89
|
-
[
|
|
55
|
+
() => Te(l) ? Xn({}, Qt, l) : Qt,
|
|
56
|
+
[l]
|
|
90
57
|
);
|
|
91
58
|
return {
|
|
92
59
|
getHeaderComponentOperations: a.header.operations,
|
|
@@ -104,34 +71,34 @@ function Le(i) {
|
|
|
104
71
|
ComponentBodyCell: a.body.cell
|
|
105
72
|
};
|
|
106
73
|
}
|
|
107
|
-
function nn(
|
|
108
|
-
const
|
|
74
|
+
function nn(l, a) {
|
|
75
|
+
const f = [];
|
|
109
76
|
function w(t) {
|
|
110
77
|
t && t.length > 0 && t.forEach((T) => {
|
|
111
|
-
T[a] ? w(T[a]) :
|
|
78
|
+
T[a] ? w(T[a]) : f.push({ ...T, key: T.dataIndex || T.key });
|
|
112
79
|
});
|
|
113
80
|
}
|
|
114
|
-
return w(
|
|
81
|
+
return w(l), f;
|
|
115
82
|
}
|
|
116
|
-
function an(
|
|
117
|
-
let
|
|
118
|
-
return
|
|
83
|
+
function an(l, a) {
|
|
84
|
+
let f = 0;
|
|
85
|
+
return l && l.length > 0 && l.forEach((w) => {
|
|
119
86
|
const t = an(w[a], a) + 1;
|
|
120
|
-
|
|
121
|
-
}),
|
|
87
|
+
f = Math.max(t, f);
|
|
88
|
+
}), f;
|
|
122
89
|
}
|
|
123
|
-
function po(
|
|
90
|
+
function po(l) {
|
|
124
91
|
const {
|
|
125
92
|
component: a,
|
|
126
|
-
rowSelection:
|
|
93
|
+
rowSelection: f,
|
|
127
94
|
expandedRowRender: w,
|
|
128
95
|
expandProps: t = {},
|
|
129
96
|
columns: T = [],
|
|
130
97
|
childrenColumnName: r
|
|
131
|
-
} =
|
|
98
|
+
} = l, S = ie(() => T || [], [T]), c = ie(
|
|
132
99
|
() => nn(S, r),
|
|
133
100
|
[S, r]
|
|
134
|
-
), N =
|
|
101
|
+
), N = f && f.type === "checkbox" || f && !("type" in f), E = f && f.type === "radio", { width: p } = t, y = !!w, h = N || E, { getHeaderComponentOperations: v, getBodyComponentOperations: O } = Ae(a), g = ie(
|
|
135
102
|
() => v({
|
|
136
103
|
selectionNode: h ? "holder_node" : "",
|
|
137
104
|
expandNode: y ? "holder_node" : ""
|
|
@@ -151,83 +118,83 @@ function po(i) {
|
|
|
151
118
|
y,
|
|
152
119
|
O
|
|
153
120
|
]
|
|
154
|
-
), m =
|
|
155
|
-
(
|
|
156
|
-
const K = {},
|
|
157
|
-
|
|
158
|
-
const b = { ...
|
|
159
|
-
(!("key" in
|
|
121
|
+
), m = f && f.fixed, B = f && f.columnWidth, W = Ze(
|
|
122
|
+
(Y, I, R) => {
|
|
123
|
+
const K = {}, z = [];
|
|
124
|
+
Y.forEach((i, x) => {
|
|
125
|
+
const b = { ...i };
|
|
126
|
+
(!("key" in i) || typeof i.key > "u") && (b.key = b.dataIndex || x), x === 0 ? (b.$$isFirstColumn = !0, b.fixed === "left" && (K.fixed = b.fixed)) : b.$$isFirstColumn = !1, z.push(b);
|
|
160
127
|
});
|
|
161
|
-
const
|
|
128
|
+
const L = y && {
|
|
162
129
|
key: xt,
|
|
163
130
|
title: xt,
|
|
164
|
-
width:
|
|
131
|
+
width: p,
|
|
165
132
|
$$isOperation: !0
|
|
166
|
-
},
|
|
133
|
+
}, X = h && {
|
|
167
134
|
key: Ct,
|
|
168
135
|
title: Ct,
|
|
169
|
-
width:
|
|
136
|
+
width: B,
|
|
170
137
|
$$isOperation: !0
|
|
171
138
|
};
|
|
172
|
-
return m && (K.fixed = "left"), (typeof R != "number" || R === 0) && [...I].reverse().forEach((
|
|
173
|
-
if (
|
|
174
|
-
const b = g.filter((
|
|
175
|
-
|
|
176
|
-
...
|
|
139
|
+
return m && (K.fixed = "left"), (typeof R != "number" || R === 0) && [...I].reverse().forEach((i, x) => {
|
|
140
|
+
if (i.node) {
|
|
141
|
+
const b = g.filter((A) => A.node).length - x - 1;
|
|
142
|
+
i.name === "expandNode" ? z.unshift({
|
|
143
|
+
...L,
|
|
177
144
|
...K,
|
|
178
145
|
$$columnIndex: b
|
|
179
|
-
}) :
|
|
180
|
-
...
|
|
146
|
+
}) : i.name === "selectionNode" ? z.unshift({
|
|
147
|
+
...X,
|
|
181
148
|
...K,
|
|
182
149
|
$$columnIndex: b
|
|
183
|
-
}) :
|
|
184
|
-
...
|
|
150
|
+
}) : z.unshift({
|
|
151
|
+
...i,
|
|
185
152
|
...K,
|
|
186
|
-
title:
|
|
187
|
-
key:
|
|
153
|
+
title: i.name,
|
|
154
|
+
key: i.name,
|
|
188
155
|
$$isOperation: !0,
|
|
189
|
-
width:
|
|
156
|
+
width: i.width || 40,
|
|
190
157
|
$$columnIndex: b
|
|
191
158
|
});
|
|
192
159
|
}
|
|
193
|
-
}),
|
|
160
|
+
}), z;
|
|
194
161
|
},
|
|
195
162
|
[
|
|
196
|
-
|
|
163
|
+
p,
|
|
197
164
|
y,
|
|
198
165
|
h,
|
|
199
|
-
|
|
166
|
+
B,
|
|
200
167
|
m,
|
|
201
168
|
g
|
|
202
169
|
]
|
|
203
170
|
), F = ie(
|
|
204
|
-
() =>
|
|
205
|
-
[c,
|
|
171
|
+
() => W(c, u),
|
|
172
|
+
[c, W, u]
|
|
206
173
|
), ee = ie(
|
|
207
174
|
() => an(S, r),
|
|
208
175
|
[S, r]
|
|
209
176
|
);
|
|
210
177
|
return [ie(() => {
|
|
211
|
-
const
|
|
178
|
+
const Y = Ee(g) ? g.filter((z) => z.node).length : 0;
|
|
212
179
|
if (ee === 1) {
|
|
213
|
-
const
|
|
214
|
-
...
|
|
215
|
-
$$columnIndex:
|
|
180
|
+
const z = S.map((L, X) => ({
|
|
181
|
+
...L,
|
|
182
|
+
$$columnIndex: X + Y
|
|
216
183
|
}));
|
|
217
|
-
return [
|
|
184
|
+
return [W(z, g, 0)];
|
|
218
185
|
}
|
|
219
|
-
let I =
|
|
220
|
-
const R = [], K = (
|
|
221
|
-
R[
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
186
|
+
let I = Y;
|
|
187
|
+
const R = [], K = (z, L = 0) => {
|
|
188
|
+
R[L] = R[L] || [], z.forEach((X) => {
|
|
189
|
+
const i = { ...X };
|
|
190
|
+
i[r] ? (i.colSpan = nn(
|
|
191
|
+
X[r],
|
|
225
192
|
r
|
|
226
|
-
).length,
|
|
227
|
-
}), R[
|
|
228
|
-
R[
|
|
193
|
+
).length, i.$$columnIndex = [I], R[L].push(i), K(i[r], L + 1), i.$$columnIndex.push(I - 1)) : (i.rowSpan = ee - L, i.$$columnIndex = I++, R[L].push(i));
|
|
194
|
+
}), R[L] = W(
|
|
195
|
+
R[L],
|
|
229
196
|
g,
|
|
230
|
-
|
|
197
|
+
L
|
|
231
198
|
);
|
|
232
199
|
};
|
|
233
200
|
return K(S), R;
|
|
@@ -235,11 +202,11 @@ function po(i) {
|
|
|
235
202
|
S,
|
|
236
203
|
r,
|
|
237
204
|
ee,
|
|
238
|
-
|
|
205
|
+
W,
|
|
239
206
|
g
|
|
240
207
|
]), F];
|
|
241
208
|
}
|
|
242
|
-
function uo(
|
|
209
|
+
function uo(l, a, f) {
|
|
243
210
|
const {
|
|
244
211
|
defaultExpandedRowKeys: w,
|
|
245
212
|
defaultExpandAllRows: t,
|
|
@@ -248,76 +215,76 @@ function uo(i, a, d) {
|
|
|
248
215
|
onExpandedRowsChange: S,
|
|
249
216
|
childrenColumnName: c = "children",
|
|
250
217
|
expandProps: N
|
|
251
|
-
} =
|
|
218
|
+
} = l, [E, p] = he(
|
|
252
219
|
h()
|
|
253
|
-
), y =
|
|
220
|
+
), y = l.expandedRowKeys || E;
|
|
254
221
|
function h() {
|
|
255
222
|
let g = [];
|
|
256
|
-
return
|
|
257
|
-
const
|
|
258
|
-
return N && "rowExpandable" in N && typeof N.rowExpandable == "function" ? N.rowExpandable(
|
|
223
|
+
return l.expandedRowKeys ? g = l.expandedRowKeys : w ? g = w : t && (g = a.map((u, m) => {
|
|
224
|
+
const B = Z(u);
|
|
225
|
+
return N && "rowExpandable" in N && typeof N.rowExpandable == "function" ? N.rowExpandable(B) && f(u) : typeof T == "function" ? T(B, m) && f(u) : It(u, c) && f(u);
|
|
259
226
|
}).filter((u) => u)), g;
|
|
260
227
|
}
|
|
261
228
|
function v(g) {
|
|
262
|
-
const u = y.indexOf(g) === -1, m = u ? y.concat(g) : y.filter((
|
|
263
|
-
|
|
229
|
+
const u = y.indexOf(g) === -1, m = u ? y.concat(g) : y.filter((W) => g !== W), B = a.filter((W) => m.indexOf(f(W)) !== -1).map((W) => f(W));
|
|
230
|
+
p(B), O(g, u), S?.(B);
|
|
264
231
|
}
|
|
265
232
|
function O(g, u) {
|
|
266
233
|
r?.(
|
|
267
|
-
|
|
234
|
+
Z(a.find((m) => f(m) === g)),
|
|
268
235
|
u
|
|
269
236
|
);
|
|
270
237
|
}
|
|
271
238
|
return [y, v];
|
|
272
239
|
}
|
|
273
|
-
function on(
|
|
274
|
-
return [...new Set(
|
|
240
|
+
function on(l) {
|
|
241
|
+
return [...new Set(l)];
|
|
275
242
|
}
|
|
276
|
-
function mo(
|
|
277
|
-
const { rowSelection: t, childrenColumnName: T } =
|
|
243
|
+
function mo(l, a, f, w) {
|
|
244
|
+
const { rowSelection: t, childrenColumnName: T } = l, r = t?.selectedRowKeys, S = t?.onSelectAll, c = t?.onSelect, N = t?.onChange, E = t?.pureKeys, p = typeof t?.checkStrictly == "boolean" ? !t.checkStrictly : !1, y = t?.preserveSelectedRowKeys;
|
|
278
245
|
function h() {
|
|
279
|
-
const
|
|
246
|
+
const i = [], x = [], b = (D) => {
|
|
280
247
|
Ee(D) && D.length && D.forEach((C) => {
|
|
281
248
|
const $ = w(C);
|
|
282
|
-
(t && typeof t.checkboxProps == "function" ? t.checkboxProps(
|
|
249
|
+
(t && typeof t.checkboxProps == "function" ? t.checkboxProps(Z(C)) : {}).disabled || i.push($), It(C, l.childrenColumnName) && b(C[l.childrenColumnName]);
|
|
283
250
|
});
|
|
284
251
|
};
|
|
285
252
|
b(a);
|
|
286
|
-
const
|
|
253
|
+
const A = (D, C) => {
|
|
287
254
|
Ee(D) && D.length && D.forEach(($) => {
|
|
288
|
-
if (C &&
|
|
289
|
-
const
|
|
290
|
-
|
|
255
|
+
if (C && p && ($.__INTERNAL_PARENT = C), x.push($), It($, l.childrenColumnName)) {
|
|
256
|
+
const J = { ...$ };
|
|
257
|
+
A($[l.childrenColumnName], J);
|
|
291
258
|
}
|
|
292
259
|
});
|
|
293
260
|
};
|
|
294
|
-
return
|
|
295
|
-
allSelectedRowKeys:
|
|
261
|
+
return A(f, void 0), {
|
|
262
|
+
allSelectedRowKeys: i,
|
|
296
263
|
flattenData: x
|
|
297
264
|
};
|
|
298
265
|
}
|
|
299
|
-
const { allSelectedRowKeys: v, flattenData: O } = h(), [g, u] = he([]), [m,
|
|
266
|
+
const { allSelectedRowKeys: v, flattenData: O } = h(), [g, u] = he([]), [m, B] = he([]), W = qn(
|
|
300
267
|
O,
|
|
301
268
|
on(r || g),
|
|
302
269
|
w,
|
|
303
270
|
T,
|
|
304
|
-
|
|
305
|
-
), F =
|
|
271
|
+
p
|
|
272
|
+
), F = p && !r ? g : W.selectedRowKeys, ee = p && !r ? m : W.indeterminateKeys, [q, Y] = he(
|
|
306
273
|
E ? [] : I(F)
|
|
307
274
|
);
|
|
308
|
-
function I(
|
|
309
|
-
const b = x ?
|
|
275
|
+
function I(i, x) {
|
|
276
|
+
const b = x ? q.concat(O) : O, A = new Map(
|
|
310
277
|
b.map((D, C, $) => [w(D), D])
|
|
311
278
|
);
|
|
312
|
-
return
|
|
279
|
+
return i.map((D) => A.get(D)).filter((D) => D);
|
|
313
280
|
}
|
|
314
|
-
const R = new Set(O.map((
|
|
315
|
-
function K(
|
|
316
|
-
return y ?
|
|
281
|
+
const R = new Set(O.map((i) => w(i)));
|
|
282
|
+
function K(i) {
|
|
283
|
+
return y ? i : i.filter((x) => R.has(x));
|
|
317
284
|
}
|
|
318
|
-
function
|
|
285
|
+
function z(i) {
|
|
319
286
|
let x = [], b = [];
|
|
320
|
-
if (
|
|
287
|
+
if (i)
|
|
321
288
|
x = K(
|
|
322
289
|
on(F.concat(v))
|
|
323
290
|
);
|
|
@@ -328,112 +295,112 @@ function mo(i, a, d, w) {
|
|
|
328
295
|
);
|
|
329
296
|
}
|
|
330
297
|
E || (b = I(x, !0));
|
|
331
|
-
const
|
|
332
|
-
u(x),
|
|
298
|
+
const A = Z(b);
|
|
299
|
+
u(x), Y(b), B([]), N?.(x, A), S?.(i, A);
|
|
333
300
|
}
|
|
334
|
-
function
|
|
335
|
-
const { selectedRowKeys: b, indeterminateKeys:
|
|
301
|
+
function L(i, x) {
|
|
302
|
+
const { selectedRowKeys: b, indeterminateKeys: A } = Gn(
|
|
336
303
|
x,
|
|
337
|
-
|
|
304
|
+
i,
|
|
338
305
|
F,
|
|
339
306
|
m,
|
|
340
307
|
w,
|
|
341
308
|
T,
|
|
342
|
-
|
|
343
|
-
), D = K(b), C = I(D, !0), $ =
|
|
344
|
-
u(D),
|
|
309
|
+
p
|
|
310
|
+
), D = K(b), C = I(D, !0), $ = Z(C);
|
|
311
|
+
u(D), Y(C), B(A), c?.(i, Z(x), $), N?.(D, $);
|
|
345
312
|
}
|
|
346
|
-
function
|
|
347
|
-
const b = [O.find((D) => w(D) ===
|
|
348
|
-
u([
|
|
313
|
+
function X(i, x) {
|
|
314
|
+
const b = [O.find((D) => w(D) === i)], A = Z(b);
|
|
315
|
+
u([i]), c?.(!0, Z(x), A), N?.([i], A);
|
|
349
316
|
}
|
|
350
317
|
return {
|
|
351
318
|
selectedRowKeys: F,
|
|
352
319
|
indeterminateKeys: ee,
|
|
353
|
-
onCheckAll:
|
|
354
|
-
onCheck:
|
|
355
|
-
onCheckRadio:
|
|
320
|
+
onCheckAll: z,
|
|
321
|
+
onCheck: L,
|
|
322
|
+
onCheckRadio: X,
|
|
356
323
|
setSelectedRowKeys: u,
|
|
357
324
|
allSelectedRowKeys: v,
|
|
358
325
|
flattenData: O
|
|
359
326
|
};
|
|
360
327
|
}
|
|
361
|
-
function ho(
|
|
362
|
-
const [
|
|
328
|
+
function ho(l, a) {
|
|
329
|
+
const [f, w] = he(a), [t, T] = he({}), r = se(l), S = Ze(
|
|
363
330
|
(E) => {
|
|
364
|
-
const { field:
|
|
365
|
-
return
|
|
366
|
-
(h) => h.field ===
|
|
367
|
-
) :
|
|
331
|
+
const { field: p, direction: y } = E;
|
|
332
|
+
return f.find((h) => h.field === p) ? y ? f.map(
|
|
333
|
+
(h) => h.field === p ? E : h
|
|
334
|
+
) : f.filter((h) => h.field !== p) : y ? !yt(E.priority) || f.find((h) => !yt(h.priority)) ? [E] : [...f, E] : [...f];
|
|
368
335
|
},
|
|
369
|
-
[
|
|
336
|
+
[f]
|
|
370
337
|
), c = Ze((E) => {
|
|
371
|
-
const
|
|
338
|
+
const p = E.filter((h) => "sortOrder" in h);
|
|
372
339
|
let y = [];
|
|
373
|
-
return
|
|
340
|
+
return p.forEach((h) => {
|
|
374
341
|
const v = Ot(h.sorter), O = h.sortOrder, g = {
|
|
375
342
|
field: h.dataIndex || h.key,
|
|
376
343
|
direction: O,
|
|
377
344
|
sorterFn: Dt(h.sorter),
|
|
378
345
|
priority: v
|
|
379
346
|
};
|
|
380
|
-
O ?
|
|
347
|
+
O ? yt(v) ? y.every((u) => yt(u.priority) || !u.direction) && y.push(g) : y.every((u) => !u.direction) ? y.push(g) : y = [g] : y.push(g);
|
|
381
348
|
}), y;
|
|
382
349
|
}, []), N = Ze(
|
|
383
|
-
(E,
|
|
384
|
-
c(
|
|
350
|
+
(E, p) => {
|
|
351
|
+
c(l).length || (w(p), T(E));
|
|
385
352
|
},
|
|
386
|
-
[
|
|
353
|
+
[l, c, w, T]
|
|
387
354
|
);
|
|
388
355
|
return Ft(() => {
|
|
389
|
-
const E = r.current,
|
|
356
|
+
const E = r.current, p = c(E), y = c(l), h = p.map(
|
|
390
357
|
(O) => O.field
|
|
391
|
-
), v = y.filter((O) =>
|
|
358
|
+
), v = y.filter((O) => p.find(
|
|
392
359
|
({ field: u, direction: m }) => O.field === u && O.direction !== m
|
|
393
360
|
) ? !0 : !h.includes(O.field));
|
|
394
|
-
v && v.length && (w(y), T({})), r.current =
|
|
361
|
+
v && v.length && (w(y), T({})), r.current = l;
|
|
395
362
|
}, [
|
|
396
|
-
|
|
363
|
+
l,
|
|
397
364
|
c,
|
|
398
365
|
S,
|
|
399
366
|
T,
|
|
400
367
|
w
|
|
401
368
|
]), {
|
|
402
369
|
currentSorter: t,
|
|
403
|
-
activeSorters:
|
|
370
|
+
activeSorters: f,
|
|
404
371
|
getNextActiveSorters: S,
|
|
405
372
|
updateStateSorters: N
|
|
406
373
|
};
|
|
407
374
|
}
|
|
408
|
-
function yo(
|
|
375
|
+
function yo(l, a, f) {
|
|
409
376
|
const w = a.map((S) => S.fixed);
|
|
410
377
|
function t(S, c) {
|
|
411
|
-
return
|
|
412
|
-
[`${
|
|
413
|
-
[`${
|
|
414
|
-
[`${
|
|
415
|
-
[`${
|
|
378
|
+
return G({
|
|
379
|
+
[`${f}-col-fixed-left`]: S.fixed === "left",
|
|
380
|
+
[`${f}-col-fixed-right`]: S.fixed === "right",
|
|
381
|
+
[`${f}-col-fixed-left-last`]: S.fixed === "left" && (Te(a[c + 1]) ? a[c + 1].fixed !== "left" : !0),
|
|
382
|
+
[`${f}-col-fixed-right-first`]: S.fixed === "right" && (Te(a[c - 1]) ? a[c - 1].fixed !== "right" : !0)
|
|
416
383
|
});
|
|
417
384
|
}
|
|
418
385
|
const T = ie(() => a.map(
|
|
419
386
|
(S, c) => t(S, c)
|
|
420
387
|
), [w.join("-")]);
|
|
421
388
|
return [ie(
|
|
422
|
-
() =>
|
|
389
|
+
() => l.map((S) => S.map((c, N) => {
|
|
423
390
|
let E = N;
|
|
424
|
-
const
|
|
425
|
-
return Ee(
|
|
391
|
+
const p = c.$$columnIndex;
|
|
392
|
+
return Ee(p) && p.length === 2 ? E = c.fixed === "right" ? p[0] : p[1] : typeof p == "number" && (E = p), t(c, E);
|
|
426
393
|
})),
|
|
427
394
|
[
|
|
428
|
-
|
|
395
|
+
l.map((S) => `|${S.map((c) => c.fixed || "undefined").join("-")}|`).join("_")
|
|
429
396
|
]
|
|
430
397
|
), T];
|
|
431
398
|
}
|
|
432
|
-
function go(
|
|
433
|
-
const a =
|
|
434
|
-
return ie(() =>
|
|
399
|
+
function go(l) {
|
|
400
|
+
const a = l.map((t) => Pt(t.width)), f = l.map((t) => t.fixed);
|
|
401
|
+
return ie(() => l.map((t) => {
|
|
435
402
|
let T = 0;
|
|
436
|
-
return t.fixed === "left" &&
|
|
403
|
+
return t.fixed === "left" && l.some((r) => {
|
|
437
404
|
if (r.fixed === "left") {
|
|
438
405
|
if (r.key === t.key)
|
|
439
406
|
return !0;
|
|
@@ -441,7 +408,7 @@ function go(i) {
|
|
|
441
408
|
return T += c, !1;
|
|
442
409
|
}
|
|
443
410
|
return !1;
|
|
444
|
-
}), t.fixed === "right" && [...
|
|
411
|
+
}), t.fixed === "right" && [...l].reverse().some((r) => {
|
|
445
412
|
if (r.fixed === "right") {
|
|
446
413
|
if (r.key === t.key)
|
|
447
414
|
return !0;
|
|
@@ -450,14 +417,14 @@ function go(i) {
|
|
|
450
417
|
}
|
|
451
418
|
return !1;
|
|
452
419
|
}), T;
|
|
453
|
-
}), [a.join("-"),
|
|
420
|
+
}), [a.join("-"), f.join("-")]);
|
|
454
421
|
}
|
|
455
|
-
function xo(
|
|
456
|
-
return
|
|
422
|
+
function xo(l) {
|
|
423
|
+
return l && !Xe.isValidElement(l) && Te(l);
|
|
457
424
|
}
|
|
458
|
-
function Co(
|
|
425
|
+
function Co(l) {
|
|
459
426
|
const a = oo(), {
|
|
460
|
-
component:
|
|
427
|
+
component: f,
|
|
461
428
|
InnerComponentTd: w,
|
|
462
429
|
column: t,
|
|
463
430
|
columnIndex: T,
|
|
@@ -466,7 +433,7 @@ function Co(i) {
|
|
|
466
433
|
stickyOffset: c,
|
|
467
434
|
currentSorter: N,
|
|
468
435
|
virtualized: E,
|
|
469
|
-
record:
|
|
436
|
+
record: p,
|
|
470
437
|
trIndex: y,
|
|
471
438
|
level: h,
|
|
472
439
|
placeholder: v = "-",
|
|
@@ -474,18 +441,18 @@ function Co(i) {
|
|
|
474
441
|
renderExpandIcon: g,
|
|
475
442
|
rowKey: u,
|
|
476
443
|
recordHaveChildren: m,
|
|
477
|
-
haveTreeData:
|
|
478
|
-
} =
|
|
444
|
+
haveTreeData: B
|
|
445
|
+
} = l, { rtl: W } = Le(nt), F = Le(Bt), { ComponentBodyCell: ee } = Ae(f), q = se(null), Y = se(null), I = se(null), R = se(null), K = t?.tooltip?.show !== !1 && t?.ellipsis, z = G(
|
|
479
446
|
`${r}-td`,
|
|
480
447
|
S,
|
|
481
448
|
{
|
|
482
449
|
[`${r}-col-sorted`]: N && N.direction && N.field === t?.dataIndex
|
|
483
450
|
},
|
|
484
451
|
t?.className,
|
|
485
|
-
Qe(t?.bodyClassName) ? t
|
|
452
|
+
Qe(t?.bodyClassName) ? t?.bodyClassName(p, y) : t?.bodyClassName
|
|
486
453
|
);
|
|
487
|
-
let
|
|
488
|
-
t?.fixed === "left" && (x[
|
|
454
|
+
let L = {}, X, i, x = {};
|
|
455
|
+
if (t?.fixed === "left" && (x[W ? "right" : "left"] = c), t?.fixed === "right" && (x[W ? "left" : "right"] = c), Te(t?.cellStyle) && (x = {
|
|
489
456
|
...x,
|
|
490
457
|
...t?.cellStyle
|
|
491
458
|
}), Te(t?.bodyCellStyle) && (x = {
|
|
@@ -493,10 +460,13 @@ function Co(i) {
|
|
|
493
460
|
...t?.bodyCellStyle
|
|
494
461
|
}), Qe(t?.bodyCellStyle) && (x = {
|
|
495
462
|
...x,
|
|
496
|
-
...t?.bodyCellStyle?.(
|
|
497
|
-
}), t?.align && (x.textAlign = t?.align), E && t
|
|
498
|
-
|
|
499
|
-
|
|
463
|
+
...t?.bodyCellStyle?.(p, y) ?? {}
|
|
464
|
+
}), t?.align && (x.textAlign = t?.align), E && t?.width) {
|
|
465
|
+
const V = t?.width;
|
|
466
|
+
x.width = V, x.minWidth = V, x.maxWidth = V;
|
|
467
|
+
}
|
|
468
|
+
const { onHandleSave: b, ...A } = t?.onCell ? t?.onCell(
|
|
469
|
+
p,
|
|
500
470
|
y,
|
|
501
471
|
t,
|
|
502
472
|
{ rowKey: u }
|
|
@@ -504,31 +474,31 @@ function Co(i) {
|
|
|
504
474
|
) ?? {} : { onHandleSave: () => {
|
|
505
475
|
} }, D = t?.render;
|
|
506
476
|
let C = ie(() => D?.(
|
|
507
|
-
|
|
508
|
-
|
|
477
|
+
Zt(p, t?.dataIndex ?? ""),
|
|
478
|
+
Z(p),
|
|
509
479
|
y,
|
|
510
480
|
t,
|
|
511
481
|
// 潘启宝添加
|
|
512
482
|
{ rowKey: u }
|
|
513
483
|
// 潘启宝添加
|
|
514
|
-
), [
|
|
515
|
-
if (Qe(D) || (C =
|
|
516
|
-
}), [
|
|
484
|
+
), [p, t, y]);
|
|
485
|
+
if (Qe(D) || (C = Zt(p, t?.dataIndex ?? "")), xo(C) && (L = C?.props, X = L?.rowSpan, i = L?.colSpan, C = C?.children), et(() => (a(), () => {
|
|
486
|
+
}), [q.current, Y.current]), X === 0 || i === 0)
|
|
517
487
|
return null;
|
|
518
488
|
Ye(C) && (C = C.trim()), !C && C !== 0 && (C = t?.placeholder ?? v ?? "-");
|
|
519
489
|
const $ = t?.ellipsis && Ye(C) && !K ? {
|
|
520
490
|
title: C
|
|
521
|
-
} : {},
|
|
522
|
-
let te =
|
|
523
|
-
|
|
524
|
-
function re(
|
|
491
|
+
} : {}, J = B && t?.$$isFirstColumn, d = J && m;
|
|
492
|
+
let te = J && h > 0 ? O * h : 0;
|
|
493
|
+
J && !m && (te += 20);
|
|
494
|
+
function re(V) {
|
|
525
495
|
a();
|
|
526
496
|
}
|
|
527
|
-
const
|
|
497
|
+
const Q = `${T}-${y}-${te}-${d}`, ue = /* @__PURE__ */ o(
|
|
528
498
|
"div",
|
|
529
499
|
{
|
|
530
|
-
ref:
|
|
531
|
-
className:
|
|
500
|
+
ref: q,
|
|
501
|
+
className: G(`${r}-cell`, {
|
|
532
502
|
[`${r}-cell-text-ellipsis`]: t?.ellipsis
|
|
533
503
|
}),
|
|
534
504
|
...$,
|
|
@@ -536,13 +506,13 @@ function Co(i) {
|
|
|
536
506
|
children: /* @__PURE__ */ le(
|
|
537
507
|
ee,
|
|
538
508
|
{
|
|
539
|
-
ref:
|
|
509
|
+
ref: Y,
|
|
540
510
|
className: `${r}-cell-wrap-value`,
|
|
541
511
|
...Ye(ee) ? {} : {
|
|
542
|
-
rowData:
|
|
512
|
+
rowData: Z(p),
|
|
543
513
|
column: t,
|
|
544
514
|
onHandleSave: b,
|
|
545
|
-
...
|
|
515
|
+
...A
|
|
546
516
|
},
|
|
547
517
|
children: [
|
|
548
518
|
!!te && /* @__PURE__ */ o(
|
|
@@ -553,15 +523,15 @@ function Co(i) {
|
|
|
553
523
|
style: { paddingLeft: te }
|
|
554
524
|
}
|
|
555
525
|
),
|
|
556
|
-
!!
|
|
526
|
+
!!d && /* @__PURE__ */ o(
|
|
557
527
|
"span",
|
|
558
528
|
{
|
|
559
529
|
ref: R,
|
|
560
530
|
className: `${r}-cell-expand-icon`,
|
|
561
|
-
children: g(
|
|
531
|
+
children: g(p, u)
|
|
562
532
|
}
|
|
563
533
|
),
|
|
564
|
-
|
|
534
|
+
t?.dangerouslySetInnerHTML && Ye(C) ? /* @__PURE__ */ o(
|
|
565
535
|
"span",
|
|
566
536
|
{
|
|
567
537
|
dangerouslySetInnerHTML: {
|
|
@@ -571,17 +541,17 @@ function Co(i) {
|
|
|
571
541
|
) : C
|
|
572
542
|
]
|
|
573
543
|
},
|
|
574
|
-
|
|
544
|
+
Q
|
|
575
545
|
)
|
|
576
546
|
},
|
|
577
|
-
|
|
547
|
+
Q
|
|
578
548
|
);
|
|
579
|
-
let
|
|
549
|
+
let j = /* @__PURE__ */ o(
|
|
580
550
|
w,
|
|
581
551
|
{
|
|
582
|
-
className:
|
|
552
|
+
className: z,
|
|
583
553
|
style: x,
|
|
584
|
-
...
|
|
554
|
+
...jn(A, [
|
|
585
555
|
"onClick",
|
|
586
556
|
"onDoubleClick",
|
|
587
557
|
"onContextMenu",
|
|
@@ -592,36 +562,36 @@ function Co(i) {
|
|
|
592
562
|
"onMouseDown",
|
|
593
563
|
"onMouseUp"
|
|
594
564
|
]),
|
|
595
|
-
...
|
|
596
|
-
children:
|
|
565
|
+
...L,
|
|
566
|
+
children: ue
|
|
597
567
|
},
|
|
598
568
|
t?.key || t?.dataIndex || T
|
|
599
569
|
);
|
|
600
570
|
if (K) {
|
|
601
|
-
let
|
|
602
|
-
if (
|
|
603
|
-
const xe = t?.tooltip?.render, Ce = Qe(xe) ? xe(
|
|
604
|
-
|
|
571
|
+
let V = 0, fe = 0, ae = 0, me = 0;
|
|
572
|
+
if (q.current instanceof Element && (V = q.current.getBoundingClientRect().width), Y.current instanceof Element && (fe = Y.current.getBoundingClientRect().width), I.current instanceof Element && (ae = I.current.getBoundingClientRect().width), R.current instanceof Element && (me = R.current.getBoundingClientRect().width), V < fe + ae + me) {
|
|
573
|
+
const xe = t?.tooltip?.render, Ce = Qe(xe) ? xe(p, y, t) : t?.tooltip?.content ?? ro(j);
|
|
574
|
+
j = /* @__PURE__ */ o(
|
|
605
575
|
ln,
|
|
606
576
|
{
|
|
607
577
|
...t?.tooltip,
|
|
608
|
-
className:
|
|
578
|
+
className: G(
|
|
609
579
|
`${r}-cell-tooltip`,
|
|
610
580
|
t?.tooltip?.className
|
|
611
581
|
),
|
|
612
582
|
content: Ce,
|
|
613
583
|
triggerProps: F.triggerProps,
|
|
614
|
-
children:
|
|
584
|
+
children: j
|
|
615
585
|
}
|
|
616
586
|
);
|
|
617
587
|
}
|
|
618
588
|
}
|
|
619
|
-
return
|
|
589
|
+
return j;
|
|
620
590
|
}
|
|
621
591
|
const wo = Xe.memo(Co);
|
|
622
|
-
function So(
|
|
592
|
+
function So(l, a) {
|
|
623
593
|
const {
|
|
624
|
-
expandedRowRender:
|
|
594
|
+
expandedRowRender: f,
|
|
625
595
|
onClickExpandBtn: w,
|
|
626
596
|
columns: t,
|
|
627
597
|
component: T,
|
|
@@ -630,7 +600,7 @@ function So(i, a) {
|
|
|
630
600
|
prefixCls: c,
|
|
631
601
|
selectedRowKeys: N,
|
|
632
602
|
indeterminateKeys: E,
|
|
633
|
-
rowClassName:
|
|
603
|
+
rowClassName: p,
|
|
634
604
|
onRow: y,
|
|
635
605
|
rowSelection: h,
|
|
636
606
|
indentSize: v = 16,
|
|
@@ -638,64 +608,64 @@ function So(i, a) {
|
|
|
638
608
|
virtualized: g,
|
|
639
609
|
stickyOffsets: u,
|
|
640
610
|
stickyClassNames: m,
|
|
641
|
-
getRowKey:
|
|
642
|
-
placeholder:
|
|
611
|
+
getRowKey: B,
|
|
612
|
+
placeholder: W,
|
|
643
613
|
expandProps: F = { strictTreeData: !0 },
|
|
644
614
|
data: ee,
|
|
645
|
-
expandedRowKeys:
|
|
646
|
-
childrenColumnName:
|
|
615
|
+
expandedRowKeys: q,
|
|
616
|
+
childrenColumnName: Y,
|
|
647
617
|
record: I,
|
|
648
618
|
index: R,
|
|
649
619
|
type: K,
|
|
650
|
-
shouldRowExpand:
|
|
651
|
-
level:
|
|
652
|
-
} =
|
|
620
|
+
shouldRowExpand: z,
|
|
621
|
+
level: L
|
|
622
|
+
} = l, { rtl: X } = Le(nt), i = Z(I), { ...x } = y?.(i, R) || {}, b = B(I), A = K === "radio" ? N.slice(0, 1) : N, D = b || R, C = A.indexOf(b) > -1, $ = q.indexOf(b) > -1, J = E.indexOf(b) > -1, d = G(
|
|
653
623
|
`${c}-tr`,
|
|
654
624
|
{
|
|
655
625
|
[`${c}-row-checked`]: C,
|
|
656
626
|
[`${c}-row-expanded`]: $
|
|
657
627
|
},
|
|
658
|
-
|
|
659
|
-
), te = h && typeof h.checkboxProps == "function" ? h.checkboxProps(
|
|
628
|
+
p?.(i, R)
|
|
629
|
+
), te = h && typeof h.checkboxProps == "function" ? h.checkboxProps(i) : {}, re = G(`${c}-td`, `${c}-operation`), Q = (P) => G(re, `${c}-${P}`, {
|
|
660
630
|
[`${c}-selection-col`]: g && K === "checkbox" || K === "radio",
|
|
661
|
-
[`${c}-expand-icon-col`]: g &&
|
|
631
|
+
[`${c}-expand-icon-col`]: g && f
|
|
662
632
|
});
|
|
663
|
-
function
|
|
664
|
-
return F.strictTreeData ? Ee(P[
|
|
633
|
+
function ue(P) {
|
|
634
|
+
return F.strictTreeData ? Ee(P[Y]) && P[Y].length : P[Y] !== void 0;
|
|
665
635
|
}
|
|
666
|
-
function
|
|
667
|
-
return ee.find((P) =>
|
|
636
|
+
function j() {
|
|
637
|
+
return ee.find((P) => ue(P));
|
|
668
638
|
}
|
|
669
|
-
const
|
|
639
|
+
const V = z(I, R), fe = ue(I), ae = j() && !f, me = ae && fe, Ce = F.expandRowByClick && (V || me) ? {
|
|
670
640
|
onClick: (P) => {
|
|
671
641
|
w(b), x?.onClick?.(P);
|
|
672
642
|
}
|
|
673
|
-
} : {}, { ComponentBodyRow: be, ComponentTd: Ie, getBodyComponentOperations: Oe } =
|
|
674
|
-
className:
|
|
643
|
+
} : {}, { ComponentBodyRow: be, ComponentTd: Ie, getBodyComponentOperations: Oe } = Ae(T), ne = g ? "div" : be, ce = g ? "div" : Ie, $e = {
|
|
644
|
+
className: d,
|
|
675
645
|
key: D,
|
|
676
646
|
...x,
|
|
677
647
|
...Ce
|
|
678
648
|
}, Se = Ye(be) ? $e : { ...$e, record: I, index: R };
|
|
679
649
|
function Ne(P, ye) {
|
|
680
|
-
const { icon: ke } = F, Ke = !!~
|
|
681
|
-
onClick: (
|
|
682
|
-
|
|
650
|
+
const { icon: ke } = F, Ke = !!~q.indexOf(ye), Fe = {
|
|
651
|
+
onClick: (de) => {
|
|
652
|
+
de.stopPropagation(), w(ye);
|
|
683
653
|
}
|
|
684
654
|
};
|
|
685
655
|
return typeof ke == "function" ? ke({ expanded: Ke, record: P, ...Fe }) : /* @__PURE__ */ o("button", { ...Fe, type: "button", children: Ke ? /* @__PURE__ */ o(to, {}) : /* @__PURE__ */ o(no, {}) });
|
|
686
656
|
}
|
|
687
|
-
const
|
|
657
|
+
const We = f && /* @__PURE__ */ o(ce, { className: Q("expand-icon-cell"), children: V && Ne(I, b) }), Re = h && h.renderCell;
|
|
688
658
|
let Pe;
|
|
689
659
|
const De = /* @__PURE__ */ o(
|
|
690
|
-
|
|
660
|
+
Ht,
|
|
691
661
|
{
|
|
692
662
|
value: b,
|
|
693
663
|
onChange: (P) => r(P, I),
|
|
694
664
|
checked: C,
|
|
695
|
-
indeterminate:
|
|
665
|
+
indeterminate: J,
|
|
696
666
|
...te
|
|
697
667
|
}
|
|
698
|
-
),
|
|
668
|
+
), _ = /* @__PURE__ */ o(
|
|
699
669
|
sn,
|
|
700
670
|
{
|
|
701
671
|
onChange: () => S(b, I),
|
|
@@ -704,29 +674,29 @@ function So(i, a) {
|
|
|
704
674
|
...te
|
|
705
675
|
}
|
|
706
676
|
);
|
|
707
|
-
K === "checkbox" && (Pe = /* @__PURE__ */ o(
|
|
708
|
-
const
|
|
677
|
+
K === "checkbox" && (Pe = /* @__PURE__ */ o(ce, { className: Q("checkbox"), children: Re ? Re(De, C, i) : De })), K === "radio" && (Pe = /* @__PURE__ */ o(ce, { className: Q("radio"), children: Re ? Re(_, C, i) : _ }));
|
|
678
|
+
const pe = Oe({
|
|
709
679
|
selectionNode: Pe,
|
|
710
|
-
expandNode:
|
|
680
|
+
expandNode: We
|
|
711
681
|
});
|
|
712
682
|
return /* @__PURE__ */ tt(ne, { ...Se, key: Se.key, ref: a }, t.map((P, ye) => {
|
|
713
683
|
const ke = `${P.key}-${P.dataIndex}-${P.title}-${ye}`, Ke = u[ye], Fe = m[ye];
|
|
714
684
|
if (P.$$isOperation) {
|
|
715
|
-
let
|
|
716
|
-
P.title === Ct && (
|
|
717
|
-
const
|
|
718
|
-
return Xe.cloneElement(
|
|
685
|
+
let de = P.node, oe = !0;
|
|
686
|
+
P.title === Ct && (de = pe.find((qe) => qe.name === "selectionNode")?.node, oe = !1), P.title === xt && (de = pe.find((qe) => qe.name === "expandNode")?.node, oe = !1);
|
|
687
|
+
const ze = typeof de == "function" ? de(I) : de;
|
|
688
|
+
return Xe.cloneElement(ze, {
|
|
719
689
|
key: ke || ye,
|
|
720
|
-
...
|
|
721
|
-
className:
|
|
690
|
+
...ze.props,
|
|
691
|
+
className: G(
|
|
722
692
|
oe ? re : "",
|
|
723
|
-
|
|
693
|
+
ze?.props?.className,
|
|
724
694
|
Fe
|
|
725
695
|
),
|
|
726
696
|
style: {
|
|
727
|
-
...
|
|
697
|
+
...ze?.props?.style,
|
|
728
698
|
...P.fixed === "left" ? {
|
|
729
|
-
[
|
|
699
|
+
[X ? "right" : "left"]: Ke
|
|
730
700
|
} : {},
|
|
731
701
|
width: P.width,
|
|
732
702
|
minWidth: P.width
|
|
@@ -740,23 +710,22 @@ function So(i, a) {
|
|
|
740
710
|
virtualized: g,
|
|
741
711
|
component: T,
|
|
742
712
|
currentSorter: O.find(
|
|
743
|
-
(
|
|
713
|
+
(de) => de.field === (P.dataIndex || P.key)
|
|
744
714
|
),
|
|
745
|
-
placeholder:
|
|
715
|
+
placeholder: W,
|
|
746
716
|
indentSize: v,
|
|
747
717
|
stickyClassName: Fe,
|
|
748
718
|
stickyOffset: Ke,
|
|
749
|
-
InnerComponentTd:
|
|
719
|
+
InnerComponentTd: ce,
|
|
750
720
|
column: P,
|
|
751
721
|
columnIndex: ye,
|
|
752
722
|
record: I,
|
|
753
723
|
trIndex: R,
|
|
754
|
-
level:
|
|
755
|
-
haveTreeData:
|
|
756
|
-
recordHaveChildren:
|
|
724
|
+
level: L,
|
|
725
|
+
haveTreeData: ae,
|
|
726
|
+
recordHaveChildren: fe,
|
|
757
727
|
rowKey: b,
|
|
758
|
-
renderExpandIcon: Ne
|
|
759
|
-
___dangerouslySetInnerHTML___: i.___dangerouslySetInnerHTML___
|
|
728
|
+
renderExpandIcon: Ne
|
|
760
729
|
},
|
|
761
730
|
ke
|
|
762
731
|
);
|
|
@@ -764,7 +733,7 @@ function So(i, a) {
|
|
|
764
733
|
}
|
|
765
734
|
const rn = Kt(So), bo = Kt(function({
|
|
766
735
|
record: a,
|
|
767
|
-
index:
|
|
736
|
+
index: f,
|
|
768
737
|
virtualized: w,
|
|
769
738
|
tbodyProps: t
|
|
770
739
|
}, T) {
|
|
@@ -774,7 +743,7 @@ const rn = Kt(So), bo = Kt(function({
|
|
|
774
743
|
indentSize: c = 16,
|
|
775
744
|
childrenColumnName: N = "children",
|
|
776
745
|
expandProps: E = {},
|
|
777
|
-
rowSelection:
|
|
746
|
+
rowSelection: p,
|
|
778
747
|
hasFixedColumn: y,
|
|
779
748
|
tableViewWidth: h,
|
|
780
749
|
getRowKey: v,
|
|
@@ -782,19 +751,19 @@ const rn = Kt(So), bo = Kt(function({
|
|
|
782
751
|
expandedRowRender: g
|
|
783
752
|
} = t;
|
|
784
753
|
let u;
|
|
785
|
-
|
|
786
|
-
const m = g && ((R, K) => g(
|
|
787
|
-
const
|
|
754
|
+
p && "type" in p ? u = p.type : p && !("type" in p) && (u = "checkbox");
|
|
755
|
+
const m = g && ((R, K) => g(Z(R), K)), B = (R) => Ee(R[N]) && R[N].length, W = (R, K) => "rowExpandable" in E && typeof E.rowExpandable == "function" ? E.rowExpandable(R) : m?.(R, K) !== null, F = (R, K) => {
|
|
756
|
+
const z = [], L = {
|
|
788
757
|
...t,
|
|
789
758
|
type: u,
|
|
790
|
-
shouldRowExpand:
|
|
759
|
+
shouldRowExpand: W
|
|
791
760
|
};
|
|
792
|
-
|
|
761
|
+
z.push(
|
|
793
762
|
/* @__PURE__ */ o(
|
|
794
763
|
rn,
|
|
795
764
|
{
|
|
796
765
|
ref: T,
|
|
797
|
-
...
|
|
766
|
+
...L,
|
|
798
767
|
record: R,
|
|
799
768
|
level: 0,
|
|
800
769
|
index: K
|
|
@@ -802,34 +771,34 @@ const rn = Kt(So), bo = Kt(function({
|
|
|
802
771
|
v(R)
|
|
803
772
|
)
|
|
804
773
|
);
|
|
805
|
-
const
|
|
806
|
-
Ee(
|
|
807
|
-
O.indexOf(x) !== -1 && (
|
|
774
|
+
const X = (i, x, b = 0) => {
|
|
775
|
+
Ee(i) && i.length && i.forEach((A, D) => {
|
|
776
|
+
O.indexOf(x) !== -1 && (z.push(
|
|
808
777
|
/* @__PURE__ */ tt(
|
|
809
778
|
rn,
|
|
810
779
|
{
|
|
811
|
-
...
|
|
812
|
-
key: v(
|
|
813
|
-
record:
|
|
780
|
+
...L,
|
|
781
|
+
key: v(A),
|
|
782
|
+
record: A,
|
|
814
783
|
level: b + 1,
|
|
815
784
|
index: D
|
|
816
785
|
}
|
|
817
786
|
)
|
|
818
|
-
),
|
|
787
|
+
), B(A) && X(A[N], v(A), b + 1));
|
|
819
788
|
});
|
|
820
789
|
};
|
|
821
|
-
return m ||
|
|
822
|
-
}, ee = v(a),
|
|
790
|
+
return m || X(R[N], v(R)), z;
|
|
791
|
+
}, ee = v(a), q = W(a, f) && O.indexOf(ee) !== -1, Y = w ? "div" : "tr", I = w ? "div" : "td";
|
|
823
792
|
return /* @__PURE__ */ le(Xe.Fragment, { children: [
|
|
824
|
-
F(a,
|
|
825
|
-
|
|
826
|
-
|
|
793
|
+
F(a, f),
|
|
794
|
+
q && /* @__PURE__ */ o(
|
|
795
|
+
Y,
|
|
827
796
|
{
|
|
828
|
-
className:
|
|
797
|
+
className: G(`${r}-tr`, `${r}-expand-content`),
|
|
829
798
|
children: /* @__PURE__ */ o(
|
|
830
799
|
I,
|
|
831
800
|
{
|
|
832
|
-
className:
|
|
801
|
+
className: G(`${r}-td`),
|
|
833
802
|
style: { paddingLeft: c },
|
|
834
803
|
colSpan: S.length,
|
|
835
804
|
children: y ? /* @__PURE__ */ o(
|
|
@@ -837,9 +806,9 @@ const rn = Kt(So), bo = Kt(function({
|
|
|
837
806
|
{
|
|
838
807
|
className: `${r}-expand-fixed-row`,
|
|
839
808
|
style: { width: h },
|
|
840
|
-
children: m?.(a,
|
|
809
|
+
children: m?.(a, f)
|
|
841
810
|
}
|
|
842
|
-
) : m?.(a,
|
|
811
|
+
) : m?.(a, f)
|
|
843
812
|
}
|
|
844
813
|
)
|
|
845
814
|
},
|
|
@@ -847,10 +816,10 @@ const rn = Kt(So), bo = Kt(function({
|
|
|
847
816
|
)
|
|
848
817
|
] }, ee);
|
|
849
818
|
});
|
|
850
|
-
function $o(
|
|
819
|
+
function $o(l) {
|
|
851
820
|
const {
|
|
852
821
|
data: a,
|
|
853
|
-
columns:
|
|
822
|
+
columns: f,
|
|
854
823
|
prefixCls: w,
|
|
855
824
|
component: t,
|
|
856
825
|
noDataElement: T,
|
|
@@ -859,10 +828,10 @@ function $o(i) {
|
|
|
859
828
|
virtualized: c,
|
|
860
829
|
virtualListProps: N,
|
|
861
830
|
getRowKey: E,
|
|
862
|
-
saveVirtualListRef:
|
|
863
|
-
} =
|
|
864
|
-
|
|
865
|
-
}, { ComponentTbody: h } =
|
|
831
|
+
saveVirtualListRef: p
|
|
832
|
+
} = l, y = (B) => {
|
|
833
|
+
l.saveRef?.(B);
|
|
834
|
+
}, { ComponentTbody: h } = Ae(t);
|
|
866
835
|
let v = {}, O = {};
|
|
867
836
|
r && (r.x && (typeof r.x == "number" || typeof r.x == "string") && (v = {
|
|
868
837
|
width: r.x
|
|
@@ -873,15 +842,15 @@ function $o(i) {
|
|
|
873
842
|
className: `${w}-no-data`
|
|
874
843
|
};
|
|
875
844
|
S && (g.className = `${w}-no-data ${w}-expand-fixed-row`, g.style = { width: S });
|
|
876
|
-
const u = /* @__PURE__ */ o("tr", { className:
|
|
877
|
-
const F = E(
|
|
845
|
+
const u = /* @__PURE__ */ o("tr", { className: G(`${w}-tr`, `${w}-empty-row`), children: /* @__PURE__ */ o("td", { className: `${w}-td`, colSpan: f.length, children: /* @__PURE__ */ o("div", { ...g, children: T }) }) }), m = (B, W) => {
|
|
846
|
+
const F = E(B) ?? W;
|
|
878
847
|
return /* @__PURE__ */ o(
|
|
879
848
|
bo,
|
|
880
849
|
{
|
|
881
|
-
record:
|
|
882
|
-
index:
|
|
850
|
+
record: B,
|
|
851
|
+
index: W,
|
|
883
852
|
virtualized: c,
|
|
884
|
-
tbodyProps:
|
|
853
|
+
tbodyProps: l
|
|
885
854
|
},
|
|
886
855
|
F
|
|
887
856
|
);
|
|
@@ -895,8 +864,8 @@ function $o(i) {
|
|
|
895
864
|
outerStyle: { ...v, minWidth: "100%", overflow: "visible" },
|
|
896
865
|
innerStyle: { right: "auto", minWidth: "100%" },
|
|
897
866
|
className: `${w}-body`,
|
|
898
|
-
ref: (
|
|
899
|
-
|
|
867
|
+
ref: (B) => {
|
|
868
|
+
p(B), y(B?.dom);
|
|
900
869
|
},
|
|
901
870
|
itemKey: E,
|
|
902
871
|
...N,
|
|
@@ -904,25 +873,25 @@ function $o(i) {
|
|
|
904
873
|
}
|
|
905
874
|
) : /* @__PURE__ */ o("div", { className: `${w}-body`, ref: y, children: /* @__PURE__ */ o("table", { children: /* @__PURE__ */ o("tbody", { children: u }) }) }) : /* @__PURE__ */ o(h, { ref: y, children: a.length > 0 ? a.map(m) : u });
|
|
906
875
|
}
|
|
907
|
-
const No =
|
|
908
|
-
function Ro(
|
|
909
|
-
const { summary: a, data:
|
|
876
|
+
const No = An({});
|
|
877
|
+
function Ro(l) {
|
|
878
|
+
const { summary: a, data: f, prefixCls: w, columns: t, stickyOffsets: T, stickyClassNames: r } = l;
|
|
910
879
|
return /* @__PURE__ */ o("tfoot", { className: `${w}-tfoot`, children: /* @__PURE__ */ o(
|
|
911
880
|
No.Provider,
|
|
912
881
|
{
|
|
913
882
|
value: { columns: t, stickyOffsets: T, stickyClassNames: r, prefixCls: w },
|
|
914
|
-
children: a(
|
|
883
|
+
children: a(Z(f))
|
|
915
884
|
}
|
|
916
885
|
) });
|
|
917
886
|
}
|
|
918
|
-
function ko(
|
|
919
|
-
return
|
|
887
|
+
function ko(l, a) {
|
|
888
|
+
return l === "ascend" ? a?.Table.sortAscend : l === "descend" ? a?.Table.sortDescend : a?.Table.cancelSort;
|
|
920
889
|
}
|
|
921
890
|
const vo = { bottom: 0 };
|
|
922
|
-
function To(
|
|
891
|
+
function To(l) {
|
|
923
892
|
const {
|
|
924
893
|
onSort: a,
|
|
925
|
-
onFilter:
|
|
894
|
+
onFilter: f,
|
|
926
895
|
onHandleFilter: w,
|
|
927
896
|
onHandleFilterReset: t,
|
|
928
897
|
currentFilters: T = {},
|
|
@@ -931,7 +900,7 @@ function To(i) {
|
|
|
931
900
|
dataIndex: c,
|
|
932
901
|
title: N,
|
|
933
902
|
sorter: E,
|
|
934
|
-
sortDirections:
|
|
903
|
+
sortDirections: p = ["ascend", "descend"],
|
|
935
904
|
filters: y = [],
|
|
936
905
|
columnFixedStyle: h,
|
|
937
906
|
className: v,
|
|
@@ -939,156 +908,156 @@ function To(i) {
|
|
|
939
908
|
cellStyle: g,
|
|
940
909
|
headerCellStyle: u,
|
|
941
910
|
rowSpan: m,
|
|
942
|
-
colSpan:
|
|
943
|
-
headerCellProps:
|
|
911
|
+
colSpan: B,
|
|
912
|
+
headerCellProps: W,
|
|
944
913
|
prefixCls: F,
|
|
945
914
|
align: ee = "left",
|
|
946
|
-
component:
|
|
947
|
-
filterIcon:
|
|
915
|
+
component: q,
|
|
916
|
+
filterIcon: Y,
|
|
948
917
|
filterDropdown: I,
|
|
949
918
|
filterMultiple: R = !0,
|
|
950
919
|
ellipsis: K,
|
|
951
|
-
filterDropdownProps:
|
|
952
|
-
onFilterDropdownVisibleChange:
|
|
953
|
-
column:
|
|
954
|
-
showSorterTooltip:
|
|
920
|
+
filterDropdownProps: z,
|
|
921
|
+
onFilterDropdownVisibleChange: L,
|
|
922
|
+
column: X,
|
|
923
|
+
showSorterTooltip: i,
|
|
955
924
|
index: x
|
|
956
|
-
} =
|
|
925
|
+
} = l, { locale: b, rtl: A } = Le(nt), D = Le(Bt), C = S || c || x, [$, J, d] = ao([], {
|
|
957
926
|
value: T[C] || []
|
|
958
|
-
}), [te, re] = he(!1), [
|
|
927
|
+
}), [te, re] = he(!1), [Q, ue] = he(!1), j = E && Ee(p) && p.length, V = j ? fe() : void 0;
|
|
959
928
|
et(() => {
|
|
960
|
-
|
|
929
|
+
J(T[C] || []);
|
|
961
930
|
}, [T, C]), et(() => {
|
|
962
|
-
$ && $ !==
|
|
931
|
+
$ && $ !== d && J($);
|
|
963
932
|
}, [te]);
|
|
964
|
-
function
|
|
965
|
-
const
|
|
966
|
-
if (!
|
|
967
|
-
return
|
|
968
|
-
const
|
|
969
|
-
if (
|
|
970
|
-
return
|
|
933
|
+
function fe() {
|
|
934
|
+
const _ = r && r.direction;
|
|
935
|
+
if (!_ || r && r.field !== C)
|
|
936
|
+
return p[0];
|
|
937
|
+
const pe = p.indexOf(_);
|
|
938
|
+
if (pe < p.length)
|
|
939
|
+
return p[pe + 1];
|
|
971
940
|
}
|
|
972
|
-
function
|
|
941
|
+
function ae() {
|
|
973
942
|
$ && (w?.(
|
|
974
|
-
{ onFilter:
|
|
975
|
-
|
|
943
|
+
{ onFilter: f, filters: y, dataIndex: C },
|
|
944
|
+
d
|
|
976
945
|
), xe(!1));
|
|
977
946
|
}
|
|
978
947
|
function me() {
|
|
979
948
|
t({ dataIndex: C }), xe(!1);
|
|
980
949
|
}
|
|
981
|
-
function xe(
|
|
982
|
-
re(
|
|
950
|
+
function xe(_) {
|
|
951
|
+
re(_), L?.(_);
|
|
983
952
|
}
|
|
984
|
-
function Ce(
|
|
985
|
-
let P = [...
|
|
953
|
+
function Ce(_, pe) {
|
|
954
|
+
let P = [...d];
|
|
986
955
|
if (R)
|
|
987
|
-
|
|
988
|
-
P.findIndex((ye) => ye ===
|
|
956
|
+
pe ? P = P.concat(_) : P.splice(
|
|
957
|
+
P.findIndex((ye) => ye === _),
|
|
989
958
|
1
|
|
990
959
|
);
|
|
991
960
|
else if (P.length > 0)
|
|
992
|
-
if (P[0] !==
|
|
993
|
-
P = [
|
|
961
|
+
if (P[0] !== _)
|
|
962
|
+
P = [_];
|
|
994
963
|
else
|
|
995
964
|
return;
|
|
996
965
|
else
|
|
997
|
-
P = [
|
|
998
|
-
|
|
966
|
+
P = [_];
|
|
967
|
+
J(P);
|
|
999
968
|
}
|
|
1000
|
-
function be(
|
|
1001
|
-
|
|
1002
|
-
{ filters: y, onFilter:
|
|
1003
|
-
|
|
969
|
+
function be(_) {
|
|
970
|
+
J(_ || d), re(!1), w?.(
|
|
971
|
+
{ filters: y, onFilter: f, dataIndex: C },
|
|
972
|
+
_ || d
|
|
1004
973
|
);
|
|
1005
974
|
}
|
|
1006
975
|
function Ie() {
|
|
1007
976
|
return typeof I == "function" ? I({
|
|
1008
|
-
filterKeys:
|
|
1009
|
-
setFilterKeys: (
|
|
1010
|
-
|
|
977
|
+
filterKeys: d,
|
|
978
|
+
setFilterKeys: (_, pe) => {
|
|
979
|
+
J(_), pe?.();
|
|
1011
980
|
},
|
|
1012
981
|
confirm: be
|
|
1013
982
|
}) : /* @__PURE__ */ le("div", { className: `${F}-filters-popup`, children: [
|
|
1014
|
-
/* @__PURE__ */ o("div", { className: `${F}-filters-list`, children: y.map((
|
|
1015
|
-
const
|
|
983
|
+
/* @__PURE__ */ o("div", { className: `${F}-filters-list`, children: y.map((_) => {
|
|
984
|
+
const pe = d.findIndex((P) => P === _.value) !== -1;
|
|
1016
985
|
return /* @__PURE__ */ o("div", { className: `${F}-filters-item`, children: R ? /* @__PURE__ */ o(
|
|
1017
|
-
|
|
986
|
+
Ht,
|
|
1018
987
|
{
|
|
1019
|
-
checked:
|
|
1020
|
-
onChange: (P) => Ce(
|
|
1021
|
-
children:
|
|
988
|
+
checked: pe,
|
|
989
|
+
onChange: (P) => Ce(_.value, P),
|
|
990
|
+
children: _.text
|
|
1022
991
|
}
|
|
1023
992
|
) : /* @__PURE__ */ o(
|
|
1024
993
|
sn,
|
|
1025
994
|
{
|
|
1026
|
-
checked:
|
|
1027
|
-
onChange: (P) => Ce(
|
|
1028
|
-
children:
|
|
995
|
+
checked: pe,
|
|
996
|
+
onChange: (P) => Ce(_.value, P),
|
|
997
|
+
children: _.text
|
|
1029
998
|
}
|
|
1030
|
-
) },
|
|
999
|
+
) }, _.value);
|
|
1031
1000
|
}) }),
|
|
1032
1001
|
/* @__PURE__ */ le(co, { className: `${F}-filters-btn`, children: [
|
|
1033
|
-
/* @__PURE__ */ o(
|
|
1034
|
-
/* @__PURE__ */ o(
|
|
1002
|
+
/* @__PURE__ */ o(en, { onClick: me, size: "mini", children: b?.Table.resetText }),
|
|
1003
|
+
/* @__PURE__ */ o(en, { onClick: ae, type: "primary", size: "mini", children: b?.Table.okText })
|
|
1035
1004
|
] })
|
|
1036
1005
|
] });
|
|
1037
1006
|
}
|
|
1038
|
-
const Oe = (
|
|
1039
|
-
[`${F}-sorter-icon-active`]: r && r.direction ===
|
|
1040
|
-
}), ne =
|
|
1007
|
+
const Oe = (_) => G(`${F}-sorter-icon`, {
|
|
1008
|
+
[`${F}-sorter-icon-active`]: r && r.direction === _ && r.field === C
|
|
1009
|
+
}), ne = G(`${F}-filters`, {
|
|
1041
1010
|
[`${F}-filters-open`]: te,
|
|
1042
1011
|
[`${F}-filters-active`]: $ && $.length
|
|
1043
1012
|
});
|
|
1044
|
-
let
|
|
1013
|
+
let ce = {
|
|
1045
1014
|
...h
|
|
1046
1015
|
};
|
|
1047
|
-
Te(g) && (
|
|
1048
|
-
...
|
|
1016
|
+
Te(g) && (ce = {
|
|
1017
|
+
...ce,
|
|
1049
1018
|
...g
|
|
1050
|
-
}), Te(u) && (
|
|
1051
|
-
...
|
|
1019
|
+
}), Te(u) && (ce = {
|
|
1020
|
+
...ce,
|
|
1052
1021
|
...u
|
|
1053
|
-
}), Qe(u) && (
|
|
1054
|
-
...
|
|
1022
|
+
}), Qe(u) && (ce = {
|
|
1023
|
+
...ce,
|
|
1055
1024
|
...u()
|
|
1056
|
-
}), ee && ee !== "left" && (
|
|
1025
|
+
}), ee && ee !== "left" && (ce.textAlign = ee);
|
|
1057
1026
|
const $e = {
|
|
1058
|
-
style:
|
|
1027
|
+
style: ce,
|
|
1059
1028
|
key: S || C
|
|
1060
1029
|
};
|
|
1061
|
-
|
|
1062
|
-
const { ComponentTh: Se, ComponentHeaderCell: Ne } =
|
|
1063
|
-
|
|
1030
|
+
B && B > 1 && ($e.colSpan = B), m && m > 1 && ($e.rowSpan = m);
|
|
1031
|
+
const { ComponentTh: Se, ComponentHeaderCell: Ne } = Ae(q), We = Ee(y) && y.length > 0 || typeof I == "function", Re = K && typeof N == "string" ? { title: N } : {}, Pe = /* @__PURE__ */ le(gt, { children: [
|
|
1032
|
+
j ? /* @__PURE__ */ o(
|
|
1064
1033
|
ln,
|
|
1065
1034
|
{
|
|
1066
|
-
content: ko(
|
|
1067
|
-
disabled: !
|
|
1035
|
+
content: ko(V, b),
|
|
1036
|
+
disabled: !i,
|
|
1068
1037
|
triggerProps: D.triggerProps,
|
|
1069
|
-
...Te(
|
|
1038
|
+
...Te(i) ? i : {},
|
|
1070
1039
|
children: /* @__PURE__ */ le(
|
|
1071
1040
|
"div",
|
|
1072
1041
|
{
|
|
1073
1042
|
className: `${F}-cell-with-sorter`,
|
|
1074
1043
|
onMouseEnter: () => {
|
|
1075
|
-
|
|
1044
|
+
ue(!0);
|
|
1076
1045
|
},
|
|
1077
1046
|
onMouseLeave: () => {
|
|
1078
|
-
|
|
1047
|
+
ue(!1);
|
|
1079
1048
|
},
|
|
1080
|
-
onClick: () => a(
|
|
1049
|
+
onClick: () => a(V, C),
|
|
1081
1050
|
children: [
|
|
1082
1051
|
/* @__PURE__ */ o("span", { className: `${F}-th-item-title`, ...Re, children: N }),
|
|
1083
|
-
|
|
1052
|
+
j && /* @__PURE__ */ le(
|
|
1084
1053
|
"div",
|
|
1085
1054
|
{
|
|
1086
|
-
className:
|
|
1087
|
-
[`${F}-sorter-direction-one`]:
|
|
1055
|
+
className: G(`${F}-sorter`, {
|
|
1056
|
+
[`${F}-sorter-direction-one`]: p.length === 1
|
|
1088
1057
|
}),
|
|
1089
1058
|
children: [
|
|
1090
|
-
|
|
1091
|
-
|
|
1059
|
+
p.indexOf("ascend") !== -1 && /* @__PURE__ */ o("div", { className: Oe("ascend"), children: /* @__PURE__ */ o(io, {}) }),
|
|
1060
|
+
p.indexOf("descend") !== -1 && /* @__PURE__ */ o("div", { className: Oe("descend"), children: /* @__PURE__ */ o(so, {}) })
|
|
1092
1061
|
]
|
|
1093
1062
|
}
|
|
1094
1063
|
)
|
|
@@ -1097,32 +1066,32 @@ function To(i) {
|
|
|
1097
1066
|
)
|
|
1098
1067
|
}
|
|
1099
1068
|
) : /* @__PURE__ */ o("span", { className: `${F}-th-item-title`, ...Re, children: N }),
|
|
1100
|
-
|
|
1069
|
+
We && /* @__PURE__ */ o(
|
|
1101
1070
|
fo,
|
|
1102
1071
|
{
|
|
1103
1072
|
popup: Ie,
|
|
1104
1073
|
trigger: "click",
|
|
1105
1074
|
classNames: "slideDynamicOrigin",
|
|
1106
|
-
position:
|
|
1075
|
+
position: A ? "bl" : "br",
|
|
1107
1076
|
popupAlign: vo,
|
|
1108
1077
|
popupVisible: te,
|
|
1109
1078
|
onVisibleChange: xe,
|
|
1110
1079
|
...D.triggerProps,
|
|
1111
|
-
...
|
|
1112
|
-
children: /* @__PURE__ */ o("div", { className: ne, children:
|
|
1080
|
+
...z?.triggerProps,
|
|
1081
|
+
children: /* @__PURE__ */ o("div", { className: ne, children: Y || /* @__PURE__ */ o(lo, {}) })
|
|
1113
1082
|
}
|
|
1114
1083
|
)
|
|
1115
|
-
] }), De =
|
|
1084
|
+
] }), De = G(`${F}-th-item`, {
|
|
1116
1085
|
[`${F}-cell-text-ellipsis`]: K,
|
|
1117
|
-
[`${F}-cell-mouseenter`]:
|
|
1118
|
-
[`${F}-cell-next-${
|
|
1119
|
-
[`${F}-col-has-sorter`]:
|
|
1120
|
-
[`${F}-col-has-filter`]:
|
|
1086
|
+
[`${F}-cell-mouseenter`]: Q,
|
|
1087
|
+
[`${F}-cell-next-${V}`]: Q && V,
|
|
1088
|
+
[`${F}-col-has-sorter`]: j,
|
|
1089
|
+
[`${F}-col-has-filter`]: We
|
|
1121
1090
|
});
|
|
1122
|
-
return
|
|
1091
|
+
return B !== 0 && /* @__PURE__ */ tt(
|
|
1123
1092
|
Se,
|
|
1124
1093
|
{
|
|
1125
|
-
className:
|
|
1094
|
+
className: G(
|
|
1126
1095
|
`${F}-th`,
|
|
1127
1096
|
{
|
|
1128
1097
|
[`${F}-col-sorted`]: r?.direction && r.field === C
|
|
@@ -1133,22 +1102,22 @@ function To(i) {
|
|
|
1133
1102
|
index: x,
|
|
1134
1103
|
...$e,
|
|
1135
1104
|
key: $e.key,
|
|
1136
|
-
...
|
|
1105
|
+
...W
|
|
1137
1106
|
},
|
|
1138
1107
|
/* @__PURE__ */ o(
|
|
1139
1108
|
Ne,
|
|
1140
1109
|
{
|
|
1141
1110
|
className: De,
|
|
1142
|
-
column: Ye(Ne) ? void 0 :
|
|
1111
|
+
column: Ye(Ne) ? void 0 : X,
|
|
1143
1112
|
children: Pe
|
|
1144
1113
|
}
|
|
1145
1114
|
)
|
|
1146
1115
|
);
|
|
1147
1116
|
}
|
|
1148
|
-
function Eo(
|
|
1117
|
+
function Eo(l) {
|
|
1149
1118
|
const {
|
|
1150
1119
|
activeSorters: a,
|
|
1151
|
-
expandedRowRender:
|
|
1120
|
+
expandedRowRender: f,
|
|
1152
1121
|
expandProps: w = {},
|
|
1153
1122
|
onSort: t,
|
|
1154
1123
|
onHandleFilter: T,
|
|
@@ -1157,7 +1126,7 @@ function Eo(i) {
|
|
|
1157
1126
|
prefixCls: c,
|
|
1158
1127
|
currentFilters: N,
|
|
1159
1128
|
component: E,
|
|
1160
|
-
data:
|
|
1129
|
+
data: p,
|
|
1161
1130
|
selectedRowKeys: y,
|
|
1162
1131
|
rowSelection: h,
|
|
1163
1132
|
allSelectedRowKeys: v = [],
|
|
@@ -1165,95 +1134,95 @@ function Eo(i) {
|
|
|
1165
1134
|
stickyOffsets: g,
|
|
1166
1135
|
groupStickyClassNames: u,
|
|
1167
1136
|
showSorterTooltip: m
|
|
1168
|
-
} =
|
|
1169
|
-
const
|
|
1170
|
-
return y.filter((
|
|
1171
|
-
}, [y, v]),
|
|
1172
|
-
return /* @__PURE__ */ o(
|
|
1173
|
-
const x = S?.(
|
|
1137
|
+
} = l, { rtl: B } = Le(nt), { ComponentThead: W, ComponentHeaderRow: F, getHeaderComponentOperations: ee } = Ae(E), q = h && (h.type === "checkbox" || !("type" in h)), Y = h && "checkAll" in h ? h.checkAll : !0, I = h && h.type === "radio", { columnTitle: R } = w, K = ie(() => {
|
|
1138
|
+
const X = new Set(v);
|
|
1139
|
+
return y.filter((i, x, b) => X.has(i));
|
|
1140
|
+
}, [y, v]), z = O.length > 1 ? { rowSpan: O.length } : {}, L = G(`${c}-th`, `${c}-operation`);
|
|
1141
|
+
return /* @__PURE__ */ o(W, { children: O.map((X, i) => {
|
|
1142
|
+
const x = S?.(X, i), b = (q || I) && i === 0 && /* @__PURE__ */ o(
|
|
1174
1143
|
"th",
|
|
1175
1144
|
{
|
|
1176
|
-
className:
|
|
1177
|
-
|
|
1145
|
+
className: G(
|
|
1146
|
+
L,
|
|
1178
1147
|
`${c}-${I ? "radio" : "checkbox"}`
|
|
1179
1148
|
),
|
|
1180
1149
|
children: /* @__PURE__ */ le("div", { className: `${c}-th-item`, children: [
|
|
1181
|
-
|
|
1182
|
-
|
|
1150
|
+
Y && !I ? /* @__PURE__ */ o(
|
|
1151
|
+
Ht,
|
|
1183
1152
|
{
|
|
1184
|
-
indeterminate:
|
|
1185
|
-
checked:
|
|
1153
|
+
indeterminate: p && K.length > 0 && K.length !== v.length,
|
|
1154
|
+
checked: p && K.length !== 0 && K.length === v.length,
|
|
1186
1155
|
disabled: !v.length,
|
|
1187
|
-
onChange:
|
|
1156
|
+
onChange: l.onCheckAll
|
|
1188
1157
|
}
|
|
1189
1158
|
) : null,
|
|
1190
1159
|
h && h.columnTitle
|
|
1191
1160
|
] })
|
|
1192
1161
|
}
|
|
1193
|
-
),
|
|
1162
|
+
), A = f && /* @__PURE__ */ o("th", { className: G(L, `${c}-expand`), children: R && /* @__PURE__ */ o("div", { className: `${c}-th-item`, children: R }) }), D = u[i], C = ee({
|
|
1194
1163
|
selectionNode: b,
|
|
1195
|
-
expandNode:
|
|
1164
|
+
expandNode: A
|
|
1196
1165
|
});
|
|
1197
1166
|
return /* @__PURE__ */ tt(
|
|
1198
1167
|
F,
|
|
1199
1168
|
{
|
|
1200
1169
|
...x,
|
|
1201
|
-
key:
|
|
1170
|
+
key: i,
|
|
1202
1171
|
className: `${c}-tr`
|
|
1203
1172
|
},
|
|
1204
|
-
|
|
1205
|
-
const
|
|
1173
|
+
X.map(($, J) => {
|
|
1174
|
+
const d = $.$$columnIndex;
|
|
1206
1175
|
let te = 0;
|
|
1207
|
-
Ue(
|
|
1208
|
-
const re = D[
|
|
1176
|
+
Ue(d) && d.length === 2 ? te = $.fixed === "right" ? g[d[1]] : g[d[0]] : typeof d == "number" && (te = g[d] || 0);
|
|
1177
|
+
const re = D[J];
|
|
1209
1178
|
if ($.$$isOperation) {
|
|
1210
|
-
let
|
|
1211
|
-
$.title === Ct && (
|
|
1179
|
+
let V = $.node, fe = !0;
|
|
1180
|
+
$.title === Ct && (V = C.find(
|
|
1212
1181
|
(me) => me.name === "selectionNode"
|
|
1213
|
-
)?.node,
|
|
1182
|
+
)?.node, fe = !1), $.title === xt && (V = C.find(
|
|
1214
1183
|
(me) => me.name === "expandNode"
|
|
1215
|
-
)?.node,
|
|
1216
|
-
const
|
|
1217
|
-
return Xe.cloneElement(
|
|
1218
|
-
key: $.key ||
|
|
1219
|
-
...
|
|
1220
|
-
...
|
|
1221
|
-
className:
|
|
1222
|
-
|
|
1223
|
-
|
|
1184
|
+
)?.node, fe = !1);
|
|
1185
|
+
const ae = V;
|
|
1186
|
+
return Xe.cloneElement(ae, {
|
|
1187
|
+
key: $.key || J,
|
|
1188
|
+
...ae.props,
|
|
1189
|
+
...z,
|
|
1190
|
+
className: G(
|
|
1191
|
+
fe ? L : "",
|
|
1192
|
+
ae?.props?.className,
|
|
1224
1193
|
re
|
|
1225
1194
|
),
|
|
1226
1195
|
style: {
|
|
1227
|
-
...
|
|
1196
|
+
...ae?.props?.style,
|
|
1228
1197
|
...$.fixed === "left" ? {
|
|
1229
|
-
[
|
|
1198
|
+
[B ? "right" : "left"]: te
|
|
1230
1199
|
} : {},
|
|
1231
1200
|
width: $.width,
|
|
1232
1201
|
minWidth: $.width
|
|
1233
1202
|
}
|
|
1234
1203
|
});
|
|
1235
1204
|
}
|
|
1236
|
-
const
|
|
1237
|
-
return $.fixed === "left" && (
|
|
1205
|
+
const Q = $?.onHeaderCell?.($, J), ue = G(re, $.className), j = {};
|
|
1206
|
+
return $.fixed === "left" && (j[B ? "right" : "left"] = te), $.fixed === "right" && (j[B ? "left" : "right"] = te), /* @__PURE__ */ tt(
|
|
1238
1207
|
To,
|
|
1239
1208
|
{
|
|
1240
|
-
index:
|
|
1209
|
+
index: J,
|
|
1241
1210
|
onSort: t,
|
|
1242
1211
|
onHandleFilter: T,
|
|
1243
1212
|
onHandleFilterReset: r,
|
|
1244
1213
|
currentSorter: a.find(
|
|
1245
|
-
(
|
|
1214
|
+
(V) => V.field === ($.dataIndex || $.key)
|
|
1246
1215
|
),
|
|
1247
1216
|
currentFilters: N,
|
|
1248
|
-
_key: $.key || $.dataIndex ||
|
|
1217
|
+
_key: $.key || $.dataIndex || J,
|
|
1249
1218
|
...$,
|
|
1250
1219
|
key: $.key,
|
|
1251
1220
|
column: $,
|
|
1252
|
-
headerCellProps:
|
|
1221
|
+
headerCellProps: Q,
|
|
1253
1222
|
prefixCls: c,
|
|
1254
1223
|
component: E,
|
|
1255
|
-
className:
|
|
1256
|
-
columnFixedStyle:
|
|
1224
|
+
className: ue,
|
|
1225
|
+
columnFixedStyle: j,
|
|
1257
1226
|
showSorterTooltip: m
|
|
1258
1227
|
}
|
|
1259
1228
|
);
|
|
@@ -1271,25 +1240,25 @@ const Po = [], Fo = [], Io = {
|
|
|
1271
1240
|
indentSize: 15,
|
|
1272
1241
|
showSorterTooltip: !0
|
|
1273
1242
|
};
|
|
1274
|
-
function Oo(
|
|
1243
|
+
function Oo(l, a) {
|
|
1275
1244
|
const {
|
|
1276
|
-
getPrefixCls:
|
|
1245
|
+
getPrefixCls: f,
|
|
1277
1246
|
loadingElement: w,
|
|
1278
1247
|
size: t,
|
|
1279
1248
|
tablePagination: T,
|
|
1280
1249
|
renderEmpty: r,
|
|
1281
1250
|
componentConfig: S,
|
|
1282
1251
|
rtl: c
|
|
1283
|
-
} =
|
|
1284
|
-
|
|
1252
|
+
} = Le(nt), N = Gt(
|
|
1253
|
+
l,
|
|
1285
1254
|
Io,
|
|
1286
1255
|
S?.Table
|
|
1287
1256
|
), E = Gt(
|
|
1288
|
-
we(
|
|
1257
|
+
we(l?.pagination) ? l?.pagination : {},
|
|
1289
1258
|
we(S?.Table?.pagination) ? S?.Table?.pagination : {},
|
|
1290
1259
|
T || {}
|
|
1291
1260
|
), {
|
|
1292
|
-
style:
|
|
1261
|
+
style: p,
|
|
1293
1262
|
className: y,
|
|
1294
1263
|
component: h,
|
|
1295
1264
|
border: v,
|
|
@@ -1297,54 +1266,54 @@ function Oo(i, a) {
|
|
|
1297
1266
|
columns: g = Fo,
|
|
1298
1267
|
data: u = Po,
|
|
1299
1268
|
scroll: m,
|
|
1300
|
-
noDataElement:
|
|
1301
|
-
showHeader:
|
|
1269
|
+
noDataElement: B,
|
|
1270
|
+
showHeader: W,
|
|
1302
1271
|
stripe: F,
|
|
1303
1272
|
hover: ee,
|
|
1304
|
-
pagination:
|
|
1305
|
-
onChange:
|
|
1273
|
+
pagination: q,
|
|
1274
|
+
onChange: Y,
|
|
1306
1275
|
pagePosition: I,
|
|
1307
1276
|
childrenColumnName: R,
|
|
1308
1277
|
indentSize: K,
|
|
1309
|
-
rowSelection:
|
|
1310
|
-
tableLayoutFixed:
|
|
1311
|
-
header:
|
|
1278
|
+
rowSelection: z,
|
|
1279
|
+
tableLayoutFixed: L,
|
|
1280
|
+
header: X,
|
|
1312
1281
|
// 潘启宝添加
|
|
1313
|
-
footer:
|
|
1282
|
+
footer: i,
|
|
1314
1283
|
virtualized: x,
|
|
1315
1284
|
renderPagination: b,
|
|
1316
|
-
summary:
|
|
1285
|
+
summary: A,
|
|
1317
1286
|
rowKey: D,
|
|
1318
1287
|
triggerProps: C
|
|
1319
|
-
} = N, $ = m && we(m) && m.x,
|
|
1288
|
+
} = N, $ = m && we(m) && m.x, J = ie(
|
|
1320
1289
|
() => Jn(u, R),
|
|
1321
1290
|
[u, R]
|
|
1322
|
-
),
|
|
1291
|
+
), d = f?.("table"), te = N.size || (["default", "middle", "small", "mini"].indexOf(t) > -1 ? t : "default"), re = se(null), Q = se(null), ue = se(null), j = se(null), V = se(null), fe = se(null), ae = se(null), me = se(null), xe = se(null), Ce = se(null), be = se(0), Ie = se(!1), [Oe, ne] = po(N), { currentFilters: ce, defaultSorters: $e } = fn(), [Se, Ne] = he(1), [We, Re] = he(
|
|
1323
1292
|
E.pageSize || E.defaultPageSize || 10
|
|
1324
|
-
), [Pe, De] = he(
|
|
1293
|
+
), [Pe, De] = he(ce), [_, pe] = he(0), [P, ye] = he([]), ke = go(ne), [Ke, Fe] = yo(
|
|
1325
1294
|
Oe,
|
|
1326
1295
|
ne,
|
|
1327
|
-
|
|
1296
|
+
d
|
|
1328
1297
|
), {
|
|
1329
|
-
currentSorter:
|
|
1298
|
+
currentSorter: de,
|
|
1330
1299
|
activeSorters: oe,
|
|
1331
|
-
getNextActiveSorters:
|
|
1300
|
+
getNextActiveSorters: ze,
|
|
1332
1301
|
updateStateSorters: qe
|
|
1333
|
-
} = ho(ne, $e), { ComponentTable: ot, ComponentBodyWrapper: cn, ComponentHeaderWrapper: dn } =
|
|
1302
|
+
} = ho(ne, $e), { ComponentTable: ot, ComponentBodyWrapper: cn, ComponentHeaderWrapper: dn } = Ae(h), wt = ie(() => He(D) ? (e) => D(Z(e)) : (e) => e[D], [D]);
|
|
1334
1303
|
function fn() {
|
|
1335
1304
|
const e = {};
|
|
1336
1305
|
let n = [];
|
|
1337
1306
|
return ne.forEach((s) => {
|
|
1338
1307
|
const k = s.dataIndex || s.key;
|
|
1339
1308
|
if (s.defaultFilters && (e[k] = s.defaultFilters), s.filteredValue && (e[k] = s.filteredValue), "defaultSortOrder" in s || "sortOrder" in s) {
|
|
1340
|
-
const
|
|
1309
|
+
const H = Ot(s.sorter), U = "sortOrder" in s ? s.sortOrder : s.defaultSortOrder, M = {
|
|
1341
1310
|
field: k,
|
|
1342
|
-
direction:
|
|
1311
|
+
direction: U,
|
|
1343
1312
|
sorterFn: Dt(s.sorter),
|
|
1344
|
-
priority:
|
|
1313
|
+
priority: H
|
|
1345
1314
|
};
|
|
1346
|
-
|
|
1347
|
-
(ge) =>
|
|
1315
|
+
U ? tn(H) ? n.every(
|
|
1316
|
+
(ge) => tn(ge.priority) || !ge.direction
|
|
1348
1317
|
) && n.push(M) : n.every((ge) => !ge.direction) ? n.push(M) : n = [M] : n.push(M);
|
|
1349
1318
|
}
|
|
1350
1319
|
}), { currentFilters: e, defaultSorters: n };
|
|
@@ -1354,43 +1323,43 @@ function Oo(i, a) {
|
|
|
1354
1323
|
(s) => "filteredValue" in s
|
|
1355
1324
|
), n = {};
|
|
1356
1325
|
return e.length && e.forEach((s, k) => {
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1326
|
+
const H = s.key || s.dataIndex || k;
|
|
1327
|
+
H !== void 0 && (n[H] = s.filteredValue);
|
|
1359
1328
|
}), n;
|
|
1360
|
-
}, [ne]),
|
|
1329
|
+
}, [ne]), Be = ie(() => Object.keys(rt).length ? rt : Pe, [Pe, rt]);
|
|
1361
1330
|
function pn(e, n) {
|
|
1362
|
-
const s =
|
|
1331
|
+
const s = _t(n);
|
|
1363
1332
|
if (!s) return;
|
|
1364
1333
|
const k = {
|
|
1365
1334
|
direction: e,
|
|
1366
1335
|
field: n,
|
|
1367
1336
|
sorterFn: Dt(s.sorter),
|
|
1368
1337
|
priority: Ot(s.sorter)
|
|
1369
|
-
},
|
|
1370
|
-
qe(k,
|
|
1371
|
-
const
|
|
1338
|
+
}, H = ze(k);
|
|
1339
|
+
qe(k, H);
|
|
1340
|
+
const U = at(
|
|
1372
1341
|
k,
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
), M = Ge(
|
|
1376
|
-
|
|
1377
|
-
currentData:
|
|
1378
|
-
currentAllData:
|
|
1342
|
+
H,
|
|
1343
|
+
Be
|
|
1344
|
+
), M = Ge(U);
|
|
1345
|
+
Y?.(_e(U), k, Be, {
|
|
1346
|
+
currentData: Z(M),
|
|
1347
|
+
currentAllData: Z(U),
|
|
1379
1348
|
action: "sort"
|
|
1380
1349
|
});
|
|
1381
1350
|
}
|
|
1382
1351
|
function un(e) {
|
|
1383
|
-
const n = function(k,
|
|
1384
|
-
return (
|
|
1385
|
-
const ge = k(
|
|
1386
|
-
return
|
|
1352
|
+
const n = function(k, H) {
|
|
1353
|
+
return (U, M) => {
|
|
1354
|
+
const ge = k(U, M);
|
|
1355
|
+
return H === "descend" ? -ge : ge;
|
|
1387
1356
|
};
|
|
1388
1357
|
}, s = [...e];
|
|
1389
|
-
return s.sort((k,
|
|
1390
|
-
for (let
|
|
1391
|
-
const { sorterFn: ge, direction: vt } = s[
|
|
1392
|
-
if (!
|
|
1393
|
-
const mt = n(ge, vt)(k,
|
|
1358
|
+
return s.sort((k, H) => H.priority - k.priority), (k, H) => {
|
|
1359
|
+
for (let U = 0, M = s.length; U < M; U++) {
|
|
1360
|
+
const { sorterFn: ge, direction: vt } = s[U];
|
|
1361
|
+
if (!He(ge)) continue;
|
|
1362
|
+
const mt = n(ge, vt)(k, H);
|
|
1394
1363
|
if (mt !== 0)
|
|
1395
1364
|
return mt;
|
|
1396
1365
|
}
|
|
@@ -1399,7 +1368,7 @@ function Oo(i, a) {
|
|
|
1399
1368
|
}
|
|
1400
1369
|
function mn(e, n) {
|
|
1401
1370
|
const s = {
|
|
1402
|
-
...
|
|
1371
|
+
...Be,
|
|
1403
1372
|
[e.dataIndex]: n
|
|
1404
1373
|
}, k = {
|
|
1405
1374
|
...s,
|
|
@@ -1407,78 +1376,78 @@ function Oo(i, a) {
|
|
|
1407
1376
|
};
|
|
1408
1377
|
if (Ue(n) && n.length) {
|
|
1409
1378
|
De(k);
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1379
|
+
const H = at(
|
|
1380
|
+
de,
|
|
1412
1381
|
oe,
|
|
1413
1382
|
s
|
|
1414
|
-
),
|
|
1415
|
-
|
|
1416
|
-
|
|
1383
|
+
), U = Ge(H);
|
|
1384
|
+
Y?.(
|
|
1385
|
+
_e(H),
|
|
1417
1386
|
oe.length === 1 ? oe[0] : oe,
|
|
1418
1387
|
s,
|
|
1419
1388
|
{
|
|
1420
|
-
currentData:
|
|
1421
|
-
currentAllData:
|
|
1389
|
+
currentData: Z(U),
|
|
1390
|
+
currentAllData: Z(H),
|
|
1422
1391
|
action: "filter"
|
|
1423
1392
|
}
|
|
1424
1393
|
);
|
|
1425
|
-
} else Ue(n) && !n.length &&
|
|
1394
|
+
} else Ue(n) && !n.length && Lt(e);
|
|
1426
1395
|
}
|
|
1427
|
-
function
|
|
1396
|
+
function Lt({ dataIndex: e }) {
|
|
1428
1397
|
const n = {
|
|
1429
|
-
...
|
|
1398
|
+
...Be
|
|
1430
1399
|
};
|
|
1431
1400
|
delete n[e], De(n);
|
|
1432
1401
|
const s = at(
|
|
1433
|
-
|
|
1402
|
+
de,
|
|
1434
1403
|
oe,
|
|
1435
1404
|
n
|
|
1436
1405
|
), k = Ge(s);
|
|
1437
|
-
|
|
1438
|
-
|
|
1406
|
+
Y?.(
|
|
1407
|
+
_e(s),
|
|
1439
1408
|
oe.length === 1 ? oe[0] : oe,
|
|
1440
1409
|
n,
|
|
1441
1410
|
{
|
|
1442
|
-
currentData:
|
|
1443
|
-
currentAllData:
|
|
1411
|
+
currentData: Z(k),
|
|
1412
|
+
currentAllData: Z(s),
|
|
1444
1413
|
action: "filter"
|
|
1445
1414
|
}
|
|
1446
1415
|
);
|
|
1447
1416
|
}
|
|
1448
1417
|
const st = !!ne.find((e) => e.fixed === "left"), it = !!ne.find((e) => e.fixed === "right"), lt = st || it;
|
|
1449
1418
|
function at(e, n, s) {
|
|
1450
|
-
let k = (
|
|
1451
|
-
Object.keys(s).forEach((
|
|
1452
|
-
if (s[
|
|
1453
|
-
const M =
|
|
1454
|
-
M &&
|
|
1419
|
+
let k = (J || []).slice();
|
|
1420
|
+
Object.keys(s).forEach((U) => {
|
|
1421
|
+
if (s[U] && s[U].length) {
|
|
1422
|
+
const M = _t(U);
|
|
1423
|
+
M && He(M.onFilter) && (k = k.filter((ge) => s[U].reduce(
|
|
1455
1424
|
(vt, mt) => vt || M.onFilter(mt, ge),
|
|
1456
1425
|
!1
|
|
1457
1426
|
)));
|
|
1458
1427
|
}
|
|
1459
1428
|
});
|
|
1460
|
-
const
|
|
1429
|
+
const H = (U) => U.slice().sort(un(n)).map((M) => Ue(M[R]) ? {
|
|
1461
1430
|
...M,
|
|
1462
|
-
[R]:
|
|
1431
|
+
[R]: H(M[R])
|
|
1463
1432
|
} : M);
|
|
1464
|
-
return e.direction &&
|
|
1433
|
+
return e.direction && He(e.sorterFn) || n.length ? H(k) : k;
|
|
1465
1434
|
}
|
|
1466
1435
|
const Me = at(
|
|
1467
|
-
|
|
1436
|
+
de,
|
|
1468
1437
|
oe,
|
|
1469
|
-
|
|
1438
|
+
Be
|
|
1470
1439
|
);
|
|
1471
|
-
function
|
|
1472
|
-
const n = E.pageSize ||
|
|
1440
|
+
function _e(e = Me) {
|
|
1441
|
+
const n = E.pageSize || We || 10, s = te === "middle" ? "default" : te;
|
|
1473
1442
|
let k = "top";
|
|
1474
1443
|
I === "tl" || I === "bl" ? k = "bottom" : k = "top";
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1444
|
+
const H = Ue(e) ? e.length : 0, U = Math.ceil(H / n) < Se ? 1 : Se;
|
|
1445
|
+
U !== Se && Ne(U);
|
|
1477
1446
|
let M = {
|
|
1478
1447
|
size: s,
|
|
1479
|
-
total:
|
|
1448
|
+
total: H,
|
|
1480
1449
|
pageSize: n,
|
|
1481
|
-
current:
|
|
1450
|
+
current: U,
|
|
1482
1451
|
selectProps: {
|
|
1483
1452
|
triggerProps: {
|
|
1484
1453
|
...C,
|
|
@@ -1486,26 +1455,26 @@ function Oo(i, a) {
|
|
|
1486
1455
|
}
|
|
1487
1456
|
}
|
|
1488
1457
|
};
|
|
1489
|
-
return typeof
|
|
1458
|
+
return typeof q == "object" && q.selectProps && (M.selectProps = {
|
|
1490
1459
|
...M.selectProps,
|
|
1491
|
-
...
|
|
1492
|
-
}), we(
|
|
1460
|
+
...q.selectProps
|
|
1461
|
+
}), we(q) && (M = {
|
|
1493
1462
|
...M,
|
|
1494
|
-
...
|
|
1463
|
+
...q
|
|
1495
1464
|
}), we(E) && (M = {
|
|
1496
1465
|
...M,
|
|
1497
1466
|
...E
|
|
1498
1467
|
}), M.onChange = Nn, M;
|
|
1499
1468
|
}
|
|
1500
|
-
const ct =
|
|
1469
|
+
const ct = _e(), Ve = Ge();
|
|
1501
1470
|
function Ge(e = Me, n = ct) {
|
|
1502
1471
|
const { current: s = 0, pageSize: k = 10 } = n;
|
|
1503
|
-
return
|
|
1472
|
+
return q === !1 || we(q) && u.length <= k ? e : e.slice((s - 1) * k, s * k);
|
|
1504
1473
|
}
|
|
1505
|
-
const ve = !!(m && m.y), Je =
|
|
1506
|
-
|
|
1474
|
+
const ve = !!(m && m.y), Je = A?.(Z(Me)), St = A && Xe.isValidElement(Je) && Je.props.fixed, hn = ve && St;
|
|
1475
|
+
zn(() => {
|
|
1507
1476
|
bt();
|
|
1508
|
-
const e = re.current, n =
|
|
1477
|
+
const e = re.current, n = Q.current, s = j.current;
|
|
1509
1478
|
n && Tt(n, "scroll", je);
|
|
1510
1479
|
const k = e && e.parentNode;
|
|
1511
1480
|
return e && k && Tt(k, "scroll", je), s && Tt(s, "scroll", je), () => {
|
|
@@ -1519,76 +1488,76 @@ function Oo(i, a) {
|
|
|
1519
1488
|
ne.length,
|
|
1520
1489
|
u
|
|
1521
1490
|
]), Ft(() => {
|
|
1522
|
-
const { total: e, pageSize: n } =
|
|
1491
|
+
const { total: e, pageSize: n } = _e(u);
|
|
1523
1492
|
Math.ceil(e / n) < Se && Ne(1);
|
|
1524
1493
|
}, [u?.length]), Ft(() => {
|
|
1525
1494
|
dt();
|
|
1526
|
-
}, [u, st, it, c]),
|
|
1527
|
-
getRootDomElement:
|
|
1495
|
+
}, [u, st, it, c]), Wn(a, () => ({
|
|
1496
|
+
getRootDomElement: At,
|
|
1528
1497
|
scrollIntoView: (e) => {
|
|
1529
1498
|
xe.current && xe.current.scrollTo({ key: e });
|
|
1530
1499
|
},
|
|
1531
|
-
getRootDOMNode:
|
|
1500
|
+
getRootDOMNode: At
|
|
1532
1501
|
}));
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1502
|
+
function At() {
|
|
1503
|
+
return V.current;
|
|
1535
1504
|
}
|
|
1536
|
-
|
|
1505
|
+
Mn(Wt(), (e) => {
|
|
1537
1506
|
bt();
|
|
1538
|
-
}),
|
|
1507
|
+
}), _n(!0, bt);
|
|
1539
1508
|
function bt() {
|
|
1540
1509
|
if (lt || $) {
|
|
1541
1510
|
dt();
|
|
1542
|
-
const e =
|
|
1511
|
+
const e = Wt();
|
|
1543
1512
|
if (e) {
|
|
1544
1513
|
const n = e?.clientWidth ?? e?.getBoundingClientRect?.()?.width;
|
|
1545
|
-
|
|
1514
|
+
pe(n);
|
|
1546
1515
|
}
|
|
1547
1516
|
}
|
|
1548
1517
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return
|
|
1518
|
+
function Wt() {
|
|
1519
|
+
return Q.current || me.current || ae.current || fe.current || V.current;
|
|
1551
1520
|
}
|
|
1552
1521
|
const yn = Ze(
|
|
1553
|
-
|
|
1554
|
-
const e =
|
|
1522
|
+
Ln(() => {
|
|
1523
|
+
const e = V.current, n = ve ? Q.current : Ce.current && Ce.current.parentNode;
|
|
1555
1524
|
if (n) {
|
|
1556
|
-
const s = c ? -n.scrollLeft : n.scrollLeft, k = s === 0,
|
|
1557
|
-
k &&
|
|
1525
|
+
const s = c ? -n.scrollLeft : n.scrollLeft, k = s === 0, H = s + 1 >= n.children[0].getBoundingClientRect().width - n.getBoundingClientRect().width;
|
|
1526
|
+
k && H ? ft(
|
|
1558
1527
|
e.classList,
|
|
1559
|
-
`${
|
|
1528
|
+
`${d}-scroll-position-both`
|
|
1560
1529
|
) : k ? ft(
|
|
1561
1530
|
e.classList,
|
|
1562
|
-
`${
|
|
1563
|
-
) :
|
|
1531
|
+
`${d}-scroll-position-${c ? "right" : "left"}`
|
|
1532
|
+
) : H ? ft(
|
|
1564
1533
|
e.classList,
|
|
1565
|
-
`${
|
|
1534
|
+
`${d}-scroll-position-${c ? "left" : "right"}`
|
|
1566
1535
|
) : ft(
|
|
1567
1536
|
e.classList,
|
|
1568
|
-
`${
|
|
1537
|
+
`${d}-scroll-position-middle`
|
|
1569
1538
|
);
|
|
1570
1539
|
} else
|
|
1571
1540
|
e && Mt(e.classList);
|
|
1572
1541
|
}, 100),
|
|
1573
|
-
[
|
|
1542
|
+
[V.current, Q.current, ve, c]
|
|
1574
1543
|
);
|
|
1575
1544
|
function dt() {
|
|
1576
1545
|
if (lt || $) {
|
|
1577
|
-
const e =
|
|
1578
|
-
e && (st &&
|
|
1546
|
+
const e = V.current;
|
|
1547
|
+
e && (st && zt(
|
|
1579
1548
|
e.classList,
|
|
1580
|
-
`${
|
|
1581
|
-
), it &&
|
|
1549
|
+
`${d}-has-fixed-col-left`
|
|
1550
|
+
), it && zt(
|
|
1582
1551
|
e.classList,
|
|
1583
|
-
`${
|
|
1552
|
+
`${d}-has-fixed-col-right`
|
|
1584
1553
|
)), yn();
|
|
1585
1554
|
}
|
|
1586
1555
|
}
|
|
1587
|
-
function
|
|
1556
|
+
function zt(e, n) {
|
|
1588
1557
|
e.contains(n) || e.add(n);
|
|
1589
1558
|
}
|
|
1590
1559
|
function Mt(e) {
|
|
1591
|
-
e.remove(`${
|
|
1560
|
+
e.remove(`${d}-scroll-position-both`), e.remove(`${d}-scroll-position-left`), e.remove(`${d}-scroll-position-right`), e.remove(`${d}-scroll-position-middle`);
|
|
1592
1561
|
}
|
|
1593
1562
|
function ft(e, n) {
|
|
1594
1563
|
e.contains(n) || (Mt(e), e.add(n));
|
|
@@ -1602,33 +1571,33 @@ function Oo(i, a) {
|
|
|
1602
1571
|
setSelectedRowKeys: Sn,
|
|
1603
1572
|
allSelectedRowKeys: bn,
|
|
1604
1573
|
flattenData: $n
|
|
1605
|
-
} = mo(N, Ve,
|
|
1606
|
-
function
|
|
1574
|
+
} = mo(N, Ve, J, wt);
|
|
1575
|
+
function _t(e) {
|
|
1607
1576
|
return ne.find((n, s) => typeof n.key < "u" ? typeof n.key == "number" && typeof e == "string" ? n.key.toString() === e : n.key === e : typeof n.dataIndex < "u" ? n.dataIndex === e : typeof e == "number" ? s === e : !1);
|
|
1608
1577
|
}
|
|
1609
1578
|
function Nn(e, n) {
|
|
1610
|
-
Ne(e), Re(n), e !== Se && Rn(),
|
|
1611
|
-
const s = { ...
|
|
1612
|
-
|
|
1579
|
+
Ne(e), Re(n), e !== Se && Rn(), z && !z.checkCrossPage && $t.length && (Sn([]), z.onChange?.([], []));
|
|
1580
|
+
const s = { ..._e(), current: e, pageSize: n };
|
|
1581
|
+
Y?.(
|
|
1613
1582
|
s,
|
|
1614
1583
|
oe.length === 1 ? oe[0] : oe,
|
|
1615
|
-
|
|
1584
|
+
Be,
|
|
1616
1585
|
{
|
|
1617
|
-
currentData:
|
|
1586
|
+
currentData: Z(
|
|
1618
1587
|
Ge(Me, s)
|
|
1619
1588
|
),
|
|
1620
|
-
currentAllData:
|
|
1589
|
+
currentAllData: Z(Me),
|
|
1621
1590
|
action: "paginate"
|
|
1622
1591
|
}
|
|
1623
1592
|
), E.onChange?.(e, n);
|
|
1624
1593
|
}
|
|
1625
1594
|
function Rn() {
|
|
1626
|
-
const e =
|
|
1595
|
+
const e = Q.current;
|
|
1627
1596
|
e && e.scrollTo({ top: 0, behavior: "smooth" });
|
|
1628
1597
|
}
|
|
1629
1598
|
function je(e) {
|
|
1630
|
-
const { target: n } = e, s =
|
|
1631
|
-
n.scrollLeft !== be.current && (k && (k.scrollLeft = n.scrollLeft), s && (s.scrollLeft = n.scrollLeft),
|
|
1599
|
+
const { target: n } = e, s = Q.current, k = re.current && re.current.parentNode, H = j.current;
|
|
1600
|
+
n.scrollLeft !== be.current && (k && (k.scrollLeft = n.scrollLeft), s && (s.scrollLeft = n.scrollLeft), H && (H.scrollLeft = n.scrollLeft), dt()), be.current = e.target.scrollLeft;
|
|
1632
1601
|
}
|
|
1633
1602
|
function kn(e) {
|
|
1634
1603
|
const { target: n } = e, s = Ce.current;
|
|
@@ -1648,9 +1617,9 @@ function Oo(i, a) {
|
|
|
1648
1617
|
function Tn() {
|
|
1649
1618
|
requestAnimationFrame((e) => {
|
|
1650
1619
|
const n = re.current && re.current.parentNode, s = Qn(n);
|
|
1651
|
-
s && s > 0 && (n.style.marginBottom = `-${s}px`, n.style.paddingBottom = "0px",
|
|
1652
|
-
const k =
|
|
1653
|
-
Zn(k) ? (Ie.current = !0, n && (n.style.overflowY = "scroll", n.style.scrollSnapType = "y mandatory"),
|
|
1620
|
+
s && s > 0 && (n.style.marginBottom = `-${s}px`, n.style.paddingBottom = "0px", j.current && (j.current.style.marginBottom = `-${s}px`, j.current.style.paddingBottom = "0px")), setTimeout(() => {
|
|
1621
|
+
const k = Q.current;
|
|
1622
|
+
Zn(k) ? (Ie.current = !0, n && (n.style.overflowY = "scroll", n.style.scrollSnapType = "y mandatory"), j.current && (j.current.style.overflowY = "scroll", j.current.style.overflowY = "y mandatory")) : n && Ie.current && (Ie.current = !1, n.style.overflowY = "auto", n.style.overflowY = "y mandatory", j.current && (j.current.style.overflowY = "auto", j.current.style.overflowY = "y mandatory"));
|
|
1654
1623
|
}, 0);
|
|
1655
1624
|
});
|
|
1656
1625
|
}
|
|
@@ -1659,15 +1628,15 @@ function Oo(i, a) {
|
|
|
1659
1628
|
{
|
|
1660
1629
|
...N,
|
|
1661
1630
|
activeSorters: oe,
|
|
1662
|
-
currentSorter:
|
|
1631
|
+
currentSorter: de,
|
|
1663
1632
|
selectedRowKeys: $t,
|
|
1664
|
-
currentFilters:
|
|
1633
|
+
currentFilters: Be,
|
|
1665
1634
|
onCheckAll: xn,
|
|
1666
1635
|
onSort: pn,
|
|
1667
1636
|
data: Ve,
|
|
1668
1637
|
onHandleFilter: mn,
|
|
1669
|
-
onHandleFilterReset:
|
|
1670
|
-
prefixCls:
|
|
1638
|
+
onHandleFilterReset: Lt,
|
|
1639
|
+
prefixCls: d,
|
|
1671
1640
|
allSelectedRowKeys: bn,
|
|
1672
1641
|
groupColumns: Oe,
|
|
1673
1642
|
stickyOffsets: ke,
|
|
@@ -1676,17 +1645,17 @@ function Oo(i, a) {
|
|
|
1676
1645
|
);
|
|
1677
1646
|
function En() {
|
|
1678
1647
|
const e = $ && m.x === "max-content";
|
|
1679
|
-
return ve || x ? /* @__PURE__ */ o(dn, { className: `${
|
|
1648
|
+
return ve || x ? /* @__PURE__ */ o(dn, { className: `${d}-header`, children: /* @__PURE__ */ le(
|
|
1680
1649
|
ot,
|
|
1681
1650
|
{
|
|
1682
1651
|
ref: re,
|
|
1683
1652
|
style: e ? {} : Nt,
|
|
1684
1653
|
children: [
|
|
1685
1654
|
/* @__PURE__ */ o(
|
|
1686
|
-
|
|
1655
|
+
ht,
|
|
1687
1656
|
{
|
|
1688
1657
|
columns: ne,
|
|
1689
|
-
prefixCls:
|
|
1658
|
+
prefixCls: d,
|
|
1690
1659
|
producer: !1,
|
|
1691
1660
|
columnWidths: e && m.y ? P : null
|
|
1692
1661
|
}
|
|
@@ -1699,8 +1668,8 @@ function Oo(i, a) {
|
|
|
1699
1668
|
const Yt = Je && /* @__PURE__ */ o(
|
|
1700
1669
|
Ro,
|
|
1701
1670
|
{
|
|
1702
|
-
prefixCls:
|
|
1703
|
-
summary:
|
|
1671
|
+
prefixCls: d,
|
|
1672
|
+
summary: A,
|
|
1704
1673
|
data: Ve,
|
|
1705
1674
|
columns: ne,
|
|
1706
1675
|
stickyOffsets: ke,
|
|
@@ -1710,7 +1679,7 @@ function Oo(i, a) {
|
|
|
1710
1679
|
$o,
|
|
1711
1680
|
{
|
|
1712
1681
|
...N,
|
|
1713
|
-
saveRef: (e) =>
|
|
1682
|
+
saveRef: (e) => ue.current = e,
|
|
1714
1683
|
selectedRowKeys: $t,
|
|
1715
1684
|
indeterminateKeys: gn,
|
|
1716
1685
|
expandedRowKeys: Vt,
|
|
@@ -1719,46 +1688,45 @@ function Oo(i, a) {
|
|
|
1719
1688
|
onClickExpandBtn: vn,
|
|
1720
1689
|
columns: ne,
|
|
1721
1690
|
data: Ve,
|
|
1722
|
-
prefixCls:
|
|
1691
|
+
prefixCls: d,
|
|
1723
1692
|
hasFixedColumn: lt,
|
|
1724
|
-
tableViewWidth:
|
|
1693
|
+
tableViewWidth: _,
|
|
1725
1694
|
indentSize: K,
|
|
1726
|
-
noDataElement:
|
|
1695
|
+
noDataElement: B || r("Table"),
|
|
1727
1696
|
activeSorters: oe,
|
|
1728
|
-
currentSorter:
|
|
1697
|
+
currentSorter: de,
|
|
1729
1698
|
stickyOffsets: ke,
|
|
1730
1699
|
stickyClassNames: Fe,
|
|
1731
1700
|
getRowKey: wt,
|
|
1732
1701
|
saveVirtualListRef: (e) => {
|
|
1733
|
-
x && (xe.current = e,
|
|
1734
|
-
}
|
|
1735
|
-
___dangerouslySetInnerHTML___: N.___dangerouslySetInnerHTML___
|
|
1702
|
+
x && (xe.current = e, Q.current = e?.dom);
|
|
1703
|
+
}
|
|
1736
1704
|
}
|
|
1737
1705
|
), qt = !x && !hn ? /* @__PURE__ */ le(gt, { children: [
|
|
1738
1706
|
Xt,
|
|
1739
1707
|
Yt
|
|
1740
1708
|
] }) : Xt;
|
|
1741
1709
|
if (et(() => {
|
|
1742
|
-
const e =
|
|
1710
|
+
const e = Q.current || ue.current, n = Yn([e], Tn);
|
|
1743
1711
|
return () => {
|
|
1744
1712
|
n();
|
|
1745
1713
|
};
|
|
1746
|
-
}, [
|
|
1714
|
+
}, [Q.current, ue.current]), et(() => (N.consoleTable && console.table(u), () => {
|
|
1747
1715
|
}), [u, N.consoleTable]), !g.length) return null;
|
|
1748
1716
|
function Pn() {
|
|
1749
1717
|
const e = we(m) && m.x === "max-content" && !!m.y && Ue(u) && u.length > 0;
|
|
1750
1718
|
return ve && !x ? /* @__PURE__ */ o(
|
|
1751
1719
|
cn,
|
|
1752
1720
|
{
|
|
1753
|
-
ref:
|
|
1754
|
-
className: `${
|
|
1721
|
+
ref: Q,
|
|
1722
|
+
className: G(`${d}-content-body`, `${d}-body`),
|
|
1755
1723
|
style: jt,
|
|
1756
1724
|
children: /* @__PURE__ */ le(ot, { style: Nt, children: [
|
|
1757
1725
|
/* @__PURE__ */ o(
|
|
1758
|
-
|
|
1726
|
+
ht,
|
|
1759
1727
|
{
|
|
1760
1728
|
columns: ne,
|
|
1761
|
-
prefixCls:
|
|
1729
|
+
prefixCls: d,
|
|
1762
1730
|
producer: e,
|
|
1763
1731
|
onSetColumnWidths: ye,
|
|
1764
1732
|
expandedRowKeys: Vt,
|
|
@@ -1775,76 +1743,76 @@ function Oo(i, a) {
|
|
|
1775
1743
|
$ && (e = {
|
|
1776
1744
|
width: m.x
|
|
1777
1745
|
});
|
|
1778
|
-
const n = /* @__PURE__ */ o("div", { className: `${
|
|
1779
|
-
/* @__PURE__ */ o(
|
|
1746
|
+
const n = /* @__PURE__ */ o("div", { className: `${d}-tfoot`, ref: j, children: /* @__PURE__ */ le(ot, { style: e, children: [
|
|
1747
|
+
/* @__PURE__ */ o(ht, { columns: ne, prefixCls: d }),
|
|
1780
1748
|
Yt
|
|
1781
|
-
] }) }), s = Je && ve && St === "top", k = Je && ve && St === "bottom",
|
|
1782
|
-
|
|
1749
|
+
] }) }), s = Je && ve && St === "top", k = Je && ve && St === "bottom", H = /* @__PURE__ */ le(gt, { children: [
|
|
1750
|
+
W ? En() : null,
|
|
1783
1751
|
s && n,
|
|
1784
1752
|
Pn(),
|
|
1785
1753
|
k && n
|
|
1786
|
-
] }),
|
|
1754
|
+
] }), U = He(X) && X(Ve), M = He(i) && i(Ve);
|
|
1787
1755
|
return /* @__PURE__ */ le(gt, { children: [
|
|
1788
|
-
!!
|
|
1789
|
-
/* @__PURE__ */ o("div", { ref:
|
|
1756
|
+
!!U && /* @__PURE__ */ o("div", { className: `${d}-header-`, children: U }),
|
|
1757
|
+
/* @__PURE__ */ o("div", { ref: fe, className: `${d}-container`, children: /* @__PURE__ */ o(
|
|
1790
1758
|
"div",
|
|
1791
1759
|
{
|
|
1792
|
-
ref:
|
|
1793
|
-
className: `${
|
|
1760
|
+
ref: ae,
|
|
1761
|
+
className: `${d}-content-scroll`,
|
|
1794
1762
|
children: /* @__PURE__ */ o(
|
|
1795
1763
|
"div",
|
|
1796
1764
|
{
|
|
1797
1765
|
ref: me,
|
|
1798
|
-
className: `${
|
|
1766
|
+
className: `${d}-content-inner`,
|
|
1799
1767
|
onScroll: ve ? void 0 : kn,
|
|
1800
|
-
children: ve || x ?
|
|
1801
|
-
/* @__PURE__ */ o(
|
|
1802
|
-
|
|
1768
|
+
children: ve || x ? H : /* @__PURE__ */ le(ot, { ref: Ce, style: e, children: [
|
|
1769
|
+
/* @__PURE__ */ o(ht, { prefixCls: d, columns: ne }),
|
|
1770
|
+
H
|
|
1803
1771
|
] })
|
|
1804
1772
|
}
|
|
1805
1773
|
)
|
|
1806
1774
|
}
|
|
1807
1775
|
) }),
|
|
1808
|
-
!!M && /* @__PURE__ */ o("div", { className: `${
|
|
1776
|
+
!!M && /* @__PURE__ */ o("div", { className: `${d}-footer`, children: M })
|
|
1809
1777
|
] });
|
|
1810
1778
|
}
|
|
1811
|
-
const In = we(v) ? v.wrapper : v, Rt = we(v) ? v.cell : O, On = we(v) ? v.cell || v.headerCell : O, Dn = we(v) ? v.cell || v.bodyCell : O, Kn =
|
|
1812
|
-
|
|
1813
|
-
`${
|
|
1779
|
+
const In = we(v) ? v.wrapper : v, Rt = we(v) ? v.cell : O, On = we(v) ? v.cell || v.headerCell : O, Dn = we(v) ? v.cell || v.bodyCell : O, Kn = G(
|
|
1780
|
+
d,
|
|
1781
|
+
`${d}-size-${te}`,
|
|
1814
1782
|
{
|
|
1815
|
-
[`${
|
|
1816
|
-
[`${
|
|
1817
|
-
[`${
|
|
1818
|
-
[`${
|
|
1819
|
-
[`${
|
|
1820
|
-
[`${
|
|
1821
|
-
[`${
|
|
1822
|
-
[`${
|
|
1823
|
-
[`${
|
|
1824
|
-
[`${
|
|
1825
|
-
[`${
|
|
1783
|
+
[`${d}-border`]: In,
|
|
1784
|
+
[`${d}-border-cell`]: Rt,
|
|
1785
|
+
[`${d}-border-header-cell`]: !Rt && On,
|
|
1786
|
+
[`${d}-border-body-cell`]: !Rt && Dn,
|
|
1787
|
+
[`${d}-stripe`]: F,
|
|
1788
|
+
[`${d}-hover`]: ee,
|
|
1789
|
+
[`${d}-type-radio`]: z && z.type === "radio",
|
|
1790
|
+
[`${d}-layout-fixed`]: L || m && (m.x || m.y) || g.find((e) => e.ellipsis),
|
|
1791
|
+
[`${d}-fixed-column`]: lt,
|
|
1792
|
+
[`${d}-virtualized`]: x,
|
|
1793
|
+
[`${d}-rtl`]: c
|
|
1826
1794
|
},
|
|
1827
1795
|
y
|
|
1828
|
-
), kt = I === "tl" || I === "tr" || I === "topCenter",
|
|
1829
|
-
[`${
|
|
1830
|
-
[`${
|
|
1831
|
-
[`${
|
|
1796
|
+
), kt = I === "tl" || I === "tr" || I === "topCenter", Bn = G(`${d}-pagination`, {
|
|
1797
|
+
[`${d}-pagination-left`]: I === "tl" || I === "bl",
|
|
1798
|
+
[`${d}-pagination-center`]: I === "topCenter" || I === "bottomCenter",
|
|
1799
|
+
[`${d}-pagination-top`]: kt
|
|
1832
1800
|
});
|
|
1833
1801
|
let pt = N.loading;
|
|
1834
1802
|
typeof pt == "boolean" && (pt = { loading: pt });
|
|
1835
|
-
const
|
|
1803
|
+
const Hn = q !== !1 && (Me.length !== 0 || ct?.total > 0);
|
|
1836
1804
|
let ut;
|
|
1837
|
-
return
|
|
1805
|
+
return Hn && (He(b) ? ut = b(/* @__PURE__ */ o(Jt, { ...ct })) : ut = /* @__PURE__ */ o("div", { className: Bn, children: /* @__PURE__ */ o(Jt, { ...ct }) })), /* @__PURE__ */ o(Bt.Provider, { value: N, children: /* @__PURE__ */ o(
|
|
1838
1806
|
"div",
|
|
1839
1807
|
{
|
|
1840
|
-
ref:
|
|
1841
|
-
style:
|
|
1808
|
+
ref: V,
|
|
1809
|
+
style: p,
|
|
1842
1810
|
className: Kn,
|
|
1843
|
-
...
|
|
1811
|
+
...Un(N),
|
|
1844
1812
|
children: /* @__PURE__ */ le(
|
|
1845
|
-
|
|
1813
|
+
Vn,
|
|
1846
1814
|
{
|
|
1847
|
-
className: `${
|
|
1815
|
+
className: `${d}-spin`,
|
|
1848
1816
|
element: w,
|
|
1849
1817
|
...pt,
|
|
1850
1818
|
children: [
|
|
@@ -1862,7 +1830,7 @@ Do.displayName = "Table";
|
|
|
1862
1830
|
export {
|
|
1863
1831
|
No as S,
|
|
1864
1832
|
Do as T,
|
|
1865
|
-
|
|
1833
|
+
Ae as a,
|
|
1866
1834
|
uo as b,
|
|
1867
1835
|
mo as c,
|
|
1868
1836
|
ho as d,
|