@unicom-cloud/ui 0.8.67 → 0.8.69
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 +15 -124
- package/Alert.js +13 -110
- package/Anchor.js +2 -2
- package/AutoComplete.js +15 -146
- package/Avatar.js +4 -154
- package/BackTop.js +14 -83
- package/Badge.js +12 -176
- package/Breadcrumb.js +12 -138
- package/Button.js +12 -149
- package/Calendar.js +12 -569
- package/Card.js +10 -136
- package/Carousel.js +13 -380
- package/Cascader.js +2 -2
- package/Checkbox.js +2 -2
- package/Collapse.js +2 -2
- package/ColorPicker.js +14 -582
- package/Comment.js +10 -71
- package/ConfigProvider.js +5 -6
- package/Copy.js +12 -61
- package/DatePicker.js +11 -2043
- package/Descriptions.js +11 -176
- package/Divider.js +7 -38
- package/Draggable.js +7 -90
- package/Drawer.js +2 -2
- package/Dropdown.js +15 -199
- package/Empty.js +2 -2
- package/Form.js +16 -1455
- package/Grid.js +9 -252
- package/Icon.js +7 -55
- package/IconHover.js +1 -1
- package/Image.js +6 -5
- package/Input.js +12 -12
- package/InputNumber.js +7 -5
- package/InputTag.js +2 -2
- package/Layout.js +16 -56
- package/Link.js +9 -60
- package/List.js +18 -312
- package/Loading.js +4 -59
- package/Mentions.js +12 -164
- package/Menu.js +8 -7
- package/Message.js +6 -5
- package/Modal.js +2 -2
- package/Notice.js +5 -6
- package/Notification.js +7 -6
- package/OverflowEllipsis.js +8 -98
- package/PageHeader.js +13 -113
- package/Pagination.js +2 -2
- package/Picker.js +4 -3
- package/Popconfirm.js +13 -128
- package/Popover.js +10 -76
- package/Portal.js +5 -25
- package/Progress.js +11 -363
- package/Radio.js +5 -6
- package/Rate.js +14 -125
- package/ResizeBox.js +16 -558
- package/Result.js +14 -1434
- package/Select.js +5 -4
- package/SelectView.js +9 -425
- package/Skeleton.js +11 -94
- package/Slider.js +21 -776
- package/Space.js +11 -94
- package/SpeechSynthesis.js +48 -64
- package/Spin.js +11 -94
- package/Statistic.js +15 -192
- package/Steps.js +11 -148
- package/SuspenseFallbackTest.js +3 -10
- package/Switch.js +13 -114
- package/Table.js +16 -2097
- package/Tabs.js +6 -6
- package/Tag.js +13 -134
- package/TimePicker.js +7 -274
- package/Timeline.js +4 -4
- package/Tooltip.js +12 -137
- package/Transfer.js +14 -450
- package/Tree.js +3 -2
- package/TreeSelect.js +3 -4
- package/Trigger.js +21 -809
- package/Typography.js +10 -756
- package/Upload.js +4 -4
- package/VerificationCode.js +2 -2
- package/VirtualList.js +2 -2
- package/Watermark.js +2 -2
- package/affix/index.js +126 -0
- package/affix/interface.js +1 -0
- package/alert/index.js +112 -0
- package/alert/interface.js +1 -0
- package/anchor/Anchor.js +198 -0
- package/anchor/Link.js +52 -0
- package/anchor/context.js +14 -0
- package/anchor/index.js +4 -0
- package/anchor/interface.js +1 -0
- package/anchor/util.js +50 -0
- package/auto-complete/index.js +149 -0
- package/auto-complete/interface.js +1 -0
- package/avatar/Avatar.js +83 -0
- package/avatar/Group.js +82 -0
- package/avatar/context.js +5 -0
- package/avatar/index.js +7 -0
- package/avatar/interface.js +1 -0
- package/back-top/index.js +85 -0
- package/back-top/interface.js +1 -0
- package/badge/Count.js +35 -0
- package/badge/index.js +151 -0
- package/badge/interface.js +1 -0
- package/breadcrumb/Item.js +67 -0
- package/breadcrumb/index.js +81 -0
- package/breadcrumb/interface.js +1 -0
- package/button/Group.js +13 -0
- package/button/index.js +146 -0
- package/button/interface.js +1 -0
- package/calendar/Month.js +12 -0
- package/calendar/WeekList.js +24 -0
- package/calendar/Year.js +74 -0
- package/calendar/index.js +320 -0
- package/calendar/interface.js +1 -0
- package/card/Grid.js +25 -0
- package/card/Meta.js +30 -0
- package/card/index.js +99 -0
- package/card/interface.js +1 -0
- package/carousel/Arrow.js +55 -0
- package/carousel/Indicator.js +66 -0
- package/carousel/index.js +278 -0
- package/carousel/interface.js +1 -0
- package/cascader/Cascader.js +26 -0
- package/cascader/index.js +4 -0
- package/cascader/interface.js +1 -0
- package/cascader/util.js +14 -0
- package/checkbox/Checkbox.js +16 -0
- package/checkbox/Group.js +14 -0
- package/checkbox/IconCheck.js +19 -0
- package/checkbox/index.js +4 -0
- package/checkbox/interface.js +1 -0
- package/checkbox/useCheckbox.js +45 -0
- package/chunk/{qFf1w_Jq.js → 5_U1CBIu.js} +2 -2
- package/chunk/B2yFlXke.js +6 -0
- package/chunk/B4JiMp8I.js +764 -0
- package/chunk/B4YRLi8r.js +11 -0
- package/chunk/B5RFT17G.js +15 -0
- package/chunk/{CNmmhbCn.js → B6X4lnd0.js} +32 -32
- package/chunk/B7M-FGia.js +41 -0
- package/chunk/{B7FlazNB.js → BBkdXHrJ.js} +7 -7
- package/chunk/{BHF15Dog.js → BDB0LByj.js} +20 -20
- package/chunk/BFTV6myl.js +19 -0
- package/chunk/BJ1soa2K.js +178 -0
- package/chunk/BKKEev13.js +11 -0
- package/chunk/BKT9BFf4.js +11 -0
- package/chunk/BSCrLtfQ.js +10 -0
- package/chunk/{WpO_DsK4.js → BSaQv6mx.js} +62 -60
- package/chunk/BXAeh0_V.js +16 -0
- package/chunk/Bfq4YEcr.js +23 -0
- package/chunk/Bg3uJGPu.js +10 -0
- package/chunk/{C_gJWGGh.js → Bi4UkwOR.js} +180 -168
- package/chunk/BibHFOCF.js +34 -0
- package/chunk/Biupwn8l.js +24 -0
- package/chunk/{BCftTxEy.js → BjpUSKM3.js} +184 -181
- package/chunk/{Cf5QNhkG.js → Bl7BnD1R.js} +15 -15
- package/chunk/BsY85n3_.js +14 -0
- package/chunk/C48SmsN-.js +38 -0
- package/chunk/C4OrxKE6.js +18 -0
- package/chunk/C98ks5S8.js +473 -0
- package/chunk/CC---6jO.js +110 -0
- package/chunk/{DleQ5HwG.js → CCv-5KFt.js} +58 -58
- package/chunk/CD3AUpzo.js +166 -0
- package/chunk/CIRG541s.js +22 -0
- package/chunk/CKyu68pu.js +312 -0
- package/chunk/CQ_WOOmf.js +8 -0
- package/chunk/{CKNyIitu.js → CVYWxu00.js} +10 -10
- package/chunk/CYhxqVkn.js +9 -0
- package/chunk/CbLaCJmG.js +26 -0
- package/chunk/CdaT1b_F.js +20 -0
- package/chunk/CftuXmo_.js +6 -0
- package/chunk/CgurXnoy.js +569 -0
- package/chunk/{DKr2_PYd.js → Clo26EcR.js} +10 -10
- package/chunk/ClqoGc3r.js +17 -0
- package/chunk/CmZzBtA4.js +16 -0
- package/chunk/CpGBWmuz.js +1461 -0
- package/chunk/CzQObzKd.js +1817 -0
- package/chunk/D-TPB2Do.js +56 -0
- package/chunk/D090jlwP.js +38 -0
- package/chunk/{CJ_o9tZM.js → D0ZWT7db.js} +1 -1
- package/chunk/DH7HTOV_.js +11 -0
- package/chunk/DKHXj8Kf.js +9 -0
- package/chunk/Dh7Osrvr.js +27 -0
- package/chunk/DonYzv30.js +14 -0
- package/chunk/DpoumMDw.js +50 -0
- package/chunk/Duezix3m.js +25 -0
- package/chunk/DxVvggX2.js +11 -0
- package/chunk/DzVH9IBy.js +1413 -0
- package/chunk/SSK90wgo.js +209 -0
- package/chunk/{CSC_V_25.js → URXCKjXr.js} +8 -8
- package/chunk/VSe_Wq1g.js +10 -0
- package/chunk/XTEsYGuF.js +17 -0
- package/chunk/b1e8awfs.js +31 -0
- package/chunk/hEWZQ8Zi.js +16 -0
- package/chunk/k-OUstoD.js +58 -0
- package/chunk/ll867Bf3.js +730 -0
- package/chunk/{CLiqJm_T.js → oopARUrq.js} +2 -2
- package/chunk/tamGhTJp.js +186 -0
- package/chunk/{CANgSlh3.js → uKZyjtff.js} +31 -31
- package/chunk/vmgkWLYf.js +843 -0
- package/chunk/yl4BU7Sd.js +1068 -0
- package/chunk/zmmqLCF4.js +20 -0
- package/collapse/Collapse.js +15 -0
- package/collapse/Item.js +11 -0
- package/collapse/index.js +4 -0
- package/collapse/interface.js +1 -0
- package/color-picker/ControlBar.js +63 -0
- package/color-picker/InputAlpha.js +22 -0
- package/color-picker/InputHex.js +55 -0
- package/color-picker/InputRgb.js +61 -0
- package/color-picker/Mode.js +10 -0
- package/color-picker/Palette.js +34 -0
- package/color-picker/Panel.js +268 -0
- package/color-picker/colors.js +37 -0
- package/color-picker/index.js +270 -0
- package/color-picker/interface.js +4 -0
- package/color-picker/utils.js +89 -0
- package/comment/index.js +73 -0
- package/comment/interface.js +1 -0
- package/config-provider/ConfigProvider.js +15 -0
- package/config-provider/context.js +8 -0
- package/config-provider/index.js +8 -0
- package/config-provider/interface.js +1 -0
- package/copy/index.js +63 -0
- package/copy/interface.js +1 -0
- package/date-picker/Picker.js +410 -0
- package/date-picker/PickerRange.js +24 -0
- package/date-picker/context.js +5 -0
- package/date-picker/index.js +50 -0
- package/date-picker/interface.js +1 -0
- package/date-picker/util.js +76 -0
- package/descriptions/index.js +178 -0
- package/descriptions/interface.js +1 -0
- package/divider/index.js +40 -0
- package/divider/interface.js +1 -0
- package/draggable/Item.js +67 -0
- package/draggable/index.js +32 -0
- package/draggable/interface.js +1 -0
- package/{chunk/CP0odX99.js → drawer/Drawer.js} +71 -71
- package/drawer/index.js +4 -0
- package/drawer/interface.js +1 -0
- package/dropdown/Button.js +11 -0
- package/dropdown/index.js +201 -0
- package/dropdown/interface.js +1 -0
- package/empty/index.js +9 -0
- package/empty/interface.js +1 -0
- package/form/Control.js +265 -0
- package/form/Form.js +160 -0
- package/form/FormItem.js +239 -0
- package/form/FormLabel.js +54 -0
- package/form/FormList.js +100 -0
- package/form/FormProvider.js +48 -0
- package/form/IconSymbol.js +20 -0
- package/form/context.js +43 -0
- package/form/index.js +107 -0
- package/form/interface.js +11 -0
- package/form/promisify.js +32 -0
- package/form/store.js +360 -0
- package/form/useForm.js +53 -0
- package/form/util.js +75 -0
- package/grid/Col.js +85 -0
- package/grid/Row.js +86 -0
- package/grid/context.js +9 -0
- package/grid/grid-item.js +75 -0
- package/grid/grid.js +103 -0
- package/grid/index.js +15 -0
- package/grid/interface.js +1 -0
- package/grid/util.js +51 -0
- package/hooks/index.js +38 -38
- package/hooks/useComputedState.js +2 -2
- package/hooks/useCreate.js +2 -2
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useInterval.js +2 -2
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOnlineStatus.js +2 -2
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useResizeObserver.js +2 -2
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useVerificationCode.js +10 -10
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +25 -25
- package/hooks/useWindowSize.js +1 -1
- package/icon/addFromIconFontCn.js +7 -0
- package/icon/index.js +57 -0
- package/icon-hover/index.js +7 -0
- package/image/Image.js +191 -0
- package/image/ImageFooter.js +8 -0
- package/image/ImagePreview.js +41 -0
- package/image/ImagePreviewArrow.js +46 -0
- package/image/ImagePreviewGroup.js +125 -0
- package/image/ImagePreviewToolbar.js +99 -0
- package/image/TriggerForToolbar.js +10 -0
- package/image/index.js +8 -0
- package/image/interface.js +1 -0
- package/image/previewGroupContext.js +17 -0
- package/index.js +591 -559
- package/input/Group.js +18 -0
- package/input/Input.js +688 -0
- package/input/InputElement.js +235 -0
- package/input/Number.js +4 -0
- package/input/Password.js +13 -0
- package/input/Search.js +14 -0
- package/input/Tag.js +4 -0
- package/input/Textarea.js +16 -0
- package/input/autoSizeTextAreaHeight.js +65 -0
- package/input/index.js +15 -0
- package/input/interface.js +1 -0
- package/input/useComposition.js +39 -0
- package/input-number/decimal.js +154 -0
- package/input-number/index.js +18 -0
- package/input-number/interface.js +1 -0
- package/input-number/useSelectionRange.js +26 -0
- package/input-number/util.js +57 -0
- package/input-tag/InputTag.js +384 -0
- package/input-tag/index.js +4 -0
- package/input-tag/interface.js +1 -0
- package/layout/Content.js +13 -0
- package/layout/Footer.js +13 -0
- package/layout/Header.js +13 -0
- package/{chunk/pZoNQ75H.js → layout/Sider.js} +31 -31
- package/layout/index.js +43 -0
- package/layout/interface.js +1 -0
- package/link/index.js +62 -0
- package/link/interface.js +1 -0
- package/list/Item.js +44 -0
- package/list/Meta.js +19 -0
- package/list/index.js +269 -0
- package/list/interface.js +1 -0
- package/loading/index.js +61 -0
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +146 -0
- package/mentions/interface.js +1 -0
- package/mentions/util.js +26 -0
- package/menu/Indent.js +17 -0
- package/menu/Item.js +125 -0
- package/menu/ItemGroup.js +39 -0
- package/menu/Menu.js +26 -0
- package/menu/OverflowWrap.js +10 -0
- package/menu/context.js +5 -0
- package/menu/index.js +11 -0
- package/menu/interface.js +1 -0
- package/menu/util.js +80 -0
- package/message/index.js +14 -0
- package/message/interface.js +1 -0
- package/message/useMessage.js +7 -0
- package/modal/Confirm.js +13 -0
- package/modal/Modal.js +21 -0
- package/modal/config.js +25 -0
- package/modal/index.js +4 -0
- package/modal/interface.js +1 -0
- package/notice/index.js +24 -0
- package/notification/index.js +16 -0
- package/notification/interface.js +1 -0
- package/notification/useNotification.js +6 -0
- package/notification/withNotification.js +49 -0
- package/overflow-ellipsis/OverflowItem.js +35 -0
- package/overflow-ellipsis/index.js +74 -0
- package/package.json +1 -1
- package/page-header/index.js +115 -0
- package/page-header/interface.js +1 -0
- package/pagination/PageItem.js +119 -0
- package/pagination/PageJumper.js +60 -0
- package/pagination/PageOption.js +47 -0
- package/pagination/Pagination.js +245 -0
- package/pagination/index.js +4 -0
- package/pagination/interface.js +1 -0
- package/picker/Input.js +130 -0
- package/picker/InputRange.js +158 -0
- package/picker/index.js +6 -0
- package/popconfirm/index.js +130 -0
- package/popconfirm/interface.js +1 -0
- package/popover/index.js +78 -0
- package/popover/interface.js +1 -0
- package/portal/Portal.js +15 -0
- package/portal/index.js +17 -0
- package/progress/CircleProgress.js +117 -0
- package/progress/LineProgess.js +103 -0
- package/progress/StepProgress.js +74 -0
- package/progress/index.js +99 -0
- package/progress/interface.js +1 -0
- package/radio/Group.js +16 -0
- package/radio/Radio.js +15 -0
- package/radio/index.js +8 -0
- package/radio/interface.js +1 -0
- package/rate/index.js +127 -0
- package/rate/interface.js +1 -0
- package/resize-box/ResizeTrigger.js +78 -0
- package/resize-box/Split.js +130 -0
- package/resize-box/SplitGroup.js +202 -0
- package/resize-box/index.js +182 -0
- package/resize-box/interface.js +1 -0
- package/result/403.js +695 -0
- package/result/404.js +513 -0
- package/result/500.js +166 -0
- package/result/index.js +77 -0
- package/result/interface.js +1 -0
- package/select/OptGroup.js +20 -0
- package/select/Option.js +95 -0
- package/select/Select.js +549 -0
- package/select/index.js +8 -0
- package/select/interface.js +1 -0
- package/select/util.js +141 -0
- package/select-view/Core.js +370 -0
- package/select-view/index.js +67 -0
- package/select-view/interface.js +1 -0
- package/skeleton/Image.js +24 -0
- package/skeleton/Text.js +27 -0
- package/skeleton/index.js +57 -0
- package/skeleton/interface.js +1 -0
- package/slider/Button.js +159 -0
- package/slider/Dot.js +43 -0
- package/slider/Input.js +75 -0
- package/slider/Mark.js +28 -0
- package/slider/Tick.js +44 -0
- package/slider/index.js +429 -0
- package/slider/interface.js +1 -0
- package/slider/util.js +63 -0
- package/space/index.js +90 -0
- package/space/interface.js +1 -0
- package/space/toArray.js +11 -0
- package/speech-synthesis/index.js +109 -0
- package/spin/DotLoading.js +24 -0
- package/spin/index.js +79 -0
- package/spin/interface.js +1 -0
- package/statistic/Countdown.js +55 -0
- package/statistic/index.js +120 -0
- package/statistic/interface.js +1 -0
- package/statistic/util.js +33 -0
- package/steps/Step.js +68 -0
- package/steps/index.js +89 -0
- package/steps/interface.js +1 -0
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +12 -0
- package/switch/index.js +116 -0
- package/switch/interface.js +1 -0
- package/table/ColGroup.js +59 -0
- package/table/Table.js +24 -0
- package/table/constant.js +42 -0
- package/table/index.js +103 -0
- package/table/interface.js +1 -0
- package/table/util.js +121 -0
- package/tabs/Tab.js +18 -0
- package/tabs/TabContent.js +8 -0
- package/tabs/TabPane.js +24 -0
- package/tabs/index.js +9 -0
- package/tabs/interface.js +1 -0
- package/tabs/util.js +22 -0
- package/tag/index.js +136 -0
- package/tag/interface.js +1 -0
- package/time-picker/Picker.js +219 -0
- package/time-picker/RangePicker.js +56 -0
- package/time-picker/TimeColumn.js +65 -0
- package/time-picker/TimePicker.js +240 -0
- package/time-picker/context.js +5 -0
- package/time-picker/index.js +20 -0
- package/time-picker/interface.js +1 -0
- package/time-picker/util.js +43 -0
- package/timeline/Item.js +92 -0
- package/timeline/Timeline.js +79 -0
- package/timeline/index.js +6 -0
- package/timeline/interface.js +1 -0
- package/tooltip/index.js +140 -0
- package/tooltip/interface.js +1 -0
- package/transfer/Item.js +106 -0
- package/transfer/List.js +186 -0
- package/transfer/index.js +182 -0
- package/transfer/interface.js +1 -0
- package/tree/Animation.js +11 -0
- package/tree/Context.js +5 -0
- package/tree/Node.js +16 -0
- package/tree/NodeList.js +82 -0
- package/tree/Tree.js +580 -0
- package/tree/index.js +6 -0
- package/tree/interface.js +1 -0
- package/tree/util.js +76 -0
- package/tree-select/List.js +124 -0
- package/tree-select/Select.js +395 -0
- package/tree-select/index.js +6 -0
- package/tree-select/interface.js +13 -0
- package/tree-select/util.js +9 -0
- package/trigger/getPopupStyle.js +192 -0
- package/trigger/index.js +626 -0
- package/trigger/interface.js +1 -0
- package/types/color-picker/ControlBar.d.ts +12 -5
- package/types/color-picker/Mode.d.ts +7 -0
- package/types/color-picker/Panel.d.ts +10 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +13 -11
- package/types/color-picker/hooks/useControlBlock.d.ts +10 -3
- package/types/color-picker/index.d.ts +1 -1
- package/types/color-picker/interface.d.ts +19 -7
- package/types/color-picker/utils.d.ts +23 -0
- package/types/form/Control.d.ts +54 -5
- package/types/index.d.ts +2 -3
- package/types/table/hook/useThResizable.d.ts +1 -1
- package/types/version/index.d.ts +4 -4
- package/typography/Base.js +189 -0
- package/typography/EditContent.js +46 -0
- package/typography/Ellipsis.js +124 -0
- package/typography/Operations.js +78 -0
- package/typography/Paragraph.js +24 -0
- package/typography/Text.js +11 -0
- package/typography/Title.js +12 -0
- package/typography/Typography.js +13 -0
- package/typography/index.js +278 -0
- package/typography/interface.js +1 -0
- package/typography/useCssEllipsis.js +37 -0
- package/typography/useEllipsis.js +150 -0
- package/upload/TriggerNode.js +116 -0
- package/upload/Upload.js +627 -0
- package/upload/Uploader.js +206 -0
- package/upload/index.js +8 -0
- package/upload/interface.js +9 -0
- package/upload/request.js +51 -0
- package/upload/request_.js +64 -0
- package/upload/util.js +61 -0
- package/utils/CSSTransition.js +2 -2
- package/utils/constant.js +3 -3
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +11 -11
- package/utils/dom.js +32 -32
- package/utils/fillNBSP.js +2 -2
- package/utils/getHighlightText.js +2 -2
- package/utils/getHotkeyHandler.js +2 -2
- package/utils/getStringLength.js +2 -2
- package/utils/include.js +2 -2
- package/utils/index.js +96 -96
- package/utils/is.js +53 -53
- package/utils/mergeProps.js +2 -2
- package/utils/mergedToString.js +2 -2
- package/utils/omit.js +2 -2
- package/utils/pad.js +12 -12
- package/utils/pick.js +4 -4
- package/utils/reactDOM.js +3 -3
- package/utils/resizeObserverEffect.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoView.js +2 -2
- package/utils/style.js +11 -11
- package/utils/throttleByRaf.js +8 -8
- package/utils/warning.js +5 -5
- package/{chunk/-UuKKT0Z.js → verification-code/VerificationCode.js} +32 -31
- package/verification-code/index.js +4 -0
- package/verification-code/interface.js +1 -0
- package/version/index.js +7 -0
- package/virtual-list/Filler.js +31 -0
- package/virtual-list/VirtualList.js +493 -0
- package/virtual-list/index.js +4 -0
- package/{chunk/CaasmWg_.js → watermark/Watermark.js} +11 -10
- package/watermark/index.js +4 -0
- package/watermark/interface.js +1 -0
- package/Version.js +0 -7
- package/chunk/B5gK1Idp.js +0 -19
- package/chunk/BBvWDeuZ.js +0 -334
- package/chunk/BGny4zSb.js +0 -166
- package/chunk/BJQ5UNa-.js +0 -1585
- package/chunk/BP9sYyk9.js +0 -8
- package/chunk/BUdtVdnv.js +0 -38
- package/chunk/BVQlOzTS.js +0 -11
- package/chunk/B__a_gb_.js +0 -519
- package/chunk/BbEYToV1.js +0 -10
- package/chunk/BbdDQAnm.js +0 -15
- package/chunk/BdUcgWdu.js +0 -11
- package/chunk/BfbXSG70.js +0 -26
- package/chunk/BndfNLK4.js +0 -186
- package/chunk/BoMCZV6K.js +0 -1098
- package/chunk/Br0B6y1T.js +0 -18
- package/chunk/BxUs8_Cr.js +0 -9
- package/chunk/C42LIMP9.js +0 -970
- package/chunk/C4YkFMzC.js +0 -778
- package/chunk/C9Wcraj7.js +0 -162
- package/chunk/CK5m7rLl.js +0 -166
- package/chunk/CPT-OZH2.js +0 -14
- package/chunk/CVSF8p0O.js +0 -698
- package/chunk/C_agcwLN.js +0 -31
- package/chunk/CkNSv2U7.js +0 -56
- package/chunk/Cp2f70gB.js +0 -9
- package/chunk/CpegYjdC.js +0 -16
- package/chunk/CucI3KZr.js +0 -20
- package/chunk/CwoFBTYz.js +0 -11
- package/chunk/D2KPqPhV.js +0 -17
- package/chunk/D7NyvE5f.js +0 -17
- package/chunk/D8oTPQ2H.js +0 -384
- package/chunk/DC1iHEiy.js +0 -912
- package/chunk/DFrfrmfK.js +0 -519
- package/chunk/DGTIZ_0O.js +0 -6
- package/chunk/DJfpiZn_.js +0 -25
- package/chunk/DNUz6zgo.js +0 -11
- package/chunk/DRtM649q.js +0 -11
- package/chunk/DS_mUWn6.js +0 -41
- package/chunk/DU6bs_19.js +0 -10
- package/chunk/DWdbwz22.js +0 -10
- package/chunk/DcveZuqd.js +0 -6
- package/chunk/DdVFknul.js +0 -24
- package/chunk/DgRfikwe.js +0 -16
- package/chunk/DkyR2EfG.js +0 -243
- package/chunk/DnrZEnQ_.js +0 -27
- package/chunk/DsRSHWtX.js +0 -1025
- package/chunk/Dz5BdmXo.js +0 -270
- package/chunk/EANe01DF.js +0 -1030
- package/chunk/GoNx5R4F.js +0 -873
- package/chunk/HDUQku8d.js +0 -20
- package/chunk/HrAP__Hi.js +0 -25
- package/chunk/SLWP34OR.js +0 -229
- package/chunk/VVKtwaGf.js +0 -278
- package/chunk/WPNpLxSI.js +0 -16
- package/chunk/fdU3ang6.js +0 -14
- package/chunk/fkclKOAL.js +0 -830
- package/chunk/flvYlqx3.js +0 -22
- package/chunk/kTDayEpF.js +0 -288
- package/chunk/w-kM1L5W.js +0 -445
- package/types/form/Control-old.d.ts +0 -56
- package/types/style/index.d.ts +0 -1
package/Table.js
CHANGED
|
@@ -1,2099 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import se from "lodash/isArray";
|
|
5
|
-
import He from "lodash/isNumber";
|
|
6
|
-
import q from "lodash/isPlainObject";
|
|
7
|
-
import Kn from "lodash/throttle";
|
|
8
|
-
import ve, { useRef as ce, useEffect as De, useMemo as fe, useCallback as Te, useState as xe, useContext as Ae, forwardRef as Dt, createElement as st, createContext as Hn, useImperativeHandle as Mn } from "react";
|
|
9
|
-
import { a as Me } from "./chunk/BJQ5UNa-.js";
|
|
10
|
-
import { s as Wn } from "./chunk/DcveZuqd.js";
|
|
11
|
-
import { c as en } from "./chunk/B5gK1Idp.js";
|
|
12
|
-
import { c as _t } from "./chunk/BbEYToV1.js";
|
|
13
|
-
import { P as tn } from "./chunk/w-kM1L5W.js";
|
|
14
|
-
import zn from "./Spin.js";
|
|
15
|
-
import { m as G } from "./chunk/JPPo5nY_.js";
|
|
16
|
-
import { on as Xe, off as Ge } from "./utils/dom.js";
|
|
17
|
-
import { f as Vn, r as Un } from "./chunk/D7NyvE5f.js";
|
|
18
|
-
import { l as jn } from "./chunk/flvYlqx3.js";
|
|
19
|
-
import Yn from "lodash/merge";
|
|
20
|
-
import qn from "lodash/isNull";
|
|
21
|
-
import Qe from "lodash/isString";
|
|
22
|
-
import Xn from "lodash/isUndefined";
|
|
23
|
-
import { V as Gn } from "./chunk/B__a_gb_.js";
|
|
24
|
-
import Qn from "@unicom-cloud/icons/IconUiMinus";
|
|
25
|
-
import Jn from "@unicom-cloud/icons/IconUiPlus";
|
|
26
|
-
import { C as At } from "./chunk/DkyR2EfG.js";
|
|
27
|
-
import { R as ln } from "./chunk/BGny4zSb.js";
|
|
28
|
-
import Ct from "lodash/get";
|
|
29
|
-
import gt from "lodash/isFunction";
|
|
30
|
-
import { c as Zn } from "./chunk/BP9sYyk9.js";
|
|
31
|
-
import an from "./Tooltip.js";
|
|
32
|
-
import { u as eo } from "./chunk/BbdDQAnm.js";
|
|
33
|
-
import to from "@unicom-cloud/icons/IconUiCaretDown";
|
|
34
|
-
import no from "@unicom-cloud/icons/IconUiCaretUp";
|
|
35
|
-
import oo from "@unicom-cloud/icons/IconUiFilter";
|
|
36
|
-
import nn from "./Button.js";
|
|
37
|
-
import { R as ro } from "./chunk/HDUQku8d.js";
|
|
38
|
-
import so from "./Space.js";
|
|
39
|
-
import io from "./Trigger.js";
|
|
40
|
-
import { c as lo } from "./chunk/BdUcgWdu.js";
|
|
41
|
-
const Je = "table_internal_selection_key", Ze = "table_internal_expand_key", Et = {
|
|
42
|
-
table: "table",
|
|
43
|
-
header: {
|
|
44
|
-
operations: ({ selectionNode: t, expandNode: n }) => [
|
|
45
|
-
{
|
|
46
|
-
name: "expandNode",
|
|
47
|
-
node: n
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "selectionNode",
|
|
51
|
-
node: t
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
wrapper: "div",
|
|
55
|
-
thead: "thead",
|
|
56
|
-
row: "tr",
|
|
57
|
-
th: "th",
|
|
58
|
-
cell: "div"
|
|
59
|
-
},
|
|
60
|
-
body: {
|
|
61
|
-
operations: ({ selectionNode: t, expandNode: n }) => [
|
|
62
|
-
{
|
|
63
|
-
name: "expandNode",
|
|
64
|
-
node: n
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "selectionNode",
|
|
68
|
-
node: t
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
wrapper: "div",
|
|
72
|
-
tbody: "tbody",
|
|
73
|
-
row: "tr",
|
|
74
|
-
td: "td",
|
|
75
|
-
cell: "span"
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
function kt(t) {
|
|
79
|
-
if (typeof t == "number" || typeof t == "string")
|
|
80
|
-
return t;
|
|
81
|
-
}
|
|
82
|
-
function xt(t) {
|
|
83
|
-
var m;
|
|
84
|
-
const n = ce(), {
|
|
85
|
-
prefixCls: i,
|
|
86
|
-
columns: d,
|
|
87
|
-
columnWidths: e,
|
|
88
|
-
producer: x,
|
|
89
|
-
expandedRowKeys: o,
|
|
90
|
-
data: l,
|
|
91
|
-
onSetColumnWidths: s
|
|
92
|
-
} = t;
|
|
93
|
-
De(() => {
|
|
94
|
-
if (x && n.current) {
|
|
95
|
-
const C = Array.from(
|
|
96
|
-
n.current.querySelectorAll("col") || []
|
|
97
|
-
).filter(
|
|
98
|
-
(S) => !S.classList.contains(`${i}-expand-icon-col`) && !S.classList.contains(`${i}-selection-col`)
|
|
99
|
-
).map((S) => {
|
|
100
|
-
const { width: $ } = S.getBoundingClientRect();
|
|
101
|
-
return $;
|
|
102
|
-
});
|
|
103
|
-
s == null || s(C);
|
|
104
|
-
}
|
|
105
|
-
}, [x, s, i, o, l, d]);
|
|
106
|
-
let u = 0;
|
|
107
|
-
return /* @__PURE__ */ h("colgroup", { ref: n, children: (m = d == null ? void 0 : d.map) == null ? void 0 : m.call(d, (f, C, S) => {
|
|
108
|
-
let $;
|
|
109
|
-
if (f.title === Ze)
|
|
110
|
-
return $ = /* @__PURE__ */ h(
|
|
111
|
-
"col",
|
|
112
|
-
{
|
|
113
|
-
className: `${i}-expand-icon-col`,
|
|
114
|
-
style: { width: kt(f.width) }
|
|
115
|
-
},
|
|
116
|
-
Ze
|
|
117
|
-
), $;
|
|
118
|
-
if (f.title === Je)
|
|
119
|
-
return $ = /* @__PURE__ */ h(
|
|
120
|
-
"col",
|
|
121
|
-
{
|
|
122
|
-
className: `${i}-selection-col`,
|
|
123
|
-
style: { width: kt(f.width) }
|
|
124
|
-
},
|
|
125
|
-
Je
|
|
126
|
-
), $;
|
|
127
|
-
let k;
|
|
128
|
-
return f.width ? k = f.width : !x && e && (k = e[u]), u++, $ = /* @__PURE__ */ h("col", { style: { width: kt(k) } }, f.key ?? C), $;
|
|
129
|
-
}) });
|
|
130
|
-
}
|
|
131
|
-
function We(t) {
|
|
132
|
-
const n = fe(
|
|
133
|
-
() => q(t) ? Yn({}, Et, t) : Et,
|
|
134
|
-
[t]
|
|
135
|
-
);
|
|
136
|
-
return {
|
|
137
|
-
getHeaderComponentOperations: n.header.operations,
|
|
138
|
-
getBodyComponentOperations: n.body.operations,
|
|
139
|
-
ComponentTable: n.table,
|
|
140
|
-
ComponentHeaderWrapper: n.header.wrapper,
|
|
141
|
-
ComponentThead: n.header.thead,
|
|
142
|
-
ComponentHeaderRow: n.header.row,
|
|
143
|
-
ComponentTh: n.header.th,
|
|
144
|
-
ComponentHeaderCell: n.header.cell,
|
|
145
|
-
ComponentBodyWrapper: n.body.wrapper,
|
|
146
|
-
ComponentTbody: n.body.tbody,
|
|
147
|
-
ComponentBodyRow: n.body.row,
|
|
148
|
-
ComponentTd: n.body.td,
|
|
149
|
-
ComponentBodyCell: n.body.cell
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function on(t, n) {
|
|
153
|
-
const i = [];
|
|
154
|
-
function d(e) {
|
|
155
|
-
e && e.length > 0 && e.forEach((x) => {
|
|
156
|
-
x[n] ? d(x[n]) : i.push({ ...x, key: x.dataIndex || x.key });
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
return d(t), i;
|
|
160
|
-
}
|
|
161
|
-
function cn(t, n) {
|
|
162
|
-
let i = 0;
|
|
163
|
-
return t && t.length > 0 && t.forEach((d) => {
|
|
164
|
-
const e = cn(d[n], n) + 1;
|
|
165
|
-
i = Math.max(e, i);
|
|
166
|
-
}), i;
|
|
167
|
-
}
|
|
168
|
-
function ao(t) {
|
|
169
|
-
const {
|
|
170
|
-
component: n,
|
|
171
|
-
rowSelection: i,
|
|
172
|
-
expandedRowRender: d,
|
|
173
|
-
expandProps: e = {},
|
|
174
|
-
columns: x = [],
|
|
175
|
-
childrenColumnName: o
|
|
176
|
-
} = t, l = fe(() => x || [], [x]), s = fe(
|
|
177
|
-
() => on(l, o),
|
|
178
|
-
[l, o]
|
|
179
|
-
), u = i && i.type === "checkbox" || i && !("type" in i), m = i && i.type === "radio", { width: f } = e, C = !!d, S = u || m, { getHeaderComponentOperations: $, getBodyComponentOperations: k } = We(n), b = fe(
|
|
180
|
-
() => $({
|
|
181
|
-
selectionNode: S ? "holder_node" : "",
|
|
182
|
-
expandNode: C ? "holder_node" : ""
|
|
183
|
-
}),
|
|
184
|
-
[
|
|
185
|
-
S,
|
|
186
|
-
C,
|
|
187
|
-
$
|
|
188
|
-
]
|
|
189
|
-
), w = fe(
|
|
190
|
-
() => k({
|
|
191
|
-
selectionNode: S ? "holder_node" : "",
|
|
192
|
-
expandNode: C ? "holder_node" : ""
|
|
193
|
-
}),
|
|
194
|
-
[
|
|
195
|
-
S,
|
|
196
|
-
C,
|
|
197
|
-
k
|
|
198
|
-
]
|
|
199
|
-
), p = i && i.fixed, A = i && i.columnWidth, T = Te(
|
|
200
|
-
(O, P, _) => {
|
|
201
|
-
const L = {}, F = [];
|
|
202
|
-
O.forEach((y, I) => {
|
|
203
|
-
const v = { ...y };
|
|
204
|
-
(!("key" in y) || typeof y.key > "u") && (v.key = v.dataIndex || I), I === 0 ? (v.$$isFirstColumn = !0, v.fixed === "left" && (L.fixed = v.fixed)) : v.$$isFirstColumn = !1, F.push(v);
|
|
205
|
-
});
|
|
206
|
-
const M = C && {
|
|
207
|
-
key: Ze,
|
|
208
|
-
title: Ze,
|
|
209
|
-
width: f,
|
|
210
|
-
$$isOperation: !0
|
|
211
|
-
}, z = S && {
|
|
212
|
-
key: Je,
|
|
213
|
-
title: Je,
|
|
214
|
-
width: A,
|
|
215
|
-
$$isOperation: !0
|
|
216
|
-
};
|
|
217
|
-
return p && (L.fixed = "left"), (typeof _ != "number" || _ === 0) && [...P].reverse().forEach((y, I) => {
|
|
218
|
-
if (y.node) {
|
|
219
|
-
const v = b.filter((E) => E.node).length - I - 1;
|
|
220
|
-
y.name === "expandNode" ? F.unshift({
|
|
221
|
-
...M,
|
|
222
|
-
...L,
|
|
223
|
-
$$columnIndex: v
|
|
224
|
-
}) : y.name === "selectionNode" ? F.unshift({
|
|
225
|
-
...z,
|
|
226
|
-
...L,
|
|
227
|
-
$$columnIndex: v
|
|
228
|
-
}) : F.unshift({
|
|
229
|
-
...y,
|
|
230
|
-
...L,
|
|
231
|
-
title: y.name,
|
|
232
|
-
key: y.name,
|
|
233
|
-
$$isOperation: !0,
|
|
234
|
-
width: y.width || 40,
|
|
235
|
-
$$columnIndex: v
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
}), F;
|
|
239
|
-
},
|
|
240
|
-
[
|
|
241
|
-
f,
|
|
242
|
-
C,
|
|
243
|
-
S,
|
|
244
|
-
A,
|
|
245
|
-
p,
|
|
246
|
-
b
|
|
247
|
-
]
|
|
248
|
-
), W = fe(
|
|
249
|
-
() => T(s, w),
|
|
250
|
-
[s, T, w]
|
|
251
|
-
), Q = fe(
|
|
252
|
-
() => cn(l, o),
|
|
253
|
-
[l, o]
|
|
254
|
-
);
|
|
255
|
-
return [fe(() => {
|
|
256
|
-
const O = Array.isArray(b) ? b.filter((F) => F.node).length : 0;
|
|
257
|
-
if (Q === 1) {
|
|
258
|
-
const F = l.map((M, z) => ({
|
|
259
|
-
...M,
|
|
260
|
-
$$columnIndex: z + O
|
|
261
|
-
}));
|
|
262
|
-
return [T(F, b, 0)];
|
|
263
|
-
}
|
|
264
|
-
let P = O;
|
|
265
|
-
const _ = [], L = (F, M = 0) => {
|
|
266
|
-
_[M] = _[M] || [], F.forEach((z) => {
|
|
267
|
-
const y = { ...z };
|
|
268
|
-
y[o] ? (y.colSpan = on(
|
|
269
|
-
z[o],
|
|
270
|
-
o
|
|
271
|
-
).length, y.$$columnIndex = [P], _[M].push(y), L(y[o], M + 1), y.$$columnIndex.push(P - 1)) : (y.rowSpan = Q - M, y.$$columnIndex = P++, _[M].push(y));
|
|
272
|
-
}), _[M] = T(
|
|
273
|
-
_[M],
|
|
274
|
-
b,
|
|
275
|
-
M
|
|
276
|
-
);
|
|
277
|
-
};
|
|
278
|
-
return L(l), _;
|
|
279
|
-
}, [
|
|
280
|
-
l,
|
|
281
|
-
o,
|
|
282
|
-
Q,
|
|
283
|
-
T,
|
|
284
|
-
b
|
|
285
|
-
]), W];
|
|
286
|
-
}
|
|
287
|
-
function vt(t) {
|
|
288
|
-
return He(t) ? t : Qe(t) && t.includes("px") ? +t.replace("px", "") : t;
|
|
289
|
-
}
|
|
290
|
-
function co(t) {
|
|
291
|
-
return t ? t.offsetHeight - t.clientHeight : 0;
|
|
292
|
-
}
|
|
293
|
-
function fo(t) {
|
|
294
|
-
return t ? t.offsetWidth - t.clientWidth : 0;
|
|
295
|
-
}
|
|
296
|
-
function It(t, n) {
|
|
297
|
-
return se(t[n]) && t[n].length;
|
|
298
|
-
}
|
|
299
|
-
function uo(t, n) {
|
|
300
|
-
function i(d) {
|
|
301
|
-
if (!d)
|
|
302
|
-
return [];
|
|
303
|
-
const e = [];
|
|
304
|
-
return d.forEach((x) => {
|
|
305
|
-
if (!q(x))
|
|
306
|
-
e.push(x);
|
|
307
|
-
else {
|
|
308
|
-
const o = { ...x };
|
|
309
|
-
o.__ORIGIN_DATA = x;
|
|
310
|
-
const l = o[n];
|
|
311
|
-
q(o) && l && se(l) && (o[n] = i(l)), e.push(o);
|
|
312
|
-
}
|
|
313
|
-
}), e;
|
|
314
|
-
}
|
|
315
|
-
return i(t);
|
|
316
|
-
}
|
|
317
|
-
function te(t) {
|
|
318
|
-
return q(t) ? t.__ORIGIN_DATA : !t || !se(t) ? t : t.map((n) => !q(n) || !("__ORIGIN_DATA" in n) ? n : n.__ORIGIN_DATA);
|
|
319
|
-
}
|
|
320
|
-
function po(t, n, i = [], d = [], e, x, o) {
|
|
321
|
-
const l = new Set(i), s = new Set(d);
|
|
322
|
-
function u(m) {
|
|
323
|
-
n ? (l.add(e(m)), s.delete(e(m))) : l.delete(e(m)), se(m[x]) && m[x].forEach((f) => {
|
|
324
|
-
u(f);
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
return o ? (u(t), Ot(
|
|
328
|
-
t,
|
|
329
|
-
l,
|
|
330
|
-
s,
|
|
331
|
-
e,
|
|
332
|
-
x
|
|
333
|
-
)) : n ? l.add(e(t)) : l.delete(e(t)), {
|
|
334
|
-
selectedRowKeys: [...l],
|
|
335
|
-
indeterminateKeys: [...s]
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function ho(t, n = [], i, d, e) {
|
|
339
|
-
if (!e)
|
|
340
|
-
return {
|
|
341
|
-
selectedRowKeys: n,
|
|
342
|
-
indeterminateKeys: []
|
|
343
|
-
};
|
|
344
|
-
const x = new Set(n), o = /* @__PURE__ */ new Set([]);
|
|
345
|
-
function l(s) {
|
|
346
|
-
x.add(i(s)), o.delete(i(s)), se(s[d]) && s[d].forEach((u) => {
|
|
347
|
-
l(u);
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
return n.forEach((s) => {
|
|
351
|
-
const u = t.find((m) => i(m) === s);
|
|
352
|
-
!Xn(u) && !qn(u) && (l(u), Ot(
|
|
353
|
-
u,
|
|
354
|
-
x,
|
|
355
|
-
o,
|
|
356
|
-
i,
|
|
357
|
-
d
|
|
358
|
-
));
|
|
359
|
-
}), {
|
|
360
|
-
selectedRowKeys: [...x],
|
|
361
|
-
indeterminateKeys: [...o]
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
function Ot(t, n, i, d, e) {
|
|
365
|
-
if (t.__INTERNAL_PARENT) {
|
|
366
|
-
const x = d(t.__INTERNAL_PARENT);
|
|
367
|
-
if (se(t.__INTERNAL_PARENT[e])) {
|
|
368
|
-
const o = t.__INTERNAL_PARENT[e].length;
|
|
369
|
-
let l = 0, s = !1;
|
|
370
|
-
t.__INTERNAL_PARENT[e].forEach((u) => {
|
|
371
|
-
n.has(d(u)) && (l += 1), i.has(d(u)) && (i.add(x), s = !0);
|
|
372
|
-
}), o === l ? (n.add(x), i.delete(x)) : l > 0 && o > l ? (n.delete(x), i.add(x)) : l === 0 && (n.delete(x), s || i.delete(x));
|
|
373
|
-
}
|
|
374
|
-
Ot(
|
|
375
|
-
t.__INTERNAL_PARENT,
|
|
376
|
-
n,
|
|
377
|
-
i,
|
|
378
|
-
d,
|
|
379
|
-
e
|
|
380
|
-
);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Pt(t) {
|
|
384
|
-
return typeof t == "function" ? t : typeof t == "object" && typeof t.compare == "function" ? t.compare : null;
|
|
385
|
-
}
|
|
386
|
-
function Ft(t) {
|
|
387
|
-
if (typeof t == "object" && typeof t.multiple == "number")
|
|
388
|
-
return t.multiple;
|
|
389
|
-
}
|
|
390
|
-
function mo(t, n, i) {
|
|
391
|
-
const {
|
|
392
|
-
defaultExpandedRowKeys: d,
|
|
393
|
-
defaultExpandAllRows: e,
|
|
394
|
-
expandedRowRender: x,
|
|
395
|
-
onExpand: o,
|
|
396
|
-
onExpandedRowsChange: l,
|
|
397
|
-
childrenColumnName: s = "children",
|
|
398
|
-
expandProps: u
|
|
399
|
-
} = t, [m, f] = xe(
|
|
400
|
-
S()
|
|
401
|
-
), C = t.expandedRowKeys || m;
|
|
402
|
-
function S() {
|
|
403
|
-
let b = [];
|
|
404
|
-
return t.expandedRowKeys ? b = t.expandedRowKeys : d ? b = d : e && (b = n.map((w, p) => {
|
|
405
|
-
const A = te(w);
|
|
406
|
-
return u && "rowExpandable" in u && typeof u.rowExpandable == "function" ? u.rowExpandable(A) && i(w) : typeof x == "function" ? x(A, p) && i(w) : It(w, s) && i(w);
|
|
407
|
-
}).filter((w) => w)), b;
|
|
408
|
-
}
|
|
409
|
-
function $(b) {
|
|
410
|
-
const w = C.indexOf(b) === -1, p = w ? C.concat(b) : C.filter((T) => b !== T), A = n.filter((T) => p.indexOf(i(T)) !== -1).map((T) => i(T));
|
|
411
|
-
f(A), k(b, w), l == null || l(A);
|
|
412
|
-
}
|
|
413
|
-
function k(b, w) {
|
|
414
|
-
o == null || o(
|
|
415
|
-
te(n.find((p) => i(p) === b)),
|
|
416
|
-
w
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
return [C, $];
|
|
420
|
-
}
|
|
421
|
-
function rn(t) {
|
|
422
|
-
return [...new Set(t)];
|
|
423
|
-
}
|
|
424
|
-
function yo(t, n, i, d) {
|
|
425
|
-
const { rowSelection: e, childrenColumnName: x } = t, o = e == null ? void 0 : e.selectedRowKeys, l = e == null ? void 0 : e.onSelectAll, s = e == null ? void 0 : e.onSelect, u = e == null ? void 0 : e.onChange, m = e == null ? void 0 : e.pureKeys, f = typeof (e == null ? void 0 : e.checkStrictly) == "boolean" ? !e.checkStrictly : !1, C = e == null ? void 0 : e.preserveSelectedRowKeys;
|
|
426
|
-
function S() {
|
|
427
|
-
const y = [], I = [], v = (N) => {
|
|
428
|
-
se(N) && N.length && N.forEach((K) => {
|
|
429
|
-
const a = d(K);
|
|
430
|
-
(e && typeof e.checkboxProps == "function" ? e.checkboxProps(te(K)) : {}).disabled || y.push(a), It(K, t.childrenColumnName) && v(K[t.childrenColumnName]);
|
|
431
|
-
});
|
|
432
|
-
};
|
|
433
|
-
v(n);
|
|
434
|
-
const E = (N, K) => {
|
|
435
|
-
se(N) && N.length && N.forEach((a) => {
|
|
436
|
-
if (K && f && (a.__INTERNAL_PARENT = K), I.push(a), It(a, t.childrenColumnName)) {
|
|
437
|
-
const ne = { ...a };
|
|
438
|
-
E(a[t.childrenColumnName], ne);
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
return E(i, void 0), {
|
|
443
|
-
allSelectedRowKeys: y,
|
|
444
|
-
flattenData: I
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
const { allSelectedRowKeys: $, flattenData: k } = S(), [b, w] = xe([]), [p, A] = xe([]), T = ho(
|
|
448
|
-
k,
|
|
449
|
-
rn(o || b),
|
|
450
|
-
d,
|
|
451
|
-
x,
|
|
452
|
-
f
|
|
453
|
-
), W = f && !o ? b : T.selectedRowKeys, Q = f && !o ? p : T.indeterminateKeys, [U, O] = xe(
|
|
454
|
-
m ? [] : P(W)
|
|
455
|
-
);
|
|
456
|
-
function P(y, I) {
|
|
457
|
-
const v = I ? U.concat(k) : k, E = new Map(v.map((N) => [d(N), N]));
|
|
458
|
-
return y.map((N) => E.get(N)).filter((N) => N);
|
|
459
|
-
}
|
|
460
|
-
const _ = new Set(k.map((y) => d(y)));
|
|
461
|
-
function L(y) {
|
|
462
|
-
return C ? y : y.filter((I) => _.has(I));
|
|
463
|
-
}
|
|
464
|
-
function F(y) {
|
|
465
|
-
let I = [], v = [];
|
|
466
|
-
if (y)
|
|
467
|
-
I = L(
|
|
468
|
-
rn(W.concat($))
|
|
469
|
-
);
|
|
470
|
-
else {
|
|
471
|
-
const N = new Set($);
|
|
472
|
-
I = L(
|
|
473
|
-
W.filter((K) => !N.has(K))
|
|
474
|
-
);
|
|
475
|
-
}
|
|
476
|
-
m || (v = P(I, !0));
|
|
477
|
-
const E = te(v);
|
|
478
|
-
w(I), O(v), A([]), u == null || u(I, E), l == null || l(y, E);
|
|
479
|
-
}
|
|
480
|
-
function M(y, I) {
|
|
481
|
-
const { selectedRowKeys: v, indeterminateKeys: E } = po(
|
|
482
|
-
I,
|
|
483
|
-
y,
|
|
484
|
-
W,
|
|
485
|
-
p,
|
|
486
|
-
d,
|
|
487
|
-
x,
|
|
488
|
-
f
|
|
489
|
-
), N = L(v), K = P(N, !0), a = te(K);
|
|
490
|
-
w(N), O(K), A(E), s == null || s(y, te(I), a), u == null || u(N, a);
|
|
491
|
-
}
|
|
492
|
-
function z(y, I) {
|
|
493
|
-
const v = [k.find((N) => d(N) === y)], E = te(v);
|
|
494
|
-
w([y]), s == null || s(!0, te(I), E), u == null || u([y], E);
|
|
495
|
-
}
|
|
496
|
-
return {
|
|
497
|
-
selectedRowKeys: W,
|
|
498
|
-
indeterminateKeys: Q,
|
|
499
|
-
onCheckAll: F,
|
|
500
|
-
onCheck: M,
|
|
501
|
-
onCheckRadio: z,
|
|
502
|
-
setSelectedRowKeys: w,
|
|
503
|
-
allSelectedRowKeys: $,
|
|
504
|
-
flattenData: k
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
function xo(t, n) {
|
|
508
|
-
const [i, d] = xe(n), [e, x] = xe({}), o = ce(t), l = Te(
|
|
509
|
-
(m) => {
|
|
510
|
-
const { field: f, direction: C } = m;
|
|
511
|
-
return i.find((S) => S.field === f) ? C ? i.map(
|
|
512
|
-
(S) => S.field === f ? m : S
|
|
513
|
-
) : i.filter((S) => S.field !== f) : C ? !He(m.priority) || i.find((S) => !He(S.priority)) ? [m] : [...i, m] : [...i];
|
|
514
|
-
},
|
|
515
|
-
[i]
|
|
516
|
-
), s = Te((m) => {
|
|
517
|
-
const f = m.filter((S) => "sortOrder" in S);
|
|
518
|
-
let C = [];
|
|
519
|
-
return f.forEach((S) => {
|
|
520
|
-
const $ = Ft(S.sorter), k = S.sortOrder, b = {
|
|
521
|
-
field: S.dataIndex || S.key,
|
|
522
|
-
direction: k,
|
|
523
|
-
sorterFn: Pt(S.sorter),
|
|
524
|
-
priority: $
|
|
525
|
-
};
|
|
526
|
-
k ? He($) ? C.every((w) => He(w.priority) || !w.direction) && C.push(b) : C.every((w) => !w.direction) ? C.push(b) : C = [b] : C.push(b);
|
|
527
|
-
}), C;
|
|
528
|
-
}, []), u = Te(
|
|
529
|
-
(m, f) => {
|
|
530
|
-
s(t).length || (d(f), x(m));
|
|
531
|
-
},
|
|
532
|
-
[t, s, d, x]
|
|
533
|
-
);
|
|
534
|
-
return _t(() => {
|
|
535
|
-
const m = o.current, f = s(m), C = s(t), S = f.map(
|
|
536
|
-
(k) => k.field
|
|
537
|
-
), $ = C.filter((k) => f.find(
|
|
538
|
-
({ field: w, direction: p }) => k.field === w && k.direction !== p
|
|
539
|
-
) ? !0 : !S.includes(k.field));
|
|
540
|
-
$ && $.length && (d(C), x({})), o.current = t;
|
|
541
|
-
}, [
|
|
542
|
-
t,
|
|
543
|
-
s,
|
|
544
|
-
l,
|
|
545
|
-
x,
|
|
546
|
-
d
|
|
547
|
-
]), {
|
|
548
|
-
currentSorter: e,
|
|
549
|
-
activeSorters: i,
|
|
550
|
-
getNextActiveSorters: l,
|
|
551
|
-
updateStateSorters: u
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
function go(t, n, i) {
|
|
555
|
-
const d = n.map((l) => l.fixed);
|
|
556
|
-
function e(l, s) {
|
|
557
|
-
return G({
|
|
558
|
-
[`${i}-col-fixed-left`]: l.fixed === "left",
|
|
559
|
-
[`${i}-col-fixed-right`]: l.fixed === "right",
|
|
560
|
-
[`${i}-col-fixed-left-last`]: l.fixed === "left" && (q(n[s + 1]) ? n[s + 1].fixed !== "left" : !0),
|
|
561
|
-
[`${i}-col-fixed-right-first`]: l.fixed === "right" && (q(n[s - 1]) ? n[s - 1].fixed !== "right" : !0)
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
const x = fe(() => n.map(
|
|
565
|
-
(l, s) => e(l, s)
|
|
566
|
-
), [d.join("-")]);
|
|
567
|
-
return [fe(
|
|
568
|
-
() => t.map((l) => l.map((s, u) => {
|
|
569
|
-
let m = u;
|
|
570
|
-
const f = s.$$columnIndex;
|
|
571
|
-
return Array.isArray(f) && f.length === 2 ? m = s.fixed === "right" ? f[0] : f[1] : typeof f == "number" && (m = f), e(s, m);
|
|
572
|
-
})),
|
|
573
|
-
[
|
|
574
|
-
t.map((l) => `|${l.map((s) => s.fixed || "undefined").join("-")}|`).join("_")
|
|
575
|
-
]
|
|
576
|
-
), x];
|
|
577
|
-
}
|
|
578
|
-
function Co(t) {
|
|
579
|
-
const n = t.map((e) => vt(e.width)), i = t.map((e) => e.fixed);
|
|
580
|
-
return fe(() => t.map((e) => {
|
|
581
|
-
let x = 0;
|
|
582
|
-
return e.fixed === "left" && t.some((o) => {
|
|
583
|
-
if (o.fixed === "left") {
|
|
584
|
-
if (o.key === e.key)
|
|
585
|
-
return !0;
|
|
586
|
-
let l = vt(o.width);
|
|
587
|
-
const s = o.$$isOperation ? l || 40 : l;
|
|
588
|
-
return x += s, !1;
|
|
589
|
-
}
|
|
590
|
-
return !1;
|
|
591
|
-
}), e.fixed === "right" && [...t].reverse().some((o) => {
|
|
592
|
-
if (o.fixed === "right") {
|
|
593
|
-
if (o.key === e.key)
|
|
594
|
-
return !0;
|
|
595
|
-
let l = vt(o.width);
|
|
596
|
-
const s = o.$$isOperation ? l || 40 : l;
|
|
597
|
-
return x += s, !1;
|
|
598
|
-
}
|
|
599
|
-
return !1;
|
|
600
|
-
}), x;
|
|
601
|
-
}), [n.join("-"), i.join("-")]);
|
|
602
|
-
}
|
|
603
|
-
function wo(t) {
|
|
604
|
-
return t && !ve.isValidElement(t) && q(t);
|
|
605
|
-
}
|
|
606
|
-
function So(t) {
|
|
607
|
-
var ye;
|
|
608
|
-
const n = Zn(), {
|
|
609
|
-
component: i,
|
|
610
|
-
InnerComponentTd: d,
|
|
611
|
-
column: e,
|
|
612
|
-
columnIndex: x,
|
|
613
|
-
prefixCls: o,
|
|
614
|
-
stickyClassName: l,
|
|
615
|
-
stickyOffset: s,
|
|
616
|
-
currentSorter: u,
|
|
617
|
-
virtualized: m,
|
|
618
|
-
record: f,
|
|
619
|
-
trIndex: C,
|
|
620
|
-
level: S,
|
|
621
|
-
placeholder: $ = "-",
|
|
622
|
-
indentSize: k,
|
|
623
|
-
renderExpandIcon: b,
|
|
624
|
-
rowKey: w,
|
|
625
|
-
recordHaveChildren: p,
|
|
626
|
-
haveTreeData: A
|
|
627
|
-
} = t, { rtl: T } = Ae(Me), { ComponentBodyCell: W } = We(i), Q = ce(null), U = ce(null), O = ce(null), P = ce(null), _ = (e == null ? void 0 : e.showTooltip) !== !1 && (e == null ? void 0 : e.ellipsis), L = G(
|
|
628
|
-
`${o}-td`,
|
|
629
|
-
l,
|
|
630
|
-
{
|
|
631
|
-
[`${o}-col-sorted`]: u && u.direction && u.field === (e == null ? void 0 : e.dataIndex)
|
|
632
|
-
},
|
|
633
|
-
e == null ? void 0 : e.className
|
|
634
|
-
);
|
|
635
|
-
let F = {}, M, z, y = {};
|
|
636
|
-
(e == null ? void 0 : e.fixed) === "left" && (y[T ? "right" : "left"] = s), (e == null ? void 0 : e.fixed) === "right" && (y[T ? "left" : "right"] = s), q(e == null ? void 0 : e.cellStyle) && (y = {
|
|
637
|
-
...y,
|
|
638
|
-
...e == null ? void 0 : e.cellStyle
|
|
639
|
-
}), q(e == null ? void 0 : e.bodyCellStyle) && (y = {
|
|
640
|
-
...y,
|
|
641
|
-
...e == null ? void 0 : e.bodyCellStyle
|
|
642
|
-
}), gt(e == null ? void 0 : e.bodyCellStyle) && (y = {
|
|
643
|
-
...y,
|
|
644
|
-
...((ye = e == null ? void 0 : e.bodyCellStyle) == null ? void 0 : ye.call(e, f, C)) ?? {}
|
|
645
|
-
}), e != null && e.align && (y.textAlign = e == null ? void 0 : e.align), m && e.width && (y.width = e.width, y.minWidth = e.width, y.maxWidth = e.width);
|
|
646
|
-
const { onHandleSave: I, ...v } = e != null && e.onCell ? (e == null ? void 0 : e.onCell(
|
|
647
|
-
f,
|
|
648
|
-
C,
|
|
649
|
-
e,
|
|
650
|
-
{ rowKey: w }
|
|
651
|
-
)) ?? {} : { onHandleSave: () => {
|
|
652
|
-
} }, E = e == null ? void 0 : e.render;
|
|
653
|
-
let N = fe(() => E == null ? void 0 : E(
|
|
654
|
-
Ct(f, e == null ? void 0 : e.dataIndex),
|
|
655
|
-
te(f),
|
|
656
|
-
C,
|
|
657
|
-
e,
|
|
658
|
-
// 潘启宝添加
|
|
659
|
-
{ rowKey: w }
|
|
660
|
-
), [f, e, C]);
|
|
661
|
-
if (gt(E) || (N = Ct(f, (e == null ? void 0 : e.dataIndex) ?? "")), wo(N) && (F = N == null ? void 0 : N.props, M = F == null ? void 0 : F.rowSpan, z = F == null ? void 0 : F.colSpan, N = N == null ? void 0 : N.children), M === 0 || z === 0)
|
|
662
|
-
return null;
|
|
663
|
-
Qe(N) && (N = N.trim()), !N && N !== 0 && (N = (e == null ? void 0 : e.placeholder) ?? $ ?? "-");
|
|
664
|
-
const K = e != null && e.ellipsis && Qe(N) ? {
|
|
665
|
-
// title: cellChildren // 暂时不需要title属性了,因为单独加了tooltip组件,潘启宝2023年4月1日于广东省惠州市
|
|
666
|
-
} : {}, a = A && (e == null ? void 0 : e.$$isFirstColumn), ne = a && p;
|
|
667
|
-
let Z = a && S > 0 ? k * S : 0;
|
|
668
|
-
a && !p && (Z += 20);
|
|
669
|
-
function j(ae) {
|
|
670
|
-
n();
|
|
671
|
-
}
|
|
672
|
-
const he = `${x}-${C}-${Z}-${ne}`, ee = /* @__PURE__ */ h(
|
|
673
|
-
"div",
|
|
674
|
-
{
|
|
675
|
-
ref: Q,
|
|
676
|
-
className: G(`${o}-cell`, {
|
|
677
|
-
[`${o}-cell-text-ellipsis`]: e == null ? void 0 : e.ellipsis
|
|
678
|
-
}),
|
|
679
|
-
...K,
|
|
680
|
-
onMouseEnter: _ ? j : void 0,
|
|
681
|
-
children: /* @__PURE__ */ de(
|
|
682
|
-
W,
|
|
683
|
-
{
|
|
684
|
-
ref: U,
|
|
685
|
-
className: `${o}-cell-wrap-value`,
|
|
686
|
-
...Qe(W) ? {} : {
|
|
687
|
-
rowData: te(f),
|
|
688
|
-
column: e,
|
|
689
|
-
onHandleSave: I,
|
|
690
|
-
...v
|
|
691
|
-
},
|
|
692
|
-
children: [
|
|
693
|
-
!!Z && /* @__PURE__ */ h(
|
|
694
|
-
"span",
|
|
695
|
-
{
|
|
696
|
-
ref: O,
|
|
697
|
-
className: `${o}-cell-indent`,
|
|
698
|
-
style: { paddingLeft: Z }
|
|
699
|
-
}
|
|
700
|
-
),
|
|
701
|
-
!!ne && /* @__PURE__ */ h(
|
|
702
|
-
"span",
|
|
703
|
-
{
|
|
704
|
-
ref: P,
|
|
705
|
-
className: `${o}-cell-expand-icon`,
|
|
706
|
-
children: b(f, w)
|
|
707
|
-
}
|
|
708
|
-
),
|
|
709
|
-
t.___dangerouslySetInnerHTML___ ? /* @__PURE__ */ h(
|
|
710
|
-
"span",
|
|
711
|
-
{
|
|
712
|
-
dangerouslySetInnerHTML: {
|
|
713
|
-
__html: N
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
) : N
|
|
717
|
-
]
|
|
718
|
-
},
|
|
719
|
-
he
|
|
720
|
-
)
|
|
721
|
-
},
|
|
722
|
-
he
|
|
723
|
-
);
|
|
724
|
-
let re = /* @__PURE__ */ h(
|
|
725
|
-
d,
|
|
726
|
-
{
|
|
727
|
-
className: L,
|
|
728
|
-
style: y,
|
|
729
|
-
...Vn(v, [
|
|
730
|
-
"onClick",
|
|
731
|
-
"onDoubleClick",
|
|
732
|
-
"onContextMenu",
|
|
733
|
-
"onMouseOver",
|
|
734
|
-
"onMouseEnter",
|
|
735
|
-
"onMouseLeave",
|
|
736
|
-
"onMouseMove",
|
|
737
|
-
"onMouseDown",
|
|
738
|
-
"onMouseUp"
|
|
739
|
-
]),
|
|
740
|
-
...F,
|
|
741
|
-
children: ee
|
|
742
|
-
},
|
|
743
|
-
(e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex) || x
|
|
744
|
-
);
|
|
745
|
-
if (_) {
|
|
746
|
-
let ae = 0, me = 0, ue = 0, ge = 0;
|
|
747
|
-
if (Q.current instanceof Element && (ae = Q.current.getBoundingClientRect().width), U.current instanceof Element && (me = U.current.getBoundingClientRect().width), O.current instanceof Element && (ue = O.current.getBoundingClientRect().width), P.current instanceof Element && (ge = P.current.getBoundingClientRect().width), ae < me + ue + ge) {
|
|
748
|
-
const J = gt(e == null ? void 0 : e.tooltipContentRender) ? e.tooltipContentRender(f, C, e) : eo(re);
|
|
749
|
-
re = /* @__PURE__ */ h(
|
|
750
|
-
an,
|
|
751
|
-
{
|
|
752
|
-
className: G(`${o}-cell-tooltip`, e.tooltipClassName),
|
|
753
|
-
style: e.tooltipStyle,
|
|
754
|
-
content: J,
|
|
755
|
-
children: re
|
|
756
|
-
}
|
|
757
|
-
);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
return De(() => (n(), () => {
|
|
761
|
-
}), [Q.current, U.current]), re;
|
|
762
|
-
}
|
|
763
|
-
const bo = ve.memo(So);
|
|
764
|
-
function $o(t, n) {
|
|
765
|
-
const {
|
|
766
|
-
expandedRowRender: i,
|
|
767
|
-
onClickExpandBtn: d,
|
|
768
|
-
columns: e,
|
|
769
|
-
component: x,
|
|
770
|
-
onCheck: o,
|
|
771
|
-
onCheckRadio: l,
|
|
772
|
-
prefixCls: s,
|
|
773
|
-
selectedRowKeys: u,
|
|
774
|
-
indeterminateKeys: m,
|
|
775
|
-
rowClassName: f,
|
|
776
|
-
onRow: C,
|
|
777
|
-
rowSelection: S,
|
|
778
|
-
indentSize: $ = 16,
|
|
779
|
-
activeSorters: k,
|
|
780
|
-
virtualized: b,
|
|
781
|
-
stickyOffsets: w,
|
|
782
|
-
stickyClassNames: p,
|
|
783
|
-
getRowKey: A,
|
|
784
|
-
placeholder: T,
|
|
785
|
-
expandProps: W = { strictTreeData: !0 },
|
|
786
|
-
data: Q,
|
|
787
|
-
expandedRowKeys: U,
|
|
788
|
-
childrenColumnName: O,
|
|
789
|
-
record: P,
|
|
790
|
-
index: _,
|
|
791
|
-
type: L,
|
|
792
|
-
shouldRowExpand: F,
|
|
793
|
-
level: M
|
|
794
|
-
} = t, { rtl: z } = Ae(Me), y = te(P), { ...I } = (C == null ? void 0 : C(y, _)) || {}, v = A(P), E = L === "radio" ? u.slice(0, 1) : u, N = v || _, K = E.indexOf(v) > -1, a = U.indexOf(v) > -1, ne = m.indexOf(v) > -1, Z = G(
|
|
795
|
-
`${s}-tr`,
|
|
796
|
-
{
|
|
797
|
-
[`${s}-row-checked`]: K,
|
|
798
|
-
[`${s}-row-expanded`]: a
|
|
799
|
-
},
|
|
800
|
-
f == null ? void 0 : f(y, _)
|
|
801
|
-
), j = S && typeof S.checkboxProps == "function" ? S.checkboxProps(y) : {}, he = G(`${s}-td`, `${s}-operation`), ee = (B) => G(he, `${s}-${B}`, {
|
|
802
|
-
[`${s}-selection-col`]: b && L === "checkbox" || L === "radio",
|
|
803
|
-
[`${s}-expand-icon-col`]: b && i
|
|
804
|
-
});
|
|
805
|
-
function re(B) {
|
|
806
|
-
return W.strictTreeData ? se(B[O]) && B[O].length : B[O] !== void 0;
|
|
807
|
-
}
|
|
808
|
-
function ye() {
|
|
809
|
-
return Q.find((B) => re(B));
|
|
810
|
-
}
|
|
811
|
-
const ae = F(P, _), me = re(P), ue = ye() && !i, ge = ue && me, Se = W.expandRowByClick && (ae || ge) ? {
|
|
812
|
-
onClick: (B) => {
|
|
813
|
-
var Y;
|
|
814
|
-
d(v), (Y = I == null ? void 0 : I.onClick) == null || Y.call(I, B);
|
|
815
|
-
}
|
|
816
|
-
} : {}, { ComponentBodyRow: be, ComponentTd: ie, getBodyComponentOperations: le } = We(x), _e = b ? "div" : be, Ee = b ? "div" : ie, Ie = {
|
|
817
|
-
className: Z,
|
|
818
|
-
key: N,
|
|
819
|
-
...I,
|
|
820
|
-
...Se
|
|
821
|
-
}, Pe = Qe(be) ? Ie : { ...Ie, record: P, index: _ };
|
|
822
|
-
function Oe(B, Y) {
|
|
823
|
-
const { icon: Be } = W, Ke = !!~U.indexOf(Y), Ne = {
|
|
824
|
-
onClick: (ze) => {
|
|
825
|
-
ze.stopPropagation(), d(Y);
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
return typeof Be == "function" ? Be({ expanded: Ke, record: B, ...Ne }) : /* @__PURE__ */ h("button", { ...Ne, type: "button", children: Ke ? /* @__PURE__ */ h(Qn, {}) : /* @__PURE__ */ h(Jn, {}) });
|
|
829
|
-
}
|
|
830
|
-
const et = i && /* @__PURE__ */ h(Ee, { className: ee("expand-icon-cell"), children: ae && Oe(P, v) }), Fe = S && S.renderCell;
|
|
831
|
-
let Le;
|
|
832
|
-
const H = /* @__PURE__ */ h(
|
|
833
|
-
At,
|
|
834
|
-
{
|
|
835
|
-
value: v,
|
|
836
|
-
onChange: (B) => o(B, P),
|
|
837
|
-
checked: K,
|
|
838
|
-
indeterminate: ne,
|
|
839
|
-
...j
|
|
840
|
-
}
|
|
841
|
-
), pe = /* @__PURE__ */ h(
|
|
842
|
-
ln,
|
|
843
|
-
{
|
|
844
|
-
onChange: () => l(v, P),
|
|
845
|
-
value: v,
|
|
846
|
-
checked: K,
|
|
847
|
-
...j
|
|
848
|
-
}
|
|
849
|
-
);
|
|
850
|
-
L === "checkbox" && (Le = /* @__PURE__ */ h(Ee, { className: ee("checkbox"), children: Fe ? Fe(H, K, y) : H })), L === "radio" && (Le = /* @__PURE__ */ h(Ee, { className: ee("radio"), children: Fe ? Fe(pe, K, y) : pe }));
|
|
851
|
-
const oe = le({
|
|
852
|
-
selectionNode: Le,
|
|
853
|
-
expandNode: et
|
|
854
|
-
});
|
|
855
|
-
return /* @__PURE__ */ st(_e, { ...Pe, key: Pe.key, ref: n }, e.map((B, Y) => {
|
|
856
|
-
var ze, it, Ve, lt;
|
|
857
|
-
const Be = `${B.key}-${B.dataIndex}-${B.title}-${Y}`, Ke = w[Y], Ne = p[Y];
|
|
858
|
-
if (B.$$isOperation) {
|
|
859
|
-
let Ce = B.node, $e = !0;
|
|
860
|
-
B.title === Je && (Ce = (ze = oe.find((tt) => tt.name === "selectionNode")) == null ? void 0 : ze.node, $e = !1), B.title === Ze && (Ce = (it = oe.find((tt) => tt.name === "expandNode")) == null ? void 0 : it.node, $e = !1);
|
|
861
|
-
const Re = typeof Ce == "function" ? Ce(P) : Ce;
|
|
862
|
-
return ve.cloneElement(Re, {
|
|
863
|
-
key: Be || Y,
|
|
864
|
-
...Re.props,
|
|
865
|
-
className: G(
|
|
866
|
-
$e ? he : "",
|
|
867
|
-
(Ve = Re == null ? void 0 : Re.props) == null ? void 0 : Ve.className,
|
|
868
|
-
Ne
|
|
869
|
-
),
|
|
870
|
-
style: {
|
|
871
|
-
...(lt = Re == null ? void 0 : Re.props) == null ? void 0 : lt.style,
|
|
872
|
-
...B.fixed === "left" ? {
|
|
873
|
-
[z ? "right" : "left"]: Ke
|
|
874
|
-
} : {},
|
|
875
|
-
width: B.width,
|
|
876
|
-
minWidth: B.width
|
|
877
|
-
}
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
return /* @__PURE__ */ h(
|
|
881
|
-
bo,
|
|
882
|
-
{
|
|
883
|
-
prefixCls: s,
|
|
884
|
-
virtualized: b,
|
|
885
|
-
component: x,
|
|
886
|
-
currentSorter: k.find(
|
|
887
|
-
(Ce) => Ce.field === (B.dataIndex || B.key)
|
|
888
|
-
),
|
|
889
|
-
placeholder: T,
|
|
890
|
-
indentSize: $,
|
|
891
|
-
stickyClassName: Ne,
|
|
892
|
-
stickyOffset: Ke,
|
|
893
|
-
InnerComponentTd: Ee,
|
|
894
|
-
column: B,
|
|
895
|
-
columnIndex: Y,
|
|
896
|
-
record: P,
|
|
897
|
-
trIndex: _,
|
|
898
|
-
level: M,
|
|
899
|
-
haveTreeData: ue,
|
|
900
|
-
recordHaveChildren: me,
|
|
901
|
-
rowKey: v,
|
|
902
|
-
renderExpandIcon: Oe,
|
|
903
|
-
___dangerouslySetInnerHTML___: t.___dangerouslySetInnerHTML___
|
|
904
|
-
},
|
|
905
|
-
Be
|
|
906
|
-
);
|
|
907
|
-
}));
|
|
908
|
-
}
|
|
909
|
-
const sn = Dt($o), No = Dt(function({
|
|
910
|
-
record: n,
|
|
911
|
-
index: i,
|
|
912
|
-
virtualized: d,
|
|
913
|
-
tbodyProps: e
|
|
914
|
-
}, x) {
|
|
915
|
-
const {
|
|
916
|
-
prefixCls: o,
|
|
917
|
-
columns: l,
|
|
918
|
-
indentSize: s = 16,
|
|
919
|
-
childrenColumnName: u = "children",
|
|
920
|
-
expandProps: m = {},
|
|
921
|
-
rowSelection: f,
|
|
922
|
-
hasFixedColumn: C,
|
|
923
|
-
tableViewWidth: S,
|
|
924
|
-
getRowKey: $,
|
|
925
|
-
expandedRowKeys: k,
|
|
926
|
-
expandedRowRender: b
|
|
927
|
-
} = e;
|
|
928
|
-
let w;
|
|
929
|
-
f && "type" in f ? w = f.type : f && !("type" in f) && (w = "checkbox");
|
|
930
|
-
const p = b && ((_, L) => b(te(_), L)), A = (_) => se(_[u]) && _[u].length, T = (_, L) => "rowExpandable" in m && typeof m.rowExpandable == "function" ? m.rowExpandable(_) : (p == null ? void 0 : p(_, L)) !== null, W = (_, L) => {
|
|
931
|
-
const F = [], M = {
|
|
932
|
-
...e,
|
|
933
|
-
type: w,
|
|
934
|
-
shouldRowExpand: T
|
|
935
|
-
};
|
|
936
|
-
F.push(
|
|
937
|
-
/* @__PURE__ */ h(
|
|
938
|
-
sn,
|
|
939
|
-
{
|
|
940
|
-
ref: x,
|
|
941
|
-
...M,
|
|
942
|
-
record: _,
|
|
943
|
-
level: 0,
|
|
944
|
-
index: L
|
|
945
|
-
},
|
|
946
|
-
$(_)
|
|
947
|
-
)
|
|
948
|
-
);
|
|
949
|
-
const z = (y, I, v = 0) => {
|
|
950
|
-
se(y) && y.length && y.forEach((E, N) => {
|
|
951
|
-
k.indexOf(I) !== -1 && (F.push(
|
|
952
|
-
/* @__PURE__ */ st(
|
|
953
|
-
sn,
|
|
954
|
-
{
|
|
955
|
-
...M,
|
|
956
|
-
key: $(E),
|
|
957
|
-
record: E,
|
|
958
|
-
level: v + 1,
|
|
959
|
-
index: N
|
|
960
|
-
}
|
|
961
|
-
)
|
|
962
|
-
), A(E) && z(E[u], $(E), v + 1));
|
|
963
|
-
});
|
|
964
|
-
};
|
|
965
|
-
return p || z(_[u], $(_)), F;
|
|
966
|
-
}, Q = $(n), U = T(n, i) && k.indexOf(Q) !== -1, O = d ? "div" : "tr", P = d ? "div" : "td";
|
|
967
|
-
return /* @__PURE__ */ de(ve.Fragment, { children: [
|
|
968
|
-
W(n, i),
|
|
969
|
-
U && /* @__PURE__ */ h(
|
|
970
|
-
O,
|
|
971
|
-
{
|
|
972
|
-
className: G(`${o}-tr`, `${o}-expand-content`),
|
|
973
|
-
children: /* @__PURE__ */ h(
|
|
974
|
-
P,
|
|
975
|
-
{
|
|
976
|
-
className: G(`${o}-td`),
|
|
977
|
-
style: { paddingLeft: s },
|
|
978
|
-
colSpan: l.length,
|
|
979
|
-
children: C ? /* @__PURE__ */ h(
|
|
980
|
-
"div",
|
|
981
|
-
{
|
|
982
|
-
className: `${o}-expand-fixed-row`,
|
|
983
|
-
style: { width: S },
|
|
984
|
-
children: p == null ? void 0 : p(n, i)
|
|
985
|
-
}
|
|
986
|
-
) : p == null ? void 0 : p(n, i)
|
|
987
|
-
}
|
|
988
|
-
)
|
|
989
|
-
},
|
|
990
|
-
`${Q}-expanded`
|
|
991
|
-
)
|
|
992
|
-
] }, Q);
|
|
993
|
-
});
|
|
994
|
-
function Ro(t) {
|
|
995
|
-
const {
|
|
996
|
-
data: n,
|
|
997
|
-
columns: i,
|
|
998
|
-
prefixCls: d,
|
|
999
|
-
component: e,
|
|
1000
|
-
noDataElement: x,
|
|
1001
|
-
scroll: o,
|
|
1002
|
-
tableViewWidth: l,
|
|
1003
|
-
virtualized: s,
|
|
1004
|
-
virtualListProps: u,
|
|
1005
|
-
getRowKey: m,
|
|
1006
|
-
saveVirtualListRef: f
|
|
1007
|
-
} = t, C = (A) => {
|
|
1008
|
-
var T;
|
|
1009
|
-
(T = t.saveRef) == null || T.call(t, A);
|
|
1010
|
-
}, { ComponentTbody: S } = We(e);
|
|
1011
|
-
let $ = {}, k = {};
|
|
1012
|
-
o && (o.x && (typeof o.x == "number" || typeof o.x == "string") && ($ = {
|
|
1013
|
-
width: o.x
|
|
1014
|
-
}), o.y && (typeof o.y == "number" || typeof o.y == "string") && (k = {
|
|
1015
|
-
maxHeight: o.y
|
|
1016
|
-
}));
|
|
1017
|
-
const b = {
|
|
1018
|
-
className: `${d}-no-data`
|
|
1019
|
-
};
|
|
1020
|
-
l && (b.className = `${d}-no-data ${d}-expand-fixed-row`, b.style = { width: l });
|
|
1021
|
-
const w = /* @__PURE__ */ h("tr", { className: G(`${d}-tr`, `${d}-empty-row`), children: /* @__PURE__ */ h("td", { className: `${d}-td`, colSpan: i.length, children: /* @__PURE__ */ h("div", { ...b, children: x }) }) }), p = (A, T) => {
|
|
1022
|
-
const W = m(A) || T;
|
|
1023
|
-
return /* @__PURE__ */ h(
|
|
1024
|
-
No,
|
|
1025
|
-
{
|
|
1026
|
-
record: A,
|
|
1027
|
-
index: T,
|
|
1028
|
-
virtualized: s,
|
|
1029
|
-
tbodyProps: t
|
|
1030
|
-
},
|
|
1031
|
-
W
|
|
1032
|
-
);
|
|
1033
|
-
};
|
|
1034
|
-
return s ? n.length > 0 ? /* @__PURE__ */ h(
|
|
1035
|
-
Gn,
|
|
1036
|
-
{
|
|
1037
|
-
data: n,
|
|
1038
|
-
height: k.maxHeight,
|
|
1039
|
-
isStaticItemHeight: !1,
|
|
1040
|
-
outerStyle: { ...$, minWidth: "100%", overflow: "visible" },
|
|
1041
|
-
innerStyle: { right: "auto", minWidth: "100%" },
|
|
1042
|
-
className: `${d}-body`,
|
|
1043
|
-
ref: (A) => {
|
|
1044
|
-
f(A), C(A == null ? void 0 : A.dom);
|
|
1045
|
-
},
|
|
1046
|
-
itemKey: m,
|
|
1047
|
-
...u,
|
|
1048
|
-
children: p
|
|
1049
|
-
}
|
|
1050
|
-
) : /* @__PURE__ */ h("div", { className: `${d}-body`, ref: C, children: /* @__PURE__ */ h("table", { children: /* @__PURE__ */ h("tbody", { children: w }) }) }) : /* @__PURE__ */ h(S, { ref: C, children: n.length > 0 ? n.map(p) : w });
|
|
1051
|
-
}
|
|
1052
|
-
const dn = Hn({});
|
|
1053
|
-
function To(t) {
|
|
1054
|
-
const { summary: n, data: i, prefixCls: d, columns: e, stickyOffsets: x, stickyClassNames: o } = t;
|
|
1055
|
-
return /* @__PURE__ */ h("tfoot", { className: `${d}-tfoot`, children: /* @__PURE__ */ h(
|
|
1056
|
-
dn.Provider,
|
|
1057
|
-
{
|
|
1058
|
-
value: { columns: e, stickyOffsets: x, stickyClassNames: o, prefixCls: d },
|
|
1059
|
-
children: n(te(i))
|
|
1060
|
-
}
|
|
1061
|
-
) });
|
|
1062
|
-
}
|
|
1063
|
-
function ko(t, n) {
|
|
1064
|
-
return t === "ascend" ? n.Table.sortAscend : t === "descend" ? n.Table.sortDescend : n.Table.cancelSort;
|
|
1065
|
-
}
|
|
1066
|
-
const vo = { bottom: 0 };
|
|
1067
|
-
function _o(t) {
|
|
1068
|
-
const {
|
|
1069
|
-
onSort: n,
|
|
1070
|
-
onFilter: i,
|
|
1071
|
-
onHandleFilter: d,
|
|
1072
|
-
onHandleFilterReset: e,
|
|
1073
|
-
currentFilters: x = {},
|
|
1074
|
-
currentSorter: o,
|
|
1075
|
-
_key: l,
|
|
1076
|
-
dataIndex: s,
|
|
1077
|
-
title: u,
|
|
1078
|
-
sorter: m,
|
|
1079
|
-
sortDirections: f = ["ascend", "descend"],
|
|
1080
|
-
filters: C = [],
|
|
1081
|
-
columnFixedStyle: S,
|
|
1082
|
-
className: $,
|
|
1083
|
-
cellStyle: k,
|
|
1084
|
-
headerCellStyle: b,
|
|
1085
|
-
rowSpan: w,
|
|
1086
|
-
colSpan: p,
|
|
1087
|
-
headerCellProps: A,
|
|
1088
|
-
prefixCls: T,
|
|
1089
|
-
align: W = "left",
|
|
1090
|
-
component: Q,
|
|
1091
|
-
filterIcon: U,
|
|
1092
|
-
filterDropdown: O,
|
|
1093
|
-
filterMultiple: P = !0,
|
|
1094
|
-
ellipsis: _,
|
|
1095
|
-
filterDropdownProps: L,
|
|
1096
|
-
onFilterDropdownVisibleChange: F,
|
|
1097
|
-
column: M,
|
|
1098
|
-
showSorterTooltip: z,
|
|
1099
|
-
index: y
|
|
1100
|
-
} = t, { locale: I, rtl: v } = Ae(Me), E = l || s || y, [N, K, a] = ro([], {
|
|
1101
|
-
value: x[E] || []
|
|
1102
|
-
}), [ne, Z] = xe(!1), [j, he] = xe(!1), ee = m && se(f) && f.length, re = ee ? ye() : void 0;
|
|
1103
|
-
De(() => {
|
|
1104
|
-
K(x[E] || []);
|
|
1105
|
-
}, [x, E]), De(() => {
|
|
1106
|
-
N && N !== a && K(N);
|
|
1107
|
-
}, [ne]);
|
|
1108
|
-
function ye() {
|
|
1109
|
-
const H = o && o.direction;
|
|
1110
|
-
if (!H || o && o.field !== E)
|
|
1111
|
-
return f[0];
|
|
1112
|
-
const pe = f.indexOf(H);
|
|
1113
|
-
if (pe < f.length)
|
|
1114
|
-
return f[pe + 1];
|
|
1115
|
-
}
|
|
1116
|
-
function ae() {
|
|
1117
|
-
N && (d == null || d(
|
|
1118
|
-
{ onFilter: i, filters: C, dataIndex: E },
|
|
1119
|
-
a
|
|
1120
|
-
), ue(!1));
|
|
1121
|
-
}
|
|
1122
|
-
function me() {
|
|
1123
|
-
e({ dataIndex: E }), ue(!1);
|
|
1124
|
-
}
|
|
1125
|
-
function ue(H) {
|
|
1126
|
-
Z(H), F == null || F(H);
|
|
1127
|
-
}
|
|
1128
|
-
function ge(H, pe) {
|
|
1129
|
-
let oe = [...a];
|
|
1130
|
-
if (P)
|
|
1131
|
-
pe ? oe = oe.concat(H) : oe.splice(
|
|
1132
|
-
oe.findIndex((B) => B === H),
|
|
1133
|
-
1
|
|
1134
|
-
);
|
|
1135
|
-
else if (oe.length > 0)
|
|
1136
|
-
if (oe[0] !== H)
|
|
1137
|
-
oe = [H];
|
|
1138
|
-
else
|
|
1139
|
-
return;
|
|
1140
|
-
else
|
|
1141
|
-
oe = [H];
|
|
1142
|
-
K(oe);
|
|
1143
|
-
}
|
|
1144
|
-
function J(H) {
|
|
1145
|
-
K(H || a), Z(!1), d == null || d(
|
|
1146
|
-
{ filters: C, onFilter: i, dataIndex: E },
|
|
1147
|
-
H || a
|
|
1148
|
-
);
|
|
1149
|
-
}
|
|
1150
|
-
function Se() {
|
|
1151
|
-
return typeof O == "function" ? O({
|
|
1152
|
-
filterKeys: a,
|
|
1153
|
-
setFilterKeys: (H, pe) => {
|
|
1154
|
-
K(H), pe == null || pe();
|
|
1155
|
-
},
|
|
1156
|
-
confirm: J
|
|
1157
|
-
}) : /* @__PURE__ */ de("div", { className: `${T}-filters-popup`, children: [
|
|
1158
|
-
/* @__PURE__ */ h("div", { className: `${T}-filters-list`, children: C.map((H) => {
|
|
1159
|
-
const pe = a.findIndex((oe) => oe === H.value) !== -1;
|
|
1160
|
-
return /* @__PURE__ */ h("div", { className: `${T}-filters-item`, children: P ? /* @__PURE__ */ h(
|
|
1161
|
-
At,
|
|
1162
|
-
{
|
|
1163
|
-
checked: pe,
|
|
1164
|
-
onChange: (oe) => ge(H.value, oe),
|
|
1165
|
-
children: H.text
|
|
1166
|
-
}
|
|
1167
|
-
) : /* @__PURE__ */ h(
|
|
1168
|
-
ln,
|
|
1169
|
-
{
|
|
1170
|
-
checked: pe,
|
|
1171
|
-
onChange: (oe) => ge(H.value, oe),
|
|
1172
|
-
children: H.text
|
|
1173
|
-
}
|
|
1174
|
-
) }, H.value);
|
|
1175
|
-
}) }),
|
|
1176
|
-
/* @__PURE__ */ de(so, { className: `${T}-filters-btn`, children: [
|
|
1177
|
-
/* @__PURE__ */ h(nn, { onClick: me, size: "mini", children: I.Table.resetText }),
|
|
1178
|
-
/* @__PURE__ */ h(nn, { onClick: ae, type: "primary", size: "mini", children: I.Table.okText })
|
|
1179
|
-
] })
|
|
1180
|
-
] });
|
|
1181
|
-
}
|
|
1182
|
-
const be = (H) => G(`${T}-sorter-icon`, {
|
|
1183
|
-
[`${T}-sorter-icon-active`]: o && o.direction === H && o.field === E
|
|
1184
|
-
}), ie = G(`${T}-filters`, {
|
|
1185
|
-
[`${T}-filters-open`]: ne,
|
|
1186
|
-
[`${T}-filters-active`]: N && N.length
|
|
1187
|
-
});
|
|
1188
|
-
let le = {
|
|
1189
|
-
...S
|
|
1190
|
-
};
|
|
1191
|
-
q(k) && (le = {
|
|
1192
|
-
...le,
|
|
1193
|
-
...k
|
|
1194
|
-
}), q(b) && (le = {
|
|
1195
|
-
...le,
|
|
1196
|
-
...b
|
|
1197
|
-
}), gt(b) && (le = {
|
|
1198
|
-
...le,
|
|
1199
|
-
...b()
|
|
1200
|
-
}), W && W !== "left" && (le.textAlign = W);
|
|
1201
|
-
const _e = {
|
|
1202
|
-
style: le,
|
|
1203
|
-
key: l || E
|
|
1204
|
-
};
|
|
1205
|
-
p && p > 1 && (_e.colSpan = p), w && w > 1 && (_e.rowSpan = w);
|
|
1206
|
-
const { ComponentTh: Ee, ComponentHeaderCell: Ie } = We(Q), Pe = se(C) && C.length > 0 || typeof O == "function", Oe = _ && typeof u == "string" ? { title: u } : {}, et = L && L.triggerProps, Fe = /* @__PURE__ */ de(rt, { children: [
|
|
1207
|
-
ee ? /* @__PURE__ */ h(
|
|
1208
|
-
an,
|
|
1209
|
-
{
|
|
1210
|
-
content: ko(re, I),
|
|
1211
|
-
disabled: !z,
|
|
1212
|
-
...q(z) ? z : {},
|
|
1213
|
-
children: /* @__PURE__ */ de(
|
|
1214
|
-
"div",
|
|
1215
|
-
{
|
|
1216
|
-
className: `${T}-cell-with-sorter`,
|
|
1217
|
-
onMouseEnter: () => {
|
|
1218
|
-
he(!0);
|
|
1219
|
-
},
|
|
1220
|
-
onMouseLeave: () => {
|
|
1221
|
-
he(!1);
|
|
1222
|
-
},
|
|
1223
|
-
onClick: () => n(re, E),
|
|
1224
|
-
children: [
|
|
1225
|
-
/* @__PURE__ */ h("span", { className: `${T}-th-item-title`, ...Oe, children: u }),
|
|
1226
|
-
ee && /* @__PURE__ */ de(
|
|
1227
|
-
"div",
|
|
1228
|
-
{
|
|
1229
|
-
className: G(`${T}-sorter`, {
|
|
1230
|
-
[`${T}-sorter-direction-one`]: f.length === 1
|
|
1231
|
-
}),
|
|
1232
|
-
children: [
|
|
1233
|
-
f.indexOf("ascend") !== -1 && /* @__PURE__ */ h("div", { className: be("ascend"), children: /* @__PURE__ */ h(no, {}) }),
|
|
1234
|
-
f.indexOf("descend") !== -1 && /* @__PURE__ */ h("div", { className: be("descend"), children: /* @__PURE__ */ h(to, {}) })
|
|
1235
|
-
]
|
|
1236
|
-
}
|
|
1237
|
-
)
|
|
1238
|
-
]
|
|
1239
|
-
}
|
|
1240
|
-
)
|
|
1241
|
-
}
|
|
1242
|
-
) : /* @__PURE__ */ h("span", { className: `${T}-th-item-title`, ...Oe, children: u }),
|
|
1243
|
-
Pe && /* @__PURE__ */ h(
|
|
1244
|
-
io,
|
|
1245
|
-
{
|
|
1246
|
-
popup: Se,
|
|
1247
|
-
trigger: "click",
|
|
1248
|
-
classNames: "slideDynamicOrigin",
|
|
1249
|
-
position: v ? "bl" : "br",
|
|
1250
|
-
popupAlign: vo,
|
|
1251
|
-
popupVisible: ne,
|
|
1252
|
-
onVisibleChange: ue,
|
|
1253
|
-
...et,
|
|
1254
|
-
children: /* @__PURE__ */ h("div", { className: ie, children: U || /* @__PURE__ */ h(oo, {}) })
|
|
1255
|
-
}
|
|
1256
|
-
)
|
|
1257
|
-
] }), Le = G(`${T}-th-item`, {
|
|
1258
|
-
[`${T}-cell-text-ellipsis`]: _,
|
|
1259
|
-
[`${T}-cell-mouseenter`]: j,
|
|
1260
|
-
[`${T}-cell-next-${re}`]: j && re,
|
|
1261
|
-
[`${T}-col-has-sorter`]: ee,
|
|
1262
|
-
[`${T}-col-has-filter`]: Pe
|
|
1263
|
-
});
|
|
1264
|
-
return p !== 0 && /* @__PURE__ */ st(
|
|
1265
|
-
Ee,
|
|
1266
|
-
{
|
|
1267
|
-
className: G(
|
|
1268
|
-
`${T}-th`,
|
|
1269
|
-
{
|
|
1270
|
-
[`${T}-col-sorted`]: (o == null ? void 0 : o.direction) && o.field === E
|
|
1271
|
-
},
|
|
1272
|
-
$
|
|
1273
|
-
),
|
|
1274
|
-
index: y,
|
|
1275
|
-
..._e,
|
|
1276
|
-
key: _e.key,
|
|
1277
|
-
...A
|
|
1278
|
-
},
|
|
1279
|
-
/* @__PURE__ */ h(
|
|
1280
|
-
Ie,
|
|
1281
|
-
{
|
|
1282
|
-
className: Le,
|
|
1283
|
-
column: Qe(Ie) ? void 0 : M,
|
|
1284
|
-
children: Fe
|
|
1285
|
-
}
|
|
1286
|
-
)
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
|
-
function Eo(t) {
|
|
1290
|
-
const {
|
|
1291
|
-
activeSorters: n,
|
|
1292
|
-
expandedRowRender: i,
|
|
1293
|
-
expandProps: d = {},
|
|
1294
|
-
onSort: e,
|
|
1295
|
-
onHandleFilter: x,
|
|
1296
|
-
onHandleFilterReset: o,
|
|
1297
|
-
onHeaderRow: l,
|
|
1298
|
-
prefixCls: s,
|
|
1299
|
-
currentFilters: u,
|
|
1300
|
-
component: m,
|
|
1301
|
-
data: f,
|
|
1302
|
-
selectedRowKeys: C,
|
|
1303
|
-
rowSelection: S,
|
|
1304
|
-
allSelectedRowKeys: $ = [],
|
|
1305
|
-
groupColumns: k,
|
|
1306
|
-
stickyOffsets: b,
|
|
1307
|
-
groupStickyClassNames: w,
|
|
1308
|
-
showSorterTooltip: p
|
|
1309
|
-
} = t, { rtl: A } = Ae(Me), { ComponentThead: T, ComponentHeaderRow: W, getHeaderComponentOperations: Q } = We(m), U = S && (S.type === "checkbox" || !("type" in S)), O = S && "checkAll" in S ? S.checkAll : !0, P = S && S.type === "radio", { columnTitle: _ } = d, L = fe(() => {
|
|
1310
|
-
const z = new Set($);
|
|
1311
|
-
return C.filter((y) => z.has(y));
|
|
1312
|
-
}, [C, $]), F = k.length > 1 ? { rowSpan: k.length } : {}, M = G(`${s}-th`, `${s}-operation`);
|
|
1313
|
-
return /* @__PURE__ */ h(T, { children: k.map((z, y) => {
|
|
1314
|
-
const I = l == null ? void 0 : l(z, y), v = (U || P) && y === 0 && /* @__PURE__ */ h(
|
|
1315
|
-
"th",
|
|
1316
|
-
{
|
|
1317
|
-
className: G(
|
|
1318
|
-
M,
|
|
1319
|
-
`${s}-${P ? "radio" : "checkbox"}`
|
|
1320
|
-
),
|
|
1321
|
-
children: /* @__PURE__ */ de("div", { className: `${s}-th-item`, children: [
|
|
1322
|
-
O && !P ? /* @__PURE__ */ h(
|
|
1323
|
-
At,
|
|
1324
|
-
{
|
|
1325
|
-
indeterminate: f && L.length > 0 && L.length !== $.length,
|
|
1326
|
-
checked: f && L.length !== 0 && L.length === $.length,
|
|
1327
|
-
disabled: !$.length,
|
|
1328
|
-
onChange: t.onCheckAll
|
|
1329
|
-
}
|
|
1330
|
-
) : null,
|
|
1331
|
-
S && S.columnTitle
|
|
1332
|
-
] })
|
|
1333
|
-
}
|
|
1334
|
-
), E = i && /* @__PURE__ */ h("th", { className: G(M, `${s}-expand`), children: _ && /* @__PURE__ */ h("div", { className: `${s}-th-item`, children: _ }) }), N = w[y], K = Q({
|
|
1335
|
-
selectionNode: v,
|
|
1336
|
-
expandNode: E
|
|
1337
|
-
});
|
|
1338
|
-
return /* @__PURE__ */ st(
|
|
1339
|
-
W,
|
|
1340
|
-
{
|
|
1341
|
-
...I,
|
|
1342
|
-
key: y,
|
|
1343
|
-
className: `${s}-tr`
|
|
1344
|
-
},
|
|
1345
|
-
z.map((a, ne) => {
|
|
1346
|
-
var ae, me, ue, ge, J;
|
|
1347
|
-
const Z = a.$$columnIndex;
|
|
1348
|
-
let j = 0;
|
|
1349
|
-
Array.isArray(Z) && Z.length === 2 ? j = a.fixed === "right" ? b[Z[1]] : b[Z[0]] : typeof Z == "number" && (j = b[Z] || 0);
|
|
1350
|
-
const he = N[ne];
|
|
1351
|
-
if (a.$$isOperation) {
|
|
1352
|
-
let Se = a.node, be = !0;
|
|
1353
|
-
a.title === Je && (Se = (ae = K.find(
|
|
1354
|
-
(le) => le.name === "selectionNode"
|
|
1355
|
-
)) == null ? void 0 : ae.node, be = !1), a.title === Ze && (Se = (me = K.find(
|
|
1356
|
-
(le) => le.name === "expandNode"
|
|
1357
|
-
)) == null ? void 0 : me.node, be = !1);
|
|
1358
|
-
const ie = Se;
|
|
1359
|
-
return ve.cloneElement(ie, {
|
|
1360
|
-
key: a.key || ne,
|
|
1361
|
-
...ie.props,
|
|
1362
|
-
...F,
|
|
1363
|
-
className: G(
|
|
1364
|
-
be ? M : "",
|
|
1365
|
-
(ue = ie == null ? void 0 : ie.props) == null ? void 0 : ue.className,
|
|
1366
|
-
he
|
|
1367
|
-
),
|
|
1368
|
-
style: {
|
|
1369
|
-
...(ge = ie == null ? void 0 : ie.props) == null ? void 0 : ge.style,
|
|
1370
|
-
...a.fixed === "left" ? {
|
|
1371
|
-
[A ? "right" : "left"]: j
|
|
1372
|
-
} : {},
|
|
1373
|
-
width: a.width,
|
|
1374
|
-
minWidth: a.width
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
const ee = (J = a == null ? void 0 : a.onHeaderCell) == null ? void 0 : J.call(a, a, ne), re = G(he, a.className), ye = {};
|
|
1379
|
-
return a.fixed === "left" && (ye[A ? "right" : "left"] = j), a.fixed === "right" && (ye[A ? "left" : "right"] = j), /* @__PURE__ */ st(
|
|
1380
|
-
_o,
|
|
1381
|
-
{
|
|
1382
|
-
index: ne,
|
|
1383
|
-
onSort: e,
|
|
1384
|
-
onHandleFilter: x,
|
|
1385
|
-
onHandleFilterReset: o,
|
|
1386
|
-
currentSorter: n.find(
|
|
1387
|
-
(Se) => Se.field === (a.dataIndex || a.key)
|
|
1388
|
-
),
|
|
1389
|
-
currentFilters: u,
|
|
1390
|
-
_key: a.key || a.dataIndex || ne,
|
|
1391
|
-
...a,
|
|
1392
|
-
key: a.key,
|
|
1393
|
-
column: a,
|
|
1394
|
-
headerCellProps: ee,
|
|
1395
|
-
prefixCls: s,
|
|
1396
|
-
component: m,
|
|
1397
|
-
className: re,
|
|
1398
|
-
columnFixedStyle: ye,
|
|
1399
|
-
showSorterTooltip: p
|
|
1400
|
-
}
|
|
1401
|
-
);
|
|
1402
|
-
})
|
|
1403
|
-
);
|
|
1404
|
-
}) });
|
|
1405
|
-
}
|
|
1406
|
-
const Io = [], Po = [], Fo = {
|
|
1407
|
-
showHeader: !0,
|
|
1408
|
-
border: !0,
|
|
1409
|
-
hover: !0,
|
|
1410
|
-
rowKey: "key",
|
|
1411
|
-
pagePosition: "br",
|
|
1412
|
-
childrenColumnName: "children",
|
|
1413
|
-
indentSize: 15,
|
|
1414
|
-
showSorterTooltip: !0
|
|
1415
|
-
};
|
|
1416
|
-
function Do(t, n) {
|
|
1417
|
-
var Jt, Zt;
|
|
1418
|
-
const {
|
|
1419
|
-
getPrefixCls: i,
|
|
1420
|
-
loadingElement: d,
|
|
1421
|
-
size: e,
|
|
1422
|
-
tablePagination: x,
|
|
1423
|
-
renderEmpty: o,
|
|
1424
|
-
componentConfig: l,
|
|
1425
|
-
rtl: s
|
|
1426
|
-
} = Ae(Me), u = en(
|
|
1427
|
-
t,
|
|
1428
|
-
Fo,
|
|
1429
|
-
l == null ? void 0 : l.Table
|
|
1430
|
-
), m = en(
|
|
1431
|
-
q(t == null ? void 0 : t.pagination) ? t == null ? void 0 : t.pagination : {},
|
|
1432
|
-
q((Jt = l == null ? void 0 : l.Table) == null ? void 0 : Jt.pagination) ? (Zt = l == null ? void 0 : l.Table) == null ? void 0 : Zt.pagination : {},
|
|
1433
|
-
x || {}
|
|
1434
|
-
), {
|
|
1435
|
-
style: f,
|
|
1436
|
-
className: C,
|
|
1437
|
-
component: S,
|
|
1438
|
-
border: $,
|
|
1439
|
-
borderCell: k,
|
|
1440
|
-
columns: b = Po,
|
|
1441
|
-
data: w = Io,
|
|
1442
|
-
scroll: p,
|
|
1443
|
-
noDataElement: A,
|
|
1444
|
-
showHeader: T,
|
|
1445
|
-
stripe: W,
|
|
1446
|
-
hover: Q,
|
|
1447
|
-
pagination: U,
|
|
1448
|
-
onChange: O,
|
|
1449
|
-
pagePosition: P,
|
|
1450
|
-
childrenColumnName: _,
|
|
1451
|
-
indentSize: L,
|
|
1452
|
-
rowSelection: F,
|
|
1453
|
-
tableLayoutFixed: M,
|
|
1454
|
-
header: z,
|
|
1455
|
-
// 潘启宝添加
|
|
1456
|
-
footer: y,
|
|
1457
|
-
virtualized: I,
|
|
1458
|
-
renderPagination: v,
|
|
1459
|
-
summary: E,
|
|
1460
|
-
rowKey: N
|
|
1461
|
-
} = u, K = fe(
|
|
1462
|
-
() => uo(w, _),
|
|
1463
|
-
[w, _]
|
|
1464
|
-
), a = i("table"), ne = u.size || (["default", "middle", "small"].indexOf(e) > -1 ? e : "default"), Z = ce(null), j = ce(null), he = ce(null), ee = ce(null), re = ce(null), ye = ce(null), ae = ce(null), me = ce(0), ue = ce(!1), [ge, J] = ao(u), { currentFilters: Se, defaultSorters: be } = lt(), [ie, le] = xe(1), [_e, Ee] = xe(
|
|
1465
|
-
m.pageSize || m.defaultPageSize || 10
|
|
1466
|
-
), [Ie, Pe] = xe(Se), [Oe, et] = xe(0), [Fe, Le] = xe([]), H = Co(J), [pe, oe] = go(
|
|
1467
|
-
ge,
|
|
1468
|
-
J,
|
|
1469
|
-
a
|
|
1470
|
-
), {
|
|
1471
|
-
currentSorter: B,
|
|
1472
|
-
activeSorters: Y,
|
|
1473
|
-
getNextActiveSorters: Be,
|
|
1474
|
-
updateStateSorters: Ke
|
|
1475
|
-
} = xo(J, be), { ComponentTable: Ne, ComponentBodyWrapper: ze, ComponentHeaderWrapper: it } = We(S), Ve = fe(() => typeof N == "function" ? (r) => N(te(r)) : (r) => r[N], [N]);
|
|
1476
|
-
function lt() {
|
|
1477
|
-
const r = {};
|
|
1478
|
-
let c = [];
|
|
1479
|
-
return J.forEach((g) => {
|
|
1480
|
-
const R = g.dataIndex || g.key;
|
|
1481
|
-
if (g.defaultFilters && (r[R] = g.defaultFilters), g.filteredValue && (r[R] = g.filteredValue), "defaultSortOrder" in g || "sortOrder" in g) {
|
|
1482
|
-
const D = Ft(g.sorter), X = "sortOrder" in g ? g.sortOrder : g.defaultSortOrder, V = {
|
|
1483
|
-
field: R,
|
|
1484
|
-
direction: X,
|
|
1485
|
-
sorterFn: Pt(g.sorter),
|
|
1486
|
-
priority: D
|
|
1487
|
-
};
|
|
1488
|
-
X ? He(D) ? c.every(
|
|
1489
|
-
(we) => He(we.priority) || !we.direction
|
|
1490
|
-
) && c.push(V) : c.every((we) => !we.direction) ? c.push(V) : c = [V] : c.push(V);
|
|
1491
|
-
}
|
|
1492
|
-
}), { currentFilters: r, defaultSorters: c };
|
|
1493
|
-
}
|
|
1494
|
-
const Ce = fe(() => {
|
|
1495
|
-
const r = J.filter(
|
|
1496
|
-
(g) => "filteredValue" in g
|
|
1497
|
-
), c = {};
|
|
1498
|
-
return r.length && r.forEach((g, R) => {
|
|
1499
|
-
const D = g.key || g.dataIndex || R;
|
|
1500
|
-
D !== void 0 && (c[D] = g.filteredValue);
|
|
1501
|
-
}), c;
|
|
1502
|
-
}, [J]), $e = fe(() => Object.keys(Ce).length ? Ce : Ie, [Ie, Ce]);
|
|
1503
|
-
function Re(r, c) {
|
|
1504
|
-
const g = zt(c);
|
|
1505
|
-
if (!g)
|
|
1506
|
-
return;
|
|
1507
|
-
const R = {
|
|
1508
|
-
direction: r,
|
|
1509
|
-
field: c,
|
|
1510
|
-
sorterFn: Pt(g.sorter),
|
|
1511
|
-
priority: Ft(g.sorter)
|
|
1512
|
-
}, D = Be(R);
|
|
1513
|
-
Ke(R, D);
|
|
1514
|
-
const X = ft(
|
|
1515
|
-
R,
|
|
1516
|
-
D,
|
|
1517
|
-
$e
|
|
1518
|
-
), V = nt(X);
|
|
1519
|
-
O == null || O(je(X), R, $e, {
|
|
1520
|
-
currentData: te(V),
|
|
1521
|
-
currentAllData: te(X),
|
|
1522
|
-
action: "sort"
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
function tt(r) {
|
|
1526
|
-
const c = function(R, D) {
|
|
1527
|
-
return (X, V) => {
|
|
1528
|
-
const we = R(X, V);
|
|
1529
|
-
return D === "descend" ? -we : we;
|
|
1530
|
-
};
|
|
1531
|
-
}, g = [...r];
|
|
1532
|
-
return g.sort((R, D) => D.priority - R.priority), (R, D) => {
|
|
1533
|
-
for (let X = 0, V = g.length; X < V; X++) {
|
|
1534
|
-
const { sorterFn: we, direction: Tt } = g[X];
|
|
1535
|
-
if (typeof we != "function")
|
|
1536
|
-
continue;
|
|
1537
|
-
const yt = c(we, Tt)(R, D);
|
|
1538
|
-
if (yt !== 0)
|
|
1539
|
-
return yt;
|
|
1540
|
-
}
|
|
1541
|
-
return 0;
|
|
1542
|
-
};
|
|
1543
|
-
}
|
|
1544
|
-
function pn(r, c) {
|
|
1545
|
-
const g = {
|
|
1546
|
-
...$e,
|
|
1547
|
-
[r.dataIndex]: c
|
|
1548
|
-
}, R = {
|
|
1549
|
-
...g,
|
|
1550
|
-
...Ce
|
|
1551
|
-
};
|
|
1552
|
-
if (se(c) && c.length) {
|
|
1553
|
-
Pe(R);
|
|
1554
|
-
const D = ft(
|
|
1555
|
-
B,
|
|
1556
|
-
Y,
|
|
1557
|
-
g
|
|
1558
|
-
), X = nt(D);
|
|
1559
|
-
O == null || O(
|
|
1560
|
-
je(D),
|
|
1561
|
-
Y.length === 1 ? Y[0] : Y,
|
|
1562
|
-
g,
|
|
1563
|
-
{
|
|
1564
|
-
currentData: te(X),
|
|
1565
|
-
currentAllData: te(D),
|
|
1566
|
-
action: "filter"
|
|
1567
|
-
}
|
|
1568
|
-
);
|
|
1569
|
-
} else se(c) && !c.length && Bt(r);
|
|
1570
|
-
}
|
|
1571
|
-
function Bt({ dataIndex: r }) {
|
|
1572
|
-
const c = {
|
|
1573
|
-
...$e
|
|
1574
|
-
};
|
|
1575
|
-
delete c[r], Pe(c);
|
|
1576
|
-
const g = ft(
|
|
1577
|
-
B,
|
|
1578
|
-
Y,
|
|
1579
|
-
c
|
|
1580
|
-
), R = nt(g);
|
|
1581
|
-
O == null || O(
|
|
1582
|
-
je(g),
|
|
1583
|
-
Y.length === 1 ? Y[0] : Y,
|
|
1584
|
-
c,
|
|
1585
|
-
{
|
|
1586
|
-
currentData: te(R),
|
|
1587
|
-
currentAllData: te(g),
|
|
1588
|
-
action: "filter"
|
|
1589
|
-
}
|
|
1590
|
-
);
|
|
1591
|
-
}
|
|
1592
|
-
const at = !!J.find((r) => r.fixed === "left"), ct = !!J.find((r) => r.fixed === "right"), dt = at || ct;
|
|
1593
|
-
function ft(r, c, g) {
|
|
1594
|
-
let R = (K || []).slice();
|
|
1595
|
-
Object.keys(g).forEach((X) => {
|
|
1596
|
-
if (g[X] && g[X].length) {
|
|
1597
|
-
const V = zt(X);
|
|
1598
|
-
V && typeof V.onFilter == "function" && (R = R.filter((we) => g[X].reduce(
|
|
1599
|
-
(Tt, yt) => Tt || V.onFilter(yt, we),
|
|
1600
|
-
!1
|
|
1601
|
-
)));
|
|
1602
|
-
}
|
|
1603
|
-
});
|
|
1604
|
-
const D = (X) => X.slice().sort(tt(c)).map((V) => se(V[_]) ? {
|
|
1605
|
-
...V,
|
|
1606
|
-
[_]: D(V[_])
|
|
1607
|
-
} : V);
|
|
1608
|
-
return r.direction && typeof r.sorterFn == "function" || c.length ? D(R) : R;
|
|
1609
|
-
}
|
|
1610
|
-
const Ue = ft(
|
|
1611
|
-
B,
|
|
1612
|
-
Y,
|
|
1613
|
-
$e
|
|
1614
|
-
);
|
|
1615
|
-
function je(r = Ue) {
|
|
1616
|
-
const c = m.pageSize || _e || 10, g = ne === "middle" ? "default" : ne;
|
|
1617
|
-
let R = "top";
|
|
1618
|
-
P === "tl" || P === "bl" ? R = "bottom" : R = "top";
|
|
1619
|
-
const D = se(r) ? r.length : 0, X = Math.ceil(D / c) < ie ? 1 : ie;
|
|
1620
|
-
X !== ie && le(X);
|
|
1621
|
-
let V = {
|
|
1622
|
-
size: g,
|
|
1623
|
-
total: D,
|
|
1624
|
-
pageSize: c,
|
|
1625
|
-
current: X,
|
|
1626
|
-
selectProps: {
|
|
1627
|
-
triggerProps: {
|
|
1628
|
-
position: R
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
return typeof U == "object" && U.selectProps && (V.selectProps = {
|
|
1633
|
-
...V.selectProps,
|
|
1634
|
-
...U.selectProps
|
|
1635
|
-
}), q(U) && (V = {
|
|
1636
|
-
...V,
|
|
1637
|
-
...U
|
|
1638
|
-
}), q(m) && (V = {
|
|
1639
|
-
...V,
|
|
1640
|
-
...m
|
|
1641
|
-
}), V.onChange = $n, V;
|
|
1642
|
-
}
|
|
1643
|
-
const ut = je(), Ye = nt();
|
|
1644
|
-
function nt(r = Ue, c = ut) {
|
|
1645
|
-
const { current: g = 0, pageSize: R = 10 } = c;
|
|
1646
|
-
return U === !1 || q(U) && w.length <= R ? r : r.slice((g - 1) * R, g * R);
|
|
1647
|
-
}
|
|
1648
|
-
const Kt = Bn(Ht, 100), ke = !!(p && p.y), ot = E == null ? void 0 : E(te(Ue)), wt = E && ve.isValidElement(ot) && ot.props.fixed, hn = ke && wt;
|
|
1649
|
-
Wn(() => {
|
|
1650
|
-
Ht(), Xe(window, "resize", Kt);
|
|
1651
|
-
const r = Z.current, c = j.current, g = ee.current;
|
|
1652
|
-
c && Xe(c, "scroll", qe);
|
|
1653
|
-
const R = r && r.parentNode;
|
|
1654
|
-
return r && R && Xe(R, "scroll", qe), g && Xe(g, "scroll", qe), () => {
|
|
1655
|
-
Ge(window, "resize", Kt), c && Ge(c, "scroll", qe), R && Ge(R, "scroll", qe), g && Ge(g, "scroll", qe);
|
|
1656
|
-
};
|
|
1657
|
-
}, [
|
|
1658
|
-
at,
|
|
1659
|
-
ct,
|
|
1660
|
-
p == null ? void 0 : p.x,
|
|
1661
|
-
p == null ? void 0 : p.y,
|
|
1662
|
-
J.length,
|
|
1663
|
-
w
|
|
1664
|
-
]), _t(() => {
|
|
1665
|
-
const { total: r, pageSize: c } = je(w);
|
|
1666
|
-
Math.ceil(r / c) < ie && le(1);
|
|
1667
|
-
}, [w == null ? void 0 : w.length]), _t(() => {
|
|
1668
|
-
pt();
|
|
1669
|
-
}, [w, at, ct, s]), Mn(n, () => ({
|
|
1670
|
-
getRootDomElement: St,
|
|
1671
|
-
scrollIntoView: (r) => {
|
|
1672
|
-
ye.current && ye.current.scrollTo({ key: r });
|
|
1673
|
-
},
|
|
1674
|
-
getRootDOMNode: St
|
|
1675
|
-
}));
|
|
1676
|
-
function St() {
|
|
1677
|
-
return re.current;
|
|
1678
|
-
}
|
|
1679
|
-
function Ht() {
|
|
1680
|
-
var c, g;
|
|
1681
|
-
pt();
|
|
1682
|
-
const r = St();
|
|
1683
|
-
if (r && (dt || p && p.x)) {
|
|
1684
|
-
const R = r.querySelector(`.${a}-body`) || r.querySelector(`.${a}-content-inner`), D = (g = (c = R == null ? void 0 : R.getBoundingClientRect) == null ? void 0 : c.call(R)) == null ? void 0 : g.width;
|
|
1685
|
-
et(D);
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
const mn = Te(
|
|
1689
|
-
Kn(() => {
|
|
1690
|
-
const r = re.current, c = ke ? j.current : ae.current && ae.current.parentNode;
|
|
1691
|
-
if (c) {
|
|
1692
|
-
const g = s ? -c.scrollLeft : c.scrollLeft, R = g === 0, D = g + 1 >= c.children[0].getBoundingClientRect().width - c.getBoundingClientRect().width;
|
|
1693
|
-
R && D ? ht(
|
|
1694
|
-
r.classList,
|
|
1695
|
-
`${a}-scroll-position-both`
|
|
1696
|
-
) : R ? ht(
|
|
1697
|
-
r.classList,
|
|
1698
|
-
`${a}-scroll-position-${s ? "right" : "left"}`
|
|
1699
|
-
) : D ? ht(
|
|
1700
|
-
r.classList,
|
|
1701
|
-
`${a}-scroll-position-${s ? "left" : "right"}`
|
|
1702
|
-
) : ht(
|
|
1703
|
-
r.classList,
|
|
1704
|
-
`${a}-scroll-position-middle`
|
|
1705
|
-
);
|
|
1706
|
-
} else
|
|
1707
|
-
r && Wt(r.classList);
|
|
1708
|
-
}, 100),
|
|
1709
|
-
[re.current, j.current, ke, s]
|
|
1710
|
-
);
|
|
1711
|
-
function pt() {
|
|
1712
|
-
if (dt || p && q(p) && p.x) {
|
|
1713
|
-
const r = re.current;
|
|
1714
|
-
r && (at && Mt(
|
|
1715
|
-
r.classList,
|
|
1716
|
-
`${a}-has-fixed-col-left`
|
|
1717
|
-
), ct && Mt(
|
|
1718
|
-
r.classList,
|
|
1719
|
-
`${a}-has-fixed-col-right`
|
|
1720
|
-
)), mn();
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
function Mt(r, c) {
|
|
1724
|
-
r.contains(c) || r.add(c);
|
|
1725
|
-
}
|
|
1726
|
-
function Wt(r) {
|
|
1727
|
-
r.remove(`${a}-scroll-position-both`), r.remove(`${a}-scroll-position-left`), r.remove(`${a}-scroll-position-right`), r.remove(`${a}-scroll-position-middle`);
|
|
1728
|
-
}
|
|
1729
|
-
function ht(r, c) {
|
|
1730
|
-
r.contains(c) || (Wt(r), r.add(c));
|
|
1731
|
-
}
|
|
1732
|
-
const {
|
|
1733
|
-
selectedRowKeys: bt,
|
|
1734
|
-
indeterminateKeys: yn,
|
|
1735
|
-
onCheckAll: xn,
|
|
1736
|
-
onCheck: gn,
|
|
1737
|
-
onCheckRadio: Cn,
|
|
1738
|
-
setSelectedRowKeys: wn,
|
|
1739
|
-
allSelectedRowKeys: Sn,
|
|
1740
|
-
flattenData: bn
|
|
1741
|
-
} = yo(u, Ye, K, Ve);
|
|
1742
|
-
function zt(r) {
|
|
1743
|
-
return J.find((c, g) => typeof c.key < "u" ? typeof c.key == "number" && typeof r == "string" ? c.key.toString() === r : c.key === r : typeof c.dataIndex < "u" ? c.dataIndex === r : typeof r == "number" ? g === r : !1);
|
|
1744
|
-
}
|
|
1745
|
-
function $n(r, c) {
|
|
1746
|
-
var R, D;
|
|
1747
|
-
le(r), Ee(c), r !== ie && Nn(), F && !F.checkCrossPage && bt.length && (wn([]), (R = F.onChange) == null || R.call(F, [], []));
|
|
1748
|
-
const g = { ...je(), current: r, pageSize: c };
|
|
1749
|
-
O == null || O(
|
|
1750
|
-
g,
|
|
1751
|
-
Y.length === 1 ? Y[0] : Y,
|
|
1752
|
-
$e,
|
|
1753
|
-
{
|
|
1754
|
-
currentData: te(
|
|
1755
|
-
nt(Ue, g)
|
|
1756
|
-
),
|
|
1757
|
-
currentAllData: te(Ue),
|
|
1758
|
-
action: "paginate"
|
|
1759
|
-
}
|
|
1760
|
-
), (D = m.onChange) == null || D.call(m, r, c);
|
|
1761
|
-
}
|
|
1762
|
-
function Nn() {
|
|
1763
|
-
if (!j.current)
|
|
1764
|
-
return;
|
|
1765
|
-
const c = j.current.scrollTop;
|
|
1766
|
-
new On({
|
|
1767
|
-
from: { scrollTop: c },
|
|
1768
|
-
to: { scrollTop: 0 },
|
|
1769
|
-
easing: Ln,
|
|
1770
|
-
duration: 300,
|
|
1771
|
-
onUpdate: (R) => {
|
|
1772
|
-
j.current && (j.current.scrollTop = R.scrollTop);
|
|
1773
|
-
}
|
|
1774
|
-
}).start();
|
|
1775
|
-
}
|
|
1776
|
-
function qe(r) {
|
|
1777
|
-
const { target: c } = r, g = j.current, R = Z.current && Z.current.parentNode, D = ee.current;
|
|
1778
|
-
c.scrollLeft !== me.current && (R && (R.scrollLeft = c.scrollLeft), g && (g.scrollLeft = c.scrollLeft), D && (D.scrollLeft = c.scrollLeft), pt()), me.current = r.target.scrollLeft;
|
|
1779
|
-
}
|
|
1780
|
-
function Rn(r) {
|
|
1781
|
-
const { target: c } = r, g = ae.current;
|
|
1782
|
-
c.scrollLeft !== me.current && (g.scrollLeft = c.scrollLeft, pt()), me.current = r.target.scrollLeft;
|
|
1783
|
-
}
|
|
1784
|
-
const [Vt, Tn] = mo(
|
|
1785
|
-
u,
|
|
1786
|
-
bn,
|
|
1787
|
-
Ve
|
|
1788
|
-
);
|
|
1789
|
-
let Ut = {}, $t = {};
|
|
1790
|
-
p && (p.x && (typeof p.x == "number" || typeof p.x == "string") && ($t = {
|
|
1791
|
-
width: p.x
|
|
1792
|
-
}), p.y && (typeof p.y == "number" || typeof p.y == "string") && (Ut = {
|
|
1793
|
-
maxHeight: p.y
|
|
1794
|
-
}));
|
|
1795
|
-
function kn() {
|
|
1796
|
-
requestAnimationFrame((r) => {
|
|
1797
|
-
const c = Z.current && Z.current.parentNode, g = co(c);
|
|
1798
|
-
g && g > 0 && (c.style.marginBottom = `-${g}px`, c.style.paddingBottom = "0px", ee.current && (ee.current.style.marginBottom = `-${g}px`, ee.current.style.paddingBottom = "0px")), setTimeout(() => {
|
|
1799
|
-
const R = j.current;
|
|
1800
|
-
fo(R) ? (ue.current = !0, c && (c.style.overflowY = "scroll"), ee.current && (ee.current.style.overflowY = "scroll")) : c && ue.current && (ue.current = !1, c.style.overflowY = "auto", ee.current && (ee.current.style.overflowY = "auto"));
|
|
1801
|
-
}, 0);
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
const jt = /* @__PURE__ */ h(
|
|
1805
|
-
Eo,
|
|
1806
|
-
{
|
|
1807
|
-
...u,
|
|
1808
|
-
activeSorters: Y,
|
|
1809
|
-
currentSorter: B,
|
|
1810
|
-
selectedRowKeys: bt,
|
|
1811
|
-
currentFilters: $e,
|
|
1812
|
-
onCheckAll: xn,
|
|
1813
|
-
onSort: Re,
|
|
1814
|
-
data: Ye,
|
|
1815
|
-
onHandleFilter: pn,
|
|
1816
|
-
onHandleFilterReset: Bt,
|
|
1817
|
-
prefixCls: a,
|
|
1818
|
-
allSelectedRowKeys: Sn,
|
|
1819
|
-
groupColumns: ge,
|
|
1820
|
-
stickyOffsets: H,
|
|
1821
|
-
groupStickyClassNames: pe
|
|
1822
|
-
}
|
|
1823
|
-
);
|
|
1824
|
-
function vn() {
|
|
1825
|
-
const r = q(p) && p.x === "max-content";
|
|
1826
|
-
return ke || I ? /* @__PURE__ */ h(it, { className: `${a}-header`, children: /* @__PURE__ */ de(
|
|
1827
|
-
Ne,
|
|
1828
|
-
{
|
|
1829
|
-
ref: Z,
|
|
1830
|
-
style: r ? {} : $t,
|
|
1831
|
-
children: [
|
|
1832
|
-
/* @__PURE__ */ h(
|
|
1833
|
-
xt,
|
|
1834
|
-
{
|
|
1835
|
-
columns: J,
|
|
1836
|
-
prefixCls: a,
|
|
1837
|
-
producer: !1,
|
|
1838
|
-
columnWidths: r && p.y ? Fe : null
|
|
1839
|
-
}
|
|
1840
|
-
),
|
|
1841
|
-
jt
|
|
1842
|
-
]
|
|
1843
|
-
}
|
|
1844
|
-
) }) : jt;
|
|
1845
|
-
}
|
|
1846
|
-
const Yt = ot && /* @__PURE__ */ h(
|
|
1847
|
-
To,
|
|
1848
|
-
{
|
|
1849
|
-
prefixCls: a,
|
|
1850
|
-
summary: E,
|
|
1851
|
-
data: Ye,
|
|
1852
|
-
columns: J,
|
|
1853
|
-
stickyOffsets: H,
|
|
1854
|
-
stickyClassNames: oe
|
|
1855
|
-
}
|
|
1856
|
-
), qt = /* @__PURE__ */ h(
|
|
1857
|
-
Ro,
|
|
1858
|
-
{
|
|
1859
|
-
...u,
|
|
1860
|
-
saveRef: (r) => he.current = r,
|
|
1861
|
-
selectedRowKeys: bt,
|
|
1862
|
-
indeterminateKeys: yn,
|
|
1863
|
-
expandedRowKeys: Vt,
|
|
1864
|
-
onCheck: gn,
|
|
1865
|
-
onCheckRadio: Cn,
|
|
1866
|
-
onClickExpandBtn: Tn,
|
|
1867
|
-
columns: J,
|
|
1868
|
-
data: Ye,
|
|
1869
|
-
prefixCls: a,
|
|
1870
|
-
hasFixedColumn: dt,
|
|
1871
|
-
tableViewWidth: Oe,
|
|
1872
|
-
indentSize: L,
|
|
1873
|
-
noDataElement: A || o("Table"),
|
|
1874
|
-
activeSorters: Y,
|
|
1875
|
-
currentSorter: B,
|
|
1876
|
-
stickyOffsets: H,
|
|
1877
|
-
stickyClassNames: oe,
|
|
1878
|
-
getRowKey: Ve,
|
|
1879
|
-
saveVirtualListRef: (r) => {
|
|
1880
|
-
I && (ye.current = r, j.current = r == null ? void 0 : r.dom);
|
|
1881
|
-
},
|
|
1882
|
-
___dangerouslySetInnerHTML___: u.___dangerouslySetInnerHTML___
|
|
1883
|
-
}
|
|
1884
|
-
), Xt = !I && !hn ? /* @__PURE__ */ de(rt, { children: [
|
|
1885
|
-
qt,
|
|
1886
|
-
Yt
|
|
1887
|
-
] }) : qt;
|
|
1888
|
-
De(() => {
|
|
1889
|
-
const r = j.current || he.current, c = jn([r], kn);
|
|
1890
|
-
return () => {
|
|
1891
|
-
c();
|
|
1892
|
-
};
|
|
1893
|
-
}, [j.current, he.current]);
|
|
1894
|
-
function _n() {
|
|
1895
|
-
const r = q(p) && p.x === "max-content" && !!p.y && se(w) && w.length > 0;
|
|
1896
|
-
return ke && !I ? /* @__PURE__ */ h(
|
|
1897
|
-
ze,
|
|
1898
|
-
{
|
|
1899
|
-
ref: j,
|
|
1900
|
-
className: `${a}-body`,
|
|
1901
|
-
style: Ut,
|
|
1902
|
-
children: /* @__PURE__ */ de(Ne, { style: $t, children: [
|
|
1903
|
-
/* @__PURE__ */ h(
|
|
1904
|
-
xt,
|
|
1905
|
-
{
|
|
1906
|
-
columns: J,
|
|
1907
|
-
prefixCls: a,
|
|
1908
|
-
producer: r,
|
|
1909
|
-
onSetColumnWidths: Le,
|
|
1910
|
-
expandedRowKeys: Vt,
|
|
1911
|
-
data: w
|
|
1912
|
-
}
|
|
1913
|
-
),
|
|
1914
|
-
Xt
|
|
1915
|
-
] })
|
|
1916
|
-
}
|
|
1917
|
-
) : Xt;
|
|
1918
|
-
}
|
|
1919
|
-
function En() {
|
|
1920
|
-
let r = {};
|
|
1921
|
-
p && q(p) && p.x && (r = {
|
|
1922
|
-
width: p.x
|
|
1923
|
-
});
|
|
1924
|
-
const c = /* @__PURE__ */ h("div", { className: `${a}-tfoot`, ref: ee, children: /* @__PURE__ */ de(Ne, { style: r, children: [
|
|
1925
|
-
/* @__PURE__ */ h(xt, { columns: J, prefixCls: a }),
|
|
1926
|
-
Yt
|
|
1927
|
-
] }) }), g = ot && ke && wt === "top", R = ot && ke && wt === "bottom", D = /* @__PURE__ */ de(rt, { children: [
|
|
1928
|
-
T ? vn() : null,
|
|
1929
|
-
g && c,
|
|
1930
|
-
_n(),
|
|
1931
|
-
R && c
|
|
1932
|
-
] });
|
|
1933
|
-
return /* @__PURE__ */ de(rt, { children: [
|
|
1934
|
-
typeof z == "function" && /* @__PURE__ */ h("div", { className: `${a}-header-`, children: z(Ye) }),
|
|
1935
|
-
/* @__PURE__ */ h("div", { className: `${a}-container`, children: /* @__PURE__ */ h("div", { className: `${a}-content-scroll`, children: /* @__PURE__ */ h(
|
|
1936
|
-
"div",
|
|
1937
|
-
{
|
|
1938
|
-
className: `${a}-content-inner`,
|
|
1939
|
-
onScroll: ke ? void 0 : Rn,
|
|
1940
|
-
children: ke || I ? D : /* @__PURE__ */ de(Ne, { ref: ae, style: r, children: [
|
|
1941
|
-
/* @__PURE__ */ h(xt, { prefixCls: a, columns: J }),
|
|
1942
|
-
D
|
|
1943
|
-
] })
|
|
1944
|
-
}
|
|
1945
|
-
) }) }),
|
|
1946
|
-
typeof y == "function" && /* @__PURE__ */ h("div", { className: `${a}-footer`, children: y(Ye) })
|
|
1947
|
-
] });
|
|
1948
|
-
}
|
|
1949
|
-
if (!b.length) return null;
|
|
1950
|
-
const In = q($) ? $.wrapper : $, Nt = q($) ? $.cell : k, Pn = q($) ? $.cell || $.headerCell : k, Fn = q($) ? $.cell || $.bodyCell : k, Dn = G(
|
|
1951
|
-
a,
|
|
1952
|
-
`${a}-size-${ne}`,
|
|
1953
|
-
{
|
|
1954
|
-
[`${a}-border`]: In,
|
|
1955
|
-
[`${a}-border-cell`]: Nt,
|
|
1956
|
-
[`${a}-border-header-cell`]: !Nt && Pn,
|
|
1957
|
-
[`${a}-border-body-cell`]: !Nt && Fn,
|
|
1958
|
-
[`${a}-stripe`]: W,
|
|
1959
|
-
[`${a}-hover`]: Q,
|
|
1960
|
-
[`${a}-type-radio`]: F && F.type === "radio",
|
|
1961
|
-
[`${a}-layout-fixed`]: M || p && (p.x || p.y) || b.find((r) => r.ellipsis),
|
|
1962
|
-
[`${a}-fixed-column`]: dt,
|
|
1963
|
-
[`${a}-virtualized`]: I,
|
|
1964
|
-
[`${a}-rtl`]: s
|
|
1965
|
-
},
|
|
1966
|
-
C
|
|
1967
|
-
), Rt = P === "tl" || P === "tr" || P === "topCenter", An = G(`${a}-pagination`, {
|
|
1968
|
-
[`${a}-pagination-left`]: P === "tl" || P === "bl",
|
|
1969
|
-
[`${a}-pagination-center`]: P === "topCenter" || P === "bottomCenter",
|
|
1970
|
-
[`${a}-pagination-top`]: Rt
|
|
1971
|
-
});
|
|
1972
|
-
let mt = u.loading;
|
|
1973
|
-
typeof mt == "boolean" && (mt = { loading: mt });
|
|
1974
|
-
const Gt = typeof v == "function" ? v(/* @__PURE__ */ h(tn, { ...ut })) : /* @__PURE__ */ h("div", { className: An, children: /* @__PURE__ */ h(tn, { ...ut }) }), Qt = U !== !1 && (Ue.length !== 0 || ut.total > 0);
|
|
1975
|
-
return /* @__PURE__ */ h(
|
|
1976
|
-
"div",
|
|
1977
|
-
{
|
|
1978
|
-
ref: re,
|
|
1979
|
-
style: f,
|
|
1980
|
-
className: Dn,
|
|
1981
|
-
...Un(u),
|
|
1982
|
-
children: /* @__PURE__ */ de(
|
|
1983
|
-
zn,
|
|
1984
|
-
{
|
|
1985
|
-
className: `${a}-spin`,
|
|
1986
|
-
element: d,
|
|
1987
|
-
...mt,
|
|
1988
|
-
children: [
|
|
1989
|
-
Qt && Rt && Gt,
|
|
1990
|
-
En(),
|
|
1991
|
-
Qt && !Rt && Gt
|
|
1992
|
-
]
|
|
1993
|
-
}
|
|
1994
|
-
)
|
|
1995
|
-
}
|
|
1996
|
-
);
|
|
1997
|
-
}
|
|
1998
|
-
const fn = Dt(Do);
|
|
1999
|
-
fn.displayName = "Table";
|
|
2000
|
-
function Ao(t) {
|
|
2001
|
-
let { width: n, onResize: i, className: d, children: e, ...x } = t;
|
|
2002
|
-
const { getPrefixCls: o } = Ae(Me), l = o("table-th-resizable"), s = ce(null), u = ce({}), m = Te((b) => {
|
|
2003
|
-
u.current.boundingClientRect = s.current.getBoundingClientRect(), u.current.pageX = b.pageX, S();
|
|
2004
|
-
}, []), f = Te((b) => {
|
|
2005
|
-
$();
|
|
2006
|
-
}, []), C = Te((b) => {
|
|
2007
|
-
let p = u.current.boundingClientRect.width + (b.pageX - u.current.pageX);
|
|
2008
|
-
p < 0 || i == null || i({
|
|
2009
|
-
width: p,
|
|
2010
|
-
index: t.index,
|
|
2011
|
-
widthOrigin: u.current.boundingClientRect.width
|
|
2012
|
-
});
|
|
2013
|
-
}, []), S = Te((b) => {
|
|
2014
|
-
Xe(document, "mousemove", C), Xe(document, "mouseup", f);
|
|
2015
|
-
}, []), $ = Te((b) => {
|
|
2016
|
-
Ge(document, "mousemove", C), Ge(document, "mouseup", f);
|
|
2017
|
-
}, []), k = Et.header.th;
|
|
2018
|
-
return n && (d = G(d, l), e = /* @__PURE__ */ de(rt, { children: [
|
|
2019
|
-
e,
|
|
2020
|
-
/* @__PURE__ */ h("div", { className: `${l}-cursor`, onMouseDown: m })
|
|
2021
|
-
] })), De(() => () => {
|
|
2022
|
-
$();
|
|
2023
|
-
}, []), /* @__PURE__ */ h(k, { ref: s, ...x, className: d, children: e });
|
|
2024
|
-
}
|
|
2025
|
-
function Rr(t = {}) {
|
|
2026
|
-
const [n, i] = xe(() => d(t));
|
|
2027
|
-
function d(o) {
|
|
2028
|
-
let l = o == null ? void 0 : o.columns;
|
|
2029
|
-
return se(l) ? (l = l.map((s, u, m) => {
|
|
2030
|
-
let f = s;
|
|
2031
|
-
return u < m.length - 1 && s.resizable !== !1 && !s.fixed && (f.onHeaderCell = e), f;
|
|
2032
|
-
}), l) : [];
|
|
2033
|
-
}
|
|
2034
|
-
function e(o, l) {
|
|
2035
|
-
let s = n.findIndex((m) => m.dataIndex === o.dataIndex && m.title === o.title);
|
|
2036
|
-
return {
|
|
2037
|
-
width: o.width,
|
|
2038
|
-
onResize(m) {
|
|
2039
|
-
s === -1 ? m.index = l ?? m.index : m.index = s, x(m);
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
2042
|
-
}
|
|
2043
|
-
function x(o) {
|
|
2044
|
-
let { width: l, index: s } = o;
|
|
2045
|
-
i((u) => {
|
|
2046
|
-
const m = [...u];
|
|
2047
|
-
return m[s].width = l, m;
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
return De(() => (i((o) => d(t)), () => {
|
|
2051
|
-
}), [t.columns]), De(() => () => {
|
|
2052
|
-
}, []), {
|
|
2053
|
-
columns: n,
|
|
2054
|
-
setColumns: i,
|
|
2055
|
-
ThResizable: Ao
|
|
2056
|
-
};
|
|
2057
|
-
}
|
|
2058
|
-
function un(t) {
|
|
2059
|
-
const { children: n, ...i } = t;
|
|
2060
|
-
return /* @__PURE__ */ h("td", { ...lo(i, ["$$PqbTableSummaryCell"]), children: n });
|
|
2061
|
-
}
|
|
2062
|
-
un.__PQB_TABLE_SUMMARY_CELL__ = !0;
|
|
2063
|
-
function Oo(t) {
|
|
2064
|
-
const { rtl: n } = Ae(Me), { columns: i, stickyOffsets: d, stickyClassNames: e, prefixCls: x } = Ae(dn), { children: o, ...l } = t, s = ve.Children.map(
|
|
2065
|
-
o,
|
|
2066
|
-
(m) => m.props.colSpan || 1
|
|
2067
|
-
), u = ve.Children.map(o, (m, f) => {
|
|
2068
|
-
var T, W;
|
|
2069
|
-
const C = m, S = Ct(C, "type.__PQB_TABLE_SUMMARY_CELL__") || Ct(C, "props.$$PqbTableSummaryCell"), $ = (T = C == null ? void 0 : C.props) == null ? void 0 : T.style, k = (W = C == null ? void 0 : C.props) == null ? void 0 : W.className, w = s.slice(0, f).reduce((Q, U) => Q + U, 0), p = i[w].fixed === "left" ? { [n ? "right" : "left"]: d[w] } : i[w].fixed === "right" ? { [n ? "left" : "right"]: d[w] } : {}, A = i[w].fixed === "left" || i[w].fixed === "right" ? e[w] : "";
|
|
2070
|
-
return S ? ve.cloneElement(C, {
|
|
2071
|
-
...C.props,
|
|
2072
|
-
className: G(`${x}-td`, A, k),
|
|
2073
|
-
style: { ...$, ...p }
|
|
2074
|
-
}) : m;
|
|
2075
|
-
});
|
|
2076
|
-
return /* @__PURE__ */ h("tr", { ...l, children: u });
|
|
2077
|
-
}
|
|
2078
|
-
function Lt(t) {
|
|
2079
|
-
return t.children;
|
|
2080
|
-
}
|
|
2081
|
-
Lt.Row = Oo;
|
|
2082
|
-
Lt.Cell = un;
|
|
2083
|
-
const Lo = fn;
|
|
2084
|
-
Lo.Summary = Lt;
|
|
1
|
+
import { u as s, a as l, b as o, c as u, d as t, e as b, f as m } from "./chunk/CzQObzKd.js";
|
|
2
|
+
import { defaultComponent as r } from "./table/constant.js";
|
|
3
|
+
import { TableSummary as n, TableSummaryCell as p, TableSummaryRow as S, default as C, useTableThResizable as y } from "./table/index.js";
|
|
2085
4
|
export {
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
5
|
+
n as TableSummary,
|
|
6
|
+
p as TableSummaryCell,
|
|
7
|
+
S as TableSummaryRow,
|
|
8
|
+
C as default,
|
|
9
|
+
r as tableDefaultComponent,
|
|
10
|
+
s as useTableColumns,
|
|
11
|
+
l as useTableComponent,
|
|
12
|
+
o as useTableExpand,
|
|
13
|
+
u as useTableRowSelection,
|
|
14
|
+
t as useTableSorter,
|
|
15
|
+
b as useTableStickyClassNames,
|
|
16
|
+
m as useTableStickyOffsets,
|
|
17
|
+
y as useTableThResizable
|
|
2099
18
|
};
|