@aloudata/aloudata-design 2.19.5 → 3.0.0-beta.2
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/dist/AMenu/index.d.ts +34 -3
- package/dist/AMenu/index.js +53 -2
- package/dist/AMenu/index.js.map +1 -0
- package/dist/AProgress/index.d.ts +17 -2
- package/dist/AProgress/index.js +82 -2
- package/dist/AProgress/index.js.map +1 -0
- package/dist/Alert/index.d.ts +16 -3
- package/dist/Alert/index.js +91 -2
- package/dist/Alert/index.js.map +1 -0
- package/dist/App/index.d.ts +6 -2
- package/dist/App/index.js +22 -31
- package/dist/App/index.js.map +1 -0
- package/dist/Avatar/component/Avatar/helper.d.ts +1 -1
- package/dist/Avatar/component/Avatar/helper.js +49 -82
- package/dist/Avatar/component/Avatar/helper.js.map +1 -0
- package/dist/Avatar/component/Avatar/index.d.ts +7 -69
- package/dist/Avatar/component/Avatar/index.js +71 -66
- package/dist/Avatar/component/Avatar/index.js.map +1 -0
- package/dist/Avatar/component/Avatar/type.d.ts +10 -1
- package/dist/Avatar/component/Avatar/type.js +19 -15
- package/dist/Avatar/component/Avatar/type.js.map +1 -0
- package/dist/Avatar/index.d.ts +14 -1
- package/dist/Avatar/index.js +32 -4
- package/dist/Avatar/index.js.map +1 -0
- package/dist/Badge/index.d.ts +2 -2
- package/dist/Badge/index.js +46 -24
- package/dist/Badge/index.js.map +1 -0
- package/dist/Breadcrumb/index.d.ts +20 -4
- package/dist/Breadcrumb/index.js +62 -31
- package/dist/Breadcrumb/index.js.map +1 -0
- package/dist/Button/index.d.ts +17 -39
- package/dist/Button/index.js +175 -94
- package/dist/Button/index.js.map +1 -0
- package/dist/Card/index.d.ts +35 -2
- package/dist/Card/index.js +72 -2
- package/dist/Card/index.js.map +1 -0
- package/dist/Carousel/index.d.ts +34 -3
- package/dist/Carousel/index.js +103 -2
- package/dist/Carousel/index.js.map +1 -0
- package/dist/Checkbox/component/CheckboxGroup/index.d.ts +1 -4
- package/dist/Checkbox/component/CheckboxGroup/index.js +2 -22
- package/dist/Checkbox/index.d.ts +6 -6
- package/dist/Checkbox/index.js +110 -37
- package/dist/Checkbox/index.js.map +1 -0
- package/dist/Checkbox/type.d.ts +24 -83
- package/dist/Checkbox/type.js +2 -5
- package/dist/Col/index.d.ts +21 -3
- package/dist/Col/index.js +111 -2
- package/dist/Col/index.js.map +1 -0
- package/dist/Collapse/index.d.ts +42 -5
- package/dist/Collapse/index.js +130 -19
- package/dist/Collapse/index.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js +29 -42
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js +29 -44
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js +54 -72
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.d.ts +3 -3
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js +74 -74
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js +51 -63
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.d.ts +2 -3
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js +27 -44
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/index.d.ts +1 -2
- package/dist/ColorPicker/ComplexColorPicker/index.js +72 -89
- package/dist/ColorPicker/ComplexColorPicker/index.js.map +1 -0
- package/dist/ColorPicker/color.d.ts +2 -2
- package/dist/ColorPicker/color.js +72 -125
- package/dist/ColorPicker/color.js.map +1 -0
- package/dist/ColorPicker/constant.js +47 -3
- package/dist/ColorPicker/constant.js.map +1 -0
- package/dist/ColorPicker/hooks/useColor.d.ts +2 -2
- package/dist/ColorPicker/hooks/useColor.js +21 -31
- package/dist/ColorPicker/hooks/useColor.js.map +1 -0
- package/dist/ColorPicker/index.d.ts +3 -3
- package/dist/ColorPicker/index.js +159 -204
- package/dist/ColorPicker/index.js.map +1 -0
- package/dist/ColorPicker/interface.d.ts +8 -5
- package/dist/ColorPicker/interface.js +9 -6
- package/dist/ColorPicker/interface.js.map +1 -0
- package/dist/ColorPicker/util.d.ts +3 -3
- package/dist/ColorPicker/util.js +20 -61
- package/dist/ColorPicker/util.js.map +1 -0
- package/dist/ConfigProvider/DisabledContext.d.ts +3 -0
- package/dist/ConfigProvider/DisabledContext.js +7 -0
- package/dist/ConfigProvider/DisabledContext.js.map +1 -0
- package/dist/ConfigProvider/getUserList.d.ts +1 -1
- package/dist/ConfigProvider/getUserList.js +12 -24
- package/dist/ConfigProvider/getUserList.js.map +1 -0
- package/dist/ConfigProvider/hooks/useGetUserList.d.ts +4 -4
- package/dist/ConfigProvider/hooks/useGetUserList.js +14 -14
- package/dist/ConfigProvider/hooks/useGetUserList.js.map +1 -0
- package/dist/ConfigProvider/index.d.ts +33 -13
- package/dist/ConfigProvider/index.js +34 -44
- package/dist/ConfigProvider/index.js.map +1 -0
- package/dist/ConfigProvider/sizeContext.js +12 -12
- package/dist/ConfigProvider/sizeContext.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/Cell.d.ts +3 -3
- package/dist/DataPreviewTable/components/Body/Cell.js +35 -37
- package/dist/DataPreviewTable/components/Body/Cell.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/Error.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/Error.js +21 -19
- package/dist/DataPreviewTable/components/Body/Error.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/index.js +37 -51
- package/dist/DataPreviewTable/components/Body/index.js.map +1 -0
- package/dist/DataPreviewTable/components/DragBar/Mask.d.ts +1 -2
- package/dist/DataPreviewTable/components/DragBar/Mask.js +31 -29
- package/dist/DataPreviewTable/components/DragBar/Mask.js.map +1 -0
- package/dist/DataPreviewTable/components/DragBar/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/DragBar/index.js +58 -76
- package/dist/DataPreviewTable/components/DragBar/index.js.map +1 -0
- package/dist/DataPreviewTable/components/Header/index.d.ts +1 -2
- package/dist/DataPreviewTable/components/Header/index.js +43 -50
- package/dist/DataPreviewTable/components/Header/index.js.map +1 -0
- package/dist/DataPreviewTable/constant.js +2 -6
- package/dist/DataPreviewTable/constant.js.map +1 -0
- package/dist/DataPreviewTable/hooks/useDirection.js +164 -215
- package/dist/DataPreviewTable/hooks/useDirection.js.map +1 -0
- package/dist/DataPreviewTable/index.d.ts +2 -2
- package/dist/DataPreviewTable/index.js +105 -131
- package/dist/DataPreviewTable/index.js.map +1 -0
- package/dist/DataPreviewTable/interface.d.ts +1 -1
- package/dist/DataPreviewTable/interface.js +14 -9
- package/dist/DataPreviewTable/interface.js.map +1 -0
- package/dist/DataPreviewTable/utils/findRange.js +41 -63
- package/dist/DataPreviewTable/utils/findRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getColumnOffsetsFromWidths.js +13 -8
- package/dist/DataPreviewTable/utils/getColumnOffsetsFromWidths.js.map +1 -0
- package/dist/DataPreviewTable/utils/getColumnRange.js +11 -21
- package/dist/DataPreviewTable/utils/getColumnRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getRowRange.js +15 -22
- package/dist/DataPreviewTable/utils/getRowRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getTableLayout.js +19 -17
- package/dist/DataPreviewTable/utils/getTableLayout.js.map +1 -0
- package/dist/DatePicker/index.d.ts +39 -67
- package/dist/DatePicker/index.js +77 -206
- package/dist/DatePicker/index.js.map +1 -0
- package/dist/Divider/index.d.ts +1 -2
- package/dist/Divider/index.js +34 -19
- package/dist/Divider/index.js.map +1 -0
- package/dist/DoubleCircleIcon/index.d.ts +6 -7
- package/dist/DoubleCircleIcon/index.js +2 -34
- package/dist/Drawer/index.d.ts +27 -3
- package/dist/Drawer/index.js +93 -2
- package/dist/Drawer/index.js.map +1 -0
- package/dist/Dropdown/index.d.ts +4 -5
- package/dist/Dropdown/index.js +145 -189
- package/dist/Dropdown/index.js.map +1 -0
- package/dist/Empty/image/Data.d.ts +1 -2
- package/dist/Empty/image/Data.js +267 -219
- package/dist/Empty/image/Data.js.map +1 -0
- package/dist/Empty/image/Search.d.ts +1 -2
- package/dist/Empty/image/Search.js +15 -10
- package/dist/Empty/image/Search.js.map +1 -0
- package/dist/Empty/image/SearchSmall.d.ts +1 -2
- package/dist/Empty/image/SearchSmall.js +34 -27
- package/dist/Empty/image/SearchSmall.js.map +1 -0
- package/dist/Empty/image/User.d.ts +1 -2
- package/dist/Empty/image/User.js +249 -196
- package/dist/Empty/image/User.js.map +1 -0
- package/dist/Empty/image/WorkBook.d.ts +1 -2
- package/dist/Empty/image/WorkBook.js +246 -202
- package/dist/Empty/image/WorkBook.js.map +1 -0
- package/dist/Empty/index.js +62 -70
- package/dist/Empty/index.js.map +1 -0
- package/dist/Form/FormItemContext.d.ts +27 -0
- package/dist/Form/FormItemContext.js +8 -0
- package/dist/Form/FormItemContext.js.map +1 -0
- package/dist/Form/hooks/useFormItemStatus.d.ts +6 -0
- package/dist/Form/hooks/useFormItemStatus.js +2 -0
- package/dist/Form/index.d.ts +95 -19
- package/dist/Form/index.js +257 -60
- package/dist/Form/index.js.map +1 -0
- package/dist/HighlightText/index.d.ts +2 -2
- package/dist/HighlightText/index.js +27 -28
- package/dist/HighlightText/index.js.map +1 -0
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleDuotone.js +35 -35
- package/dist/Icon/components/AlertTriangleDuotone.js.map +1 -0
- package/dist/Icon/components/AlertTriangleLine.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.js +35 -35
- package/dist/Icon/components/AlertTriangleLine.js.map +1 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +1 -1
- package/dist/Icon/components/ArrowDownFill.js +35 -35
- package/dist/Icon/components/ArrowDownFill.js.map +1 -0
- package/dist/Icon/components/ArrowDownLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowDownLightLine.js +35 -35
- package/dist/Icon/components/ArrowDownLightLine.js.map +1 -0
- package/dist/Icon/components/ArrowDownRightFill.js +35 -35
- package/dist/Icon/components/ArrowDownRightFill.js.map +1 -0
- package/dist/Icon/components/ArrowRightLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowRightLightLine.js +35 -35
- package/dist/Icon/components/ArrowRightLightLine.js.map +1 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionCircleFill.js +35 -35
- package/dist/Icon/components/AttentionCircleFill.js.map +1 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleFill.js +35 -35
- package/dist/Icon/components/AttentionTriangleFill.js.map +1 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -35
- package/dist/Icon/components/AttentionTriangleLightLine.js.map +1 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CancelCircleDuotone.js +39 -38
- package/dist/Icon/components/CancelCircleDuotone.js.map +1 -0
- package/dist/Icon/components/CancelledCircleFill.js +35 -35
- package/dist/Icon/components/CancelledCircleFill.js.map +1 -0
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.js +39 -38
- package/dist/Icon/components/CheckCircleDuotone.js.map +1 -0
- package/dist/Icon/components/CheckCircleFill.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.js +35 -35
- package/dist/Icon/components/CheckCircleFill.js.map +1 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckCircleLightLine.js +37 -38
- package/dist/Icon/components/CheckCircleLightLine.js.map +1 -0
- package/dist/Icon/components/CheckLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckLightLine.js +35 -35
- package/dist/Icon/components/CheckLightLine.js.map +1 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronDownLine.js +35 -35
- package/dist/Icon/components/ChevronDownLine.js.map +1 -0
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.js +35 -35
- package/dist/Icon/components/ChevronLeftLine.js.map +1 -0
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.js +35 -35
- package/dist/Icon/components/ChevronRightLine.js.map +1 -0
- package/dist/Icon/components/CircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.js +37 -38
- package/dist/Icon/components/CircleLightLine.js.map +1 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +1 -1
- package/dist/Icon/components/CloseCircleFill.js +35 -35
- package/dist/Icon/components/CloseCircleFill.js.map +1 -0
- package/dist/Icon/components/CloseCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseCircleLightLine.js +35 -35
- package/dist/Icon/components/CloseCircleLightLine.js.map +1 -0
- package/dist/Icon/components/CloseCircleRightFill.js +35 -35
- package/dist/Icon/components/CloseCircleRightFill.js.map +1 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLLine.js +35 -35
- package/dist/Icon/components/CloseLLine.js.map +1 -0
- package/dist/Icon/components/CloseLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.js +35 -35
- package/dist/Icon/components/CloseLightLine.js.map +1 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/CloseMLine.js +35 -35
- package/dist/Icon/components/CloseMLine.js.map +1 -0
- package/dist/Icon/components/DangerFill.d.ts +1 -1
- package/dist/Icon/components/DangerFill.js +35 -35
- package/dist/Icon/components/DangerFill.js.map +1 -0
- package/dist/Icon/components/DragLightLine.d.ts +1 -1
- package/dist/Icon/components/DragLightLine.js +35 -35
- package/dist/Icon/components/DragLightLine.js.map +1 -0
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.js +35 -35
- package/dist/Icon/components/DragLine.js.map +1 -0
- package/dist/Icon/components/Ellipsis.js +35 -35
- package/dist/Icon/components/Ellipsis.js.map +1 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOffLine.js +35 -35
- package/dist/Icon/components/EyeOffLine.js.map +1 -0
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.js +45 -42
- package/dist/Icon/components/EyeOnLine.js.map +1 -0
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.js +36 -38
- package/dist/Icon/components/FoldDownFill.js.map +1 -0
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.js +36 -38
- package/dist/Icon/components/FoldUpFill.js.map +1 -0
- package/dist/Icon/components/InProgressFill.js +37 -38
- package/dist/Icon/components/InProgressFill.js.map +1 -0
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.js +35 -35
- package/dist/Icon/components/InfoCircleDuotone.js.map +1 -0
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.js +35 -35
- package/dist/Icon/components/InfoCircleLine.js.map +1 -0
- package/dist/Icon/components/InformationCircleFill.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.js +35 -35
- package/dist/Icon/components/InformationCircleFill.js.map +1 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleLightLine.js +37 -38
- package/dist/Icon/components/InformationCircleLightLine.js.map +1 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/Loading2Line.js +35 -35
- package/dist/Icon/components/Loading2Line.js.map +1 -0
- package/dist/Icon/components/LoadingDuotone.js +38 -39
- package/dist/Icon/components/LoadingDuotone.js.map +1 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/LoadingLine.js +35 -35
- package/dist/Icon/components/LoadingLine.js.map +1 -0
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.js +35 -35
- package/dist/Icon/components/MoreVerticalLine.js.map +1 -0
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.js +35 -35
- package/dist/Icon/components/SearchLine.js.map +1 -0
- package/dist/Icon/components/SignLightLine.d.ts +1 -1
- package/dist/Icon/components/SignLightLine.js +35 -35
- package/dist/Icon/components/SignLightLine.js.map +1 -0
- package/dist/Icon/components/SortAscendingOrderColor.js +37 -36
- package/dist/Icon/components/SortAscendingOrderColor.js.map +1 -0
- package/dist/Icon/components/SortColor.js +33 -33
- package/dist/Icon/components/SortColor.js.map +1 -0
- package/dist/Icon/components/SortDescendingOrderColor.js +37 -36
- package/dist/Icon/components/SortDescendingOrderColor.js.map +1 -0
- package/dist/Icon/components/TimesLightLine.d.ts +1 -1
- package/dist/Icon/components/TimesLightLine.js +35 -35
- package/dist/Icon/components/TimesLightLine.js.map +1 -0
- package/dist/Icon/components/TrashLightLine.d.ts +1 -1
- package/dist/Icon/components/TrashLightLine.js +37 -38
- package/dist/Icon/components/TrashLightLine.js.map +1 -0
- package/dist/Icon/components/TriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.js +35 -35
- package/dist/Icon/components/TriangleLightLine.js.map +1 -0
- package/dist/Icon/components/User.d.ts +1 -1
- package/dist/Icon/components/User.js +42 -41
- package/dist/Icon/components/User.js.map +1 -0
- package/dist/Icon/components/UserGroup.d.ts +1 -1
- package/dist/Icon/components/UserGroup.js +40 -39
- package/dist/Icon/components/UserGroup.js.map +1 -0
- package/dist/Icon/components/createFromScripts.js +2 -29
- package/dist/Icon/index.d.ts +52 -52
- package/dist/Icon/index.js +52 -52
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +92 -106
- package/dist/IconButton/index.js.map +1 -0
- package/dist/Input/components/Input/index.d.ts +19 -53
- package/dist/Input/components/Input/index.js +115 -62
- package/dist/Input/components/Input/index.js.map +1 -0
- package/dist/Input/components/Password/index.d.ts +4 -13
- package/dist/Input/components/Password/index.js +34 -37
- package/dist/Input/components/Password/index.js.map +1 -0
- package/dist/Input/components/TextArea/index.d.ts +16 -44
- package/dist/Input/components/TextArea/index.js +78 -44
- package/dist/Input/components/TextArea/index.js.map +1 -0
- package/dist/Input/index.d.ts +6 -7
- package/dist/Input/index.js +11 -7
- package/dist/Input/index.js.map +1 -0
- package/dist/InputNumber/index.d.ts +2 -3
- package/dist/InputNumber/index.js +123 -44
- package/dist/InputNumber/index.js.map +1 -0
- package/dist/InputNumber/type.d.ts +7 -126
- package/dist/InputNumber/type.js +2 -1
- package/dist/InputSearch/index.d.ts +3 -2
- package/dist/InputSearch/index.js +107 -154
- package/dist/InputSearch/index.js.map +1 -0
- package/dist/Layout/index.d.ts +28 -3
- package/dist/Layout/index.js +74 -2
- package/dist/Layout/index.js.map +1 -0
- package/dist/List/Item.d.ts +1 -1
- package/dist/List/Item.js +56 -73
- package/dist/List/Item.js.map +1 -0
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +93 -129
- package/dist/List/index.js.map +1 -0
- package/dist/LogicTree/DisplayLogicTree.d.ts +3 -3
- package/dist/LogicTree/DisplayLogicTree.js +16 -14
- package/dist/LogicTree/DisplayLogicTree.js.map +1 -0
- package/dist/LogicTree/components/DisplayLogicItem/index.d.ts +2 -2
- package/dist/LogicTree/components/DisplayLogicItem/index.js +69 -85
- package/dist/LogicTree/components/DisplayLogicItem/index.js.map +1 -0
- package/dist/LogicTree/components/LogicItem/index.d.ts +1 -2
- package/dist/LogicTree/components/LogicItem/index.js +296 -388
- package/dist/LogicTree/components/LogicItem/index.js.map +1 -0
- package/dist/LogicTree/helper.d.ts +1 -1
- package/dist/LogicTree/helper.js +119 -182
- package/dist/LogicTree/helper.js.map +1 -0
- package/dist/LogicTree/index.d.ts +5 -6
- package/dist/LogicTree/index.js +100 -143
- package/dist/LogicTree/index.js.map +1 -0
- package/dist/LogicTree/type.js +14 -9
- package/dist/LogicTree/type.js.map +1 -0
- package/dist/MemberPicker/components/MemberSelection.d.ts +2 -2
- package/dist/MemberPicker/components/MemberSelection.js +138 -169
- package/dist/MemberPicker/components/MemberSelection.js.map +1 -0
- package/dist/MemberPicker/components/MultipleOption.d.ts +1 -2
- package/dist/MemberPicker/components/MultipleOption.js +66 -70
- package/dist/MemberPicker/components/MultipleOption.js.map +1 -0
- package/dist/MemberPicker/components/NickLabel.d.ts +1 -1
- package/dist/MemberPicker/components/NickLabel.js +25 -23
- package/dist/MemberPicker/components/NickLabel.js.map +1 -0
- package/dist/MemberPicker/components/Panel.d.ts +2 -2
- package/dist/MemberPicker/components/Panel.js +158 -192
- package/dist/MemberPicker/components/Panel.js.map +1 -0
- package/dist/MemberPicker/components/PanelWrapper.d.ts +3 -3
- package/dist/MemberPicker/components/PanelWrapper.js +99 -151
- package/dist/MemberPicker/components/PanelWrapper.js.map +1 -0
- package/dist/MemberPicker/components/SelectedMemberTags.d.ts +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +81 -82
- package/dist/MemberPicker/components/SelectedMemberTags.js.map +1 -0
- package/dist/MemberPicker/components/SelectorFooter.d.ts +2 -2
- package/dist/MemberPicker/components/SelectorFooter.js +36 -43
- package/dist/MemberPicker/components/SelectorFooter.js.map +1 -0
- package/dist/MemberPicker/components/SingleOption.d.ts +1 -2
- package/dist/MemberPicker/components/SingleOption.js +62 -66
- package/dist/MemberPicker/components/SingleOption.js.map +1 -0
- package/dist/MemberPicker/components/UserGroupSelection.d.ts +2 -2
- package/dist/MemberPicker/components/UserGroupSelection.js +163 -229
- package/dist/MemberPicker/components/UserGroupSelection.js.map +1 -0
- package/dist/MemberPicker/index.d.ts +3 -3
- package/dist/MemberPicker/index.js +279 -380
- package/dist/MemberPicker/index.js.map +1 -0
- package/dist/MemberPicker/interface.d.ts +2 -2
- package/dist/MemberPicker/interface.js +11 -6
- package/dist/MemberPicker/interface.js.map +1 -0
- package/dist/MemberPicker/tests/mockPort.js +2 -147
- package/dist/MemberPicker/utils/getUsersWithUserId.js +10 -23
- package/dist/MemberPicker/utils/getUsersWithUserId.js.map +1 -0
- package/dist/MemberPicker/utils/index.d.ts +1 -2
- package/dist/MemberPicker/utils/index.js +18 -14
- package/dist/MemberPicker/utils/index.js.map +1 -0
- package/dist/Menu/index.d.ts +2 -2
- package/dist/Menu/index.js +113 -125
- package/dist/Menu/index.js.map +1 -0
- package/dist/Modal/index.d.ts +69 -25
- package/dist/Modal/index.js +329 -339
- package/dist/Modal/index.js.map +1 -0
- package/dist/OverflowCount/index.d.ts +2 -17
- package/dist/OverflowCount/index.js +88 -75
- package/dist/OverflowCount/index.js.map +1 -0
- package/dist/Pagination/PageSizeChanger.d.ts +1 -1
- package/dist/Pagination/PageSizeChanger.js +30 -49
- package/dist/Pagination/PageSizeChanger.js.map +1 -0
- package/dist/Pagination/index.d.ts +2 -3
- package/dist/Pagination/index.js +144 -196
- package/dist/Pagination/index.js.map +1 -0
- package/dist/Pagination/types.js +2 -1
- package/dist/Popconfirm/index.d.ts +17 -5
- package/dist/Popconfirm/index.js +100 -50
- package/dist/Popconfirm/index.js.map +1 -0
- package/dist/Popover/index.d.ts +22 -4
- package/dist/Popover/index.js +92 -17
- package/dist/Popover/index.js.map +1 -0
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.js +46 -74
- package/dist/Progress/index.js.map +1 -0
- package/dist/Radio/components/Group/index.d.ts +3 -3
- package/dist/Radio/components/Group/index.js +51 -63
- package/dist/Radio/components/Group/index.js.map +1 -0
- package/dist/Radio/components/Radio/index.d.ts +1 -2
- package/dist/Radio/components/Radio/index.js +84 -109
- package/dist/Radio/components/Radio/index.js.map +1 -0
- package/dist/Radio/index.d.ts +4 -5
- package/dist/Radio/index.js +9 -4
- package/dist/Radio/index.js.map +1 -0
- package/dist/Radio/interface/radio.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/interface/radioGroup.js +2 -1
- package/dist/RenameInput/index.d.ts +2 -2
- package/dist/RenameInput/index.js +94 -129
- package/dist/RenameInput/index.js.map +1 -0
- package/dist/Result/index.d.ts +5 -5
- package/dist/Result/index.js +122 -116
- package/dist/Result/index.js.map +1 -0
- package/dist/Result/noFound.d.ts +1 -1
- package/dist/Result/noFound.js +36 -33
- package/dist/Result/noFound.js.map +1 -0
- package/dist/Result/serverError.d.ts +1 -1
- package/dist/Result/serverError.js +36 -33
- package/dist/Result/serverError.js.map +1 -0
- package/dist/Result/unauthorized.d.ts +1 -1
- package/dist/Result/unauthorized.js +36 -34
- package/dist/Result/unauthorized.js.map +1 -0
- package/dist/Row/index.d.ts +11 -2
- package/dist/Row/index.js +42 -2
- package/dist/Row/index.js.map +1 -0
- package/dist/ScrollArea/index.d.ts +1 -1
- package/dist/ScrollArea/index.js +44 -58
- package/dist/ScrollArea/index.js.map +1 -0
- package/dist/{AldSelect → Select}/BaseSelect.d.ts +13 -3
- package/dist/Select/BaseSelect.js +206 -0
- package/dist/Select/BaseSelect.js.map +1 -0
- package/dist/{AldSelect → Select}/SelectTrigger.d.ts +3 -3
- package/dist/Select/SelectTrigger.js +60 -0
- package/dist/Select/SelectTrigger.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/MultipleResponsiveSelectedSection.d.ts +2 -2
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js +48 -0
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/MultipleSelector.d.ts +3 -3
- package/dist/Select/Selector/MultipleSelector.js +128 -0
- package/dist/Select/Selector/MultipleSelector.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/index.d.ts +2 -2
- package/dist/Select/Selector/index.js +25 -0
- package/dist/Select/Selector/index.js.map +1 -0
- package/dist/{AldSelect → Select}/components/PopupContent.d.ts +2 -2
- package/dist/Select/components/PopupContent.js +25 -0
- package/dist/Select/components/PopupContent.js.map +1 -0
- package/dist/{AldSelect → Select}/components/SearchBox.d.ts +2 -2
- package/dist/Select/components/SearchBox.js +23 -0
- package/dist/Select/components/SearchBox.js.map +1 -0
- package/dist/{AldSelect → Select}/components/Suffix.d.ts +2 -2
- package/dist/Select/components/Suffix.js +36 -0
- package/dist/Select/components/Suffix.js.map +1 -0
- package/dist/Select/hooks/useCache.js +35 -0
- package/dist/Select/hooks/useCache.js.map +1 -0
- package/dist/Select/hooks/useDisplayMenu.js +42 -0
- package/dist/Select/hooks/useDisplayMenu.js.map +1 -0
- package/dist/{AldSelect → Select}/hooks/useLayoutEffect.d.ts +2 -1
- package/dist/Select/hooks/useLayoutEffect.js +2 -0
- package/dist/{AldSelect → Select}/hooks/useOptions.d.ts +1 -1
- package/dist/Select/hooks/useOptions.js +60 -0
- package/dist/Select/hooks/useOptions.js.map +1 -0
- package/dist/{AldSelect → Select}/index.d.ts +2 -2
- package/dist/Select/index.js +151 -0
- package/dist/Select/index.js.map +1 -0
- package/dist/{AldSelect → Select}/interface.d.ts +2 -2
- package/dist/Select/interface.js +2 -0
- package/dist/{AldSelect → Select}/utils/commonUtil.d.ts +0 -1
- package/dist/Select/utils/commonUtil.js +38 -0
- package/dist/Select/utils/commonUtil.js.map +1 -0
- package/dist/Select/utils/getWidthStyle.js +11 -0
- package/dist/Select/utils/getWidthStyle.js.map +1 -0
- package/dist/Select/utils/keyUtil.js +2 -0
- package/dist/{AldSelect → Select}/utils/valueUtil.d.ts +2 -3
- package/dist/Select/utils/valueUtil.js +16 -0
- package/dist/Select/utils/valueUtil.js.map +1 -0
- package/dist/Skeleton/index.d.ts +56 -2
- package/dist/Skeleton/index.js +130 -2
- package/dist/Skeleton/index.js.map +1 -0
- package/dist/Slider/index.d.ts +34 -4
- package/dist/Slider/index.js +98 -8
- package/dist/Slider/index.js.map +1 -0
- package/dist/Space/CompactContext.d.ts +20 -0
- package/dist/Space/CompactContext.js +24 -0
- package/dist/Space/CompactContext.js.map +1 -0
- package/dist/Space/index.d.ts +28 -3
- package/dist/Space/index.js +64 -2
- package/dist/Space/index.js.map +1 -0
- package/dist/Spin/CustomIcon/index.d.ts +3 -3
- package/dist/Spin/CustomIcon/index.js +27 -38
- package/dist/Spin/CustomIcon/index.js.map +1 -0
- package/dist/Spin/index.d.ts +2 -2
- package/dist/Spin/index.js +47 -62
- package/dist/Spin/index.js.map +1 -0
- package/dist/StatusLight/index.d.ts +2 -2
- package/dist/StatusLight/index.js +73 -58
- package/dist/StatusLight/index.js.map +1 -0
- package/dist/Steps/components/CustomDot/index.d.ts +4 -2
- package/dist/Steps/components/CustomDot/index.js +2 -8
- package/dist/Steps/components/ProcessIcon/index.d.ts +1 -2
- package/dist/Steps/components/ProcessIcon/index.js +39 -24
- package/dist/Steps/components/ProcessIcon/index.js.map +1 -0
- package/dist/Steps/components/Step/index.d.ts +2 -14
- package/dist/Steps/components/Step/index.js +28 -41
- package/dist/Steps/components/Step/index.js.map +1 -0
- package/dist/Steps/index.d.ts +13 -33
- package/dist/Steps/index.js +79 -30
- package/dist/Steps/index.js.map +1 -0
- package/dist/Steps/matchMedia.mock.js +2 -18
- package/dist/Switch/index.d.ts +5 -36
- package/dist/Switch/index.js +62 -67
- package/dist/Switch/index.js.map +1 -0
- package/dist/Switch/test/index.js +2 -43
- package/dist/Table/components/Cell.d.ts +1 -2
- package/dist/Table/components/Cell.js +40 -41
- package/dist/Table/components/Cell.js.map +1 -0
- package/dist/Table/components/DndWrapper.d.ts +1 -1
- package/dist/Table/components/DndWrapper.js +27 -35
- package/dist/Table/components/DndWrapper.js.map +1 -0
- package/dist/Table/components/ErrorBoundary.d.ts +4 -2
- package/dist/Table/components/ErrorBoundary.js +33 -61
- package/dist/Table/components/ErrorBoundary.js.map +1 -0
- package/dist/Table/components/ExpandCell.d.ts +2 -2
- package/dist/Table/components/ExpandCell.js +61 -62
- package/dist/Table/components/ExpandCell.js.map +1 -0
- package/dist/Table/components/Footer/index.d.ts +1 -2
- package/dist/Table/components/Footer/index.js +75 -81
- package/dist/Table/components/Footer/index.js.map +1 -0
- package/dist/Table/components/Header.d.ts +1 -2
- package/dist/Table/components/Header.js +62 -68
- package/dist/Table/components/Header.js.map +1 -0
- package/dist/Table/helper.d.ts +6 -7
- package/dist/Table/helper.js +101 -155
- package/dist/Table/helper.js.map +1 -0
- package/dist/Table/hooks/useExpandable.d.ts +1 -1
- package/dist/Table/hooks/useExpandable.js +125 -172
- package/dist/Table/hooks/useExpandable.js.map +1 -0
- package/dist/Table/hooks/useFixed.d.ts +1 -2
- package/dist/Table/hooks/useFixed.js +45 -54
- package/dist/Table/hooks/useFixed.js.map +1 -0
- package/dist/Table/hooks/useRowDnd.d.ts +1 -1
- package/dist/Table/hooks/useRowDnd.js +156 -260
- package/dist/Table/hooks/useRowDnd.js.map +1 -0
- package/dist/Table/hooks/useRowSelection.d.ts +1 -1
- package/dist/Table/hooks/useRowSelection.js +268 -389
- package/dist/Table/hooks/useRowSelection.js.map +1 -0
- package/dist/Table/hooks/useScroll.d.ts +3 -4
- package/dist/Table/hooks/useScroll.js +92 -137
- package/dist/Table/hooks/useScroll.js.map +1 -0
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +442 -514
- package/dist/Table/index.js.map +1 -0
- package/dist/Table/tests/helper.d.ts +1 -1
- package/dist/Table/tests/helper.js +2 -41
- package/dist/Table/types.d.ts +1 -1
- package/dist/Table/types.js +2 -1
- package/dist/Tabs/TabPane.d.ts +2 -14
- package/dist/Tabs/TabPane.js +13 -6
- package/dist/Tabs/TabPane.js.map +1 -0
- package/dist/Tabs/index.d.ts +26 -52
- package/dist/Tabs/index.js +187 -78
- package/dist/Tabs/index.js.map +1 -0
- package/dist/Tag/index.d.ts +3 -3
- package/dist/Tag/index.js +119 -144
- package/dist/Tag/index.js.map +1 -0
- package/dist/TextLink/index.d.ts +10 -2
- package/dist/TextLink/index.js +49 -24
- package/dist/TextLink/index.js.map +1 -0
- package/dist/Tooltip/index.d.ts +2 -47
- package/dist/Tooltip/index.js +124 -34
- package/dist/Tooltip/index.js.map +1 -0
- package/dist/Tour/index.d.ts +29 -3
- package/dist/Tour/index.js +79 -2
- package/dist/Tour/index.js.map +1 -0
- package/dist/Tree/DirectoryTree.d.ts +3 -4
- package/dist/Tree/DirectoryTree.js +91 -161
- package/dist/Tree/DirectoryTree.js.map +1 -0
- package/dist/Tree/Tree.d.ts +3 -4
- package/dist/Tree/Tree.js +2 -205
- package/dist/Tree/Tree2.js +146 -0
- package/dist/Tree/Tree2.js.map +1 -0
- package/dist/Tree/index.d.ts +7 -10
- package/dist/Tree/index.js +10 -6
- package/dist/Tree/index.js.map +1 -0
- package/dist/Tree/utils/dictUtil.d.ts +1 -1
- package/dist/Tree/utils/dictUtil.js +49 -69
- package/dist/Tree/utils/dictUtil.js.map +1 -0
- package/dist/Tree/utils/dropIndicator.d.ts +1 -2
- package/dist/Tree/utils/dropIndicator.js +31 -35
- package/dist/Tree/utils/dropIndicator.js.map +1 -0
- package/dist/Tree/utils/iconUtil.d.ts +1 -1
- package/dist/Tree/utils/iconUtil.js +61 -65
- package/dist/Tree/utils/iconUtil.js.map +1 -0
- package/dist/Typography/index.d.ts +53 -2
- package/dist/Typography/index.js +85 -2
- package/dist/Typography/index.js.map +1 -0
- package/dist/Upload/index.d.ts +78 -4
- package/dist/Upload/index.js +334 -2
- package/dist/Upload/index.js.map +1 -0
- package/dist/User/index.d.ts +4 -2
- package/dist/User/index.js +31 -26
- package/dist/User/index.js.map +1 -0
- package/dist/Watermark/index.d.ts +2 -2
- package/dist/Watermark/index.js +61 -4
- package/dist/Watermark/index.js.map +1 -0
- package/dist/_utils/SimpleOverflow.d.ts +14 -0
- package/dist/_utils/SimpleOverflow.js +61 -0
- package/dist/_utils/SimpleOverflow.js.map +1 -0
- package/dist/_utils/getUniqId.js +12 -11
- package/dist/_utils/getUniqId.js.map +1 -0
- package/dist/_utils/hooks/useControlledState.js +2 -42
- package/dist/_utils/hooks/useId.js +15 -18
- package/dist/_utils/hooks/useId.js.map +1 -0
- package/dist/_utils/motion.d.ts +2 -3
- package/dist/_utils/motion.js +28 -49
- package/dist/_utils/motion.js.map +1 -0
- package/dist/_utils/prefixCls.d.ts +1 -3
- package/dist/_utils/prefixCls.js +13 -14
- package/dist/_utils/prefixCls.js.map +1 -0
- package/dist/_utils/reactNode.js +17 -15
- package/dist/_utils/reactNode.js.map +1 -0
- package/dist/_utils/statusUtils.d.ts +3 -0
- package/dist/_utils/statusUtils.js +2 -0
- package/dist/_utils/type.js +2 -22
- package/dist/aloudata-design.css +2 -0
- package/dist/index.d.ts +125 -113
- package/dist/index.js +73 -70
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/locale/default.d.ts +5 -3
- package/dist/locale/default.js +18 -17
- package/dist/locale/default.js.map +1 -0
- package/dist/locale/en_US.d.ts +1 -0
- package/dist/locale/en_US.js +63 -69
- package/dist/locale/en_US.js.map +1 -0
- package/dist/locale/zh_CN.d.ts +1 -0
- package/dist/locale/zh_CN.js +63 -69
- package/dist/locale/zh_CN.js.map +1 -0
- package/dist/message/index.js +91 -81
- package/dist/message/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/index.js +209 -218
- package/dist/notification/index.js.map +1 -0
- package/dist/select_structure.png +0 -0
- package/dist/select_use_tip1.png +0 -0
- package/dist/select_use_tip2.png +0 -0
- package/dist/select_use_tip3.png +0 -0
- package/dist/select_use_tip4.png +0 -0
- package/package.json +58 -56
- package/dist/AMenu/style/index.d.ts +0 -2
- package/dist/AMenu/style/index.js +0 -2
- package/dist/AMenu/style/index.less +0 -1
- package/dist/AProgress/style/index.d.ts +0 -2
- package/dist/AProgress/style/index.js +0 -2
- package/dist/AProgress/style/index.less +0 -1
- package/dist/AldSelect/BaseSelect.js +0 -275
- package/dist/AldSelect/SelectTrigger.js +0 -76
- package/dist/AldSelect/Selector/MultipleResponsiveSelectedSection.js +0 -52
- package/dist/AldSelect/Selector/MultipleSelector.js +0 -171
- package/dist/AldSelect/Selector/index.js +0 -30
- package/dist/AldSelect/components/PopupContent.js +0 -28
- package/dist/AldSelect/components/SearchBox.js +0 -23
- package/dist/AldSelect/components/Suffix.js +0 -37
- package/dist/AldSelect/hooks/useCache.js +0 -50
- package/dist/AldSelect/hooks/useDisplayMenu.js +0 -61
- package/dist/AldSelect/hooks/useLayoutEffect.js +0 -17
- package/dist/AldSelect/hooks/useOptions.js +0 -74
- package/dist/AldSelect/index.js +0 -259
- package/dist/AldSelect/interface.js +0 -1
- package/dist/AldSelect/style/color.less +0 -71
- package/dist/AldSelect/style/index.d.ts +0 -1
- package/dist/AldSelect/style/index.js +0 -1
- package/dist/AldSelect/style/index.less +0 -180
- package/dist/AldSelect/style/size.less +0 -72
- package/dist/AldSelect/utils/commonUtil.js +0 -46
- package/dist/AldSelect/utils/getWidthStyle.js +0 -18
- package/dist/AldSelect/utils/keyUtil.js +0 -10
- package/dist/AldSelect/utils/valueUtil.js +0 -131
- package/dist/Alert/style/index.d.ts +0 -2
- package/dist/Alert/style/index.js +0 -2
- package/dist/Alert/style/index.less +0 -1
- package/dist/App/style/index.d.ts +0 -2
- package/dist/App/style/index.js +0 -2
- package/dist/App/style/index.less +0 -1
- package/dist/Avatar/style/index.d.ts +0 -2
- package/dist/Avatar/style/index.js +0 -2
- package/dist/Avatar/style/index.less +0 -23
- package/dist/Badge/style/index.d.ts +0 -2
- package/dist/Badge/style/index.js +0 -2
- package/dist/Badge/style/index.less +0 -50
- package/dist/Breadcrumb/style/index.d.ts +0 -2
- package/dist/Breadcrumb/style/index.js +0 -2
- package/dist/Breadcrumb/style/index.less +0 -37
- package/dist/Button/style/index.d.ts +0 -2
- package/dist/Button/style/index.js +0 -2
- package/dist/Button/style/index.less +0 -24
- package/dist/Button/style/reset.less +0 -9
- package/dist/Button/style/size.less +0 -102
- package/dist/Button/style/type.less +0 -286
- package/dist/Button/style/variables.less +0 -124
- package/dist/Card/style/index.d.ts +0 -2
- package/dist/Card/style/index.js +0 -2
- package/dist/Card/style/index.less +0 -1
- package/dist/Carousel/style/index.d.ts +0 -2
- package/dist/Carousel/style/index.js +0 -2
- package/dist/Carousel/style/index.less +0 -1
- package/dist/Checkbox/style/index.d.ts +0 -2
- package/dist/Checkbox/style/index.js +0 -2
- package/dist/Checkbox/style/index.less +0 -235
- package/dist/Col/style/index.d.ts +0 -2
- package/dist/Col/style/index.js +0 -2
- package/dist/Col/style/index.less +0 -1
- package/dist/Collapse/style/index.d.ts +0 -2
- package/dist/Collapse/style/index.js +0 -2
- package/dist/Collapse/style/index.less +0 -107
- package/dist/ColorPicker/alpha.svg +0 -54
- package/dist/ColorPicker/style/complex.less +0 -199
- package/dist/ColorPicker/style/index.d.ts +0 -2
- package/dist/ColorPicker/style/index.js +0 -2
- package/dist/ColorPicker/style/index.less +0 -190
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
- package/dist/ConfigProvider/defaultRenderEmpty.js +0 -34
- package/dist/ConfigProvider/style/index.d.ts +0 -2
- package/dist/ConfigProvider/style/index.js +0 -2
- package/dist/ConfigProvider/style/index.less +0 -1
- package/dist/DONT-USE-THIS-FILE-NAME +0 -7
- package/dist/DataPreviewTable/style/index.d.ts +0 -2
- package/dist/DataPreviewTable/style/index.js +0 -2
- package/dist/DataPreviewTable/style/index.less +0 -158
- package/dist/DatePicker/style/index.d.ts +0 -2
- package/dist/DatePicker/style/index.js +0 -2
- package/dist/DatePicker/style/index.less +0 -14
- package/dist/Divider/style/index.d.ts +0 -2
- package/dist/Divider/style/index.js +0 -2
- package/dist/Divider/style/index.less +0 -40
- package/dist/DoubleCircleIcon/style/index.less +0 -55
- package/dist/Drawer/style/index.d.ts +0 -2
- package/dist/Drawer/style/index.js +0 -2
- package/dist/Drawer/style/index.less +0 -1
- package/dist/Dropdown/style/index.d.ts +0 -2
- package/dist/Dropdown/style/index.js +0 -2
- package/dist/Dropdown/style/index.less +0 -24
- package/dist/Empty/style/index.d.ts +0 -1
- package/dist/Empty/style/index.js +0 -1
- package/dist/Empty/style/index.less +0 -74
- package/dist/Form/style/index.d.ts +0 -3
- package/dist/Form/style/index.js +0 -3
- package/dist/Form/style/index.less +0 -130
- package/dist/HighlightText/style/index.d.ts +0 -2
- package/dist/HighlightText/style/index.js +0 -2
- package/dist/HighlightText/style/index.less +0 -5
- package/dist/Icon/antdIconfont.d.ts +0 -4
- package/dist/Icon/antdIconfont.js +0 -2
- package/dist/Icon/index.less +0 -24
- package/dist/Icon/style/index.d.ts +0 -2
- package/dist/Icon/style/index.js +0 -2
- package/dist/Icon/style/index.less +0 -24
- package/dist/Icon/svg/Arrow-Right-light-line.svg +0 -5
- package/dist/Icon/svg/Cancelled-Circle-fill.svg +0 -6
- package/dist/Icon/svg/Close-Circle-light-line.svg +0 -5
- package/dist/Icon/svg/In-Progress-fill.svg +0 -8
- package/dist/Icon/svg/Loading-duotone.svg +0 -7
- package/dist/Icon/svg/Sign-light-line.svg +0 -3
- package/dist/Icon/svg/Sort-Ascending-order-Color.svg +0 -5
- package/dist/Icon/svg/Sort-Color.svg +0 -5
- package/dist/Icon/svg/Sort-Descending-order-Color.svg +0 -5
- package/dist/Icon/svg/Times-light-line.svg +0 -5
- package/dist/Icon/svg/Trash-light-line.svg +0 -8
- package/dist/Icon/svg/alert-triangle-duotone.svg +0 -5
- package/dist/Icon/svg/alert-triangle-line.svg +0 -5
- package/dist/Icon/svg/arrow-down-fill.svg +0 -5
- package/dist/Icon/svg/arrow-down-light-line.svg +0 -5
- package/dist/Icon/svg/arrow-down-right-fill.svg +0 -5
- package/dist/Icon/svg/attention-circle-fill.svg +0 -5
- package/dist/Icon/svg/attention-triangle-fill.svg +0 -5
- package/dist/Icon/svg/attention-triangle-light-line.svg +0 -5
- package/dist/Icon/svg/cancel-circle-duotone.svg +0 -8
- package/dist/Icon/svg/check-circle-duotone.svg +0 -8
- package/dist/Icon/svg/check-circle-fill.svg +0 -5
- package/dist/Icon/svg/check-circle-light-line.svg +0 -8
- package/dist/Icon/svg/check-light-line.svg +0 -5
- package/dist/Icon/svg/chevron-down-line.svg +0 -7
- package/dist/Icon/svg/chevron-left-line.svg +0 -7
- package/dist/Icon/svg/chevron-right-line.svg +0 -7
- package/dist/Icon/svg/circle-light-line.svg +0 -9
- package/dist/Icon/svg/close-L-line.svg +0 -3
- package/dist/Icon/svg/close-circle-fill.svg +0 -5
- package/dist/Icon/svg/close-circle-right-fill.svg +0 -5
- package/dist/Icon/svg/close-light-line.svg +0 -5
- package/dist/Icon/svg/close-m-line.svg +0 -7
- package/dist/Icon/svg/danger-fill.svg +0 -5
- package/dist/Icon/svg/drag-light-line.svg +0 -5
- package/dist/Icon/svg/drag-line.svg +0 -7
- package/dist/Icon/svg/ellipsis.svg +0 -6
- package/dist/Icon/svg/eye-off-line.svg +0 -7
- package/dist/Icon/svg/eye-on-line.svg +0 -15
- package/dist/Icon/svg/fold-down-fill.svg +0 -8
- package/dist/Icon/svg/fold-up-fill.svg +0 -8
- package/dist/Icon/svg/info-circle-duotone.svg +0 -5
- package/dist/Icon/svg/info-circle-line.svg +0 -5
- package/dist/Icon/svg/information-circle-fill.svg +0 -5
- package/dist/Icon/svg/information-circle-light-line.svg +0 -9
- package/dist/Icon/svg/loading-2-line.svg +0 -8
- package/dist/Icon/svg/loading-line.svg +0 -7
- package/dist/Icon/svg/more-vertical-line.svg +0 -7
- package/dist/Icon/svg/search-line.svg +0 -7
- package/dist/Icon/svg/triangle-light-line.svg +0 -5
- package/dist/Icon/svg/user.svg +0 -4
- package/dist/Icon/svg/userGroup.svg +0 -7
- package/dist/IconButton/style/index.d.ts +0 -2
- package/dist/IconButton/style/index.js +0 -2
- package/dist/IconButton/style/index.less +0 -148
- package/dist/Input/style/index.d.ts +0 -2
- package/dist/Input/style/index.js +0 -2
- package/dist/Input/style/index.less +0 -13
- package/dist/Input/style/reset.less +0 -22
- package/dist/Input/style/size.less +0 -82
- package/dist/Input/style/status.less +0 -99
- package/dist/InputNumber/style/index.d.ts +0 -2
- package/dist/InputNumber/style/index.js +0 -2
- package/dist/InputNumber/style/index.less +0 -330
- package/dist/InputSearch/style/index.d.ts +0 -2
- package/dist/InputSearch/style/index.js +0 -2
- package/dist/InputSearch/style/index.less +0 -91
- package/dist/Layout/style/index.d.ts +0 -2
- package/dist/Layout/style/index.js +0 -2
- package/dist/Layout/style/index.less +0 -1
- package/dist/List/style/index.d.ts +0 -2
- package/dist/List/style/index.js +0 -2
- package/dist/List/style/index.less +0 -120
- package/dist/LogicTree/style/DisplayLogicItem.less +0 -54
- package/dist/LogicTree/style/LoginItem.less +0 -206
- package/dist/LogicTree/style/index.d.ts +0 -2
- package/dist/LogicTree/style/index.js +0 -2
- package/dist/LogicTree/style/index.less +0 -12
- package/dist/MemberPicker/assets/default_user_photo.svg +0 -7
- package/dist/MemberPicker/style/index.d.ts +0 -2
- package/dist/MemberPicker/style/index.js +0 -2
- package/dist/MemberPicker/style/index.less +0 -365
- package/dist/Menu/style/index.d.ts +0 -2
- package/dist/Menu/style/index.js +0 -2
- package/dist/Menu/style/index.less +0 -146
- package/dist/Modal/style/index.d.ts +0 -2
- package/dist/Modal/style/index.js +0 -2
- package/dist/Modal/style/index.less +0 -7
- package/dist/Modal/style/modal.less +0 -191
- package/dist/Modal/style/modalConfirm.less +0 -89
- package/dist/Modal/style/polyfill/animate.less +0 -244
- package/dist/Modal/style/polyfill/index.less +0 -54
- package/dist/OverflowCount/style/index.d.ts +0 -2
- package/dist/OverflowCount/style/index.js +0 -2
- package/dist/OverflowCount/style/index.less +0 -52
- package/dist/Pagination/style/index.d.ts +0 -2
- package/dist/Pagination/style/index.js +0 -2
- package/dist/Pagination/style/index.less +0 -45
- package/dist/Popconfirm/style/index.d.ts +0 -2
- package/dist/Popconfirm/style/index.js +0 -2
- package/dist/Popconfirm/style/index.less +0 -81
- package/dist/Popover/style/index.d.ts +0 -2
- package/dist/Popover/style/index.js +0 -2
- package/dist/Popover/style/index.less +0 -73
- package/dist/Progress/style/index.d.ts +0 -2
- package/dist/Progress/style/index.js +0 -2
- package/dist/Progress/style/index.less +0 -57
- package/dist/Radio/style/index.d.ts +0 -2
- package/dist/Radio/style/index.js +0 -2
- package/dist/Radio/style/index.less +0 -603
- package/dist/RenameInput/style/index.d.ts +0 -2
- package/dist/RenameInput/style/index.js +0 -2
- package/dist/RenameInput/style/index.less +0 -66
- package/dist/Result/style/index.d.ts +0 -2
- package/dist/Result/style/index.js +0 -2
- package/dist/Result/style/index.less +0 -104
- package/dist/Row/style/index.d.ts +0 -2
- package/dist/Row/style/index.js +0 -2
- package/dist/Row/style/index.less +0 -1
- package/dist/ScrollArea/style/index.d.ts +0 -2
- package/dist/ScrollArea/style/index.js +0 -2
- package/dist/ScrollArea/style/index.less +0 -54
- package/dist/Skeleton/style/index.d.ts +0 -2
- package/dist/Skeleton/style/index.js +0 -2
- package/dist/Skeleton/style/index.less +0 -91
- package/dist/Slider/style/index.d.ts +0 -2
- package/dist/Slider/style/index.js +0 -2
- package/dist/Slider/style/index.less +0 -68
- package/dist/Space/style/index.d.ts +0 -2
- package/dist/Space/style/index.js +0 -2
- package/dist/Space/style/index.less +0 -1
- package/dist/Spin/style/customIcon.less +0 -69
- package/dist/Spin/style/index.d.ts +0 -2
- package/dist/Spin/style/index.js +0 -2
- package/dist/Spin/style/index.less +0 -24
- package/dist/StatusLight/style/index.d.ts +0 -2
- package/dist/StatusLight/style/index.js +0 -2
- package/dist/StatusLight/style/index.less +0 -99
- package/dist/Steps/style/index.d.ts +0 -2
- package/dist/Steps/style/index.js +0 -2
- package/dist/Steps/style/index.less +0 -350
- package/dist/Switch/style/index.d.ts +0 -2
- package/dist/Switch/style/index.js +0 -2
- package/dist/Switch/style/index.less +0 -212
- package/dist/Switch/style/status.less +0 -12
- package/dist/Table/style/index.d.ts +0 -2
- package/dist/Table/style/index.js +0 -2
- package/dist/Table/style/index.less +0 -421
- package/dist/Tabs/style/index.d.ts +0 -2
- package/dist/Tabs/style/index.js +0 -2
- package/dist/Tabs/style/index.less +0 -262
- package/dist/Tag/style/index.d.ts +0 -2
- package/dist/Tag/style/index.js +0 -2
- package/dist/Tag/style/index.less +0 -69
- package/dist/TextLink/style/index.d.ts +0 -2
- package/dist/TextLink/style/index.js +0 -2
- package/dist/TextLink/style/index.less +0 -15
- package/dist/TextLink/style/size.less +0 -37
- package/dist/TextLink/style/type.less +0 -60
- package/dist/Tooltip/style/index.d.ts +0 -2
- package/dist/Tooltip/style/index.js +0 -2
- package/dist/Tooltip/style/index.less +0 -25
- package/dist/Tour/style/index.d.ts +0 -2
- package/dist/Tour/style/index.js +0 -2
- package/dist/Tour/style/index.less +0 -1
- package/dist/Tree/demo/asyncLoad/index.d.ts +0 -3
- package/dist/Tree/demo/asyncLoad/index.js +0 -76
- package/dist/Tree/demo/basic/index.d.ts +0 -3
- package/dist/Tree/demo/basic/index.js +0 -42
- package/dist/Tree/demo/directoryTree/index.d.ts +0 -3
- package/dist/Tree/demo/directoryTree/index.js +0 -40
- package/dist/Tree/demo/drag/index.d.ts +0 -3
- package/dist/Tree/demo/drag/index.js +0 -118
- package/dist/Tree/demo/filter/index.d.ts +0 -3
- package/dist/Tree/demo/filter/index.js +0 -64
- package/dist/Tree/style/checkbox.less +0 -237
- package/dist/Tree/style/directory.less +0 -68
- package/dist/Tree/style/indent.less +0 -11
- package/dist/Tree/style/index.d.ts +0 -2
- package/dist/Tree/style/index.js +0 -2
- package/dist/Tree/style/index.less +0 -173
- package/dist/Tree/style/mixin.less +0 -322
- package/dist/Tree/style/reset.less +0 -26
- package/dist/Tree/style/rtl.less +0 -68
- package/dist/Tree/style/var.less +0 -42
- package/dist/Typography/style/index.d.ts +0 -2
- package/dist/Typography/style/index.js +0 -2
- package/dist/Typography/style/index.less +0 -1
- package/dist/Upload/style/index.d.ts +0 -2
- package/dist/Upload/style/index.js +0 -2
- package/dist/Upload/style/index.less +0 -1
- package/dist/User/style/index.d.ts +0 -2
- package/dist/User/style/index.js +0 -2
- package/dist/User/style/index.less +0 -49
- package/dist/Watermark/style/index.d.ts +0 -2
- package/dist/Watermark/style/index.js +0 -2
- package/dist/Watermark/style/index.less +0 -1
- package/dist/_utils/hooks/usePrefixCls.d.ts +0 -2
- package/dist/_utils/hooks/usePrefixCls.js +0 -10
- package/dist/_utils/transformIconToBase64Url.d.ts +0 -2
- package/dist/_utils/transformIconToBase64Url.js +0 -6
- package/dist/ald.min.css +0 -5
- package/dist/index.less +0 -64
- package/dist/message/style/index.d.ts +0 -2
- package/dist/message/style/index.js +0 -2
- package/dist/message/style/index.less +0 -73
- package/dist/notification/demo/index.d.ts +0 -3
- package/dist/notification/demo/index.js +0 -43
- package/dist/notification/style/index.d.ts +0 -2
- package/dist/notification/style/index.js +0 -2
- package/dist/notification/style/index.less +0 -53
- package/dist/style/color/bezierEasing.less +0 -110
- package/dist/style/color/colorPalette.less +0 -84
- package/dist/style/color/colors.less +0 -162
- package/dist/style/color/tinyColor.less +0 -1184
- package/dist/style/components/toastify.css +0 -855
- package/dist/style/core/index.less +0 -2
- package/dist/style/core/motion/fade.less +0 -34
- package/dist/style/core/motion/move.less +0 -129
- package/dist/style/core/motion/other.less +0 -48
- package/dist/style/core/motion/slide.less +0 -131
- package/dist/style/core/motion/zoom.less +0 -179
- package/dist/style/core/motion.less +0 -22
- package/dist/style/index.d.ts +0 -1
- package/dist/style/index.js +0 -1
- package/dist/style/index.less +0 -31
- package/dist/style/mixins/index.less +0 -27
- package/dist/style/mixins/motion.less +0 -33
- package/dist/style/themes/default/default.less +0 -24
- package/dist/style/themes/default/index.less +0 -34
- package/dist/style/themes/default/scrollBar.less +0 -21
- package/dist/style/themes/default/themeColor.module.less +0 -437
- package/dist/style/themes/default/themeColor.module.less.d.ts +0 -182
- package/dist/style/var/default.css +0 -1271
- /package/dist/{AldSelect → Select}/hooks/useCache.d.ts +0 -0
- /package/dist/{AldSelect → Select}/hooks/useDisplayMenu.d.ts +0 -0
- /package/dist/{AldSelect → Select}/utils/getWidthStyle.d.ts +0 -0
- /package/dist/{AldSelect → Select}/utils/keyUtil.d.ts +0 -0
package/dist/Table/index.js
CHANGED
|
@@ -1,518 +1,446 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import _ from
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
import ExpandCell from "./components/ExpandCell";
|
|
21
|
-
import Footer from "./components/Footer";
|
|
22
|
-
import DndWrapper from "./components/DndWrapper";
|
|
23
|
-
import { getRowKey, getTableColumns, prefixCls } from "./helper";
|
|
24
|
-
import useExpandable, { getExpandableConfig } from "./hooks/useExpandable";
|
|
25
|
-
import useFixed from "./hooks/useFixed";
|
|
26
|
-
import useRowSelection from "./hooks/useRowSelection";
|
|
27
|
-
import useScroll from "./hooks/useScroll";
|
|
28
|
-
import useRowDnd from "./hooks/useRowDnd";
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
2
|
+
import Empty from "../Empty/index.js";
|
|
3
|
+
import CustomSpin from "../Spin/index.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { getRowKey, getTableColumns, prefixCls } from "./helper.js";
|
|
6
|
+
import useExpandable, { getExpandableConfig } from "./hooks/useExpandable.js";
|
|
7
|
+
import ExpandCell from "./components/ExpandCell.js";
|
|
8
|
+
import TableFooter from "./components/Footer/index.js";
|
|
9
|
+
import DndWrapper from "./components/DndWrapper.js";
|
|
10
|
+
import useFixed from "./hooks/useFixed.js";
|
|
11
|
+
import useRowSelection from "./hooks/useRowSelection.js";
|
|
12
|
+
import useScroll from "./hooks/useScroll.js";
|
|
13
|
+
import useRowDnd from "./hooks/useRowDnd.js";
|
|
14
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import _ from "lodash";
|
|
17
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
18
|
+
import { flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
|
|
19
|
+
//#region src/Table/index.tsx
|
|
29
20
|
var HEADER_HEIGHT = 41;
|
|
30
21
|
var FOOTER_HEIGHT = 52;
|
|
22
|
+
function TableResizeWrapper({ children, onResize }) {
|
|
23
|
+
const ref = useRef(null);
|
|
24
|
+
const onResizeRef = useRef(onResize);
|
|
25
|
+
onResizeRef.current = onResize;
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const el = ref.current;
|
|
28
|
+
if (!el) return;
|
|
29
|
+
let prevW = 0;
|
|
30
|
+
let prevH = 0;
|
|
31
|
+
const ro = new window.ResizeObserver(() => {
|
|
32
|
+
const w = el.offsetWidth;
|
|
33
|
+
const h = el.offsetHeight;
|
|
34
|
+
if (w === prevW && h === prevH) return;
|
|
35
|
+
prevW = w;
|
|
36
|
+
prevH = h;
|
|
37
|
+
onResizeRef.current(w, h);
|
|
38
|
+
});
|
|
39
|
+
ro.observe(el);
|
|
40
|
+
return () => ro.disconnect();
|
|
41
|
+
}, []);
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
ref,
|
|
44
|
+
style: { height: "100%" },
|
|
45
|
+
children
|
|
46
|
+
});
|
|
47
|
+
}
|
|
31
48
|
function Table(props, ref) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
key: rowId,
|
|
425
|
-
"data-index": virtual ? rowData.index : rowIndex,
|
|
426
|
-
className: classnames(prefixCls('tr'), (_classnames5 = {}, _defineProperty(_classnames5, prefixCls('row-hover'), rowDndInfo.draggingRowId ? undefined : hoverRowId === rowId), _defineProperty(_classnames5, prefixCls('row-dragging'), rowDndInfo.draggingRowId === rowId), _defineProperty(_classnames5, prefixCls('no-border-tr'), isShowPagination && rowIndex === rows.length - 1), _classnames5), rowClassName(row.original, rowIndex)),
|
|
427
|
-
ref: function ref(node) {
|
|
428
|
-
// 将引用同时传递给 rowVirtualizer 和 rowDnd
|
|
429
|
-
rowVirtualizer.measureElement(node);
|
|
430
|
-
|
|
431
|
-
// 如果启用了行拖拽,则设置行引用
|
|
432
|
-
if (rowDnd && node) {
|
|
433
|
-
var rowRef = rowDndInfo.getRowRef(row.original, rowIndex);
|
|
434
|
-
if (rowRef) {
|
|
435
|
-
rowRef.current = node;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
onClick: onClickRow(row.original, rowIndex),
|
|
440
|
-
onMouseEnter: function onMouseEnter() {
|
|
441
|
-
return setHoverRowId(rowId);
|
|
442
|
-
},
|
|
443
|
-
onMouseLeave: function onMouseLeave() {
|
|
444
|
-
return setHoverRowId(null);
|
|
445
|
-
},
|
|
446
|
-
style: virtual ? {
|
|
447
|
-
position: 'absolute',
|
|
448
|
-
transform: "translateY(".concat(rowData.start, "px)")
|
|
449
|
-
} : {}
|
|
450
|
-
}, content);
|
|
451
|
-
rowList.push(rowNode);
|
|
452
|
-
|
|
453
|
-
// 渲染额外展开的行
|
|
454
|
-
var expandItem = expandableInfo.expandItemMap[rowId];
|
|
455
|
-
var customExpandRowKey = expandableInfo.isExpandable && (expandItem === null || expandItem === void 0 ? void 0 : expandItem.customExpandRowKey);
|
|
456
|
-
var hasCustomExpandRowKey = !!customExpandRowKey;
|
|
457
|
-
if (hasCustomExpandRowKey) {
|
|
458
|
-
// 在该行的下面追加自定义展开行
|
|
459
|
-
var expandedRowRender = expandableConfig.expandedRowRender;
|
|
460
|
-
if (typeof expandedRowRender !== 'function') {
|
|
461
|
-
console.error('expandedRowRender must be a function');
|
|
462
|
-
return rowList;
|
|
463
|
-
}
|
|
464
|
-
if ((expandItem === null || expandItem === void 0 ? void 0 : expandItem.isExpanded) !== true) {
|
|
465
|
-
return rowList;
|
|
466
|
-
}
|
|
467
|
-
var customRow = /*#__PURE__*/React.createElement("div", {
|
|
468
|
-
key: customExpandRowKey,
|
|
469
|
-
className: classnames(prefixCls('tr')),
|
|
470
|
-
onClick: onClickRow(row.original, rowIndex)
|
|
471
|
-
}, expandedRowRender(row.original, expandItem.level + 1));
|
|
472
|
-
rowList.push(customRow);
|
|
473
|
-
}
|
|
474
|
-
return rowList;
|
|
475
|
-
}, []));
|
|
476
|
-
var tableContentHeight = useMemo(function () {
|
|
477
|
-
return y && totalSize ? totalSize.height - HEADER_HEIGHT - (isShowFooter ? FOOTER_HEIGHT : 0) : 'auto';
|
|
478
|
-
}, [y, totalSize, isShowFooter]);
|
|
479
|
-
var tableContent = /*#__PURE__*/React.createElement(Spin, {
|
|
480
|
-
spinning: !!loading
|
|
481
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
482
|
-
className: prefixCls('content')
|
|
483
|
-
}, headerContent, /*#__PURE__*/React.createElement("div", {
|
|
484
|
-
style: {
|
|
485
|
-
height: tableContentHeight,
|
|
486
|
-
position: virtual ? 'relative' : undefined
|
|
487
|
-
},
|
|
488
|
-
className: classnames(prefixCls('body-scroll'), (_classnames6 = {}, _defineProperty(_classnames6, prefixCls('scroll-y'), y !== undefined), _defineProperty(_classnames6, prefixCls('scroll-hidden'), isEmpty), _classnames6)),
|
|
489
|
-
ref: bodyRef,
|
|
490
|
-
onScroll: onBodyScroll
|
|
491
|
-
}, bodyContent), isShowFooter && /*#__PURE__*/React.createElement(Footer, {
|
|
492
|
-
rowSelectionInfo: rowSelectionInfo,
|
|
493
|
-
isShowPagination: isShowPagination,
|
|
494
|
-
pagination: pagination,
|
|
495
|
-
scroll: scroll,
|
|
496
|
-
scrollToFirstRow: scrollToFirstRow
|
|
497
|
-
})));
|
|
498
|
-
var tableStyle = {};
|
|
499
|
-
if (y) {
|
|
500
|
-
tableStyle.height = y;
|
|
501
|
-
}
|
|
502
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
503
|
-
className: classnames(prefixCls('container'), _defineProperty({}, prefixCls('bordered'), bordered)),
|
|
504
|
-
style: tableStyle
|
|
505
|
-
}, /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
506
|
-
onResize: function onResize(size) {
|
|
507
|
-
// 在 Modal 中使用表格组件,偶现 width 和 offsetWidth 不一致的情况,导致表格宽度不正确,具体原因未找到
|
|
508
|
-
// 实践发现 offsetWidth 一直是正确的宽度
|
|
509
|
-
setTotalSize({
|
|
510
|
-
width: size.offsetWidth,
|
|
511
|
-
height: size.offsetHeight
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
515
|
-
className: classnames(prefixCls('main'), (_classnames8 = {}, _defineProperty(_classnames8, prefixCls('overflow-hidden'), !!y), _defineProperty(_classnames8, prefixCls('ping-left'), isPingLeft), _defineProperty(_classnames8, prefixCls('ping-right'), isPingRight), _classnames8))
|
|
516
|
-
}, rowDnd ? /*#__PURE__*/React.createElement(DndWrapper, null, tableContent) : tableContent)));
|
|
49
|
+
const { data, bordered, rowKey, columnSizing, sticky, loading, pagination, scroll = {}, empty: emptyComponent, virtual = false, rowClassName = () => "", onRowClick, onError, onSort, expandable, rowDnd } = props;
|
|
50
|
+
const [totalSize, setTotalSize] = useState(null);
|
|
51
|
+
const [hoverRowId, setHoverRowId] = useState(null);
|
|
52
|
+
const { y } = scroll;
|
|
53
|
+
const { containerWidth, onBodyScroll, headerRef, bodyRef, isPingLeft, isPingRight, scrollbarWidth, changeIsPing } = useScroll({
|
|
54
|
+
totalSize,
|
|
55
|
+
scroll
|
|
56
|
+
});
|
|
57
|
+
const scrollToFirstRow = useCallback(() => {
|
|
58
|
+
if (!bodyRef.current) return;
|
|
59
|
+
bodyRef.current.scrollTop = 0;
|
|
60
|
+
}, [bodyRef]);
|
|
61
|
+
useImperativeHandle(ref, () => ({ scrollToFirstRow }));
|
|
62
|
+
const expandableInfo = useExpandable({
|
|
63
|
+
expandable,
|
|
64
|
+
data,
|
|
65
|
+
rowKey
|
|
66
|
+
});
|
|
67
|
+
const expandableConfig = getExpandableConfig(expandable);
|
|
68
|
+
const rowSelectionInfo = useRowSelection({
|
|
69
|
+
...props,
|
|
70
|
+
data: expandableInfo.data,
|
|
71
|
+
isExpandable: expandableInfo.isExpandable,
|
|
72
|
+
flattenData: expandableInfo.flattenData
|
|
73
|
+
});
|
|
74
|
+
const rowDndInfo = useRowDnd({
|
|
75
|
+
...props,
|
|
76
|
+
columns: rowSelectionInfo.columns,
|
|
77
|
+
data: expandableInfo.data
|
|
78
|
+
});
|
|
79
|
+
const tableColumns = useMemo(() => {
|
|
80
|
+
return getTableColumns({
|
|
81
|
+
columns: rowDndInfo.columns,
|
|
82
|
+
containerWidth: containerWidth || 0,
|
|
83
|
+
onError,
|
|
84
|
+
onSort
|
|
85
|
+
});
|
|
86
|
+
}, [
|
|
87
|
+
containerWidth,
|
|
88
|
+
onError,
|
|
89
|
+
onSort,
|
|
90
|
+
rowDndInfo.columns
|
|
91
|
+
]);
|
|
92
|
+
const tableInstance = useReactTable({
|
|
93
|
+
columns: tableColumns,
|
|
94
|
+
data: rowDndInfo.tableData,
|
|
95
|
+
getCoreRowModel: getCoreRowModel(),
|
|
96
|
+
getRowId: (row, index) => {
|
|
97
|
+
return getRowKey(row, rowKey, index);
|
|
98
|
+
},
|
|
99
|
+
columnResizeMode: "onChange"
|
|
100
|
+
});
|
|
101
|
+
const headerGroups = tableInstance.getHeaderGroups();
|
|
102
|
+
const columnWidths = headerGroups[0].headers.map((header) => header.getSize());
|
|
103
|
+
const getColumnFixedInfo = useFixed({
|
|
104
|
+
columnWidths,
|
|
105
|
+
tableColumns,
|
|
106
|
+
y,
|
|
107
|
+
scrollbarWidth
|
|
108
|
+
});
|
|
109
|
+
const { rows } = tableInstance.getRowModel();
|
|
110
|
+
const isStickyWork = !!sticky && y === void 0;
|
|
111
|
+
const headerStyle = {};
|
|
112
|
+
if (isStickyWork && _.get(sticky, "offsetHeader")) headerStyle.top = _.get(sticky, "offsetHeader", 0);
|
|
113
|
+
const totalColumnsWidth = _.sum(columnWidths);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
changeIsPing(totalColumnsWidth);
|
|
116
|
+
}, [changeIsPing, totalColumnsWidth]);
|
|
117
|
+
const renderHeaderCell = useCallback((header, index) => {
|
|
118
|
+
const showResizer = columnSizing && !(!!rowSelectionInfo.isRowSelectionEnabled && index === 0);
|
|
119
|
+
const { className: fixedClassName, style: fixedStyle } = getColumnFixedInfo(index, true);
|
|
120
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
121
|
+
className: cn(prefixCls("th"), fixedClassName),
|
|
122
|
+
style: {
|
|
123
|
+
width: header.getSize(),
|
|
124
|
+
...fixedStyle
|
|
125
|
+
},
|
|
126
|
+
children: [flexRender(header.column.columnDef.header, header.getContext()), showResizer && /* @__PURE__ */ jsx("div", {
|
|
127
|
+
onMouseDown: header.getResizeHandler(),
|
|
128
|
+
onTouchStart: header.getResizeHandler(),
|
|
129
|
+
className: cn(prefixCls("resizer"), { [prefixCls("self-resizing")]: header.column.getIsResizing() })
|
|
130
|
+
})]
|
|
131
|
+
}, header.id);
|
|
132
|
+
}, [
|
|
133
|
+
columnSizing,
|
|
134
|
+
rowSelectionInfo,
|
|
135
|
+
getColumnFixedInfo
|
|
136
|
+
]);
|
|
137
|
+
const visibleColumns = tableInstance.getVisibleLeafColumns();
|
|
138
|
+
const columnVirtualizer = useVirtualizer({
|
|
139
|
+
count: tableColumns.length,
|
|
140
|
+
estimateSize: (index) => visibleColumns[index].getSize(),
|
|
141
|
+
getScrollElement: () => bodyRef.current,
|
|
142
|
+
horizontal: true,
|
|
143
|
+
overscan: 5
|
|
144
|
+
});
|
|
145
|
+
const virtualColumns = columnVirtualizer.getVirtualItems();
|
|
146
|
+
let virtualPaddingLeft;
|
|
147
|
+
let virtualPaddingRight;
|
|
148
|
+
if (columnVirtualizer && virtualColumns?.length) {
|
|
149
|
+
virtualPaddingLeft = virtualColumns[0]?.start ?? 0;
|
|
150
|
+
virtualPaddingRight = columnVirtualizer.getTotalSize() - (virtualColumns[virtualColumns.length - 1]?.end ?? 0);
|
|
151
|
+
}
|
|
152
|
+
const headerContent = /* @__PURE__ */ jsx("div", {
|
|
153
|
+
className: cn(prefixCls("header"), {
|
|
154
|
+
[prefixCls("overflow-x")]: true,
|
|
155
|
+
[prefixCls("sticky")]: isStickyWork,
|
|
156
|
+
[prefixCls("resizing")]: tableInstance.getState().columnSizingInfo.isResizingColumn
|
|
157
|
+
}),
|
|
158
|
+
ref: headerRef,
|
|
159
|
+
style: headerStyle,
|
|
160
|
+
children: _.map(headerGroups, (headerGroup) => {
|
|
161
|
+
const allHeaderCells = headerGroup.headers;
|
|
162
|
+
const virtualColumns = columnVirtualizer.getVirtualItems();
|
|
163
|
+
const middleVirtualColumns = [];
|
|
164
|
+
const leftFixedColumns = [];
|
|
165
|
+
const rightFixedColumns = [];
|
|
166
|
+
let content = null;
|
|
167
|
+
if (virtual) {
|
|
168
|
+
_.forEach(allHeaderCells, (header, index) => {
|
|
169
|
+
const fixedInfo = getColumnFixedInfo(index);
|
|
170
|
+
if (fixedInfo.fixed === "left") leftFixedColumns.push({
|
|
171
|
+
header,
|
|
172
|
+
index
|
|
173
|
+
});
|
|
174
|
+
if (fixedInfo.fixed === "right") rightFixedColumns.push({
|
|
175
|
+
header,
|
|
176
|
+
index
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
_.forEach(virtualColumns, (virtualColumn) => {
|
|
180
|
+
const colIndex = virtualColumn.index;
|
|
181
|
+
const fixedInfo = getColumnFixedInfo(colIndex);
|
|
182
|
+
if (fixedInfo.fixed !== "left" && fixedInfo.fixed !== "right") middleVirtualColumns.push(virtualColumn);
|
|
183
|
+
});
|
|
184
|
+
content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
185
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx("div", {
|
|
186
|
+
className: prefixCls("virtual-padding-left"),
|
|
187
|
+
style: { width: virtualPaddingLeft }
|
|
188
|
+
}) : null,
|
|
189
|
+
leftFixedColumns.map(({ header, index }) => {
|
|
190
|
+
return renderHeaderCell(header, index);
|
|
191
|
+
}),
|
|
192
|
+
_.map(middleVirtualColumns, (virtualColumn) => {
|
|
193
|
+
const header = allHeaderCells[virtualColumn.index];
|
|
194
|
+
return renderHeaderCell(header, virtualColumn.index);
|
|
195
|
+
}),
|
|
196
|
+
rightFixedColumns.map(({ header, index }) => {
|
|
197
|
+
return renderHeaderCell(header, index);
|
|
198
|
+
}),
|
|
199
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx("div", {
|
|
200
|
+
className: prefixCls("virtual-padding-right"),
|
|
201
|
+
style: { width: virtualPaddingRight }
|
|
202
|
+
}) : null
|
|
203
|
+
] });
|
|
204
|
+
} else content = _.map(allHeaderCells, (header, index) => renderHeaderCell(header, index));
|
|
205
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
206
|
+
className: prefixCls("tr"),
|
|
207
|
+
style: { width: totalColumnsWidth },
|
|
208
|
+
children: [content, y !== void 0 && /* @__PURE__ */ jsx("div", {
|
|
209
|
+
className: prefixCls("header-scroll-placeholder"),
|
|
210
|
+
style: { flexBasis: scrollbarWidth }
|
|
211
|
+
})]
|
|
212
|
+
}, headerGroup.id);
|
|
213
|
+
})
|
|
214
|
+
});
|
|
215
|
+
const onClickRow = useCallback((rowData, rowIndex) => () => {
|
|
216
|
+
if (typeof onRowClick !== "function") return;
|
|
217
|
+
if (window.getSelection()?.toString().length !== 0) return;
|
|
218
|
+
onRowClick(rowData, rowIndex);
|
|
219
|
+
}, [onRowClick]);
|
|
220
|
+
const isShowPagination = !!(pagination && (pagination.total > pagination.pageSize || pagination.showSizeChanger));
|
|
221
|
+
const isShowRowSelection = rowSelectionInfo.isShowRowSelectionInFooter;
|
|
222
|
+
const isShowFooter = isShowPagination || isShowRowSelection;
|
|
223
|
+
const isSmallEmpty = totalSize && totalSize.height < 436;
|
|
224
|
+
const isEmpty = rows.length === 0 && !loading;
|
|
225
|
+
const rowVirtualizer = useVirtualizer({
|
|
226
|
+
count: rows.length,
|
|
227
|
+
estimateSize: () => 48,
|
|
228
|
+
getScrollElement: () => totalSize ? bodyRef.current : null,
|
|
229
|
+
measureElement: typeof window !== "undefined" && navigator.userAgent.indexOf("Firefox") === -1 ? (element) => element?.getBoundingClientRect().height : void 0,
|
|
230
|
+
overscan: 5
|
|
231
|
+
});
|
|
232
|
+
const tableRows = virtual ? rowVirtualizer.getVirtualItems() : rows;
|
|
233
|
+
const renderBodyCell = useCallback((row, cell, colIndex) => {
|
|
234
|
+
const { className: fixedClassName, style: fixedStyle } = getColumnFixedInfo(colIndex);
|
|
235
|
+
const tdContent = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
236
|
+
return /* @__PURE__ */ jsx("div", {
|
|
237
|
+
className: cn(prefixCls("td"), fixedClassName),
|
|
238
|
+
style: {
|
|
239
|
+
width: cell.column.getSize(),
|
|
240
|
+
...fixedStyle
|
|
241
|
+
},
|
|
242
|
+
children: expandableInfo.isExpandable && colIndex === (rowSelectionInfo.isRowSelectionEnabled ? 1 : 0) ? /* @__PURE__ */ jsx(ExpandCell, {
|
|
243
|
+
expandableInfo,
|
|
244
|
+
expandable,
|
|
245
|
+
data: row.original,
|
|
246
|
+
rowKey,
|
|
247
|
+
children: tdContent
|
|
248
|
+
}) : tdContent
|
|
249
|
+
}, cell.id);
|
|
250
|
+
}, [
|
|
251
|
+
expandableInfo,
|
|
252
|
+
expandable,
|
|
253
|
+
rowKey,
|
|
254
|
+
getColumnFixedInfo,
|
|
255
|
+
rowSelectionInfo.isRowSelectionEnabled
|
|
256
|
+
]);
|
|
257
|
+
const bodyContent = /* @__PURE__ */ jsx("div", {
|
|
258
|
+
className: prefixCls("body"),
|
|
259
|
+
style: {
|
|
260
|
+
width: totalColumnsWidth,
|
|
261
|
+
height: virtual ? rowVirtualizer.getTotalSize() : "auto"
|
|
262
|
+
},
|
|
263
|
+
children: isEmpty ? /* @__PURE__ */ jsxs("div", {
|
|
264
|
+
style: { width: totalSize?.width },
|
|
265
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
266
|
+
style: { visibility: "hidden" },
|
|
267
|
+
children: emptyComponent || /* @__PURE__ */ jsx("div", {
|
|
268
|
+
className: cn(prefixCls("empty"), { [prefixCls("empty-small")]: isSmallEmpty }),
|
|
269
|
+
children: /* @__PURE__ */ jsx(Empty, {
|
|
270
|
+
image: isSmallEmpty ? null : Empty.PRESENTED_IMAGE_SEARCH,
|
|
271
|
+
size: isSmallEmpty ? "small" : void 0
|
|
272
|
+
})
|
|
273
|
+
})
|
|
274
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
275
|
+
"aria-invalid": "true",
|
|
276
|
+
style: {
|
|
277
|
+
position: "absolute",
|
|
278
|
+
top: 40,
|
|
279
|
+
left: 0,
|
|
280
|
+
right: 0,
|
|
281
|
+
bottom: 0
|
|
282
|
+
},
|
|
283
|
+
children: emptyComponent || /* @__PURE__ */ jsx("div", {
|
|
284
|
+
className: cn(prefixCls("empty"), { [prefixCls("empty-small")]: isSmallEmpty }),
|
|
285
|
+
children: /* @__PURE__ */ jsx(Empty, {
|
|
286
|
+
image: isSmallEmpty ? null : Empty.PRESENTED_IMAGE_SEARCH,
|
|
287
|
+
size: isSmallEmpty ? "small" : void 0
|
|
288
|
+
})
|
|
289
|
+
})
|
|
290
|
+
})]
|
|
291
|
+
}) : _.reduce(tableRows, (rowList, rowData, rowIndex) => {
|
|
292
|
+
const row = virtual ? rows[rowData.index] : rowData;
|
|
293
|
+
const allRowCells = row.getVisibleCells();
|
|
294
|
+
let content = null;
|
|
295
|
+
const leftFixedColumns = [];
|
|
296
|
+
const rightFixedColumns = [];
|
|
297
|
+
if (virtual) {
|
|
298
|
+
const virtualColumns = columnVirtualizer.getVirtualItems();
|
|
299
|
+
const middleVirtualColumns = [];
|
|
300
|
+
_.forEach(allRowCells, (cell, index) => {
|
|
301
|
+
const fixedInfo = getColumnFixedInfo(index);
|
|
302
|
+
if (fixedInfo.fixed === "left") leftFixedColumns.push({
|
|
303
|
+
cell,
|
|
304
|
+
index
|
|
305
|
+
});
|
|
306
|
+
if (fixedInfo.fixed === "right") rightFixedColumns.push({
|
|
307
|
+
cell,
|
|
308
|
+
index
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
_.forEach(virtualColumns, (virtualColumn) => {
|
|
312
|
+
const colIndex = virtualColumn.index;
|
|
313
|
+
const fixedInfo = getColumnFixedInfo(colIndex);
|
|
314
|
+
if (fixedInfo.fixed !== "left" && fixedInfo.fixed !== "right") middleVirtualColumns.push(virtualColumn);
|
|
315
|
+
});
|
|
316
|
+
content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
317
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx("div", {
|
|
318
|
+
className: prefixCls("virtual-padding-left"),
|
|
319
|
+
style: { width: virtualPaddingLeft }
|
|
320
|
+
}) : null,
|
|
321
|
+
leftFixedColumns.map(({ cell, index }) => {
|
|
322
|
+
return renderBodyCell(row, cell, index);
|
|
323
|
+
}),
|
|
324
|
+
middleVirtualColumns.map((virtualColumn) => {
|
|
325
|
+
const colIndex = virtualColumn.index;
|
|
326
|
+
const cell = allRowCells[colIndex];
|
|
327
|
+
return renderBodyCell(row, cell, colIndex);
|
|
328
|
+
}),
|
|
329
|
+
rightFixedColumns.map(({ cell, index }) => {
|
|
330
|
+
return renderBodyCell(row, cell, index);
|
|
331
|
+
}),
|
|
332
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx("div", {
|
|
333
|
+
className: prefixCls("virtual-padding-right"),
|
|
334
|
+
style: { width: virtualPaddingRight }
|
|
335
|
+
}) : null
|
|
336
|
+
] });
|
|
337
|
+
} else content = allRowCells.map((cell, index) => renderBodyCell(row, cell, index));
|
|
338
|
+
const rowId = row.id;
|
|
339
|
+
const rowNode = /* @__PURE__ */ jsx("div", {
|
|
340
|
+
"data-index": virtual ? rowData.index : rowIndex,
|
|
341
|
+
className: cn(prefixCls("tr"), {
|
|
342
|
+
[prefixCls("row-hover")]: rowDndInfo.draggingRowId ? void 0 : hoverRowId === rowId,
|
|
343
|
+
[prefixCls("row-dragging")]: rowDndInfo.draggingRowId === rowId,
|
|
344
|
+
[prefixCls("no-border-tr")]: isShowPagination && rowIndex === rows.length - 1
|
|
345
|
+
}, rowClassName(row.original, rowIndex)),
|
|
346
|
+
ref: (node) => {
|
|
347
|
+
if (virtual) rowVirtualizer.measureElement(node);
|
|
348
|
+
if (rowDnd && node) {
|
|
349
|
+
const rowRef = rowDndInfo.getRowRef(row.original, rowIndex);
|
|
350
|
+
if (rowRef) rowRef.current = node;
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
onClick: onClickRow(row.original, rowIndex),
|
|
354
|
+
onMouseEnter: () => setHoverRowId(rowId),
|
|
355
|
+
onMouseLeave: () => setHoverRowId(null),
|
|
356
|
+
style: virtual ? {
|
|
357
|
+
position: "absolute",
|
|
358
|
+
transform: `translateY(${rowData.start}px)`
|
|
359
|
+
} : {},
|
|
360
|
+
children: content
|
|
361
|
+
}, rowId);
|
|
362
|
+
rowList.push(rowNode);
|
|
363
|
+
const expandItem = expandableInfo.expandItemMap[rowId];
|
|
364
|
+
const customExpandRowKey = expandableInfo.isExpandable && expandItem?.customExpandRowKey;
|
|
365
|
+
if (!!customExpandRowKey) {
|
|
366
|
+
const expandedRowRender = expandableConfig.expandedRowRender;
|
|
367
|
+
if (typeof expandedRowRender !== "function") {
|
|
368
|
+
console.error("expandedRowRender must be a function");
|
|
369
|
+
return rowList;
|
|
370
|
+
}
|
|
371
|
+
if (expandItem?.isExpanded !== true) return rowList;
|
|
372
|
+
const customRow = /* @__PURE__ */ jsx("div", {
|
|
373
|
+
className: cn(prefixCls("tr")),
|
|
374
|
+
onClick: onClickRow(row.original, rowIndex),
|
|
375
|
+
children: expandedRowRender(row.original, expandItem.level + 1)
|
|
376
|
+
}, customExpandRowKey);
|
|
377
|
+
rowList.push(customRow);
|
|
378
|
+
}
|
|
379
|
+
return rowList;
|
|
380
|
+
}, [])
|
|
381
|
+
});
|
|
382
|
+
const tableContentHeight = useMemo(() => {
|
|
383
|
+
return y && totalSize ? totalSize.height - HEADER_HEIGHT - (isShowFooter ? FOOTER_HEIGHT : 0) : "auto";
|
|
384
|
+
}, [
|
|
385
|
+
y,
|
|
386
|
+
totalSize,
|
|
387
|
+
isShowFooter
|
|
388
|
+
]);
|
|
389
|
+
const tableContent = /* @__PURE__ */ jsx(CustomSpin, {
|
|
390
|
+
spinning: !!loading,
|
|
391
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
392
|
+
className: prefixCls("content"),
|
|
393
|
+
children: [
|
|
394
|
+
headerContent,
|
|
395
|
+
/* @__PURE__ */ jsx("div", {
|
|
396
|
+
style: {
|
|
397
|
+
height: tableContentHeight,
|
|
398
|
+
position: virtual ? "relative" : void 0
|
|
399
|
+
},
|
|
400
|
+
className: cn(prefixCls("body-scroll"), {
|
|
401
|
+
[prefixCls("scroll-y")]: y !== void 0,
|
|
402
|
+
[prefixCls("scroll-hidden")]: isEmpty
|
|
403
|
+
}),
|
|
404
|
+
ref: bodyRef,
|
|
405
|
+
onScroll: onBodyScroll,
|
|
406
|
+
children: bodyContent
|
|
407
|
+
}),
|
|
408
|
+
isShowFooter && /* @__PURE__ */ jsx(TableFooter, {
|
|
409
|
+
rowSelectionInfo,
|
|
410
|
+
isShowPagination,
|
|
411
|
+
pagination,
|
|
412
|
+
scroll,
|
|
413
|
+
scrollToFirstRow
|
|
414
|
+
})
|
|
415
|
+
]
|
|
416
|
+
})
|
|
417
|
+
});
|
|
418
|
+
const tableStyle = {};
|
|
419
|
+
if (y) tableStyle.height = y;
|
|
420
|
+
return /* @__PURE__ */ jsx("div", {
|
|
421
|
+
className: cn(prefixCls("container"), { [prefixCls("bordered")]: bordered }),
|
|
422
|
+
style: tableStyle,
|
|
423
|
+
children: /* @__PURE__ */ jsx(TableResizeWrapper, {
|
|
424
|
+
onResize: (w, h) => setTotalSize((prev) => {
|
|
425
|
+
if (prev && prev.width === w && prev.height === h) return prev;
|
|
426
|
+
return {
|
|
427
|
+
width: w,
|
|
428
|
+
height: h
|
|
429
|
+
};
|
|
430
|
+
}),
|
|
431
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
432
|
+
className: cn(prefixCls("main"), {
|
|
433
|
+
[prefixCls("overflow-hidden")]: !!y,
|
|
434
|
+
[prefixCls("ping-left")]: isPingLeft,
|
|
435
|
+
[prefixCls("ping-right")]: isPingRight
|
|
436
|
+
}),
|
|
437
|
+
children: rowDnd ? /* @__PURE__ */ jsx(DndWrapper, { children: tableContent }) : tableContent
|
|
438
|
+
})
|
|
439
|
+
})
|
|
440
|
+
});
|
|
517
441
|
}
|
|
518
|
-
|
|
442
|
+
var Table_default = forwardRef(Table);
|
|
443
|
+
//#endregion
|
|
444
|
+
export { Table_default as default };
|
|
445
|
+
|
|
446
|
+
//# sourceMappingURL=index.js.map
|