@hsu-react/ui 0.0.1
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/README.md +54 -0
- package/es/components/Button/ChakraButton/index.d.ts +11 -0
- package/es/components/Button/ChakraButton/index.js +61 -0
- package/es/components/Button/ChakraButton/index.module.less +20 -0
- package/es/components/Button/index.d.ts +14 -0
- package/es/components/Button/index.js +41 -0
- package/es/components/Button/index.module.less +11 -0
- package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.d.ts +6 -0
- package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +51 -0
- package/es/components/ChainGraph/ChainGraphServices/NodeEvents.d.ts +14 -0
- package/es/components/ChainGraph/ChainGraphServices/NodeEvents.js +78 -0
- package/es/components/ChainGraph/ChainGraphServices/RootNode.d.ts +17 -0
- package/es/components/ChainGraph/ChainGraphServices/RootNode.js +280 -0
- package/es/components/ChainGraph/ChainGraphServices/TreeNode.d.ts +17 -0
- package/es/components/ChainGraph/ChainGraphServices/TreeNode.js +327 -0
- package/es/components/ChainGraph/ChainGraphServices/index.d.ts +88 -0
- package/es/components/ChainGraph/ChainGraphServices/index.js +459 -0
- package/es/components/ChainGraph/_components/ExpandButtons/index.d.ts +8 -0
- package/es/components/ChainGraph/_components/ExpandButtons/index.js +23 -0
- package/es/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
- package/es/components/ChainGraph/_components/SearchSelect/index.d.ts +6 -0
- package/es/components/ChainGraph/_components/SearchSelect/index.js +18 -0
- package/es/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
- package/es/components/ChainGraph/_hooks/index.d.ts +7 -0
- package/es/components/ChainGraph/_hooks/index.js +7 -0
- package/es/components/ChainGraph/_hooks/useChainGraphData.d.ts +15 -0
- package/es/components/ChainGraph/_hooks/useChainGraphData.js +44 -0
- package/es/components/ChainGraph/_hooks/useChainGraphExpand.d.ts +12 -0
- package/es/components/ChainGraph/_hooks/useChainGraphExpand.js +32 -0
- package/es/components/ChainGraph/_hooks/useChainGraphInit.d.ts +23 -0
- package/es/components/ChainGraph/_hooks/useChainGraphInit.js +53 -0
- package/es/components/ChainGraph/_hooks/useChainGraphLayout.d.ts +9 -0
- package/es/components/ChainGraph/_hooks/useChainGraphLayout.js +12 -0
- package/es/components/ChainGraph/_hooks/useChainGraphMiniMap.d.ts +7 -0
- package/es/components/ChainGraph/_hooks/useChainGraphMiniMap.js +10 -0
- package/es/components/ChainGraph/_hooks/useChainGraphResize.d.ts +9 -0
- package/es/components/ChainGraph/_hooks/useChainGraphResize.js +29 -0
- package/es/components/ChainGraph/_hooks/useChainGraphSearch.d.ts +7 -0
- package/es/components/ChainGraph/_hooks/useChainGraphSearch.js +10 -0
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +9 -0
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.js +38 -0
- package/es/components/ChainGraph/_utils/getTextSize.d.ts +11 -0
- package/es/components/ChainGraph/_utils/getTextSize.js +26 -0
- package/es/components/ChainGraph/_utils/index.d.ts +3 -0
- package/es/components/ChainGraph/_utils/index.js +3 -0
- package/es/components/ChainGraph/_utils/styles.d.ts +13 -0
- package/es/components/ChainGraph/_utils/styles.js +21 -0
- package/es/components/ChainGraph/index.d.ts +37 -0
- package/es/components/ChainGraph/index.js +172 -0
- package/es/components/ChainGraph/index.module.less +39 -0
- package/es/components/Chart/Bar/Bar3DOpt.d.ts +11 -0
- package/es/components/Chart/Bar/Bar3DOpt.js +187 -0
- package/es/components/Chart/Bar/index.d.ts +20 -0
- package/es/components/Chart/Bar/index.js +293 -0
- package/es/components/Chart/Bubble/index.d.ts +24 -0
- package/es/components/Chart/Bubble/index.js +339 -0
- package/es/components/Chart/Common/index.d.ts +4 -0
- package/es/components/Chart/Common/index.js +94 -0
- package/es/components/Chart/Gauge/index.d.ts +8 -0
- package/es/components/Chart/Gauge/index.js +145 -0
- package/es/components/Chart/Group/index.d.ts +20 -0
- package/es/components/Chart/Group/index.js +111 -0
- package/es/components/Chart/Group/index.module.less +67 -0
- package/es/components/Chart/Heatmap/index.d.ts +35 -0
- package/es/components/Chart/Heatmap/index.js +249 -0
- package/es/components/Chart/Line/index.d.ts +21 -0
- package/es/components/Chart/Line/index.js +289 -0
- package/es/components/Chart/Pie/Pie3D/_hooks/index.d.ts +15 -0
- package/es/components/Chart/Pie/Pie3D/_hooks/index.js +181 -0
- package/es/components/Chart/Pie/Pie3D/_utils/label.d.ts +2 -0
- package/es/components/Chart/Pie/Pie3D/_utils/label.js +273 -0
- package/es/components/Chart/Pie/Pie3D/_utils/option.d.ts +20 -0
- package/es/components/Chart/Pie/Pie3D/_utils/option.js +103 -0
- package/es/components/Chart/Pie/Pie3D/_utils/parametricEquation.d.ts +15 -0
- package/es/components/Chart/Pie/Pie3D/_utils/parametricEquation.js +53 -0
- package/es/components/Chart/Pie/Pie3D/_utils/series.d.ts +3 -0
- package/es/components/Chart/Pie/Pie3D/_utils/series.js +60 -0
- package/es/components/Chart/Pie/Pie3D/index.d.ts +86 -0
- package/es/components/Chart/Pie/Pie3D/index.js +140 -0
- package/es/components/Chart/Pie/index.d.ts +32 -0
- package/es/components/Chart/Pie/index.js +294 -0
- package/es/components/Chart/Polar/index.d.ts +13 -0
- package/es/components/Chart/Polar/index.js +197 -0
- package/es/components/Chart/Radar/index.d.ts +29 -0
- package/es/components/Chart/Radar/index.js +309 -0
- package/es/components/Chart/Sankey/index.d.ts +12 -0
- package/es/components/Chart/Sankey/index.js +191 -0
- package/es/components/Chart/Tree/index.d.ts +8 -0
- package/es/components/Chart/Tree/index.js +110 -0
- package/es/components/Chart/_utils/autoScrollLegend.d.ts +14 -0
- package/es/components/Chart/_utils/autoScrollLegend.js +89 -0
- package/es/components/Chart/_utils/autoSmooth.d.ts +15 -0
- package/es/components/Chart/_utils/autoSmooth.js +140 -0
- package/es/components/Chart/_utils/bubble.d.ts +8 -0
- package/es/components/Chart/_utils/bubble.js +214 -0
- package/es/components/Chart/_utils/cartesian.d.ts +25 -0
- package/es/components/Chart/_utils/cartesian.js +100 -0
- package/es/components/Chart/_utils/heatmap.d.ts +3 -0
- package/es/components/Chart/_utils/heatmap.js +38 -0
- package/es/components/Chart/_utils/tree.d.ts +2 -0
- package/es/components/Chart/_utils/tree.js +33 -0
- package/es/components/Chart/chartUtils/calculateAxisConfig.d.ts +11 -0
- package/es/components/Chart/chartUtils/calculateAxisConfig.js +94 -0
- package/es/components/Chart/chartUtils/chartTooltipFormatter.d.ts +23 -0
- package/es/components/Chart/chartUtils/chartTooltipFormatter.js +27 -0
- package/es/components/Chart/chartUtils/index.d.ts +7 -0
- package/es/components/Chart/chartUtils/index.js +5 -0
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +13 -0
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.js +45 -0
- package/es/components/Chart/index.d.ts +60 -0
- package/es/components/Chart/index.js +35 -0
- package/es/components/Chart/index.module.less +4 -0
- package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.d.ts +12 -0
- package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.js +32 -0
- package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.d.ts +11 -0
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.js +172 -0
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
- package/es/components/Chat/ChatHistory/_components/NewChatButton/index.d.ts +6 -0
- package/es/components/Chat/ChatHistory/_components/NewChatButton/index.js +22 -0
- package/es/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
- package/es/components/Chat/ChatHistory/_components/index.d.ts +3 -0
- package/es/components/Chat/ChatHistory/_components/index.js +3 -0
- package/es/components/Chat/ChatHistory/_hooks/index.d.ts +1 -0
- package/es/components/Chat/ChatHistory/_hooks/index.js +1 -0
- package/es/components/Chat/ChatHistory/_hooks/useRename.d.ts +9 -0
- package/es/components/Chat/ChatHistory/_hooks/useRename.js +38 -0
- package/es/components/Chat/ChatHistory/_utils/index.d.ts +4 -0
- package/es/components/Chat/ChatHistory/_utils/index.js +6 -0
- package/es/components/Chat/ChatHistory/index.d.ts +20 -0
- package/es/components/Chat/ChatHistory/index.js +63 -0
- package/es/components/Chat/ChatHistory/index.module.less +54 -0
- package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.d.ts +14 -0
- package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.js +28 -0
- package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
- package/es/components/Chat/ChatInput/_components/FileList/index.d.ts +8 -0
- package/es/components/Chat/ChatInput/_components/FileList/index.js +27 -0
- package/es/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
- package/es/components/Chat/ChatInput/_components/SendButton/index.d.ts +9 -0
- package/es/components/Chat/ChatInput/_components/SendButton/index.js +32 -0
- package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
- package/es/components/Chat/ChatInput/_components/StopButton/index.d.ts +7 -0
- package/es/components/Chat/ChatInput/_components/StopButton/index.js +20 -0
- package/es/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
- package/es/components/Chat/ChatInput/_components/UploadButton/index.d.ts +16 -0
- package/es/components/Chat/ChatInput/_components/UploadButton/index.js +74 -0
- package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
- package/es/components/Chat/ChatInput/_components/index.d.ts +6 -0
- package/es/components/Chat/ChatInput/_components/index.js +5 -0
- package/es/components/Chat/ChatInput/_hooks/index.d.ts +2 -0
- package/es/components/Chat/ChatInput/_hooks/index.js +2 -0
- package/es/components/Chat/ChatInput/_hooks/useCurrentModel.d.ts +2 -0
- package/es/components/Chat/ChatInput/_hooks/useCurrentModel.js +23 -0
- package/es/components/Chat/ChatInput/_hooks/useFileList.d.ts +6 -0
- package/es/components/Chat/ChatInput/_hooks/useFileList.js +22 -0
- package/es/components/Chat/ChatInput/_utils/index.d.ts +13 -0
- package/es/components/Chat/ChatInput/_utils/index.js +85 -0
- package/es/components/Chat/ChatInput/index.d.ts +56 -0
- package/es/components/Chat/ChatInput/index.js +244 -0
- package/es/components/Chat/ChatInput/index.module.less +100 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.d.ts +6 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +54 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.d.ts +8 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.js +92 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.d.ts +7 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.js +102 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.d.ts +14 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +111 -0
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
- package/es/components/Chat/ChatList/_components/Assistant/index.d.ts +18 -0
- package/es/components/Chat/ChatList/_components/Assistant/index.js +87 -0
- package/es/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
- package/es/components/Chat/ChatList/_components/User/index.d.ts +14 -0
- package/es/components/Chat/ChatList/_components/User/index.js +72 -0
- package/es/components/Chat/ChatList/_components/User/index.module.less +144 -0
- package/es/components/Chat/ChatList/_hooks/index.d.ts +3 -0
- package/es/components/Chat/ChatList/_hooks/index.js +2 -0
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +16 -0
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.js +38 -0
- package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.d.ts +22 -0
- package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +88 -0
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +6 -0
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +9 -0
- package/es/components/Chat/ChatList/_utils/index.d.ts +1 -0
- package/es/components/Chat/ChatList/_utils/index.js +1 -0
- package/es/components/Chat/ChatList/index.d.ts +73 -0
- package/es/components/Chat/ChatList/index.js +84 -0
- package/es/components/Chat/ChatList/index.module.less +8 -0
- package/es/components/Chat/index.d.ts +13 -0
- package/es/components/Chat/index.js +9 -0
- package/es/components/Checkbox/CheckboxGroup/index.d.ts +10 -0
- package/es/components/Checkbox/CheckboxGroup/index.js +100 -0
- package/es/components/Checkbox/CheckboxGroup/index.module.less +130 -0
- package/es/components/Checkbox/index.d.ts +12 -0
- package/es/components/Checkbox/index.js +25 -0
- package/es/components/Checkbox/index.module.less +93 -0
- package/es/components/CodeMirror/index.d.ts +21 -0
- package/es/components/CodeMirror/index.js +222 -0
- package/es/components/CodeMirror/index.module.less +36 -0
- package/es/components/CodeMirror/linters/errorTranslator.d.ts +4 -0
- package/es/components/CodeMirror/linters/errorTranslator.js +85 -0
- package/es/components/CodeMirror/linters/jsonLinter.d.ts +15 -0
- package/es/components/CodeMirror/linters/jsonLinter.js +136 -0
- package/es/components/CodeMirror/linters/sqlLinter.d.ts +9 -0
- package/es/components/CodeMirror/linters/sqlLinter.js +269 -0
- package/es/components/Copy/index.d.ts +12 -0
- package/es/components/Copy/index.js +116 -0
- package/es/components/Copy/index.module.less +44 -0
- package/es/components/DatePicker/RangePicker/index.d.ts +16 -0
- package/es/components/DatePicker/RangePicker/index.js +192 -0
- package/es/components/DatePicker/RangePicker/index.module.less +47 -0
- package/es/components/DatePicker/StepPicker/index.d.ts +19 -0
- package/es/components/DatePicker/StepPicker/index.js +86 -0
- package/es/components/DatePicker/StepPicker/index.module.less +27 -0
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +5 -0
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.js +8 -0
- package/es/components/DatePicker/index.d.ts +21 -0
- package/es/components/DatePicker/index.js +198 -0
- package/es/components/DatePicker/index.module.less +39 -0
- package/es/components/Descriptions/index.d.ts +16 -0
- package/es/components/Descriptions/index.js +127 -0
- package/es/components/Descriptions/index.module.less +16 -0
- package/es/components/Editor/index.d.ts +17 -0
- package/es/components/Editor/index.js +95 -0
- package/es/components/Editor/index.module.less +62 -0
- package/es/components/FileCol/index.d.ts +8 -0
- package/es/components/FileCol/index.js +69 -0
- package/es/components/FileCol/index.module.less +23 -0
- package/es/components/FilePreview/_components/BasePreview/index.module.less +80 -0
- package/es/components/FilePreview/_components/ImagePreview/index.d.ts +8 -0
- package/es/components/FilePreview/_components/ImagePreview/index.js +25 -0
- package/es/components/FilePreview/_components/MarkdownPreview/index.d.ts +8 -0
- package/es/components/FilePreview/_components/MarkdownPreview/index.js +30 -0
- package/es/components/FilePreview/_components/PdfPreview/index.d.ts +10 -0
- package/es/components/FilePreview/_components/PdfPreview/index.js +263 -0
- package/es/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
- package/es/components/FilePreview/_components/TextPreview/index.d.ts +8 -0
- package/es/components/FilePreview/_components/TextPreview/index.js +32 -0
- package/es/components/FilePreview/_components/VideoPreview/index.d.ts +8 -0
- package/es/components/FilePreview/_components/VideoPreview/index.js +31 -0
- package/es/components/FilePreview/_components/XlsxPreview/index.d.ts +9 -0
- package/es/components/FilePreview/_components/XlsxPreview/index.js +36 -0
- package/es/components/FilePreview/_hooks/index.d.ts +1 -0
- package/es/components/FilePreview/_hooks/index.js +1 -0
- package/es/components/FilePreview/_hooks/useXlsxData.d.ts +10 -0
- package/es/components/FilePreview/_hooks/useXlsxData.js +30 -0
- package/es/components/FilePreview/_utils/index.d.ts +2 -0
- package/es/components/FilePreview/_utils/index.js +1 -0
- package/es/components/FilePreview/_utils/types.d.ts +2 -0
- package/es/components/FilePreview/_utils/types.js +1 -0
- package/es/components/FilePreview/index.d.ts +16 -0
- package/es/components/FilePreview/index.js +87 -0
- package/es/components/FilePreview/index.module.less +89 -0
- package/es/components/FlexFill/index.d.ts +12 -0
- package/es/components/FlexFill/index.js +28 -0
- package/es/components/Form/DrawerForm/index.d.ts +18 -0
- package/es/components/Form/DrawerForm/index.js +125 -0
- package/es/components/Form/DrawerForm/index.module.less +51 -0
- package/es/components/Form/ImportForm/index.d.ts +17 -0
- package/es/components/Form/ImportForm/index.js +116 -0
- package/es/components/Form/ImportForm/index.module.less +10 -0
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +11 -0
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +61 -0
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +7 -0
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.js +62 -0
- package/es/components/Form/ModalForm/_hooks/useFormItems.d.ts +9 -0
- package/es/components/Form/ModalForm/_hooks/useFormItems.js +43 -0
- package/es/components/Form/ModalForm/index.d.ts +30 -0
- package/es/components/Form/ModalForm/index.js +178 -0
- package/es/components/Form/ModalForm/index.module.less +74 -0
- package/es/components/Form/index.d.ts +13 -0
- package/es/components/Form/index.js +11 -0
- package/es/components/FormItem/FormAuto/index.d.ts +8 -0
- package/es/components/FormItem/FormAuto/index.js +21 -0
- package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.d.ts +8 -0
- package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.js +34 -0
- package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
- package/es/components/FormItem/FormCheckbox/index.d.ts +13 -0
- package/es/components/FormItem/FormCheckbox/index.js +40 -0
- package/es/components/FormItem/FormCheckbox/index.module.less +2 -0
- package/es/components/FormItem/FormCodeMirror/index.d.ts +8 -0
- package/es/components/FormItem/FormCodeMirror/index.js +93 -0
- package/es/components/FormItem/FormDatePicker/FormRangePicker/index.d.ts +8 -0
- package/es/components/FormItem/FormDatePicker/FormRangePicker/index.js +34 -0
- package/es/components/FormItem/FormDatePicker/FormStepPicker/index.d.ts +8 -0
- package/es/components/FormItem/FormDatePicker/FormStepPicker/index.js +34 -0
- package/es/components/FormItem/FormDatePicker/index.d.ts +15 -0
- package/es/components/FormItem/FormDatePicker/index.js +38 -0
- package/es/components/FormItem/FormDatePicker/index.module.less +3 -0
- package/es/components/FormItem/FormEditor/index.d.ts +8 -0
- package/es/components/FormItem/FormEditor/index.js +28 -0
- package/es/components/FormItem/FormInput/FormInputNumber/index.d.ts +8 -0
- package/es/components/FormItem/FormInput/FormInputNumber/index.js +32 -0
- package/es/components/FormItem/FormInput/FormPassword/index.d.ts +8 -0
- package/es/components/FormItem/FormInput/FormPassword/index.js +36 -0
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.d.ts +10 -0
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.js +68 -0
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
- package/es/components/FormItem/FormInput/FormRangeInput/index.d.ts +8 -0
- package/es/components/FormItem/FormInput/FormRangeInput/index.js +37 -0
- package/es/components/FormItem/FormInput/FormTextAreaInput/index.d.ts +10 -0
- package/es/components/FormItem/FormInput/FormTextAreaInput/index.js +32 -0
- package/es/components/FormItem/FormInput/index.d.ts +24 -0
- package/es/components/FormItem/FormInput/index.js +45 -0
- package/es/components/FormItem/FormRadio/index.d.ts +11 -0
- package/es/components/FormItem/FormRadio/index.js +36 -0
- package/es/components/FormItem/FormRadio/index.module.less +106 -0
- package/es/components/FormItem/FormSegmented/index.d.ts +8 -0
- package/es/components/FormItem/FormSegmented/index.js +35 -0
- package/es/components/FormItem/FormSegmented/index.module.less +34 -0
- package/es/components/FormItem/FormSelect/FormAutoCompleteSelect/index.d.ts +8 -0
- package/es/components/FormItem/FormSelect/FormAutoCompleteSelect/index.js +32 -0
- package/es/components/FormItem/FormSelect/FormIconSelect/index.d.ts +8 -0
- package/es/components/FormItem/FormSelect/FormIconSelect/index.js +30 -0
- package/es/components/FormItem/FormSelect/FormTreeSelect/index.d.ts +8 -0
- package/es/components/FormItem/FormSelect/FormTreeSelect/index.js +32 -0
- package/es/components/FormItem/FormSelect/index.d.ts +17 -0
- package/es/components/FormItem/FormSelect/index.js +38 -0
- package/es/components/FormItem/FormSlider/index.d.ts +9 -0
- package/es/components/FormItem/FormSlider/index.js +84 -0
- package/es/components/FormItem/FormSlider/index.module.less +15 -0
- package/es/components/FormItem/FormSwitch/index.d.ts +8 -0
- package/es/components/FormItem/FormSwitch/index.js +34 -0
- package/es/components/FormItem/FormSwitch/index.module.less +3 -0
- package/es/components/FormItem/FormText/index.d.ts +16 -0
- package/es/components/FormItem/FormText/index.js +62 -0
- package/es/components/FormItem/FormText/index.module.less +9 -0
- package/es/components/FormItem/FormTree/index.d.ts +8 -0
- package/es/components/FormItem/FormTree/index.js +33 -0
- package/es/components/FormItem/FormUpload/FormImage/index.d.ts +13 -0
- package/es/components/FormItem/FormUpload/FormImage/index.js +202 -0
- package/es/components/FormItem/FormUpload/index.d.ts +19 -0
- package/es/components/FormItem/FormUpload/index.js +158 -0
- package/es/components/FormItem/FormUpload/index.module.less +142 -0
- package/es/components/FormItem/ItemContainer/_hooks/useInputSize.d.ts +14 -0
- package/es/components/FormItem/ItemContainer/_hooks/useInputSize.js +27 -0
- package/es/components/FormItem/ItemContainer/_hooks/useLabelSize.d.ts +12 -0
- package/es/components/FormItem/ItemContainer/_hooks/useLabelSize.js +23 -0
- package/es/components/FormItem/ItemContainer/index.d.ts +40 -0
- package/es/components/FormItem/ItemContainer/index.js +198 -0
- package/es/components/FormItem/ItemContainer/index.module.less +387 -0
- package/es/components/FormItem/databaseTypeMapping.d.ts +56 -0
- package/es/components/FormItem/databaseTypeMapping.js +179 -0
- package/es/components/FormItem/index.d.ts +59 -0
- package/es/components/FormItem/index.js +210 -0
- package/es/components/FormItem/rules.d.ts +5 -0
- package/es/components/FormItem/rules.js +71 -0
- package/es/components/Icon/index.d.ts +10 -0
- package/es/components/Icon/index.js +79 -0
- package/es/components/Icon/index.module.less +8 -0
- package/es/components/Input/Number/index.d.ts +11 -0
- package/es/components/Input/Number/index.js +140 -0
- package/es/components/Input/Number/index.module.less +78 -0
- package/es/components/Input/Password/index.d.ts +9 -0
- package/es/components/Input/Password/index.js +88 -0
- package/es/components/Input/Password/index.module.less +15 -0
- package/es/components/Input/Range/index.d.ts +31 -0
- package/es/components/Input/Range/index.js +199 -0
- package/es/components/Input/Range/index.module.less +97 -0
- package/es/components/Input/Search/index.d.ts +8 -0
- package/es/components/Input/Search/index.js +88 -0
- package/es/components/Input/Search/index.module.less +22 -0
- package/es/components/Input/TextArea/index.d.ts +14 -0
- package/es/components/Input/TextArea/index.js +156 -0
- package/es/components/Input/TextArea/index.module.less +130 -0
- package/es/components/Input/index.d.ts +24 -0
- package/es/components/Input/index.js +190 -0
- package/es/components/Input/index.module.less +19 -0
- package/es/components/Markdown/Editor/index.d.ts +21 -0
- package/es/components/Markdown/Editor/index.js +82 -0
- package/es/components/Markdown/Editor/index.module.less +56 -0
- package/es/components/Markdown/Views/ArtifactBlock.d.ts +15 -0
- package/es/components/Markdown/Views/ArtifactBlock.js +61 -0
- package/es/components/Markdown/Views/MermaidBlock.d.ts +10 -0
- package/es/components/Markdown/Views/MermaidBlock.js +78 -0
- package/es/components/Markdown/Views/blocks.module.less +86 -0
- package/es/components/Markdown/Views/index.d.ts +10 -0
- package/es/components/Markdown/Views/index.js +117 -0
- package/es/components/Markdown/Views/index.module.less +73 -0
- package/es/components/Markdown/index.d.ts +9 -0
- package/es/components/Markdown/index.js +7 -0
- package/es/components/Modal/_hooks/index.d.ts +2 -0
- package/es/components/Modal/_hooks/index.js +2 -0
- package/es/components/Modal/_hooks/useModalDrag.d.ts +12 -0
- package/es/components/Modal/_hooks/useModalDrag.js +50 -0
- package/es/components/Modal/_hooks/useModalElements.d.ts +17 -0
- package/es/components/Modal/_hooks/useModalElements.js +66 -0
- package/es/components/Modal/_utils/calculatePosition.d.ts +13 -0
- package/es/components/Modal/_utils/calculatePosition.js +29 -0
- package/es/components/Modal/_utils/index.d.ts +1 -0
- package/es/components/Modal/_utils/index.js +1 -0
- package/es/components/Modal/index.d.ts +11 -0
- package/es/components/Modal/index.js +100 -0
- package/es/components/Modal/index.module.less +90 -0
- package/es/components/Operate/_hooks/useOperateEllipsis.d.ts +10 -0
- package/es/components/Operate/_hooks/useOperateEllipsis.js +18 -0
- package/es/components/Operate/index.d.ts +21 -0
- package/es/components/Operate/index.js +272 -0
- package/es/components/Operate/index.module.less +60 -0
- package/es/components/Operate/more.png +0 -0
- package/es/components/Panel/DefaultPanel/index.d.ts +14 -0
- package/es/components/Panel/DefaultPanel/index.js +72 -0
- package/es/components/Panel/DefaultPanel/index.module.less +51 -0
- package/es/components/Panel/IframePanel/index.d.ts +7 -0
- package/es/components/Panel/IframePanel/index.js +63 -0
- package/es/components/Panel/IframePanel/index.module.less +68 -0
- package/es/components/Panel/ListPanel/ListModalPanel/index.d.ts +52 -0
- package/es/components/Panel/ListPanel/ListModalPanel/index.js +162 -0
- package/es/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.d.ts +24 -0
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.js +348 -0
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
- package/es/components/Panel/ListPanel/_components/ToolBar/index.d.ts +14 -0
- package/es/components/Panel/ListPanel/_components/ToolBar/index.js +84 -0
- package/es/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
- package/es/components/Panel/ListPanel/index.d.ts +69 -0
- package/es/components/Panel/ListPanel/index.js +335 -0
- package/es/components/Panel/ListPanel/index.module.less +134 -0
- package/es/components/Panel/index.d.ts +11 -0
- package/es/components/Panel/index.js +9 -0
- package/es/components/Search/SearchAdvanced/index.d.ts +17 -0
- package/es/components/Search/SearchAdvanced/index.js +170 -0
- package/es/components/Search/SearchAdvanced/index.module.less +3 -0
- package/es/components/Search/SearchCard/_components/CollapseToggle/index.d.ts +7 -0
- package/es/components/Search/SearchCard/_components/CollapseToggle/index.js +26 -0
- package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.d.ts +10 -0
- package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +74 -0
- package/es/components/Search/SearchCard/_components/OptionRow/Item/index.d.ts +11 -0
- package/es/components/Search/SearchCard/_components/OptionRow/Item/index.js +151 -0
- package/es/components/Search/SearchCard/_components/OptionRow/index.d.ts +33 -0
- package/es/components/Search/SearchCard/_components/OptionRow/index.js +149 -0
- package/es/components/Search/SearchCard/_components/SearchBox/index.d.ts +9 -0
- package/es/components/Search/SearchCard/_components/SearchBox/index.js +25 -0
- package/es/components/Search/SearchCard/_hooks/index.d.ts +3 -0
- package/es/components/Search/SearchCard/_hooks/index.js +3 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +13 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +26 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +9 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +235 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +19 -0
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.js +71 -0
- package/es/components/Search/SearchCard/_utils/getRealValues.d.ts +5 -0
- package/es/components/Search/SearchCard/_utils/getRealValues.js +24 -0
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +4 -0
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.js +15 -0
- package/es/components/Search/SearchCard/_utils/index.d.ts +4 -0
- package/es/components/Search/SearchCard/_utils/index.js +4 -0
- package/es/components/Search/SearchCard/_utils/typeGuards.d.ts +6 -0
- package/es/components/Search/SearchCard/_utils/typeGuards.js +12 -0
- package/es/components/Search/SearchCard/_utils/updateRealValue.d.ts +4 -0
- package/es/components/Search/SearchCard/_utils/updateRealValue.js +61 -0
- package/es/components/Search/SearchCard/index.d.ts +19 -0
- package/es/components/Search/SearchCard/index.js +101 -0
- package/es/components/Search/SearchCard/index.module.less +295 -0
- package/es/components/Search/SearchCollapsible/index.d.ts +16 -0
- package/es/components/Search/SearchCollapsible/index.js +181 -0
- package/es/components/Search/SearchCollapsible/index.module.less +3 -0
- package/es/components/Search/SearchWithFilter/index.d.ts +15 -0
- package/es/components/Search/SearchWithFilter/index.js +160 -0
- package/es/components/Search/SearchWithFilter/index.module.less +3 -0
- package/es/components/Search/SearchWithMore/index.d.ts +17 -0
- package/es/components/Search/SearchWithMore/index.js +159 -0
- package/es/components/Search/SearchWithMore/index.module.less +3 -0
- package/es/components/Search/_components/AdvancedFiltersDrawer/index.d.ts +18 -0
- package/es/components/Search/_components/AdvancedFiltersDrawer/index.js +72 -0
- package/es/components/Search/_components/ButtonGroup/index.d.ts +15 -0
- package/es/components/Search/_components/ButtonGroup/index.js +48 -0
- package/es/components/Search/_components/CollapseToggle/index.d.ts +7 -0
- package/es/components/Search/_components/CollapseToggle/index.js +23 -0
- package/es/components/Search/_components/ExpandButton/index.d.ts +10 -0
- package/es/components/Search/_components/ExpandButton/index.js +34 -0
- package/es/components/Search/_components/FilterDropdown/index.d.ts +10 -0
- package/es/components/Search/_components/FilterDropdown/index.js +127 -0
- package/es/components/Search/_components/SearchButtons/index.d.ts +12 -0
- package/es/components/Search/_components/SearchButtons/index.js +34 -0
- package/es/components/Search/_hooks/index.d.ts +6 -0
- package/es/components/Search/_hooks/index.js +5 -0
- package/es/components/Search/_hooks/useAdaptiveColumnNum.d.ts +13 -0
- package/es/components/Search/_hooks/useAdaptiveColumnNum.js +114 -0
- package/es/components/Search/_hooks/useSearchCommon.d.ts +52 -0
- package/es/components/Search/_hooks/useSearchCommon.js +218 -0
- package/es/components/Search/_hooks/useSearchExpand.d.ts +22 -0
- package/es/components/Search/_hooks/useSearchExpand.js +173 -0
- package/es/components/Search/_hooks/useSearchForm.d.ts +10 -0
- package/es/components/Search/_hooks/useSearchForm.js +15 -0
- package/es/components/Search/_hooks/useSearchItems.d.ts +12 -0
- package/es/components/Search/_hooks/useSearchItems.js +49 -0
- package/es/components/Search/_types/index.d.ts +48 -0
- package/es/components/Search/_types/index.js +1 -0
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +13 -0
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +44 -0
- package/es/components/Search/_utils/calculateVisibleItems.d.ts +13 -0
- package/es/components/Search/_utils/calculateVisibleItems.js +38 -0
- package/es/components/Search/_utils/cleanSearchData.d.ts +6 -0
- package/es/components/Search/_utils/cleanSearchData.js +16 -0
- package/es/components/Search/_utils/index.d.ts +3 -0
- package/es/components/Search/_utils/index.js +3 -0
- package/es/components/Search/bottomLine.png +0 -0
- package/es/components/Search/index.d.ts +30 -0
- package/es/components/Search/index.js +158 -0
- package/es/components/Search/index.module.less +185 -0
- package/es/components/SecondConf/index.d.ts +8 -0
- package/es/components/SecondConf/index.js +47 -0
- package/es/components/SecondConf/index.module.less +36 -0
- package/es/components/Select/AutoCompleteSelect/index.d.ts +21 -0
- package/es/components/Select/AutoCompleteSelect/index.js +216 -0
- package/es/components/Select/AutoCompleteSelect/index.module.less +315 -0
- package/es/components/Select/IconSelect/index.d.ts +8 -0
- package/es/components/Select/IconSelect/index.js +142 -0
- package/es/components/Select/IconSelect/index.module.less +66 -0
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +8 -0
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +36 -0
- package/es/components/Select/TreeSelect/_utils/index.d.ts +2 -0
- package/es/components/Select/TreeSelect/_utils/index.js +2 -0
- package/es/components/Select/TreeSelect/_utils/treeExpandedKeysState.d.ts +6 -0
- package/es/components/Select/TreeSelect/_utils/treeExpandedKeysState.js +14 -0
- package/es/components/Select/TreeSelect/index.d.ts +16 -0
- package/es/components/Select/TreeSelect/index.js +153 -0
- package/es/components/Select/TreeSelect/index.module.less +126 -0
- package/es/components/Select/_components/Prefix/index.d.ts +6 -0
- package/es/components/Select/_components/Prefix/index.js +13 -0
- package/es/components/Select/_components/Suffix/index.d.ts +6 -0
- package/es/components/Select/_components/Suffix/index.js +13 -0
- package/es/components/Select/_hooks/index.d.ts +3 -0
- package/es/components/Select/_hooks/index.js +3 -0
- package/es/components/Select/_hooks/useSelectComposition.d.ts +10 -0
- package/es/components/Select/_hooks/useSelectComposition.js +36 -0
- package/es/components/Select/_hooks/useSelectInputOptions.d.ts +17 -0
- package/es/components/Select/_hooks/useSelectInputOptions.js +30 -0
- package/es/components/Select/_hooks/useSelectPopupPosition.d.ts +2 -0
- package/es/components/Select/_hooks/useSelectPopupPosition.js +55 -0
- package/es/components/Select/_utils/calculatePopupWidth.d.ts +13 -0
- package/es/components/Select/_utils/calculatePopupWidth.js +16 -0
- package/es/components/Select/_utils/filterOption.d.ts +13 -0
- package/es/components/Select/_utils/filterOption.js +19 -0
- package/es/components/Select/_utils/getElementPosition.d.ts +8 -0
- package/es/components/Select/_utils/getElementPosition.js +15 -0
- package/es/components/Select/_utils/index.d.ts +3 -0
- package/es/components/Select/_utils/index.js +3 -0
- package/es/components/Select/index.d.ts +23 -0
- package/es/components/Select/index.js +220 -0
- package/es/components/Select/index.module.less +320 -0
- package/es/components/Slider/index.d.ts +7 -0
- package/es/components/Slider/index.js +56 -0
- package/es/components/Slider/index.module.less +66 -0
- package/es/components/Spreadsheet/index.d.ts +14 -0
- package/es/components/Spreadsheet/index.js +75 -0
- package/es/components/Spreadsheet/index.module.less +29 -0
- package/es/components/Spreadsheet/xlsxspread.d.ts +38 -0
- package/es/components/Spreadsheet/xlsxspread.js +167 -0
- package/es/components/Switch/index.d.ts +10 -0
- package/es/components/Switch/index.js +30 -0
- package/es/components/TabBar/index.d.ts +18 -0
- package/es/components/TabBar/index.js +58 -0
- package/es/components/TabBar/index.module.less +114 -0
- package/es/components/Table/_components/Drag/index.d.ts +21 -0
- package/es/components/Table/_components/Drag/index.js +96 -0
- package/es/components/Table/_components/Pagination/index.d.ts +11 -0
- package/es/components/Table/_components/Pagination/index.js +132 -0
- package/es/components/Table/_components/Pagination/index.module.less +199 -0
- package/es/components/Table/_hooks/useAutoScrolling.d.ts +18 -0
- package/es/components/Table/_hooks/useAutoScrolling.js +438 -0
- package/es/components/Table/_hooks/useEllipsisTooltip.d.ts +9 -0
- package/es/components/Table/_hooks/useEllipsisTooltip.js +48 -0
- package/es/components/Table/_hooks/useHideHeaderScrollbar.d.ts +12 -0
- package/es/components/Table/_hooks/useHideHeaderScrollbar.js +58 -0
- package/es/components/Table/_hooks/usePaginationSync.d.ts +17 -0
- package/es/components/Table/_hooks/usePaginationSync.js +43 -0
- package/es/components/Table/_hooks/useScrollEnd.d.ts +12 -0
- package/es/components/Table/_hooks/useScrollEnd.js +75 -0
- package/es/components/Table/_hooks/useSetTableHeight.d.ts +16 -0
- package/es/components/Table/_hooks/useSetTableHeight.js +50 -0
- package/es/components/Table/_hooks/useTableColumns.d.ts +40 -0
- package/es/components/Table/_hooks/useTableColumns.js +275 -0
- package/es/components/Table/_hooks/useTablePagination.d.ts +26 -0
- package/es/components/Table/_hooks/useTablePagination.js +91 -0
- package/es/components/Table/_utils/tableUtils.d.ts +23 -0
- package/es/components/Table/_utils/tableUtils.js +42 -0
- package/es/components/Table/index.d.ts +91 -0
- package/es/components/Table/index.js +234 -0
- package/es/components/Table/index.module.less +361 -0
- package/es/components/Tags/_components/EllipsisTag/index.d.ts +11 -0
- package/es/components/Tags/_components/EllipsisTag/index.js +45 -0
- package/es/components/Tags/_components/EllipsisTag/index.module.less +18 -0
- package/es/components/Tags/_components/MeasureContainer/index.d.ts +10 -0
- package/es/components/Tags/_components/MeasureContainer/index.js +25 -0
- package/es/components/Tags/_components/MeasureContainer/index.module.less +15 -0
- package/es/components/Tags/_hooks/index.d.ts +1 -0
- package/es/components/Tags/_hooks/index.js +1 -0
- package/es/components/Tags/_hooks/useVisibleTags.d.ts +15 -0
- package/es/components/Tags/_hooks/useVisibleTags.js +92 -0
- package/es/components/Tags/_utils/calculateVisibleCount.d.ts +9 -0
- package/es/components/Tags/_utils/calculateVisibleCount.js +42 -0
- package/es/components/Tags/_utils/getTagColor.d.ts +7 -0
- package/es/components/Tags/_utils/getTagColor.js +12 -0
- package/es/components/Tags/_utils/index.d.ts +2 -0
- package/es/components/Tags/_utils/index.js +2 -0
- package/es/components/Tags/index.d.ts +11 -0
- package/es/components/Tags/index.js +65 -0
- package/es/components/Tags/index.module.less +33 -0
- package/es/components/TextEllipsis/index.d.ts +29 -0
- package/es/components/TextEllipsis/index.js +184 -0
- package/es/components/TextEllipsis/index.module.less +28 -0
- package/es/components/Tree/_components/TitleSearchBar/index.d.ts +16 -0
- package/es/components/Tree/_components/TitleSearchBar/index.js +60 -0
- package/es/components/Tree/_hooks/useClearNodeTitle.d.ts +8 -0
- package/es/components/Tree/_hooks/useClearNodeTitle.js +34 -0
- package/es/components/Tree/_hooks/useTreeCheck.d.ts +7 -0
- package/es/components/Tree/_hooks/useTreeCheck.js +25 -0
- package/es/components/Tree/_hooks/useTreeSearch.d.ts +10 -0
- package/es/components/Tree/_hooks/useTreeSearch.js +89 -0
- package/es/components/Tree/_hooks/useTreeState.d.ts +11 -0
- package/es/components/Tree/_hooks/useTreeState.js +76 -0
- package/es/components/Tree/_utils/index.d.ts +44 -0
- package/es/components/Tree/_utils/index.js +210 -0
- package/es/components/Tree/_utils/normalizeCheckedKeys.d.ts +8 -0
- package/es/components/Tree/_utils/normalizeCheckedKeys.js +96 -0
- package/es/components/Tree/index.d.ts +48 -0
- package/es/components/Tree/index.js +234 -0
- package/es/components/Tree/index.module.less +142 -0
- package/es/components/Upload/_components/UploadedItem/index.d.ts +21 -0
- package/es/components/Upload/_components/UploadedItem/index.js +103 -0
- package/es/components/Upload/_components/UploadingItem/index.d.ts +19 -0
- package/es/components/Upload/_components/UploadingItem/index.js +58 -0
- package/es/components/Upload/_hooks/index.d.ts +3 -0
- package/es/components/Upload/_hooks/index.js +3 -0
- package/es/components/Upload/_hooks/useUploadFileList.d.ts +22 -0
- package/es/components/Upload/_hooks/useUploadFileList.js +82 -0
- package/es/components/Upload/_hooks/useUploadOperations.d.ts +19 -0
- package/es/components/Upload/_hooks/useUploadOperations.js +76 -0
- package/es/components/Upload/_hooks/useUploadPreview.d.ts +17 -0
- package/es/components/Upload/_hooks/useUploadPreview.js +21 -0
- package/es/components/Upload/_utils/chunkUpload.d.ts +26 -0
- package/es/components/Upload/_utils/chunkUpload.js +180 -0
- package/es/components/Upload/_utils/createFormData.d.ts +4 -0
- package/es/components/Upload/_utils/createFormData.js +16 -0
- package/es/components/Upload/_utils/extractFileUrl.d.ts +5 -0
- package/es/components/Upload/_utils/extractFileUrl.js +17 -0
- package/es/components/Upload/_utils/index.d.ts +7 -0
- package/es/components/Upload/_utils/index.js +7 -0
- package/es/components/Upload/_utils/isSuccessResponse.d.ts +9 -0
- package/es/components/Upload/_utils/isSuccessResponse.js +8 -0
- package/es/components/Upload/_utils/normalUpload.d.ts +24 -0
- package/es/components/Upload/_utils/normalUpload.js +82 -0
- package/es/components/Upload/_utils/toMB.d.ts +4 -0
- package/es/components/Upload/_utils/toMB.js +6 -0
- package/es/components/Upload/_utils/validateFile.d.ts +15 -0
- package/es/components/Upload/_utils/validateFile.js +28 -0
- package/es/components/Upload/index.d.ts +42 -0
- package/es/components/Upload/index.js +248 -0
- package/es/components/Upload/index.module.less +74 -0
- package/es/config-provider/index.d.ts +19 -0
- package/es/config-provider/index.js +32 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useLabelWidth.d.ts +14 -0
- package/es/hooks/useLabelWidth.js +57 -0
- package/es/hooks/usePermissions.d.ts +9 -0
- package/es/hooks/usePermissions.js +30 -0
- package/es/index.d.ts +73 -0
- package/es/index.js +77 -0
- package/es/request/ResType.d.ts +20 -0
- package/es/request/ResType.js +1 -0
- package/es/request/index.d.ts +28 -0
- package/es/request/index.js +43 -0
- package/es/styles/antd-overload.less +133 -0
- package/es/styles/utils.less +88 -0
- package/es/styles/variables.global.less +1 -0
- package/es/typings.d.ts +42 -0
- package/es/utils/cssSupports.d.ts +2 -0
- package/es/utils/cssSupports.js +19 -0
- package/es/utils/getUUID.d.ts +4 -0
- package/es/utils/getUUID.js +10 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +2 -0
- package/lib/components/Button/ChakraButton/index.d.ts +11 -0
- package/lib/components/Button/ChakraButton/index.js +65 -0
- package/lib/components/Button/ChakraButton/index.module.less +20 -0
- package/lib/components/Button/index.d.ts +14 -0
- package/lib/components/Button/index.js +44 -0
- package/lib/components/Button/index.module.less +11 -0
- package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.d.ts +6 -0
- package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +56 -0
- package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.d.ts +14 -0
- package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.js +71 -0
- package/lib/components/ChainGraph/ChainGraphServices/RootNode.d.ts +17 -0
- package/lib/components/ChainGraph/ChainGraphServices/RootNode.js +292 -0
- package/lib/components/ChainGraph/ChainGraphServices/TreeNode.d.ts +17 -0
- package/lib/components/ChainGraph/ChainGraphServices/TreeNode.js +335 -0
- package/lib/components/ChainGraph/ChainGraphServices/index.d.ts +88 -0
- package/lib/components/ChainGraph/ChainGraphServices/index.js +472 -0
- package/lib/components/ChainGraph/_components/ExpandButtons/index.d.ts +8 -0
- package/lib/components/ChainGraph/_components/ExpandButtons/index.js +31 -0
- package/lib/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
- package/lib/components/ChainGraph/_components/SearchSelect/index.d.ts +6 -0
- package/lib/components/ChainGraph/_components/SearchSelect/index.js +24 -0
- package/lib/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
- package/lib/components/ChainGraph/_hooks/index.d.ts +7 -0
- package/lib/components/ChainGraph/_hooks/index.js +54 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphData.d.ts +15 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphData.js +40 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphExpand.d.ts +12 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphExpand.js +31 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphInit.d.ts +23 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphInit.js +53 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphLayout.d.ts +9 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphLayout.js +20 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphMiniMap.d.ts +7 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphMiniMap.js +18 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphResize.d.ts +9 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphResize.js +28 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphSearch.d.ts +7 -0
- package/lib/components/ChainGraph/_hooks/useChainGraphSearch.js +18 -0
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +9 -0
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.js +36 -0
- package/lib/components/ChainGraph/_utils/getTextSize.d.ts +11 -0
- package/lib/components/ChainGraph/_utils/getTextSize.js +32 -0
- package/lib/components/ChainGraph/_utils/index.d.ts +3 -0
- package/lib/components/ChainGraph/_utils/index.js +38 -0
- package/lib/components/ChainGraph/_utils/styles.d.ts +13 -0
- package/lib/components/ChainGraph/_utils/styles.js +27 -0
- package/lib/components/ChainGraph/index.d.ts +37 -0
- package/lib/components/ChainGraph/index.js +148 -0
- package/lib/components/ChainGraph/index.module.less +39 -0
- package/lib/components/Chart/Bar/Bar3DOpt.d.ts +11 -0
- package/lib/components/Chart/Bar/Bar3DOpt.js +192 -0
- package/lib/components/Chart/Bar/index.d.ts +20 -0
- package/lib/components/Chart/Bar/index.js +295 -0
- package/lib/components/Chart/Bubble/index.d.ts +24 -0
- package/lib/components/Chart/Bubble/index.js +315 -0
- package/lib/components/Chart/Common/index.d.ts +4 -0
- package/lib/components/Chart/Common/index.js +97 -0
- package/lib/components/Chart/Gauge/index.d.ts +8 -0
- package/lib/components/Chart/Gauge/index.js +154 -0
- package/lib/components/Chart/Group/index.d.ts +20 -0
- package/lib/components/Chart/Group/index.js +94 -0
- package/lib/components/Chart/Group/index.module.less +67 -0
- package/lib/components/Chart/Heatmap/index.d.ts +35 -0
- package/lib/components/Chart/Heatmap/index.js +248 -0
- package/lib/components/Chart/Line/index.d.ts +21 -0
- package/lib/components/Chart/Line/index.js +291 -0
- package/lib/components/Chart/Pie/Pie3D/_hooks/index.d.ts +15 -0
- package/lib/components/Chart/Pie/Pie3D/_hooks/index.js +170 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/label.d.ts +2 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/label.js +275 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/option.d.ts +20 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/option.js +98 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/parametricEquation.d.ts +15 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/parametricEquation.js +59 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/series.d.ts +3 -0
- package/lib/components/Chart/Pie/Pie3D/_utils/series.js +58 -0
- package/lib/components/Chart/Pie/Pie3D/index.d.ts +86 -0
- package/lib/components/Chart/Pie/Pie3D/index.js +135 -0
- package/lib/components/Chart/Pie/index.d.ts +32 -0
- package/lib/components/Chart/Pie/index.js +285 -0
- package/lib/components/Chart/Polar/index.d.ts +13 -0
- package/lib/components/Chart/Polar/index.js +206 -0
- package/lib/components/Chart/Radar/index.d.ts +29 -0
- package/lib/components/Chart/Radar/index.js +291 -0
- package/lib/components/Chart/Sankey/index.d.ts +12 -0
- package/lib/components/Chart/Sankey/index.js +192 -0
- package/lib/components/Chart/Tree/index.d.ts +8 -0
- package/lib/components/Chart/Tree/index.js +115 -0
- package/lib/components/Chart/_utils/autoScrollLegend.d.ts +14 -0
- package/lib/components/Chart/_utils/autoScrollLegend.js +93 -0
- package/lib/components/Chart/_utils/autoSmooth.d.ts +15 -0
- package/lib/components/Chart/_utils/autoSmooth.js +134 -0
- package/lib/components/Chart/_utils/bubble.d.ts +8 -0
- package/lib/components/Chart/_utils/bubble.js +191 -0
- package/lib/components/Chart/_utils/cartesian.d.ts +25 -0
- package/lib/components/Chart/_utils/cartesian.js +99 -0
- package/lib/components/Chart/_utils/heatmap.d.ts +3 -0
- package/lib/components/Chart/_utils/heatmap.js +42 -0
- package/lib/components/Chart/_utils/tree.d.ts +2 -0
- package/lib/components/Chart/_utils/tree.js +39 -0
- package/lib/components/Chart/chartUtils/calculateAxisConfig.d.ts +11 -0
- package/lib/components/Chart/chartUtils/calculateAxisConfig.js +100 -0
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.d.ts +23 -0
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.js +71 -0
- package/lib/components/Chart/chartUtils/index.d.ts +7 -0
- package/lib/components/Chart/chartUtils/index.js +70 -0
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +13 -0
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.js +56 -0
- package/lib/components/Chart/index.d.ts +60 -0
- package/lib/components/Chart/index.js +41 -0
- package/lib/components/Chart/index.module.less +4 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.d.ts +12 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.js +37 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.d.ts +11 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.js +151 -0
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
- package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.d.ts +6 -0
- package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.js +29 -0
- package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
- package/lib/components/Chat/ChatHistory/_components/index.d.ts +3 -0
- package/lib/components/Chat/ChatHistory/_components/index.js +27 -0
- package/lib/components/Chat/ChatHistory/_hooks/index.d.ts +1 -0
- package/lib/components/Chat/ChatHistory/_hooks/index.js +12 -0
- package/lib/components/Chat/ChatHistory/_hooks/useRename.d.ts +9 -0
- package/lib/components/Chat/ChatHistory/_hooks/useRename.js +33 -0
- package/lib/components/Chat/ChatHistory/_utils/index.d.ts +4 -0
- package/lib/components/Chat/ChatHistory/_utils/index.js +13 -0
- package/lib/components/Chat/ChatHistory/index.d.ts +20 -0
- package/lib/components/Chat/ChatHistory/index.js +72 -0
- package/lib/components/Chat/ChatHistory/index.module.less +54 -0
- package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.d.ts +14 -0
- package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.js +33 -0
- package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
- package/lib/components/Chat/ChatInput/_components/FileList/index.d.ts +8 -0
- package/lib/components/Chat/ChatInput/_components/FileList/index.js +30 -0
- package/lib/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
- package/lib/components/Chat/ChatInput/_components/SendButton/index.d.ts +9 -0
- package/lib/components/Chat/ChatInput/_components/SendButton/index.js +39 -0
- package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
- package/lib/components/Chat/ChatInput/_components/StopButton/index.d.ts +7 -0
- package/lib/components/Chat/ChatInput/_components/StopButton/index.js +28 -0
- package/lib/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.d.ts +16 -0
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.js +76 -0
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
- package/lib/components/Chat/ChatInput/_components/index.d.ts +6 -0
- package/lib/components/Chat/ChatInput/_components/index.js +41 -0
- package/lib/components/Chat/ChatInput/_hooks/index.d.ts +2 -0
- package/lib/components/Chat/ChatInput/_hooks/index.js +19 -0
- package/lib/components/Chat/ChatInput/_hooks/useCurrentModel.d.ts +2 -0
- package/lib/components/Chat/ChatInput/_hooks/useCurrentModel.js +19 -0
- package/lib/components/Chat/ChatInput/_hooks/useFileList.d.ts +6 -0
- package/lib/components/Chat/ChatInput/_hooks/useFileList.js +20 -0
- package/lib/components/Chat/ChatInput/_utils/index.d.ts +13 -0
- package/lib/components/Chat/ChatInput/_utils/index.js +87 -0
- package/lib/components/Chat/ChatInput/index.d.ts +56 -0
- package/lib/components/Chat/ChatInput/index.js +204 -0
- package/lib/components/Chat/ChatInput/index.module.less +100 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.d.ts +6 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +61 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.d.ts +8 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.js +86 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.d.ts +7 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.js +82 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.d.ts +14 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +108 -0
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
- package/lib/components/Chat/ChatList/_components/Assistant/index.d.ts +18 -0
- package/lib/components/Chat/ChatList/_components/Assistant/index.js +95 -0
- package/lib/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
- package/lib/components/Chat/ChatList/_components/User/index.d.ts +14 -0
- package/lib/components/Chat/ChatList/_components/User/index.js +76 -0
- package/lib/components/Chat/ChatList/_components/User/index.module.less +144 -0
- package/lib/components/Chat/ChatList/_hooks/index.d.ts +3 -0
- package/lib/components/Chat/ChatList/_hooks/index.js +20 -0
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +16 -0
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.js +36 -0
- package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.d.ts +22 -0
- package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +79 -0
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +6 -0
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +15 -0
- package/lib/components/Chat/ChatList/_utils/index.d.ts +1 -0
- package/lib/components/Chat/ChatList/_utils/index.js +12 -0
- package/lib/components/Chat/ChatList/index.d.ts +73 -0
- package/lib/components/Chat/ChatList/index.js +88 -0
- package/lib/components/Chat/ChatList/index.module.less +8 -0
- package/lib/components/Chat/index.d.ts +13 -0
- package/lib/components/Chat/index.js +16 -0
- package/lib/components/Checkbox/CheckboxGroup/index.d.ts +10 -0
- package/lib/components/Checkbox/CheckboxGroup/index.js +103 -0
- package/lib/components/Checkbox/CheckboxGroup/index.module.less +130 -0
- package/lib/components/Checkbox/index.d.ts +12 -0
- package/lib/components/Checkbox/index.js +28 -0
- package/lib/components/Checkbox/index.module.less +93 -0
- package/lib/components/CodeMirror/index.d.ts +21 -0
- package/lib/components/CodeMirror/index.js +136 -0
- package/lib/components/CodeMirror/index.module.less +36 -0
- package/lib/components/CodeMirror/linters/errorTranslator.d.ts +4 -0
- package/lib/components/CodeMirror/linters/errorTranslator.js +73 -0
- package/lib/components/CodeMirror/linters/jsonLinter.d.ts +15 -0
- package/lib/components/CodeMirror/linters/jsonLinter.js +116 -0
- package/lib/components/CodeMirror/linters/sqlLinter.d.ts +9 -0
- package/lib/components/CodeMirror/linters/sqlLinter.js +226 -0
- package/lib/components/Copy/index.d.ts +12 -0
- package/lib/components/Copy/index.js +113 -0
- package/lib/components/Copy/index.module.less +44 -0
- package/lib/components/DatePicker/RangePicker/index.d.ts +16 -0
- package/lib/components/DatePicker/RangePicker/index.js +163 -0
- package/lib/components/DatePicker/RangePicker/index.module.less +47 -0
- package/lib/components/DatePicker/StepPicker/index.d.ts +19 -0
- package/lib/components/DatePicker/StepPicker/index.js +81 -0
- package/lib/components/DatePicker/StepPicker/index.module.less +27 -0
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +5 -0
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.js +13 -0
- package/lib/components/DatePicker/index.d.ts +21 -0
- package/lib/components/DatePicker/index.js +187 -0
- package/lib/components/DatePicker/index.module.less +39 -0
- package/lib/components/Descriptions/index.d.ts +16 -0
- package/lib/components/Descriptions/index.js +124 -0
- package/lib/components/Descriptions/index.module.less +16 -0
- package/lib/components/Editor/index.d.ts +17 -0
- package/lib/components/Editor/index.js +91 -0
- package/lib/components/Editor/index.module.less +62 -0
- package/lib/components/FileCol/index.d.ts +8 -0
- package/lib/components/FileCol/index.js +59 -0
- package/lib/components/FileCol/index.module.less +23 -0
- package/lib/components/FilePreview/_components/BasePreview/index.module.less +80 -0
- package/lib/components/FilePreview/_components/ImagePreview/index.d.ts +8 -0
- package/lib/components/FilePreview/_components/ImagePreview/index.js +29 -0
- package/lib/components/FilePreview/_components/MarkdownPreview/index.d.ts +8 -0
- package/lib/components/FilePreview/_components/MarkdownPreview/index.js +35 -0
- package/lib/components/FilePreview/_components/PdfPreview/index.d.ts +10 -0
- package/lib/components/FilePreview/_components/PdfPreview/index.js +251 -0
- package/lib/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
- package/lib/components/FilePreview/_components/TextPreview/index.d.ts +8 -0
- package/lib/components/FilePreview/_components/TextPreview/index.js +36 -0
- package/lib/components/FilePreview/_components/VideoPreview/index.d.ts +8 -0
- package/lib/components/FilePreview/_components/VideoPreview/index.js +36 -0
- package/lib/components/FilePreview/_components/XlsxPreview/index.d.ts +9 -0
- package/lib/components/FilePreview/_components/XlsxPreview/index.js +41 -0
- package/lib/components/FilePreview/_hooks/index.d.ts +1 -0
- package/lib/components/FilePreview/_hooks/index.js +12 -0
- package/lib/components/FilePreview/_hooks/useXlsxData.d.ts +10 -0
- package/lib/components/FilePreview/_hooks/useXlsxData.js +26 -0
- package/lib/components/FilePreview/_utils/index.d.ts +2 -0
- package/lib/components/FilePreview/_utils/index.js +12 -0
- package/lib/components/FilePreview/_utils/types.d.ts +2 -0
- package/lib/components/FilePreview/_utils/types.js +7 -0
- package/lib/components/FilePreview/index.d.ts +16 -0
- package/lib/components/FilePreview/index.js +101 -0
- package/lib/components/FilePreview/index.module.less +89 -0
- package/lib/components/FlexFill/index.d.ts +12 -0
- package/lib/components/FlexFill/index.js +30 -0
- package/lib/components/Form/DrawerForm/index.d.ts +18 -0
- package/lib/components/Form/DrawerForm/index.js +115 -0
- package/lib/components/Form/DrawerForm/index.module.less +51 -0
- package/lib/components/Form/ImportForm/index.d.ts +17 -0
- package/lib/components/Form/ImportForm/index.js +110 -0
- package/lib/components/Form/ImportForm/index.module.less +10 -0
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +11 -0
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +53 -0
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +7 -0
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.js +64 -0
- package/lib/components/Form/ModalForm/_hooks/useFormItems.d.ts +9 -0
- package/lib/components/Form/ModalForm/_hooks/useFormItems.js +38 -0
- package/lib/components/Form/ModalForm/index.d.ts +30 -0
- package/lib/components/Form/ModalForm/index.js +155 -0
- package/lib/components/Form/ModalForm/index.module.less +74 -0
- package/lib/components/Form/index.d.ts +13 -0
- package/lib/components/Form/index.js +18 -0
- package/lib/components/FormItem/FormAuto/index.d.ts +8 -0
- package/lib/components/FormItem/FormAuto/index.js +22 -0
- package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.d.ts +8 -0
- package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.js +35 -0
- package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
- package/lib/components/FormItem/FormCheckbox/index.d.ts +13 -0
- package/lib/components/FormItem/FormCheckbox/index.js +41 -0
- package/lib/components/FormItem/FormCheckbox/index.module.less +2 -0
- package/lib/components/FormItem/FormCodeMirror/index.d.ts +8 -0
- package/lib/components/FormItem/FormCodeMirror/index.js +79 -0
- package/lib/components/FormItem/FormDatePicker/FormRangePicker/index.d.ts +8 -0
- package/lib/components/FormItem/FormDatePicker/FormRangePicker/index.js +35 -0
- package/lib/components/FormItem/FormDatePicker/FormStepPicker/index.d.ts +8 -0
- package/lib/components/FormItem/FormDatePicker/FormStepPicker/index.js +35 -0
- package/lib/components/FormItem/FormDatePicker/index.d.ts +15 -0
- package/lib/components/FormItem/FormDatePicker/index.js +39 -0
- package/lib/components/FormItem/FormDatePicker/index.module.less +3 -0
- package/lib/components/FormItem/FormEditor/index.d.ts +8 -0
- package/lib/components/FormItem/FormEditor/index.js +28 -0
- package/lib/components/FormItem/FormInput/FormInputNumber/index.d.ts +8 -0
- package/lib/components/FormItem/FormInput/FormInputNumber/index.js +33 -0
- package/lib/components/FormItem/FormInput/FormPassword/index.d.ts +8 -0
- package/lib/components/FormItem/FormInput/FormPassword/index.js +36 -0
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.d.ts +10 -0
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.js +61 -0
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
- package/lib/components/FormItem/FormInput/FormRangeInput/index.d.ts +8 -0
- package/lib/components/FormItem/FormInput/FormRangeInput/index.js +37 -0
- package/lib/components/FormItem/FormInput/FormTextAreaInput/index.d.ts +10 -0
- package/lib/components/FormItem/FormInput/FormTextAreaInput/index.js +33 -0
- package/lib/components/FormItem/FormInput/index.d.ts +24 -0
- package/lib/components/FormItem/FormInput/index.js +46 -0
- package/lib/components/FormItem/FormRadio/index.d.ts +11 -0
- package/lib/components/FormItem/FormRadio/index.js +40 -0
- package/lib/components/FormItem/FormRadio/index.module.less +106 -0
- package/lib/components/FormItem/FormSegmented/index.d.ts +8 -0
- package/lib/components/FormItem/FormSegmented/index.js +36 -0
- package/lib/components/FormItem/FormSegmented/index.module.less +34 -0
- package/lib/components/FormItem/FormSelect/FormAutoCompleteSelect/index.d.ts +8 -0
- package/lib/components/FormItem/FormSelect/FormAutoCompleteSelect/index.js +33 -0
- package/lib/components/FormItem/FormSelect/FormIconSelect/index.d.ts +8 -0
- package/lib/components/FormItem/FormSelect/FormIconSelect/index.js +31 -0
- package/lib/components/FormItem/FormSelect/FormTreeSelect/index.d.ts +8 -0
- package/lib/components/FormItem/FormSelect/FormTreeSelect/index.js +33 -0
- package/lib/components/FormItem/FormSelect/index.d.ts +17 -0
- package/lib/components/FormItem/FormSelect/index.js +39 -0
- package/lib/components/FormItem/FormSlider/index.d.ts +9 -0
- package/lib/components/FormItem/FormSlider/index.js +70 -0
- package/lib/components/FormItem/FormSlider/index.module.less +15 -0
- package/lib/components/FormItem/FormSwitch/index.d.ts +8 -0
- package/lib/components/FormItem/FormSwitch/index.js +35 -0
- package/lib/components/FormItem/FormSwitch/index.module.less +3 -0
- package/lib/components/FormItem/FormText/index.d.ts +16 -0
- package/lib/components/FormItem/FormText/index.js +64 -0
- package/lib/components/FormItem/FormText/index.module.less +9 -0
- package/lib/components/FormItem/FormTree/index.d.ts +8 -0
- package/lib/components/FormItem/FormTree/index.js +33 -0
- package/lib/components/FormItem/FormUpload/FormImage/index.d.ts +13 -0
- package/lib/components/FormItem/FormUpload/FormImage/index.js +129 -0
- package/lib/components/FormItem/FormUpload/index.d.ts +19 -0
- package/lib/components/FormItem/FormUpload/index.js +143 -0
- package/lib/components/FormItem/FormUpload/index.module.less +142 -0
- package/lib/components/FormItem/ItemContainer/_hooks/useInputSize.d.ts +14 -0
- package/lib/components/FormItem/ItemContainer/_hooks/useInputSize.js +34 -0
- package/lib/components/FormItem/ItemContainer/_hooks/useLabelSize.d.ts +12 -0
- package/lib/components/FormItem/ItemContainer/_hooks/useLabelSize.js +30 -0
- package/lib/components/FormItem/ItemContainer/index.d.ts +40 -0
- package/lib/components/FormItem/ItemContainer/index.js +192 -0
- package/lib/components/FormItem/ItemContainer/index.module.less +387 -0
- package/lib/components/FormItem/databaseTypeMapping.d.ts +56 -0
- package/lib/components/FormItem/databaseTypeMapping.js +178 -0
- package/lib/components/FormItem/index.d.ts +59 -0
- package/lib/components/FormItem/index.js +270 -0
- package/lib/components/FormItem/rules.d.ts +5 -0
- package/lib/components/FormItem/rules.js +75 -0
- package/lib/components/Icon/index.d.ts +10 -0
- package/lib/components/Icon/index.js +88 -0
- package/lib/components/Icon/index.module.less +8 -0
- package/lib/components/Input/Number/index.d.ts +11 -0
- package/lib/components/Input/Number/index.js +128 -0
- package/lib/components/Input/Number/index.module.less +78 -0
- package/lib/components/Input/Password/index.d.ts +9 -0
- package/lib/components/Input/Password/index.js +73 -0
- package/lib/components/Input/Password/index.module.less +15 -0
- package/lib/components/Input/Range/index.d.ts +31 -0
- package/lib/components/Input/Range/index.js +164 -0
- package/lib/components/Input/Range/index.module.less +97 -0
- package/lib/components/Input/Search/index.d.ts +8 -0
- package/lib/components/Input/Search/index.js +71 -0
- package/lib/components/Input/Search/index.module.less +22 -0
- package/lib/components/Input/TextArea/index.d.ts +14 -0
- package/lib/components/Input/TextArea/index.js +138 -0
- package/lib/components/Input/TextArea/index.module.less +130 -0
- package/lib/components/Input/index.d.ts +24 -0
- package/lib/components/Input/index.js +174 -0
- package/lib/components/Input/index.module.less +19 -0
- package/lib/components/Markdown/Editor/index.d.ts +21 -0
- package/lib/components/Markdown/Editor/index.js +77 -0
- package/lib/components/Markdown/Editor/index.module.less +56 -0
- package/lib/components/Markdown/Views/ArtifactBlock.d.ts +15 -0
- package/lib/components/Markdown/Views/ArtifactBlock.js +57 -0
- package/lib/components/Markdown/Views/MermaidBlock.d.ts +10 -0
- package/lib/components/Markdown/Views/MermaidBlock.js +73 -0
- package/lib/components/Markdown/Views/blocks.module.less +86 -0
- package/lib/components/Markdown/Views/index.d.ts +10 -0
- package/lib/components/Markdown/Views/index.js +120 -0
- package/lib/components/Markdown/Views/index.module.less +73 -0
- package/lib/components/Markdown/index.d.ts +9 -0
- package/lib/components/Markdown/index.js +14 -0
- package/lib/components/Modal/_hooks/index.d.ts +2 -0
- package/lib/components/Modal/_hooks/index.js +19 -0
- package/lib/components/Modal/_hooks/useModalDrag.d.ts +12 -0
- package/lib/components/Modal/_hooks/useModalDrag.js +57 -0
- package/lib/components/Modal/_hooks/useModalElements.d.ts +17 -0
- package/lib/components/Modal/_hooks/useModalElements.js +55 -0
- package/lib/components/Modal/_utils/calculatePosition.d.ts +13 -0
- package/lib/components/Modal/_utils/calculatePosition.js +35 -0
- package/lib/components/Modal/_utils/index.d.ts +1 -0
- package/lib/components/Modal/_utils/index.js +12 -0
- package/lib/components/Modal/index.d.ts +11 -0
- package/lib/components/Modal/index.js +95 -0
- package/lib/components/Modal/index.module.less +90 -0
- package/lib/components/Operate/_hooks/useOperateEllipsis.d.ts +10 -0
- package/lib/components/Operate/_hooks/useOperateEllipsis.js +23 -0
- package/lib/components/Operate/index.d.ts +21 -0
- package/lib/components/Operate/index.js +254 -0
- package/lib/components/Operate/index.module.less +60 -0
- package/lib/components/Operate/more.png +0 -0
- package/lib/components/Panel/DefaultPanel/index.d.ts +14 -0
- package/lib/components/Panel/DefaultPanel/index.js +62 -0
- package/lib/components/Panel/DefaultPanel/index.module.less +51 -0
- package/lib/components/Panel/IframePanel/index.d.ts +7 -0
- package/lib/components/Panel/IframePanel/index.js +53 -0
- package/lib/components/Panel/IframePanel/index.module.less +68 -0
- package/lib/components/Panel/ListPanel/ListModalPanel/index.d.ts +52 -0
- package/lib/components/Panel/ListPanel/ListModalPanel/index.js +149 -0
- package/lib/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.d.ts +24 -0
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.js +286 -0
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
- package/lib/components/Panel/ListPanel/_components/ToolBar/index.d.ts +14 -0
- package/lib/components/Panel/ListPanel/_components/ToolBar/index.js +85 -0
- package/lib/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
- package/lib/components/Panel/ListPanel/index.d.ts +69 -0
- package/lib/components/Panel/ListPanel/index.js +304 -0
- package/lib/components/Panel/ListPanel/index.module.less +134 -0
- package/lib/components/Panel/index.d.ts +11 -0
- package/lib/components/Panel/index.js +16 -0
- package/lib/components/Search/SearchAdvanced/index.d.ts +17 -0
- package/lib/components/Search/SearchAdvanced/index.js +162 -0
- package/lib/components/Search/SearchAdvanced/index.module.less +3 -0
- package/lib/components/Search/SearchCard/_components/CollapseToggle/index.d.ts +7 -0
- package/lib/components/Search/SearchCard/_components/CollapseToggle/index.js +33 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.d.ts +10 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +76 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.d.ts +11 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.js +157 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/index.d.ts +33 -0
- package/lib/components/Search/SearchCard/_components/OptionRow/index.js +141 -0
- package/lib/components/Search/SearchCard/_components/SearchBox/index.d.ts +9 -0
- package/lib/components/Search/SearchCard/_components/SearchBox/index.js +34 -0
- package/lib/components/Search/SearchCard/_hooks/index.d.ts +3 -0
- package/lib/components/Search/SearchCard/_hooks/index.js +26 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +13 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +23 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +9 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +146 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +19 -0
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.js +59 -0
- package/lib/components/Search/SearchCard/_utils/getRealValues.d.ts +5 -0
- package/lib/components/Search/SearchCard/_utils/getRealValues.js +30 -0
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +4 -0
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.js +20 -0
- package/lib/components/Search/SearchCard/_utils/index.d.ts +4 -0
- package/lib/components/Search/SearchCard/_utils/index.js +45 -0
- package/lib/components/Search/SearchCard/_utils/typeGuards.d.ts +6 -0
- package/lib/components/Search/SearchCard/_utils/typeGuards.js +21 -0
- package/lib/components/Search/SearchCard/_utils/updateRealValue.d.ts +4 -0
- package/lib/components/Search/SearchCard/_utils/updateRealValue.js +61 -0
- package/lib/components/Search/SearchCard/index.d.ts +19 -0
- package/lib/components/Search/SearchCard/index.js +109 -0
- package/lib/components/Search/SearchCard/index.module.less +295 -0
- package/lib/components/Search/SearchCollapsible/index.d.ts +16 -0
- package/lib/components/Search/SearchCollapsible/index.js +167 -0
- package/lib/components/Search/SearchCollapsible/index.module.less +3 -0
- package/lib/components/Search/SearchWithFilter/index.d.ts +15 -0
- package/lib/components/Search/SearchWithFilter/index.js +147 -0
- package/lib/components/Search/SearchWithFilter/index.module.less +3 -0
- package/lib/components/Search/SearchWithMore/index.d.ts +17 -0
- package/lib/components/Search/SearchWithMore/index.js +148 -0
- package/lib/components/Search/SearchWithMore/index.module.less +3 -0
- package/lib/components/Search/_components/AdvancedFiltersDrawer/index.d.ts +18 -0
- package/lib/components/Search/_components/AdvancedFiltersDrawer/index.js +66 -0
- package/lib/components/Search/_components/ButtonGroup/index.d.ts +15 -0
- package/lib/components/Search/_components/ButtonGroup/index.js +49 -0
- package/lib/components/Search/_components/CollapseToggle/index.d.ts +7 -0
- package/lib/components/Search/_components/CollapseToggle/index.js +30 -0
- package/lib/components/Search/_components/ExpandButton/index.d.ts +10 -0
- package/lib/components/Search/_components/ExpandButton/index.js +39 -0
- package/lib/components/Search/_components/FilterDropdown/index.d.ts +10 -0
- package/lib/components/Search/_components/FilterDropdown/index.js +111 -0
- package/lib/components/Search/_components/SearchButtons/index.d.ts +12 -0
- package/lib/components/Search/_components/SearchButtons/index.js +38 -0
- package/lib/components/Search/_hooks/index.d.ts +6 -0
- package/lib/components/Search/_hooks/index.js +40 -0
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.d.ts +13 -0
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.js +93 -0
- package/lib/components/Search/_hooks/useSearchCommon.d.ts +52 -0
- package/lib/components/Search/_hooks/useSearchCommon.js +204 -0
- package/lib/components/Search/_hooks/useSearchExpand.d.ts +22 -0
- package/lib/components/Search/_hooks/useSearchExpand.js +165 -0
- package/lib/components/Search/_hooks/useSearchForm.d.ts +10 -0
- package/lib/components/Search/_hooks/useSearchForm.js +22 -0
- package/lib/components/Search/_hooks/useSearchItems.d.ts +12 -0
- package/lib/components/Search/_hooks/useSearchItems.js +40 -0
- package/lib/components/Search/_types/index.d.ts +48 -0
- package/lib/components/Search/_types/index.js +5 -0
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +13 -0
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +49 -0
- package/lib/components/Search/_utils/calculateVisibleItems.d.ts +13 -0
- package/lib/components/Search/_utils/calculateVisibleItems.js +40 -0
- package/lib/components/Search/_utils/cleanSearchData.d.ts +6 -0
- package/lib/components/Search/_utils/cleanSearchData.js +22 -0
- package/lib/components/Search/_utils/index.d.ts +3 -0
- package/lib/components/Search/_utils/index.js +26 -0
- package/lib/components/Search/bottomLine.png +0 -0
- package/lib/components/Search/index.d.ts +30 -0
- package/lib/components/Search/index.js +145 -0
- package/lib/components/Search/index.module.less +185 -0
- package/lib/components/SecondConf/index.d.ts +8 -0
- package/lib/components/SecondConf/index.js +47 -0
- package/lib/components/SecondConf/index.module.less +36 -0
- package/lib/components/Select/AutoCompleteSelect/index.d.ts +21 -0
- package/lib/components/Select/AutoCompleteSelect/index.js +199 -0
- package/lib/components/Select/AutoCompleteSelect/index.module.less +315 -0
- package/lib/components/Select/IconSelect/index.d.ts +8 -0
- package/lib/components/Select/IconSelect/index.js +124 -0
- package/lib/components/Select/IconSelect/index.module.less +66 -0
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +8 -0
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +30 -0
- package/lib/components/Select/TreeSelect/_utils/index.d.ts +2 -0
- package/lib/components/Select/TreeSelect/_utils/index.js +37 -0
- package/lib/components/Select/TreeSelect/_utils/treeExpandedKeysState.d.ts +6 -0
- package/lib/components/Select/TreeSelect/_utils/treeExpandedKeysState.js +15 -0
- package/lib/components/Select/TreeSelect/index.d.ts +16 -0
- package/lib/components/Select/TreeSelect/index.js +135 -0
- package/lib/components/Select/TreeSelect/index.module.less +126 -0
- package/lib/components/Select/_components/Prefix/index.d.ts +6 -0
- package/lib/components/Select/_components/Prefix/index.js +22 -0
- package/lib/components/Select/_components/Suffix/index.d.ts +6 -0
- package/lib/components/Select/_components/Suffix/index.js +22 -0
- package/lib/components/Select/_hooks/index.d.ts +3 -0
- package/lib/components/Select/_hooks/index.js +26 -0
- package/lib/components/Select/_hooks/useSelectComposition.d.ts +10 -0
- package/lib/components/Select/_hooks/useSelectComposition.js +34 -0
- package/lib/components/Select/_hooks/useSelectInputOptions.d.ts +17 -0
- package/lib/components/Select/_hooks/useSelectInputOptions.js +28 -0
- package/lib/components/Select/_hooks/useSelectPopupPosition.d.ts +2 -0
- package/lib/components/Select/_hooks/useSelectPopupPosition.js +46 -0
- package/lib/components/Select/_utils/calculatePopupWidth.d.ts +13 -0
- package/lib/components/Select/_utils/calculatePopupWidth.js +21 -0
- package/lib/components/Select/_utils/filterOption.d.ts +13 -0
- package/lib/components/Select/_utils/filterOption.js +25 -0
- package/lib/components/Select/_utils/getElementPosition.d.ts +8 -0
- package/lib/components/Select/_utils/getElementPosition.js +22 -0
- package/lib/components/Select/_utils/index.d.ts +3 -0
- package/lib/components/Select/_utils/index.js +32 -0
- package/lib/components/Select/index.d.ts +23 -0
- package/lib/components/Select/index.js +200 -0
- package/lib/components/Select/index.module.less +320 -0
- package/lib/components/Slider/index.d.ts +7 -0
- package/lib/components/Slider/index.js +46 -0
- package/lib/components/Slider/index.module.less +66 -0
- package/lib/components/Spreadsheet/index.d.ts +14 -0
- package/lib/components/Spreadsheet/index.js +62 -0
- package/lib/components/Spreadsheet/index.module.less +29 -0
- package/lib/components/Spreadsheet/xlsxspread.d.ts +38 -0
- package/lib/components/Spreadsheet/xlsxspread.js +168 -0
- package/lib/components/Switch/index.d.ts +10 -0
- package/lib/components/Switch/index.js +26 -0
- package/lib/components/TabBar/index.d.ts +18 -0
- package/lib/components/TabBar/index.js +56 -0
- package/lib/components/TabBar/index.module.less +114 -0
- package/lib/components/Table/_components/Drag/index.d.ts +21 -0
- package/lib/components/Table/_components/Drag/index.js +100 -0
- package/lib/components/Table/_components/Pagination/index.d.ts +11 -0
- package/lib/components/Table/_components/Pagination/index.js +133 -0
- package/lib/components/Table/_components/Pagination/index.module.less +199 -0
- package/lib/components/Table/_hooks/useAutoScrolling.d.ts +18 -0
- package/lib/components/Table/_hooks/useAutoScrolling.js +414 -0
- package/lib/components/Table/_hooks/useEllipsisTooltip.d.ts +9 -0
- package/lib/components/Table/_hooks/useEllipsisTooltip.js +50 -0
- package/lib/components/Table/_hooks/useHideHeaderScrollbar.d.ts +12 -0
- package/lib/components/Table/_hooks/useHideHeaderScrollbar.js +52 -0
- package/lib/components/Table/_hooks/usePaginationSync.d.ts +17 -0
- package/lib/components/Table/_hooks/usePaginationSync.js +39 -0
- package/lib/components/Table/_hooks/useScrollEnd.d.ts +12 -0
- package/lib/components/Table/_hooks/useScrollEnd.js +73 -0
- package/lib/components/Table/_hooks/useSetTableHeight.d.ts +16 -0
- package/lib/components/Table/_hooks/useSetTableHeight.js +47 -0
- package/lib/components/Table/_hooks/useTableColumns.d.ts +40 -0
- package/lib/components/Table/_hooks/useTableColumns.js +250 -0
- package/lib/components/Table/_hooks/useTablePagination.d.ts +26 -0
- package/lib/components/Table/_hooks/useTablePagination.js +91 -0
- package/lib/components/Table/_utils/tableUtils.d.ts +23 -0
- package/lib/components/Table/_utils/tableUtils.js +49 -0
- package/lib/components/Table/index.d.ts +91 -0
- package/lib/components/Table/index.js +238 -0
- package/lib/components/Table/index.module.less +361 -0
- package/lib/components/Tags/_components/EllipsisTag/index.d.ts +11 -0
- package/lib/components/Tags/_components/EllipsisTag/index.js +51 -0
- package/lib/components/Tags/_components/EllipsisTag/index.module.less +18 -0
- package/lib/components/Tags/_components/MeasureContainer/index.d.ts +10 -0
- package/lib/components/Tags/_components/MeasureContainer/index.js +32 -0
- package/lib/components/Tags/_components/MeasureContainer/index.module.less +15 -0
- package/lib/components/Tags/_hooks/index.d.ts +1 -0
- package/lib/components/Tags/_hooks/index.js +12 -0
- package/lib/components/Tags/_hooks/useVisibleTags.d.ts +15 -0
- package/lib/components/Tags/_hooks/useVisibleTags.js +88 -0
- package/lib/components/Tags/_utils/calculateVisibleCount.d.ts +9 -0
- package/lib/components/Tags/_utils/calculateVisibleCount.js +46 -0
- package/lib/components/Tags/_utils/getTagColor.d.ts +7 -0
- package/lib/components/Tags/_utils/getTagColor.js +18 -0
- package/lib/components/Tags/_utils/index.d.ts +2 -0
- package/lib/components/Tags/_utils/index.js +19 -0
- package/lib/components/Tags/index.d.ts +11 -0
- package/lib/components/Tags/index.js +69 -0
- package/lib/components/Tags/index.module.less +33 -0
- package/lib/components/TextEllipsis/index.d.ts +29 -0
- package/lib/components/TextEllipsis/index.js +168 -0
- package/lib/components/TextEllipsis/index.module.less +28 -0
- package/lib/components/Tree/_components/TitleSearchBar/index.d.ts +16 -0
- package/lib/components/Tree/_components/TitleSearchBar/index.js +62 -0
- package/lib/components/Tree/_hooks/useClearNodeTitle.d.ts +8 -0
- package/lib/components/Tree/_hooks/useClearNodeTitle.js +40 -0
- package/lib/components/Tree/_hooks/useTreeCheck.d.ts +7 -0
- package/lib/components/Tree/_hooks/useTreeCheck.js +32 -0
- package/lib/components/Tree/_hooks/useTreeSearch.d.ts +10 -0
- package/lib/components/Tree/_hooks/useTreeSearch.js +73 -0
- package/lib/components/Tree/_hooks/useTreeState.d.ts +11 -0
- package/lib/components/Tree/_hooks/useTreeState.js +69 -0
- package/lib/components/Tree/_utils/index.d.ts +44 -0
- package/lib/components/Tree/_utils/index.js +149 -0
- package/lib/components/Tree/_utils/normalizeCheckedKeys.d.ts +8 -0
- package/lib/components/Tree/_utils/normalizeCheckedKeys.js +71 -0
- package/lib/components/Tree/index.d.ts +48 -0
- package/lib/components/Tree/index.js +217 -0
- package/lib/components/Tree/index.module.less +142 -0
- package/lib/components/Upload/_components/UploadedItem/index.d.ts +21 -0
- package/lib/components/Upload/_components/UploadedItem/index.js +107 -0
- package/lib/components/Upload/_components/UploadingItem/index.d.ts +19 -0
- package/lib/components/Upload/_components/UploadingItem/index.js +61 -0
- package/lib/components/Upload/_hooks/index.d.ts +3 -0
- package/lib/components/Upload/_hooks/index.js +26 -0
- package/lib/components/Upload/_hooks/useUploadFileList.d.ts +22 -0
- package/lib/components/Upload/_hooks/useUploadFileList.js +66 -0
- package/lib/components/Upload/_hooks/useUploadOperations.d.ts +19 -0
- package/lib/components/Upload/_hooks/useUploadOperations.js +66 -0
- package/lib/components/Upload/_hooks/useUploadPreview.d.ts +17 -0
- package/lib/components/Upload/_hooks/useUploadPreview.js +18 -0
- package/lib/components/Upload/_utils/chunkUpload.d.ts +26 -0
- package/lib/components/Upload/_utils/chunkUpload.js +144 -0
- package/lib/components/Upload/_utils/createFormData.d.ts +4 -0
- package/lib/components/Upload/_utils/createFormData.js +21 -0
- package/lib/components/Upload/_utils/extractFileUrl.d.ts +5 -0
- package/lib/components/Upload/_utils/extractFileUrl.js +22 -0
- package/lib/components/Upload/_utils/index.d.ts +7 -0
- package/lib/components/Upload/_utils/index.js +54 -0
- package/lib/components/Upload/_utils/isSuccessResponse.d.ts +9 -0
- package/lib/components/Upload/_utils/isSuccessResponse.js +13 -0
- package/lib/components/Upload/_utils/normalUpload.d.ts +24 -0
- package/lib/components/Upload/_utils/normalUpload.js +80 -0
- package/lib/components/Upload/_utils/toMB.d.ts +4 -0
- package/lib/components/Upload/_utils/toMB.js +12 -0
- package/lib/components/Upload/_utils/validateFile.d.ts +15 -0
- package/lib/components/Upload/_utils/validateFile.js +35 -0
- package/lib/components/Upload/index.d.ts +42 -0
- package/lib/components/Upload/index.js +211 -0
- package/lib/components/Upload/index.module.less +74 -0
- package/lib/config-provider/index.d.ts +19 -0
- package/lib/config-provider/index.js +38 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +28 -0
- package/lib/hooks/useLabelWidth.d.ts +14 -0
- package/lib/hooks/useLabelWidth.js +58 -0
- package/lib/hooks/usePermissions.d.ts +9 -0
- package/lib/hooks/usePermissions.js +37 -0
- package/lib/index.d.ts +73 -0
- package/lib/index.js +725 -0
- package/lib/request/ResType.d.ts +20 -0
- package/lib/request/ResType.js +5 -0
- package/lib/request/index.d.ts +28 -0
- package/lib/request/index.js +60 -0
- package/lib/styles/antd-overload.less +133 -0
- package/lib/styles/utils.less +88 -0
- package/lib/styles/variables.global.less +1 -0
- package/lib/typings.d.ts +42 -0
- package/lib/utils/cssSupports.d.ts +2 -0
- package/lib/utils/cssSupports.js +27 -0
- package/lib/utils/getUUID.d.ts +4 -0
- package/lib/utils/getUUID.js +17 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +25 -0
- package/package.json +139 -0
- package/src/components/Button/ChakraButton/index.module.less +20 -0
- package/src/components/Button/ChakraButton/index.tsx +76 -0
- package/src/components/Button/index.md +49 -0
- package/src/components/Button/index.module.less +11 -0
- package/src/components/Button/index.tsx +60 -0
- package/src/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.ts +57 -0
- package/src/components/ChainGraph/ChainGraphServices/NodeEvents.ts +80 -0
- package/src/components/ChainGraph/ChainGraphServices/RootNode.ts +339 -0
- package/src/components/ChainGraph/ChainGraphServices/TreeNode.ts +394 -0
- package/src/components/ChainGraph/ChainGraphServices/index.ts +650 -0
- package/src/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
- package/src/components/ChainGraph/_components/ExpandButtons/index.tsx +28 -0
- package/src/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
- package/src/components/ChainGraph/_components/SearchSelect/index.tsx +29 -0
- package/src/components/ChainGraph/_hooks/index.ts +8 -0
- package/src/components/ChainGraph/_hooks/useChainGraphData.ts +58 -0
- package/src/components/ChainGraph/_hooks/useChainGraphExpand.ts +29 -0
- package/src/components/ChainGraph/_hooks/useChainGraphInit.ts +89 -0
- package/src/components/ChainGraph/_hooks/useChainGraphLayout.ts +19 -0
- package/src/components/ChainGraph/_hooks/useChainGraphMiniMap.ts +18 -0
- package/src/components/ChainGraph/_hooks/useChainGraphResize.ts +29 -0
- package/src/components/ChainGraph/_hooks/useChainGraphSearch.ts +17 -0
- package/src/components/ChainGraph/_utils/findAncestorsOfNode.ts +42 -0
- package/src/components/ChainGraph/_utils/getTextSize.ts +21 -0
- package/src/components/ChainGraph/_utils/index.ts +4 -0
- package/src/components/ChainGraph/_utils/styles.ts +24 -0
- package/src/components/ChainGraph/index.md +17 -0
- package/src/components/ChainGraph/index.module.less +39 -0
- package/src/components/ChainGraph/index.tsx +195 -0
- package/src/components/Chart/Bar/Bar3DOpt.tsx +231 -0
- package/src/components/Chart/Bar/index.tsx +392 -0
- package/src/components/Chart/Bubble/index.tsx +437 -0
- package/src/components/Chart/Common/index.tsx +84 -0
- package/src/components/Chart/Gauge/index.tsx +165 -0
- package/src/components/Chart/Group/index.module.less +67 -0
- package/src/components/Chart/Group/index.tsx +134 -0
- package/src/components/Chart/Heatmap/index.tsx +320 -0
- package/src/components/Chart/Line/index.tsx +389 -0
- package/src/components/Chart/Pie/Pie3D/_hooks/index.ts +300 -0
- package/src/components/Chart/Pie/Pie3D/_utils/label.ts +394 -0
- package/src/components/Chart/Pie/Pie3D/_utils/option.ts +147 -0
- package/src/components/Chart/Pie/Pie3D/_utils/parametricEquation.ts +77 -0
- package/src/components/Chart/Pie/Pie3D/_utils/series.ts +74 -0
- package/src/components/Chart/Pie/Pie3D/index.tsx +233 -0
- package/src/components/Chart/Pie/index.tsx +346 -0
- package/src/components/Chart/Polar/index.tsx +231 -0
- package/src/components/Chart/Radar/index.tsx +371 -0
- package/src/components/Chart/Sankey/index.tsx +196 -0
- package/src/components/Chart/Tree/index.tsx +113 -0
- package/src/components/Chart/_utils/autoScrollLegend.ts +107 -0
- package/src/components/Chart/_utils/autoSmooth.ts +164 -0
- package/src/components/Chart/_utils/bubble.ts +260 -0
- package/src/components/Chart/_utils/cartesian.ts +155 -0
- package/src/components/Chart/_utils/heatmap.ts +41 -0
- package/src/components/Chart/_utils/tree.ts +45 -0
- package/src/components/Chart/chartUtils/calculateAxisConfig.ts +96 -0
- package/src/components/Chart/chartUtils/chartTooltipFormatter.ts +128 -0
- package/src/components/Chart/chartUtils/index.ts +37 -0
- package/src/components/Chart/chartUtils/yAxisDisplayUnit.ts +62 -0
- package/src/components/Chart/index.md +17 -0
- package/src/components/Chart/index.module.less +4 -0
- package/src/components/Chart/index.tsx +88 -0
- package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
- package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.tsx +42 -0
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.tsx +167 -0
- package/src/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
- package/src/components/Chat/ChatHistory/_components/NewChatButton/index.tsx +20 -0
- package/src/components/Chat/ChatHistory/_components/index.ts +4 -0
- package/src/components/Chat/ChatHistory/_hooks/index.ts +2 -0
- package/src/components/Chat/ChatHistory/_hooks/useRename.ts +33 -0
- package/src/components/Chat/ChatHistory/_utils/index.ts +7 -0
- package/src/components/Chat/ChatHistory/index.module.less +54 -0
- package/src/components/Chat/ChatHistory/index.tsx +85 -0
- package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
- package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.tsx +39 -0
- package/src/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
- package/src/components/Chat/ChatInput/_components/FileList/index.tsx +30 -0
- package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
- package/src/components/Chat/ChatInput/_components/SendButton/index.tsx +43 -0
- package/src/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
- package/src/components/Chat/ChatInput/_components/StopButton/index.tsx +22 -0
- package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
- package/src/components/Chat/ChatInput/_components/UploadButton/index.tsx +94 -0
- package/src/components/Chat/ChatInput/_components/index.ts +6 -0
- package/src/components/Chat/ChatInput/_hooks/index.ts +3 -0
- package/src/components/Chat/ChatInput/_hooks/useCurrentModel.ts +19 -0
- package/src/components/Chat/ChatInput/_hooks/useFileList.ts +18 -0
- package/src/components/Chat/ChatInput/_utils/index.ts +98 -0
- package/src/components/Chat/ChatInput/index.module.less +100 -0
- package/src/components/Chat/ChatInput/index.tsx +287 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.tsx +63 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.tsx +104 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.tsx +95 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.tsx +120 -0
- package/src/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
- package/src/components/Chat/ChatList/_components/Assistant/index.tsx +117 -0
- package/src/components/Chat/ChatList/_components/User/index.module.less +144 -0
- package/src/components/Chat/ChatList/_components/User/index.tsx +87 -0
- package/src/components/Chat/ChatList/_hooks/index.ts +4 -0
- package/src/components/Chat/ChatList/_hooks/useAssistantNavigation.ts +40 -0
- package/src/components/Chat/ChatList/_hooks/useCalculateRowIndex.ts +128 -0
- package/src/components/Chat/ChatList/_utils/cleanRedactedReasoning.ts +13 -0
- package/src/components/Chat/ChatList/_utils/index.ts +2 -0
- package/src/components/Chat/ChatList/index.module.less +8 -0
- package/src/components/Chat/ChatList/index.tsx +179 -0
- package/src/components/Chat/index.md +17 -0
- package/src/components/Chat/index.tsx +32 -0
- package/src/components/Checkbox/CheckboxGroup/index.module.less +130 -0
- package/src/components/Checkbox/CheckboxGroup/index.tsx +129 -0
- package/src/components/Checkbox/index.md +17 -0
- package/src/components/Checkbox/index.module.less +93 -0
- package/src/components/Checkbox/index.tsx +35 -0
- package/src/components/CodeMirror/index.md +17 -0
- package/src/components/CodeMirror/index.module.less +36 -0
- package/src/components/CodeMirror/index.tsx +171 -0
- package/src/components/CodeMirror/linters/errorTranslator.ts +166 -0
- package/src/components/CodeMirror/linters/jsonLinter.ts +122 -0
- package/src/components/CodeMirror/linters/sqlLinter.ts +226 -0
- package/src/components/Copy/index.md +42 -0
- package/src/components/Copy/index.module.less +44 -0
- package/src/components/Copy/index.tsx +140 -0
- package/src/components/DatePicker/RangePicker/index.module.less +47 -0
- package/src/components/DatePicker/RangePicker/index.tsx +214 -0
- package/src/components/DatePicker/StepPicker/index.module.less +27 -0
- package/src/components/DatePicker/StepPicker/index.tsx +101 -0
- package/src/components/DatePicker/defaultModalPickerGetPopupContainer.ts +7 -0
- package/src/components/DatePicker/index.md +17 -0
- package/src/components/DatePicker/index.module.less +39 -0
- package/src/components/DatePicker/index.tsx +215 -0
- package/src/components/Descriptions/index.md +17 -0
- package/src/components/Descriptions/index.module.less +16 -0
- package/src/components/Descriptions/index.tsx +160 -0
- package/src/components/Editor/index.md +17 -0
- package/src/components/Editor/index.module.less +62 -0
- package/src/components/Editor/index.tsx +103 -0
- package/src/components/FileCol/index.md +17 -0
- package/src/components/FileCol/index.module.less +23 -0
- package/src/components/FileCol/index.tsx +61 -0
- package/src/components/FilePreview/_components/BasePreview/index.module.less +80 -0
- package/src/components/FilePreview/_components/ImagePreview/index.tsx +30 -0
- package/src/components/FilePreview/_components/MarkdownPreview/index.tsx +31 -0
- package/src/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
- package/src/components/FilePreview/_components/PdfPreview/index.tsx +260 -0
- package/src/components/FilePreview/_components/TextPreview/index.tsx +31 -0
- package/src/components/FilePreview/_components/VideoPreview/index.tsx +30 -0
- package/src/components/FilePreview/_components/XlsxPreview/index.tsx +40 -0
- package/src/components/FilePreview/_hooks/index.ts +2 -0
- package/src/components/FilePreview/_hooks/useXlsxData.ts +27 -0
- package/src/components/FilePreview/_utils/index.ts +2 -0
- package/src/components/FilePreview/_utils/types.ts +23 -0
- package/src/components/FilePreview/index.md +17 -0
- package/src/components/FilePreview/index.module.less +89 -0
- package/src/components/FilePreview/index.tsx +92 -0
- package/src/components/FlexFill/index.md +17 -0
- package/src/components/FlexFill/index.tsx +38 -0
- package/src/components/Form/DrawerForm/index.module.less +51 -0
- package/src/components/Form/DrawerForm/index.tsx +135 -0
- package/src/components/Form/ImportForm/index.module.less +10 -0
- package/src/components/Form/ImportForm/index.tsx +129 -0
- package/src/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.ts +78 -0
- package/src/components/Form/ModalForm/_hooks/useColumnFormItems.ts +81 -0
- package/src/components/Form/ModalForm/_hooks/useFormItems.ts +43 -0
- package/src/components/Form/ModalForm/index.module.less +74 -0
- package/src/components/Form/ModalForm/index.tsx +225 -0
- package/src/components/Form/index.md +17 -0
- package/src/components/Form/index.tsx +22 -0
- package/src/components/FormItem/FormAuto/index.tsx +22 -0
- package/src/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
- package/src/components/FormItem/FormCheckbox/FormCheckboxGroup/index.tsx +32 -0
- package/src/components/FormItem/FormCheckbox/index.module.less +2 -0
- package/src/components/FormItem/FormCheckbox/index.tsx +48 -0
- package/src/components/FormItem/FormCodeMirror/index.tsx +92 -0
- package/src/components/FormItem/FormDatePicker/FormRangePicker/index.tsx +33 -0
- package/src/components/FormItem/FormDatePicker/FormStepPicker/index.tsx +33 -0
- package/src/components/FormItem/FormDatePicker/index.module.less +3 -0
- package/src/components/FormItem/FormDatePicker/index.tsx +44 -0
- package/src/components/FormItem/FormEditor/index.tsx +27 -0
- package/src/components/FormItem/FormInput/FormInputNumber/index.tsx +31 -0
- package/src/components/FormItem/FormInput/FormPassword/index.tsx +33 -0
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.tsx +63 -0
- package/src/components/FormItem/FormInput/FormRangeInput/index.tsx +35 -0
- package/src/components/FormItem/FormInput/FormTextAreaInput/index.tsx +33 -0
- package/src/components/FormItem/FormInput/index.tsx +64 -0
- package/src/components/FormItem/FormRadio/index.module.less +106 -0
- package/src/components/FormItem/FormRadio/index.tsx +40 -0
- package/src/components/FormItem/FormSegmented/index.module.less +34 -0
- package/src/components/FormItem/FormSegmented/index.tsx +33 -0
- package/src/components/FormItem/FormSelect/FormAutoCompleteSelect/index.tsx +33 -0
- package/src/components/FormItem/FormSelect/FormIconSelect/index.tsx +29 -0
- package/src/components/FormItem/FormSelect/FormTreeSelect/index.tsx +30 -0
- package/src/components/FormItem/FormSelect/index.tsx +51 -0
- package/src/components/FormItem/FormSlider/index.module.less +15 -0
- package/src/components/FormItem/FormSlider/index.tsx +91 -0
- package/src/components/FormItem/FormSwitch/index.module.less +3 -0
- package/src/components/FormItem/FormSwitch/index.tsx +32 -0
- package/src/components/FormItem/FormText/index.module.less +9 -0
- package/src/components/FormItem/FormText/index.tsx +95 -0
- package/src/components/FormItem/FormTree/index.tsx +33 -0
- package/src/components/FormItem/FormUpload/FormImage/index.tsx +169 -0
- package/src/components/FormItem/FormUpload/index.module.less +142 -0
- package/src/components/FormItem/FormUpload/index.tsx +210 -0
- package/src/components/FormItem/ItemContainer/_hooks/useInputSize.ts +53 -0
- package/src/components/FormItem/ItemContainer/_hooks/useLabelSize.ts +45 -0
- package/src/components/FormItem/ItemContainer/index.module.less +387 -0
- package/src/components/FormItem/ItemContainer/index.tsx +268 -0
- package/src/components/FormItem/databaseTypeMapping.ts +312 -0
- package/src/components/FormItem/index.md +17 -0
- package/src/components/FormItem/index.tsx +387 -0
- package/src/components/FormItem/rules.ts +100 -0
- package/src/components/Icon/index.md +43 -0
- package/src/components/Icon/index.module.less +8 -0
- package/src/components/Icon/index.tsx +120 -0
- package/src/components/Input/Number/index.module.less +78 -0
- package/src/components/Input/Number/index.tsx +174 -0
- package/src/components/Input/Password/index.module.less +15 -0
- package/src/components/Input/Password/index.tsx +85 -0
- package/src/components/Input/Range/index.module.less +97 -0
- package/src/components/Input/Range/index.tsx +225 -0
- package/src/components/Input/Search/index.module.less +22 -0
- package/src/components/Input/Search/index.tsx +81 -0
- package/src/components/Input/TextArea/index.module.less +130 -0
- package/src/components/Input/TextArea/index.tsx +170 -0
- package/src/components/Input/index.md +17 -0
- package/src/components/Input/index.module.less +19 -0
- package/src/components/Input/index.tsx +223 -0
- package/src/components/Markdown/Editor/index.module.less +56 -0
- package/src/components/Markdown/Editor/index.tsx +92 -0
- package/src/components/Markdown/Views/ArtifactBlock.tsx +61 -0
- package/src/components/Markdown/Views/MermaidBlock.tsx +71 -0
- package/src/components/Markdown/Views/blocks.module.less +86 -0
- package/src/components/Markdown/Views/index.module.less +73 -0
- package/src/components/Markdown/Views/index.tsx +107 -0
- package/src/components/Markdown/index.md +17 -0
- package/src/components/Markdown/index.tsx +15 -0
- package/src/components/Modal/_hooks/index.ts +3 -0
- package/src/components/Modal/_hooks/useModalDrag.ts +78 -0
- package/src/components/Modal/_hooks/useModalElements.ts +62 -0
- package/src/components/Modal/_utils/calculatePosition.ts +34 -0
- package/src/components/Modal/_utils/index.ts +2 -0
- package/src/components/Modal/index.md +17 -0
- package/src/components/Modal/index.module.less +90 -0
- package/src/components/Modal/index.tsx +112 -0
- package/src/components/Operate/_hooks/useOperateEllipsis.ts +25 -0
- package/src/components/Operate/index.md +17 -0
- package/src/components/Operate/index.module.less +60 -0
- package/src/components/Operate/index.tsx +335 -0
- package/src/components/Operate/more.png +0 -0
- package/src/components/Panel/DefaultPanel/index.module.less +51 -0
- package/src/components/Panel/DefaultPanel/index.tsx +73 -0
- package/src/components/Panel/IframePanel/index.module.less +68 -0
- package/src/components/Panel/IframePanel/index.tsx +51 -0
- package/src/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
- package/src/components/Panel/ListPanel/ListModalPanel/index.tsx +233 -0
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.tsx +388 -0
- package/src/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
- package/src/components/Panel/ListPanel/_components/ToolBar/index.tsx +107 -0
- package/src/components/Panel/ListPanel/index.module.less +134 -0
- package/src/components/Panel/ListPanel/index.tsx +466 -0
- package/src/components/Panel/index.md +17 -0
- package/src/components/Panel/index.tsx +19 -0
- package/src/components/Search/SearchAdvanced/index.module.less +3 -0
- package/src/components/Search/SearchAdvanced/index.tsx +196 -0
- package/src/components/Search/SearchCard/_components/CollapseToggle/index.tsx +28 -0
- package/src/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.tsx +94 -0
- package/src/components/Search/SearchCard/_components/OptionRow/Item/index.tsx +182 -0
- package/src/components/Search/SearchCard/_components/OptionRow/index.tsx +204 -0
- package/src/components/Search/SearchCard/_components/SearchBox/index.tsx +34 -0
- package/src/components/Search/SearchCard/_hooks/index.ts +4 -0
- package/src/components/Search/SearchCard/_hooks/useSearchCardCollapse.ts +25 -0
- package/src/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.ts +175 -0
- package/src/components/Search/SearchCard/_hooks/useSearchCardValue.ts +63 -0
- package/src/components/Search/SearchCard/_utils/getRealValues.ts +31 -0
- package/src/components/Search/SearchCard/_utils/hasSelectedChildren.ts +21 -0
- package/src/components/Search/SearchCard/_utils/index.ts +9 -0
- package/src/components/Search/SearchCard/_utils/typeGuards.ts +15 -0
- package/src/components/Search/SearchCard/_utils/updateRealValue.ts +62 -0
- package/src/components/Search/SearchCard/index.module.less +295 -0
- package/src/components/Search/SearchCard/index.tsx +123 -0
- package/src/components/Search/SearchCollapsible/index.module.less +3 -0
- package/src/components/Search/SearchCollapsible/index.tsx +206 -0
- package/src/components/Search/SearchWithFilter/index.module.less +3 -0
- package/src/components/Search/SearchWithFilter/index.tsx +183 -0
- package/src/components/Search/SearchWithMore/index.module.less +3 -0
- package/src/components/Search/SearchWithMore/index.tsx +185 -0
- package/src/components/Search/_components/AdvancedFiltersDrawer/index.tsx +87 -0
- package/src/components/Search/_components/ButtonGroup/index.tsx +64 -0
- package/src/components/Search/_components/CollapseToggle/index.tsx +28 -0
- package/src/components/Search/_components/ExpandButton/index.tsx +51 -0
- package/src/components/Search/_components/FilterDropdown/index.tsx +132 -0
- package/src/components/Search/_components/SearchButtons/index.tsx +41 -0
- package/src/components/Search/_hooks/index.ts +6 -0
- package/src/components/Search/_hooks/useAdaptiveColumnNum.ts +115 -0
- package/src/components/Search/_hooks/useSearchCommon.ts +337 -0
- package/src/components/Search/_hooks/useSearchExpand.ts +198 -0
- package/src/components/Search/_hooks/useSearchForm.ts +21 -0
- package/src/components/Search/_hooks/useSearchItems.ts +53 -0
- package/src/components/Search/_types/index.ts +53 -0
- package/src/components/Search/_utils/calculateButtonGroupAndColumnWidth.ts +68 -0
- package/src/components/Search/_utils/calculateVisibleItems.ts +51 -0
- package/src/components/Search/_utils/cleanSearchData.ts +21 -0
- package/src/components/Search/_utils/index.ts +4 -0
- package/src/components/Search/bottomLine.png +0 -0
- package/src/components/Search/index.md +17 -0
- package/src/components/Search/index.module.less +185 -0
- package/src/components/Search/index.tsx +199 -0
- package/src/components/SecondConf/index.md +17 -0
- package/src/components/SecondConf/index.module.less +36 -0
- package/src/components/SecondConf/index.tsx +37 -0
- package/src/components/Select/AutoCompleteSelect/index.module.less +315 -0
- package/src/components/Select/AutoCompleteSelect/index.tsx +244 -0
- package/src/components/Select/IconSelect/index.module.less +66 -0
- package/src/components/Select/IconSelect/index.tsx +145 -0
- package/src/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.ts +32 -0
- package/src/components/Select/TreeSelect/_utils/index.ts +8 -0
- package/src/components/Select/TreeSelect/_utils/treeExpandedKeysState.ts +39 -0
- package/src/components/Select/TreeSelect/index.module.less +126 -0
- package/src/components/Select/TreeSelect/index.tsx +233 -0
- package/src/components/Select/_components/Prefix/index.tsx +15 -0
- package/src/components/Select/_components/Suffix/index.tsx +15 -0
- package/src/components/Select/_hooks/index.ts +4 -0
- package/src/components/Select/_hooks/useSelectComposition.ts +36 -0
- package/src/components/Select/_hooks/useSelectInputOptions.ts +38 -0
- package/src/components/Select/_hooks/useSelectPopupPosition.ts +61 -0
- package/src/components/Select/_utils/calculatePopupWidth.ts +37 -0
- package/src/components/Select/_utils/filterOption.ts +41 -0
- package/src/components/Select/_utils/getElementPosition.ts +16 -0
- package/src/components/Select/_utils/index.ts +4 -0
- package/src/components/Select/index.md +17 -0
- package/src/components/Select/index.module.less +320 -0
- package/src/components/Select/index.tsx +266 -0
- package/src/components/Slider/index.md +17 -0
- package/src/components/Slider/index.module.less +66 -0
- package/src/components/Slider/index.tsx +43 -0
- package/src/components/Spreadsheet/index.md +17 -0
- package/src/components/Spreadsheet/index.module.less +29 -0
- package/src/components/Spreadsheet/index.tsx +64 -0
- package/src/components/Spreadsheet/xlsxspread.ts +179 -0
- package/src/components/Switch/index.md +17 -0
- package/src/components/Switch/index.tsx +36 -0
- package/src/components/TabBar/index.md +17 -0
- package/src/components/TabBar/index.module.less +114 -0
- package/src/components/TabBar/index.tsx +86 -0
- package/src/components/Table/_components/Drag/index.tsx +118 -0
- package/src/components/Table/_components/Pagination/index.module.less +199 -0
- package/src/components/Table/_components/Pagination/index.tsx +149 -0
- package/src/components/Table/_hooks/useAutoScrolling.ts +579 -0
- package/src/components/Table/_hooks/useEllipsisTooltip.ts +59 -0
- package/src/components/Table/_hooks/useHideHeaderScrollbar.ts +89 -0
- package/src/components/Table/_hooks/usePaginationSync.ts +41 -0
- package/src/components/Table/_hooks/useScrollEnd.ts +98 -0
- package/src/components/Table/_hooks/useSetTableHeight.ts +110 -0
- package/src/components/Table/_hooks/useTableColumns.tsx +372 -0
- package/src/components/Table/_hooks/useTablePagination.ts +125 -0
- package/src/components/Table/_utils/tableUtils.ts +43 -0
- package/src/components/Table/index.md +17 -0
- package/src/components/Table/index.module.less +361 -0
- package/src/components/Table/index.tsx +335 -0
- package/src/components/Tags/_components/EllipsisTag/index.module.less +18 -0
- package/src/components/Tags/_components/EllipsisTag/index.tsx +54 -0
- package/src/components/Tags/_components/MeasureContainer/index.module.less +15 -0
- package/src/components/Tags/_components/MeasureContainer/index.tsx +37 -0
- package/src/components/Tags/_hooks/index.ts +1 -0
- package/src/components/Tags/_hooks/useVisibleTags.ts +101 -0
- package/src/components/Tags/_utils/calculateVisibleCount.ts +47 -0
- package/src/components/Tags/_utils/getTagColor.ts +15 -0
- package/src/components/Tags/_utils/index.ts +2 -0
- package/src/components/Tags/index.md +17 -0
- package/src/components/Tags/index.module.less +33 -0
- package/src/components/Tags/index.tsx +80 -0
- package/src/components/TextEllipsis/index.md +17 -0
- package/src/components/TextEllipsis/index.module.less +28 -0
- package/src/components/TextEllipsis/index.tsx +203 -0
- package/src/components/Tree/_components/TitleSearchBar/index.tsx +71 -0
- package/src/components/Tree/_hooks/useClearNodeTitle.ts +46 -0
- package/src/components/Tree/_hooks/useTreeCheck.ts +39 -0
- package/src/components/Tree/_hooks/useTreeSearch.ts +77 -0
- package/src/components/Tree/_hooks/useTreeState.ts +91 -0
- package/src/components/Tree/_utils/index.ts +170 -0
- package/src/components/Tree/_utils/normalizeCheckedKeys.ts +74 -0
- package/src/components/Tree/index.md +17 -0
- package/src/components/Tree/index.module.less +142 -0
- package/src/components/Tree/index.tsx +308 -0
- package/src/components/Upload/_components/UploadedItem/index.tsx +139 -0
- package/src/components/Upload/_components/UploadingItem/index.tsx +68 -0
- package/src/components/Upload/_hooks/index.ts +4 -0
- package/src/components/Upload/_hooks/useUploadFileList.ts +79 -0
- package/src/components/Upload/_hooks/useUploadOperations.ts +77 -0
- package/src/components/Upload/_hooks/useUploadPreview.ts +20 -0
- package/src/components/Upload/_utils/chunkUpload.ts +179 -0
- package/src/components/Upload/_utils/createFormData.ts +19 -0
- package/src/components/Upload/_utils/extractFileUrl.ts +20 -0
- package/src/components/Upload/_utils/index.ts +8 -0
- package/src/components/Upload/_utils/isSuccessResponse.ts +11 -0
- package/src/components/Upload/_utils/normalUpload.ts +94 -0
- package/src/components/Upload/_utils/toMB.ts +7 -0
- package/src/components/Upload/_utils/validateFile.ts +45 -0
- package/src/components/Upload/index.md +17 -0
- package/src/components/Upload/index.module.less +74 -0
- package/src/components/Upload/index.tsx +306 -0
- package/src/config-provider/index.tsx +41 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useLabelWidth.ts +92 -0
- package/src/hooks/usePermissions.ts +48 -0
- package/src/index.ts +88 -0
- package/src/request/ResType.ts +22 -0
- package/src/request/index.ts +51 -0
- package/src/styles/antd-overload.less +133 -0
- package/src/styles/utils.less +88 -0
- package/src/styles/variables.global.less +1 -0
- package/src/typings.d.ts +42 -0
- package/src/utils/cssSupports.ts +28 -0
- package/src/utils/getUUID.ts +10 -0
- package/src/utils/index.ts +5 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { RcFile } from "antd/es/upload";
|
|
3
|
+
import { UploadingList } from "..";
|
|
4
|
+
import type { UploadRequestOption } from "rc-upload/lib/interface";
|
|
5
|
+
interface NormalUploadOptions {
|
|
6
|
+
file: RcFile;
|
|
7
|
+
action: string;
|
|
8
|
+
data?: Partial<Record<string, string>>;
|
|
9
|
+
headers?: AxiosRequestConfig["headers"];
|
|
10
|
+
accept?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
en?: boolean;
|
|
13
|
+
uploadingList: UploadingList;
|
|
14
|
+
setUploadingList: (list: UploadingList) => void;
|
|
15
|
+
onProgress?: UploadRequestOption["onProgress"];
|
|
16
|
+
onSuccess?: UploadRequestOption["onSuccess"];
|
|
17
|
+
onError?: UploadRequestOption["onError"];
|
|
18
|
+
onUploadSuccess?: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 普通文件上传
|
|
22
|
+
*/
|
|
23
|
+
export declare function normalUpload({ file, action, data, headers, accept, size, en, uploadingList, setUploadingList, onProgress, onSuccess, onError, onUploadSuccess, }: NormalUploadOptions): Promise<void>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
import axios from "axios";
|
|
6
|
+
import { deepCopy } from "hsu-utils";
|
|
7
|
+
import { validateFile, createFormData, isSuccessResponse } from ".";
|
|
8
|
+
/**
|
|
9
|
+
* 普通文件上传
|
|
10
|
+
*/
|
|
11
|
+
export function normalUpload(_x) {
|
|
12
|
+
return _normalUpload.apply(this, arguments);
|
|
13
|
+
}
|
|
14
|
+
function _normalUpload() {
|
|
15
|
+
_normalUpload = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
16
|
+
var file, action, data, headers, accept, size, en, uploadingList, setUploadingList, onProgress, onSuccess, onError, onUploadSuccess, validation, formData, CancelToken, postPromise;
|
|
17
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19
|
+
case 0:
|
|
20
|
+
file = _ref.file, action = _ref.action, data = _ref.data, headers = _ref.headers, accept = _ref.accept, size = _ref.size, en = _ref.en, uploadingList = _ref.uploadingList, setUploadingList = _ref.setUploadingList, onProgress = _ref.onProgress, onSuccess = _ref.onSuccess, onError = _ref.onError, onUploadSuccess = _ref.onUploadSuccess;
|
|
21
|
+
// 验证文件
|
|
22
|
+
validation = validateFile({
|
|
23
|
+
file: file,
|
|
24
|
+
accept: accept,
|
|
25
|
+
size: size,
|
|
26
|
+
en: en
|
|
27
|
+
});
|
|
28
|
+
if (validation.valid) {
|
|
29
|
+
_context.next = 5;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
onError === null || onError === void 0 || onError(validation.error);
|
|
33
|
+
return _context.abrupt("return");
|
|
34
|
+
case 5:
|
|
35
|
+
formData = createFormData(data);
|
|
36
|
+
formData.append("file", file);
|
|
37
|
+
CancelToken = axios.CancelToken;
|
|
38
|
+
postPromise = axios.post(action, formData, {
|
|
39
|
+
headers: headers,
|
|
40
|
+
onUploadProgress: function onUploadProgress(progressEvent) {
|
|
41
|
+
if (progressEvent.loaded === progressEvent.total) {
|
|
42
|
+
onProgress === null || onProgress === void 0 || onProgress({
|
|
43
|
+
percent: 50
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
cancelToken: new CancelToken(function executor(c) {
|
|
48
|
+
uploadingList[file.uid] ? uploadingList[file.uid].push(c) : uploadingList[file.uid] = [c];
|
|
49
|
+
setUploadingList(deepCopy(uploadingList));
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
postPromise.then(function (res) {
|
|
53
|
+
if (isSuccessResponse(res.data)) {
|
|
54
|
+
onProgress === null || onProgress === void 0 || onProgress({
|
|
55
|
+
percent: 100
|
|
56
|
+
});
|
|
57
|
+
onSuccess === null || onSuccess === void 0 || onSuccess(res.data);
|
|
58
|
+
onUploadSuccess === null || onUploadSuccess === void 0 || onUploadSuccess();
|
|
59
|
+
} else {
|
|
60
|
+
onError === null || onError === void 0 || onError(new Error(res.data.msg || (en ? "Upload failed" : "上传失败")));
|
|
61
|
+
}
|
|
62
|
+
delete uploadingList[file.uid];
|
|
63
|
+
setUploadingList(deepCopy(uploadingList));
|
|
64
|
+
}).catch(function (e) {
|
|
65
|
+
if (e.code === "ERR_CANCELED") {
|
|
66
|
+
onSuccess === null || onSuccess === void 0 || onSuccess({
|
|
67
|
+
code: "ERR_CANCELED"
|
|
68
|
+
});
|
|
69
|
+
} else {
|
|
70
|
+
onError === null || onError === void 0 || onError(new Error(en ? "Upload failed" : "上传失败"));
|
|
71
|
+
}
|
|
72
|
+
delete uploadingList[file.uid];
|
|
73
|
+
setUploadingList(deepCopy(uploadingList));
|
|
74
|
+
});
|
|
75
|
+
case 10:
|
|
76
|
+
case "end":
|
|
77
|
+
return _context.stop();
|
|
78
|
+
}
|
|
79
|
+
}, _callee);
|
|
80
|
+
}));
|
|
81
|
+
return _normalUpload.apply(this, arguments);
|
|
82
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RcFile } from "antd/es/upload";
|
|
2
|
+
interface ValidateFileOptions {
|
|
3
|
+
file: RcFile;
|
|
4
|
+
accept?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
en?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 验证文件格式和大小
|
|
10
|
+
*/
|
|
11
|
+
export declare function validateFile({ file, accept, size, en, }: ValidateFileOptions): {
|
|
12
|
+
valid: boolean;
|
|
13
|
+
error?: Error;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { toMB } from "./toMB";
|
|
2
|
+
/**
|
|
3
|
+
* 验证文件格式和大小
|
|
4
|
+
*/
|
|
5
|
+
export function validateFile(_ref) {
|
|
6
|
+
var file = _ref.file,
|
|
7
|
+
accept = _ref.accept,
|
|
8
|
+
size = _ref.size,
|
|
9
|
+
en = _ref.en;
|
|
10
|
+
if (accept) {
|
|
11
|
+
var fileRegex = new RegExp("(".concat(accept.replace(/,/g, "|"), ")$"));
|
|
12
|
+
if (!fileRegex.test(file.name.toLowerCase())) {
|
|
13
|
+
return {
|
|
14
|
+
valid: false,
|
|
15
|
+
error: new Error(en ? "File format error, please upload ".concat(accept, " file") : "\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4E0A\u4F20 ".concat(accept, " \u6587\u4EF6"))
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (size && file.size > toMB(size)) {
|
|
20
|
+
return {
|
|
21
|
+
valid: false,
|
|
22
|
+
error: new Error(en ? "File size cannot exceed ".concat(size, "MB") : "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(size, "MB"))
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
valid: true
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UploadProps as AntdUploadProps, UploadFile } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Canceler } from "axios";
|
|
4
|
+
import { ButtonProps, ProgressProps } from "antd";
|
|
5
|
+
import { FilePreviewType } from "../FilePreview";
|
|
6
|
+
export type UploadingList = Record<string, Canceler[]>;
|
|
7
|
+
export interface UploadProps extends Omit<AntdUploadProps, "action" | "data"> {
|
|
8
|
+
drop?: true;
|
|
9
|
+
onUploading?: (fileList: UploadFile[]) => void;
|
|
10
|
+
action?: string;
|
|
11
|
+
chunkAction?: string;
|
|
12
|
+
mergeChunkAction?: string;
|
|
13
|
+
chunkNum?: number;
|
|
14
|
+
data?: Partial<Record<string, string>>;
|
|
15
|
+
sharding?: boolean;
|
|
16
|
+
size?: number;
|
|
17
|
+
onUploadingList?: (list: Record<string, Canceler[]>) => void;
|
|
18
|
+
rmFile?: string;
|
|
19
|
+
onUploadSuccess?: () => void;
|
|
20
|
+
listProps?: {
|
|
21
|
+
item?: string;
|
|
22
|
+
itemName?: string;
|
|
23
|
+
itemProgress?: ProgressProps & {
|
|
24
|
+
hide?: boolean;
|
|
25
|
+
};
|
|
26
|
+
itemRemove?: ButtonProps;
|
|
27
|
+
formatUrl?: (file: UploadFile) => string;
|
|
28
|
+
itemDownload?: ButtonProps & {
|
|
29
|
+
formatUrl?: (file: UploadFile) => string;
|
|
30
|
+
};
|
|
31
|
+
itemPreview?: ButtonProps & {
|
|
32
|
+
formatInfo?: (file: UploadFile) => {
|
|
33
|
+
fileUrl?: string;
|
|
34
|
+
fileType?: FilePreviewType;
|
|
35
|
+
fileName?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
en?: boolean;
|
|
40
|
+
}
|
|
41
|
+
declare const Upload: React.FC<UploadProps>;
|
|
42
|
+
export default Upload;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["disabled", "drop", "onChange", "fileList", "onUploading", "action", "chunkAction", "mergeChunkAction", "chunkNum", "data", "sharding", "size", "accept", "onUploadingList", "rmFile", "onUploadSuccess", "className", "headers", "listProps", "listType", "en", "onDownload", "onPreview"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
9
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
10
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
13
|
+
import { Upload as AntdUpload } from "antd";
|
|
14
|
+
import React, { useCallback } from "react";
|
|
15
|
+
import { deepCopy } from "hsu-utils";
|
|
16
|
+
import styles from "./index.module.less";
|
|
17
|
+
import classNames from "classnames";
|
|
18
|
+
import FilePreview from "../FilePreview";
|
|
19
|
+
import { useUploadFileList, useUploadOperations, useUploadPreview } from "./_hooks";
|
|
20
|
+
import { chunkUpload, normalUpload } from "./_utils";
|
|
21
|
+
import { UploadingItem } from "./_components/UploadingItem";
|
|
22
|
+
import { UploadedItem } from "./_components/UploadedItem";
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
var Upload = function Upload(props) {
|
|
27
|
+
var _props$disabled = props.disabled,
|
|
28
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
29
|
+
drop = props.drop,
|
|
30
|
+
onChange = props.onChange,
|
|
31
|
+
_props$fileList = props.fileList,
|
|
32
|
+
fileList = _props$fileList === void 0 ? [] : _props$fileList,
|
|
33
|
+
onUploading = props.onUploading,
|
|
34
|
+
action = props.action,
|
|
35
|
+
chunkAction = props.chunkAction,
|
|
36
|
+
mergeChunkAction = props.mergeChunkAction,
|
|
37
|
+
_props$chunkNum = props.chunkNum,
|
|
38
|
+
chunkNum = _props$chunkNum === void 0 ? 3 : _props$chunkNum,
|
|
39
|
+
data = props.data,
|
|
40
|
+
sharding = props.sharding,
|
|
41
|
+
size = props.size,
|
|
42
|
+
_props$accept = props.accept,
|
|
43
|
+
accept = _props$accept === void 0 ? "" : _props$accept,
|
|
44
|
+
onUploadingList = props.onUploadingList,
|
|
45
|
+
rmFile = props.rmFile,
|
|
46
|
+
onUploadSuccess = props.onUploadSuccess,
|
|
47
|
+
className = props.className,
|
|
48
|
+
headers = props.headers,
|
|
49
|
+
listProps = props.listProps,
|
|
50
|
+
listType = props.listType,
|
|
51
|
+
en = props.en,
|
|
52
|
+
onDownload = props.onDownload,
|
|
53
|
+
onPreview = props.onPreview,
|
|
54
|
+
uploadConfig = _objectWithoutProperties(props, _excluded);
|
|
55
|
+
var _useUploadFileList = useUploadFileList({
|
|
56
|
+
fileList: fileList,
|
|
57
|
+
onChange: onChange,
|
|
58
|
+
rmFile: rmFile
|
|
59
|
+
}),
|
|
60
|
+
_fileList = _useUploadFileList.fileList,
|
|
61
|
+
setFileList = _useUploadFileList.setFileList,
|
|
62
|
+
handleFileListChange = _useUploadFileList.onChange;
|
|
63
|
+
var _useUploadOperations = useUploadOperations({
|
|
64
|
+
onUploadingList: onUploadingList
|
|
65
|
+
}),
|
|
66
|
+
uploadingList = _useUploadOperations.uploadingList,
|
|
67
|
+
setUploadingList = _useUploadOperations.setUploadingList,
|
|
68
|
+
downloading = _useUploadOperations.downloading,
|
|
69
|
+
setDownloading = _useUploadOperations.setDownloading;
|
|
70
|
+
var _useUploadPreview = useUploadPreview(),
|
|
71
|
+
previewFile = _useUploadPreview.file,
|
|
72
|
+
previewOpen = _useUploadPreview.open,
|
|
73
|
+
setPreviewFile = _useUploadPreview.setFile;
|
|
74
|
+
|
|
75
|
+
// 分片上传
|
|
76
|
+
var chunkCustomRequest = useCallback( /*#__PURE__*/function () {
|
|
77
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
|
|
78
|
+
var _file, onSuccess, onError, onProgress, file;
|
|
79
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
80
|
+
while (1) switch (_context.prev = _context.next) {
|
|
81
|
+
case 0:
|
|
82
|
+
_file = options.file, onSuccess = options.onSuccess, onError = options.onError, onProgress = options.onProgress;
|
|
83
|
+
if (!(typeof _file === "string" || !chunkAction || !mergeChunkAction)) {
|
|
84
|
+
_context.next = 3;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
return _context.abrupt("return");
|
|
88
|
+
case 3:
|
|
89
|
+
file = new File([_file], encodeURIComponent(_file.name), {
|
|
90
|
+
type: _file.type
|
|
91
|
+
});
|
|
92
|
+
file.uid = _file.uid;
|
|
93
|
+
_context.next = 7;
|
|
94
|
+
return chunkUpload({
|
|
95
|
+
file: file,
|
|
96
|
+
chunkAction: chunkAction,
|
|
97
|
+
mergeChunkAction: mergeChunkAction,
|
|
98
|
+
chunkNum: chunkNum,
|
|
99
|
+
data: data,
|
|
100
|
+
headers: headers,
|
|
101
|
+
accept: accept,
|
|
102
|
+
size: size,
|
|
103
|
+
en: en,
|
|
104
|
+
uploadingList: uploadingList,
|
|
105
|
+
setUploadingList: setUploadingList,
|
|
106
|
+
onProgress: onProgress,
|
|
107
|
+
onSuccess: onSuccess,
|
|
108
|
+
onError: onError,
|
|
109
|
+
onUploadSuccess: onUploadSuccess
|
|
110
|
+
});
|
|
111
|
+
case 7:
|
|
112
|
+
case "end":
|
|
113
|
+
return _context.stop();
|
|
114
|
+
}
|
|
115
|
+
}, _callee);
|
|
116
|
+
}));
|
|
117
|
+
return function (_x) {
|
|
118
|
+
return _ref.apply(this, arguments);
|
|
119
|
+
};
|
|
120
|
+
}(), [chunkAction, mergeChunkAction, chunkNum, data, headers, accept, size, en, uploadingList, setUploadingList, onUploadSuccess]);
|
|
121
|
+
|
|
122
|
+
// 普通上传
|
|
123
|
+
var customRequest = useCallback( /*#__PURE__*/function () {
|
|
124
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(options) {
|
|
125
|
+
var _file, onSuccess, onError, onProgress, file;
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
127
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
_file = options.file, onSuccess = options.onSuccess, onError = options.onError, onProgress = options.onProgress;
|
|
130
|
+
if (!(typeof _file === "string" || !action)) {
|
|
131
|
+
_context2.next = 4;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
onError === null || onError === void 0 || onError(new Error("没有上传地址"));
|
|
135
|
+
return _context2.abrupt("return");
|
|
136
|
+
case 4:
|
|
137
|
+
file = new File([_file], encodeURIComponent(_file.name), {
|
|
138
|
+
type: _file.type
|
|
139
|
+
});
|
|
140
|
+
file.uid = _file.uid;
|
|
141
|
+
_context2.next = 8;
|
|
142
|
+
return normalUpload({
|
|
143
|
+
file: file,
|
|
144
|
+
action: action,
|
|
145
|
+
data: data,
|
|
146
|
+
headers: headers,
|
|
147
|
+
accept: accept,
|
|
148
|
+
size: size,
|
|
149
|
+
en: en,
|
|
150
|
+
uploadingList: uploadingList,
|
|
151
|
+
setUploadingList: setUploadingList,
|
|
152
|
+
onProgress: onProgress,
|
|
153
|
+
onSuccess: onSuccess,
|
|
154
|
+
onError: onError,
|
|
155
|
+
onUploadSuccess: onUploadSuccess
|
|
156
|
+
});
|
|
157
|
+
case 8:
|
|
158
|
+
case "end":
|
|
159
|
+
return _context2.stop();
|
|
160
|
+
}
|
|
161
|
+
}, _callee2);
|
|
162
|
+
}));
|
|
163
|
+
return function (_x2) {
|
|
164
|
+
return _ref2.apply(this, arguments);
|
|
165
|
+
};
|
|
166
|
+
}(), [action, data, headers, accept, size, en, uploadingList, setUploadingList, onUploadSuccess]);
|
|
167
|
+
var handleChange = function handleChange(_ref3) {
|
|
168
|
+
var file = _ref3.file,
|
|
169
|
+
newFileList = _ref3.fileList;
|
|
170
|
+
handleFileListChange({
|
|
171
|
+
file: file,
|
|
172
|
+
fileList: newFileList
|
|
173
|
+
});
|
|
174
|
+
var uploading = newFileList.filter(function (item) {
|
|
175
|
+
return item.status === "uploading";
|
|
176
|
+
});
|
|
177
|
+
onUploading === null || onUploading === void 0 || onUploading(uploading);
|
|
178
|
+
};
|
|
179
|
+
var handleRemove = useCallback(function (file) {
|
|
180
|
+
if (uploadingList[file.uid]) {
|
|
181
|
+
var _uploadingList$file$u;
|
|
182
|
+
(_uploadingList$file$u = uploadingList[file.uid]) === null || _uploadingList$file$u === void 0 || _uploadingList$file$u.forEach(function (c) {
|
|
183
|
+
return c();
|
|
184
|
+
});
|
|
185
|
+
delete uploadingList[file.uid];
|
|
186
|
+
setUploadingList(deepCopy(uploadingList));
|
|
187
|
+
}
|
|
188
|
+
var filteredList = _fileList.filter(function (item) {
|
|
189
|
+
return item.uid !== file.uid;
|
|
190
|
+
});
|
|
191
|
+
setFileList(filteredList);
|
|
192
|
+
onChange === null || onChange === void 0 || onChange({
|
|
193
|
+
file: file,
|
|
194
|
+
fileList: filteredList
|
|
195
|
+
});
|
|
196
|
+
}, [uploadingList, setUploadingList, _fileList, setFileList, onChange]);
|
|
197
|
+
var Upload = drop ? AntdUpload.Dragger : AntdUpload;
|
|
198
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
199
|
+
children: [/*#__PURE__*/_jsx(Upload, _objectSpread({
|
|
200
|
+
disabled: disabled,
|
|
201
|
+
className: classNames(styles.Upload, className),
|
|
202
|
+
customRequest: sharding ? chunkCustomRequest : customRequest,
|
|
203
|
+
fileList: Array.isArray(_fileList) ? _fileList.filter(function (item) {
|
|
204
|
+
return item.status !== "error";
|
|
205
|
+
}) : undefined,
|
|
206
|
+
onChange: handleChange,
|
|
207
|
+
accept: accept,
|
|
208
|
+
onRemove: handleRemove,
|
|
209
|
+
listType: listType,
|
|
210
|
+
onDownload: onDownload,
|
|
211
|
+
onPreview: onPreview,
|
|
212
|
+
itemRender: listType === "picture-card" ? undefined : function (_, file, __, _ref4) {
|
|
213
|
+
var remove = _ref4.remove;
|
|
214
|
+
if (file.status === "removed") {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
if (file.status === "uploading") {
|
|
218
|
+
return /*#__PURE__*/_jsx(UploadingItem, {
|
|
219
|
+
file: file,
|
|
220
|
+
listProps: listProps,
|
|
221
|
+
en: en,
|
|
222
|
+
onRemove: remove
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return /*#__PURE__*/_jsx(UploadedItem, {
|
|
226
|
+
file: file,
|
|
227
|
+
listProps: listProps,
|
|
228
|
+
en: en,
|
|
229
|
+
disabled: disabled,
|
|
230
|
+
downloading: downloading,
|
|
231
|
+
setDownloading: setDownloading,
|
|
232
|
+
onPreview: onPreview,
|
|
233
|
+
onDownload: onDownload,
|
|
234
|
+
onRemove: remove,
|
|
235
|
+
onPreviewClick: function onPreviewClick(info) {
|
|
236
|
+
setPreviewFile(info);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}, uploadConfig)), /*#__PURE__*/_jsx(FilePreview, _objectSpread(_objectSpread({}, previewFile), {}, {
|
|
241
|
+
open: previewOpen,
|
|
242
|
+
onClose: function onClose() {
|
|
243
|
+
return setPreviewFile({});
|
|
244
|
+
}
|
|
245
|
+
}))]
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
export default Upload;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.Upload {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
|
|
7
|
+
span.ant-upload {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ant-upload-list {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
row-gap: 5px;
|
|
15
|
+
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
&.ant-upload-list-picture-card {
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
gap: 5px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::before,
|
|
25
|
+
&::after {
|
|
26
|
+
content: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fileItem {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
column-gap: 5px;
|
|
33
|
+
|
|
34
|
+
width: 100%;
|
|
35
|
+
|
|
36
|
+
.uploading {
|
|
37
|
+
flex: 1;
|
|
38
|
+
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
|
|
43
|
+
min-width: 0px;
|
|
44
|
+
margin-bottom: -5px;
|
|
45
|
+
|
|
46
|
+
&:not(.progress) {
|
|
47
|
+
margin-bottom: 0px;
|
|
48
|
+
|
|
49
|
+
.fileName {
|
|
50
|
+
margin-bottom: 0px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fileName {
|
|
56
|
+
flex: 1;
|
|
57
|
+
|
|
58
|
+
min-width: 0px;
|
|
59
|
+
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
|
|
64
|
+
margin-bottom: -12px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:not(.progress) {
|
|
68
|
+
.fileName {
|
|
69
|
+
margin-bottom: 0px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RequestImpl } from "../request";
|
|
3
|
+
export interface ConfigProviderProps {
|
|
4
|
+
/** 当前用户权限码列表;传入后 usePermissions / hasPermi 据此校验。不传则默认全部放行 */
|
|
5
|
+
permissions?: string[] | null;
|
|
6
|
+
/** 注入 HTTP 请求实现,供 ImportForm 等智能组件使用 */
|
|
7
|
+
request?: Partial<RequestImpl>;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Hsu UI 全局配置:注入权限与请求实现。
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <ConfigProvider permissions={perms} request={{ get, post, del, put }}>
|
|
15
|
+
* <App />
|
|
16
|
+
* </ConfigProvider>
|
|
17
|
+
*/
|
|
18
|
+
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
19
|
+
export default ConfigProvider;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { PermissionsContent } from "../hooks/usePermissions";
|
|
3
|
+
import { configureRequest } from "../request";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
/**
|
|
6
|
+
* Hsu UI 全局配置:注入权限与请求实现。
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <ConfigProvider permissions={perms} request={{ get, post, del, put }}>
|
|
10
|
+
* <App />
|
|
11
|
+
* </ConfigProvider>
|
|
12
|
+
*/
|
|
13
|
+
var ConfigProvider = function ConfigProvider(_ref) {
|
|
14
|
+
var _ref$permissions = _ref.permissions,
|
|
15
|
+
permissions = _ref$permissions === void 0 ? null : _ref$permissions,
|
|
16
|
+
request = _ref.request,
|
|
17
|
+
children = _ref.children;
|
|
18
|
+
// 在渲染期同步注入,确保子组件首次交互即可拿到 request 实现
|
|
19
|
+
useMemo(function () {
|
|
20
|
+
if (request) configureRequest(request);
|
|
21
|
+
}, [request]);
|
|
22
|
+
var permissionsValue = useMemo(function () {
|
|
23
|
+
return {
|
|
24
|
+
permissions: permissions
|
|
25
|
+
};
|
|
26
|
+
}, [permissions]);
|
|
27
|
+
return /*#__PURE__*/_jsx(PermissionsContent.Provider, {
|
|
28
|
+
value: permissionsValue,
|
|
29
|
+
children: children
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export default ConfigProvider;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormItemProps } from "../components/FormItem";
|
|
2
|
+
interface Font {
|
|
3
|
+
style?: string;
|
|
4
|
+
variant?: string;
|
|
5
|
+
weight?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
lineHeight?: number;
|
|
8
|
+
family?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function useLabelWidth(formItem?: FormItemProps[], font?: Font, min?: boolean | number): [
|
|
11
|
+
number,
|
|
12
|
+
(formItem: FormItemProps[], font?: Font, min?: boolean | number) => number
|
|
13
|
+
];
|
|
14
|
+
export {};
|