@hsu-react/ui 0.0.13 → 0.0.14
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/LICENSE +21 -0
- package/README.md +11 -0
- package/es/components/Button/index.js +2 -2
- package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +4 -4
- package/es/components/ChainGraph/ChainGraphServices/NodeEvents.js +3 -3
- package/es/components/ChainGraph/ChainGraphServices/RootNode.js +27 -27
- package/es/components/ChainGraph/ChainGraphServices/TreeNode.js +32 -32
- package/es/components/ChainGraph/ChainGraphServices/index.js +11 -11
- package/es/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +5 -5
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.js +12 -12
- package/es/components/ChainGraph/_utils/getTextSize.d.ts +4 -4
- package/es/components/ChainGraph/_utils/getTextSize.js +4 -4
- package/es/components/ChainGraph/_utils/styles.d.ts +3 -3
- package/es/components/ChainGraph/_utils/styles.js +3 -3
- package/es/components/ChainGraph/index.js +7 -7
- package/es/components/ChainGraph/index.module.scss +2 -2
- package/es/components/Chart/Bar/Bar3DOpt.d.ts +9 -9
- package/es/components/Chart/Bar/Bar3DOpt.js +29 -29
- package/es/components/Chart/Bar/index.d.ts +5 -5
- package/es/components/Chart/Bar/index.js +23 -23
- package/es/components/Chart/Bubble/index.d.ts +6 -6
- package/es/components/Chart/Bubble/index.js +41 -41
- package/es/components/Chart/Common/index.js +12 -12
- package/es/components/Chart/Gauge/index.js +11 -11
- package/es/components/Chart/Group/index.js +1 -1
- package/es/components/Chart/Heatmap/index.d.ts +12 -12
- package/es/components/Chart/Heatmap/index.js +24 -24
- package/es/components/Chart/Line/index.d.ts +5 -5
- package/es/components/Chart/Line/index.js +23 -23
- package/es/components/Chart/Pie/Pie3D/_hooks/index.js +14 -14
- package/es/components/Chart/Pie/Pie3D/_utils/label.js +30 -30
- package/es/components/Chart/Pie/index.d.ts +8 -8
- package/es/components/Chart/Pie/index.js +34 -34
- package/es/components/Chart/Polar/index.js +11 -11
- package/es/components/Chart/Radar/index.d.ts +8 -8
- package/es/components/Chart/Radar/index.js +7 -7
- package/es/components/Chart/Sankey/index.js +12 -12
- package/es/components/Chart/Tree/index.js +12 -12
- package/es/components/Chart/_utils/autoSmooth.d.ts +1 -1
- package/es/components/Chart/_utils/autoSmooth.js +2 -2
- package/es/components/Chart/_utils/bubble.js +8 -8
- package/es/components/Chart/_utils/cartesian.d.ts +4 -4
- package/es/components/Chart/_utils/cartesian.js +4 -4
- package/es/components/Chart/chartUtils/calculateAxisConfig.d.ts +4 -4
- package/es/components/Chart/chartUtils/calculateAxisConfig.js +16 -16
- package/es/components/Chart/chartUtils/chartTooltipFormatter.d.ts +1 -1
- package/es/components/Chart/chartUtils/chartTooltipFormatter.js +1 -1
- package/es/components/Chart/chartUtils/useDataZoomWindow.d.ts +7 -7
- package/es/components/Chart/chartUtils/useDataZoomWindow.js +4 -4
- package/es/components/Chart/chartUtils/useLegendSelection.d.ts +6 -6
- package/es/components/Chart/chartUtils/useLegendSelection.js +3 -3
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +4 -4
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.js +4 -4
- package/es/components/Chart/index.d.ts +2 -2
- package/es/components/Chart/index.js +1 -1
- package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.js +8 -8
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/es/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/es/components/Chat/ChatHistory/_utils/index.d.ts +1 -1
- package/es/components/Chat/ChatHistory/_utils/index.js +1 -1
- package/es/components/Chat/ChatHistory/index.js +2 -2
- package/es/components/Chat/ChatHistory/index.module.scss +3 -3
- package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/es/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/es/components/Chat/ChatInput/_components/UploadButton/index.js +1 -1
- package/es/components/Chat/ChatInput/_utils/index.d.ts +3 -3
- package/es/components/Chat/ChatInput/_utils/index.js +3 -3
- package/es/components/Chat/ChatInput/index.d.ts +5 -5
- package/es/components/Chat/ChatInput/index.js +28 -23
- package/es/components/Chat/ChatInput/index.module.scss +4 -4
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +0 -1
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/es/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +1 -1
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.js +1 -1
- package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +1 -1
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +3 -3
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +3 -3
- package/es/components/Checkbox/CheckboxGroup/index.js +6 -6
- package/es/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/es/components/Checkbox/index.module.scss +2 -2
- package/es/components/CodeMirror/index.d.ts +6 -6
- package/es/components/CodeMirror/index.js +7 -7
- package/es/components/CodeMirror/index.module.scss +4 -4
- package/es/components/CodeMirror/linters/errorTranslator.d.ts +1 -1
- package/es/components/CodeMirror/linters/errorTranslator.js +19 -19
- package/es/components/CodeMirror/linters/jsonLinter.d.ts +2 -2
- package/es/components/CodeMirror/linters/jsonLinter.js +9 -9
- package/es/components/CodeMirror/linters/sqlLinter.js +29 -29
- package/es/components/Copy/index.module.scss +3 -3
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +2 -2
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.js +2 -2
- package/es/components/DatePicker/index.js +9 -9
- package/es/components/Editor/index.js +3 -3
- package/es/components/Editor/index.module.scss +2 -2
- package/es/components/FileCol/index.js +2 -2
- package/es/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/es/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/es/components/FilePreview/_hooks/useXlsxData.d.ts +1 -1
- package/es/components/FilePreview/_hooks/useXlsxData.js +1 -1
- package/es/components/FilePreview/index.module.scss +2 -2
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +7 -7
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +8 -8
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +3 -3
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.js +18 -18
- package/es/components/Form/ModalForm/_hooks/useFormItems.d.ts +5 -5
- package/es/components/Form/ModalForm/_hooks/useFormItems.js +5 -5
- package/es/components/FormItem/FormCodeMirror/index.js +6 -6
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/es/components/FormItem/FormRadio/index.module.scss +2 -2
- package/es/components/FormItem/FormUpload/index.module.scss +13 -13
- package/es/components/FormItem/ItemContainer/index.d.ts +1 -1
- package/es/components/FormItem/ItemContainer/index.js +3 -3
- package/es/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/es/components/FormItem/databaseTypeMapping.d.ts +23 -23
- package/es/components/FormItem/databaseTypeMapping.js +36 -36
- package/es/components/FormItem/index.js +12 -12
- package/es/components/Icon/index.js +4 -4
- package/es/components/Input/Number/index.js +6 -6
- package/es/components/Input/Number/index.module.scss +5 -5
- package/es/components/Input/Password/index.js +3 -3
- package/es/components/Input/Range/index.js +3 -3
- package/es/components/Input/Range/index.module.scss +2 -2
- package/es/components/Input/Search/index.js +3 -3
- package/es/components/Input/TextArea/index.js +6 -6
- package/es/components/Input/TextArea/index.module.scss +5 -5
- package/es/components/Input/index.js +14 -14
- package/es/components/Input/index.module.scss +2 -2
- package/es/components/Markdown/Editor/index.module.scss +3 -3
- package/es/components/Markdown/Views/ArtifactBlock.d.ts +5 -5
- package/es/components/Markdown/Views/ArtifactBlock.js +2 -2
- package/es/components/Markdown/Views/MermaidBlock.d.ts +2 -2
- package/es/components/Markdown/Views/MermaidBlock.js +5 -5
- package/es/components/Markdown/Views/blocks.module.scss +11 -11
- package/es/components/Markdown/Views/index.js +5 -5
- package/es/components/Markdown/Views/index.module.scss +1 -1
- package/es/components/Modal/_hooks/useModalDrag.d.ts +1 -1
- package/es/components/Modal/_hooks/useModalDrag.js +1 -1
- package/es/components/Modal/_hooks/useModalElements.d.ts +1 -1
- package/es/components/Modal/_hooks/useModalElements.js +1 -1
- package/es/components/Modal/_utils/calculatePosition.d.ts +7 -7
- package/es/components/Modal/_utils/calculatePosition.js +7 -7
- package/es/components/Modal/index.module.scss +1 -1
- package/es/components/Operate/_hooks/useOperateEllipsis.d.ts +5 -5
- package/es/components/Operate/_hooks/useOperateEllipsis.js +5 -5
- package/es/components/Operate/index.js +16 -16
- package/es/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/es/components/Panel/IframePanel/index.module.scss +1 -1
- package/es/components/Panel/ListPanel/ListModalPanel/index.d.ts +2 -2
- package/es/components/Panel/ListPanel/ListModalPanel/index.js +3 -3
- package/es/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.js +1 -1
- package/es/components/Panel/ListPanel/index.d.ts +2 -2
- package/es/components/Panel/ListPanel/index.js +1 -1
- package/es/components/Panel/ListPanel/index.module.scss +5 -5
- package/es/components/Search/SearchAdvanced/index.d.ts +4 -4
- package/es/components/Search/SearchAdvanced/index.js +4 -4
- package/es/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +8 -8
- package/es/components/Search/SearchCard/_components/OptionRow/Item/index.js +13 -13
- package/es/components/Search/SearchCard/_components/OptionRow/index.js +8 -8
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +14 -14
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.js +5 -5
- package/es/components/Search/SearchCard/_utils/getRealValues.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/getRealValues.js +5 -5
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.js +3 -3
- package/es/components/Search/SearchCard/_utils/typeGuards.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/typeGuards.js +1 -1
- package/es/components/Search/SearchCard/_utils/updateRealValue.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/updateRealValue.js +11 -11
- package/es/components/Search/SearchCard/index.js +1 -1
- package/es/components/Search/SearchCard/index.module.scss +8 -8
- package/es/components/Search/SearchCollapsible/index.d.ts +4 -4
- package/es/components/Search/SearchCollapsible/index.js +6 -6
- package/es/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/es/components/Search/SearchWithFilter/index.d.ts +4 -4
- package/es/components/Search/SearchWithFilter/index.js +4 -4
- package/es/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/es/components/Search/SearchWithMore/index.d.ts +4 -4
- package/es/components/Search/SearchWithMore/index.js +5 -5
- package/es/components/Search/SearchWithMore/index.module.scss +2 -2
- package/es/components/Search/_components/ButtonGroup/index.js +1 -1
- package/es/components/Search/_components/SearchBase/index.d.ts +8 -8
- package/es/components/Search/_components/SearchBase/index.js +5 -5
- package/es/components/Search/_components/SearchButtons/index.d.ts +2 -2
- package/es/components/Search/_hooks/useAdaptiveColumnNum.d.ts +9 -9
- package/es/components/Search/_hooks/useAdaptiveColumnNum.js +19 -19
- package/es/components/Search/_hooks/useSearchCommon.d.ts +1 -1
- package/es/components/Search/_hooks/useSearchCommon.js +21 -21
- package/es/components/Search/_hooks/useSearchExpand.d.ts +12 -12
- package/es/components/Search/_hooks/useSearchExpand.js +32 -32
- package/es/components/Search/_hooks/useSearchForm.d.ts +1 -1
- package/es/components/Search/_hooks/useSearchForm.js +1 -1
- package/es/components/Search/_hooks/useSearchItems.d.ts +5 -4
- package/es/components/Search/_hooks/useSearchItems.js +5 -4
- package/es/components/Search/_types/index.d.ts +12 -12
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +6 -6
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +10 -10
- package/es/components/Search/_utils/calculateVisibleItems.d.ts +9 -9
- package/es/components/Search/_utils/calculateVisibleItems.js +12 -12
- package/es/components/Search/_utils/cleanSearchData.d.ts +3 -3
- package/es/components/Search/_utils/cleanSearchData.js +3 -3
- package/es/components/Search/_utils/measureButtonGroupWidth.d.ts +3 -3
- package/es/components/Search/_utils/measureButtonGroupWidth.js +4 -4
- package/es/components/Search/_utils/shouldDisplayExtraItem.d.ts +7 -7
- package/es/components/Search/_utils/shouldDisplayExtraItem.js +7 -7
- package/es/components/Search/index.d.ts +2 -2
- package/es/components/Search/index.js +4 -4
- package/es/components/Search/index.module.scss +1 -1
- package/es/components/SecondConf/index.module.scss +1 -1
- package/es/components/Select/AutoCompleteSelect/index.js +4 -4
- package/es/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/es/components/Select/IconSelect/index.module.scss +2 -2
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +4 -4
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +5 -5
- package/es/components/Select/TreeSelect/index.module.scss +1 -1
- package/es/components/Select/_hooks/useSelectComposition.d.ts +1 -1
- package/es/components/Select/_hooks/useSelectComposition.js +1 -1
- package/es/components/Select/_hooks/useSelectInputOptions.d.ts +1 -1
- package/es/components/Select/_hooks/useSelectInputOptions.js +1 -1
- package/es/components/Select/_utils/calculatePopupWidth.d.ts +1 -1
- package/es/components/Select/_utils/calculatePopupWidth.js +1 -1
- package/es/components/Select/_utils/filterOption.d.ts +1 -1
- package/es/components/Select/_utils/filterOption.js +1 -1
- package/es/components/Select/_utils/getElementPosition.d.ts +7 -6
- package/es/components/Select/_utils/getElementPosition.js +7 -6
- package/es/components/Select/index.module.scss +8 -8
- package/es/components/Spreadsheet/xlsxspread.js +2 -2
- package/es/components/Switch/index.module.scss +2 -2
- package/es/components/TabBar/index.module.scss +8 -8
- package/es/components/Table/_components/Pagination/index.js +3 -3
- package/es/components/Table/_hooks/useAutoScrolling.d.ts +1 -1
- package/es/components/Table/_hooks/useAutoScrolling.js +8 -7
- package/es/components/Table/_hooks/useEllipsisTooltip.d.ts +1 -1
- package/es/components/Table/_hooks/useEllipsisTooltip.js +6 -6
- package/es/components/Table/_hooks/usePaginationSync.d.ts +3 -3
- package/es/components/Table/_hooks/usePaginationSync.js +5 -5
- package/es/components/Table/_hooks/useScrollEnd.js +7 -7
- package/es/components/Table/_hooks/useTableColumns.js +30 -28
- package/es/components/Table/_hooks/useTablePagination.js +7 -7
- package/es/components/Table/_utils/tableUtils.d.ts +7 -7
- package/es/components/Table/_utils/tableUtils.js +11 -11
- package/es/components/Table/index.d.ts +11 -8
- package/es/components/Table/index.module.scss +3 -3
- package/es/components/Tags/_components/EllipsisTag/index.d.ts +1 -1
- package/es/components/Tags/_components/EllipsisTag/index.js +1 -1
- package/es/components/Tags/_components/MeasureContainer/index.d.ts +1 -1
- package/es/components/Tags/_components/MeasureContainer/index.js +1 -1
- package/es/components/Tags/_hooks/useVisibleTags.d.ts +5 -5
- package/es/components/Tags/_hooks/useVisibleTags.js +13 -13
- package/es/components/Tags/_utils/calculateVisibleCount.d.ts +6 -6
- package/es/components/Tags/_utils/calculateVisibleCount.js +12 -12
- package/es/components/Tags/_utils/getTagColor.d.ts +4 -4
- package/es/components/Tags/_utils/getTagColor.js +4 -4
- package/es/components/Tags/index.js +2 -2
- package/es/components/TextEllipsis/index.d.ts +11 -11
- package/es/components/TextEllipsis/index.js +18 -18
- package/es/components/Tree/_components/TitleSearchBar/index.js +2 -2
- package/es/components/Tree/_hooks/useClearNodeTitle.d.ts +4 -4
- package/es/components/Tree/_hooks/useClearNodeTitle.js +8 -8
- package/es/components/Tree/_hooks/useTreeCheck.d.ts +2 -2
- package/es/components/Tree/_hooks/useTreeCheck.js +4 -4
- package/es/components/Tree/_hooks/useTreeSearch.d.ts +1 -1
- package/es/components/Tree/_hooks/useTreeSearch.js +7 -7
- package/es/components/Tree/_hooks/useTreeState.d.ts +3 -3
- package/es/components/Tree/_hooks/useTreeState.js +10 -10
- package/es/components/Tree/_utils/index.d.ts +24 -24
- package/es/components/Tree/_utils/index.js +28 -28
- package/es/components/Tree/_utils/normalizeCheckedKeys.d.ts +4 -4
- package/es/components/Tree/_utils/normalizeCheckedKeys.js +16 -16
- package/es/components/Tree/index.d.ts +3 -3
- package/es/components/Tree/index.js +22 -21
- package/es/components/Tree/index.module.scss +2 -2
- package/es/components/Upload/_components/UploadedItem/index.js +2 -2
- package/es/components/Upload/_components/UploadingItem/index.js +2 -2
- package/es/components/Upload/_hooks/useUploadFileList.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadFileList.js +1 -1
- package/es/components/Upload/_hooks/useUploadOperations.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadOperations.js +3 -3
- package/es/components/Upload/_hooks/useUploadPreview.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadPreview.js +1 -1
- package/es/components/Upload/_utils/chunkUpload.d.ts +1 -1
- package/es/components/Upload/_utils/chunkUpload.js +4 -4
- package/es/components/Upload/_utils/createFormData.d.ts +1 -1
- package/es/components/Upload/_utils/createFormData.js +1 -1
- package/es/components/Upload/_utils/extractFileUrl.d.ts +1 -1
- package/es/components/Upload/_utils/extractFileUrl.js +1 -1
- package/es/components/Upload/_utils/isSuccessResponse.d.ts +1 -1
- package/es/components/Upload/_utils/isSuccessResponse.js +1 -1
- package/es/components/Upload/_utils/normalUpload.d.ts +1 -1
- package/es/components/Upload/_utils/normalUpload.js +2 -2
- package/es/components/Upload/_utils/toMB.d.ts +1 -1
- package/es/components/Upload/_utils/toMB.js +1 -1
- package/es/components/Upload/_utils/validateFile.d.ts +1 -1
- package/es/components/Upload/_utils/validateFile.js +1 -1
- package/es/components/Upload/index.js +2 -2
- package/es/config-provider/index.d.ts +3 -3
- package/es/config-provider/index.js +2 -2
- package/es/hooks/usePermissions.js +3 -3
- package/es/index.d.ts +2 -0
- package/es/index.js +6 -4
- package/es/request/ResType.d.ts +3 -3
- package/es/request/index.d.ts +6 -6
- package/es/request/index.js +6 -6
- package/es/styles/antd-overload.scss +12 -9
- package/es/styles/tokens.d.ts +26 -0
- package/es/styles/tokens.js +32 -0
- package/es/styles/tokens.scss +62 -0
- package/es/typings.d.ts +3 -3
- package/es/utils/getUUID.d.ts +1 -1
- package/es/utils/getUUID.js +1 -1
- package/lib/components/Button/index.js +2 -2
- package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +4 -4
- package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.js +3 -3
- package/lib/components/ChainGraph/ChainGraphServices/RootNode.js +27 -27
- package/lib/components/ChainGraph/ChainGraphServices/TreeNode.js +32 -32
- package/lib/components/ChainGraph/ChainGraphServices/index.js +11 -11
- package/lib/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +5 -5
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.js +12 -12
- package/lib/components/ChainGraph/_utils/getTextSize.d.ts +4 -4
- package/lib/components/ChainGraph/_utils/getTextSize.js +4 -4
- package/lib/components/ChainGraph/_utils/styles.d.ts +3 -3
- package/lib/components/ChainGraph/_utils/styles.js +3 -3
- package/lib/components/ChainGraph/index.js +7 -7
- package/lib/components/ChainGraph/index.module.scss +2 -2
- package/lib/components/Chart/Bar/Bar3DOpt.d.ts +9 -9
- package/lib/components/Chart/Bar/Bar3DOpt.js +29 -29
- package/lib/components/Chart/Bar/index.d.ts +5 -5
- package/lib/components/Chart/Bar/index.js +23 -23
- package/lib/components/Chart/Bubble/index.d.ts +6 -6
- package/lib/components/Chart/Bubble/index.js +41 -41
- package/lib/components/Chart/Common/index.js +12 -12
- package/lib/components/Chart/Gauge/index.js +11 -11
- package/lib/components/Chart/Group/index.js +1 -1
- package/lib/components/Chart/Heatmap/index.d.ts +12 -12
- package/lib/components/Chart/Heatmap/index.js +24 -24
- package/lib/components/Chart/Line/index.d.ts +5 -5
- package/lib/components/Chart/Line/index.js +23 -23
- package/lib/components/Chart/Pie/Pie3D/_hooks/index.js +14 -14
- package/lib/components/Chart/Pie/Pie3D/_utils/label.js +30 -30
- package/lib/components/Chart/Pie/index.d.ts +8 -8
- package/lib/components/Chart/Pie/index.js +34 -34
- package/lib/components/Chart/Polar/index.js +11 -11
- package/lib/components/Chart/Radar/index.d.ts +8 -8
- package/lib/components/Chart/Radar/index.js +7 -7
- package/lib/components/Chart/Sankey/index.js +12 -12
- package/lib/components/Chart/Tree/index.js +12 -12
- package/lib/components/Chart/_utils/autoSmooth.d.ts +1 -1
- package/lib/components/Chart/_utils/autoSmooth.js +2 -2
- package/lib/components/Chart/_utils/bubble.js +8 -8
- package/lib/components/Chart/_utils/cartesian.d.ts +4 -4
- package/lib/components/Chart/_utils/cartesian.js +4 -4
- package/lib/components/Chart/chartUtils/calculateAxisConfig.d.ts +4 -4
- package/lib/components/Chart/chartUtils/calculateAxisConfig.js +16 -16
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.d.ts +1 -1
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.js +1 -1
- package/lib/components/Chart/chartUtils/useDataZoomWindow.d.ts +7 -7
- package/lib/components/Chart/chartUtils/useDataZoomWindow.js +4 -4
- package/lib/components/Chart/chartUtils/useLegendSelection.d.ts +6 -6
- package/lib/components/Chart/chartUtils/useLegendSelection.js +3 -3
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +4 -4
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.js +4 -4
- package/lib/components/Chart/index.d.ts +2 -2
- package/lib/components/Chart/index.js +1 -1
- package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.js +8 -8
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/lib/components/Chat/ChatHistory/_utils/index.d.ts +1 -1
- package/lib/components/Chat/ChatHistory/_utils/index.js +1 -1
- package/lib/components/Chat/ChatHistory/index.js +2 -2
- package/lib/components/Chat/ChatHistory/index.module.scss +3 -3
- package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/lib/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.js +1 -1
- package/lib/components/Chat/ChatInput/_utils/index.d.ts +3 -3
- package/lib/components/Chat/ChatInput/_utils/index.js +3 -3
- package/lib/components/Chat/ChatInput/index.d.ts +5 -5
- package/lib/components/Chat/ChatInput/index.js +23 -19
- package/lib/components/Chat/ChatInput/index.module.scss +4 -4
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +0 -1
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/lib/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +1 -1
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.js +1 -1
- package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +1 -1
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +3 -3
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +3 -3
- package/lib/components/Checkbox/CheckboxGroup/index.js +6 -6
- package/lib/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/lib/components/Checkbox/index.module.scss +2 -2
- package/lib/components/CodeMirror/index.d.ts +6 -6
- package/lib/components/CodeMirror/index.js +9 -9
- package/lib/components/CodeMirror/index.module.scss +4 -4
- package/lib/components/CodeMirror/linters/errorTranslator.d.ts +1 -1
- package/lib/components/CodeMirror/linters/errorTranslator.js +19 -19
- package/lib/components/CodeMirror/linters/jsonLinter.d.ts +2 -2
- package/lib/components/CodeMirror/linters/jsonLinter.js +9 -9
- package/lib/components/CodeMirror/linters/sqlLinter.js +29 -29
- package/lib/components/Copy/index.module.scss +3 -3
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +2 -2
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.js +2 -2
- package/lib/components/DatePicker/index.js +9 -9
- package/lib/components/Editor/index.js +3 -3
- package/lib/components/Editor/index.module.scss +2 -2
- package/lib/components/FileCol/index.js +2 -2
- package/lib/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/lib/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/lib/components/FilePreview/_hooks/useXlsxData.d.ts +1 -1
- package/lib/components/FilePreview/_hooks/useXlsxData.js +1 -1
- package/lib/components/FilePreview/index.module.scss +2 -2
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +7 -7
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +8 -8
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +3 -3
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.js +18 -18
- package/lib/components/Form/ModalForm/_hooks/useFormItems.d.ts +5 -5
- package/lib/components/Form/ModalForm/_hooks/useFormItems.js +5 -5
- package/lib/components/FormItem/FormCodeMirror/index.js +6 -6
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/lib/components/FormItem/FormRadio/index.module.scss +2 -2
- package/lib/components/FormItem/FormUpload/index.module.scss +13 -13
- package/lib/components/FormItem/ItemContainer/index.d.ts +1 -1
- package/lib/components/FormItem/ItemContainer/index.js +3 -3
- package/lib/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/lib/components/FormItem/databaseTypeMapping.d.ts +23 -23
- package/lib/components/FormItem/databaseTypeMapping.js +36 -36
- package/lib/components/FormItem/index.js +12 -12
- package/lib/components/Icon/index.js +4 -4
- package/lib/components/Input/Number/index.js +6 -6
- package/lib/components/Input/Number/index.module.scss +5 -5
- package/lib/components/Input/Password/index.js +3 -3
- package/lib/components/Input/Range/index.js +3 -3
- package/lib/components/Input/Range/index.module.scss +2 -2
- package/lib/components/Input/Search/index.js +3 -3
- package/lib/components/Input/TextArea/index.js +6 -6
- package/lib/components/Input/TextArea/index.module.scss +5 -5
- package/lib/components/Input/index.js +14 -14
- package/lib/components/Input/index.module.scss +2 -2
- package/lib/components/Markdown/Editor/index.module.scss +3 -3
- package/lib/components/Markdown/Views/ArtifactBlock.d.ts +5 -5
- package/lib/components/Markdown/Views/ArtifactBlock.js +2 -2
- package/lib/components/Markdown/Views/MermaidBlock.d.ts +2 -2
- package/lib/components/Markdown/Views/MermaidBlock.js +5 -5
- package/lib/components/Markdown/Views/blocks.module.scss +11 -11
- package/lib/components/Markdown/Views/index.js +5 -5
- package/lib/components/Markdown/Views/index.module.scss +1 -1
- package/lib/components/Modal/_hooks/useModalDrag.d.ts +1 -1
- package/lib/components/Modal/_hooks/useModalDrag.js +1 -1
- package/lib/components/Modal/_hooks/useModalElements.d.ts +1 -1
- package/lib/components/Modal/_hooks/useModalElements.js +1 -1
- package/lib/components/Modal/_utils/calculatePosition.d.ts +7 -7
- package/lib/components/Modal/_utils/calculatePosition.js +7 -7
- package/lib/components/Modal/index.module.scss +1 -1
- package/lib/components/Operate/_hooks/useOperateEllipsis.d.ts +5 -5
- package/lib/components/Operate/_hooks/useOperateEllipsis.js +5 -5
- package/lib/components/Operate/index.js +16 -16
- package/lib/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/lib/components/Panel/IframePanel/index.module.scss +1 -1
- package/lib/components/Panel/ListPanel/ListModalPanel/index.d.ts +2 -2
- package/lib/components/Panel/ListPanel/ListModalPanel/index.js +5 -5
- package/lib/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.js +1 -1
- package/lib/components/Panel/ListPanel/index.d.ts +2 -2
- package/lib/components/Panel/ListPanel/index.js +3 -3
- package/lib/components/Panel/ListPanel/index.module.scss +5 -5
- package/lib/components/Search/SearchAdvanced/index.d.ts +4 -4
- package/lib/components/Search/SearchAdvanced/index.js +4 -4
- package/lib/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +8 -8
- package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.js +13 -13
- package/lib/components/Search/SearchCard/_components/OptionRow/index.js +8 -8
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +14 -14
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.js +5 -5
- package/lib/components/Search/SearchCard/_utils/getRealValues.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/getRealValues.js +5 -5
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.js +3 -3
- package/lib/components/Search/SearchCard/_utils/typeGuards.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/typeGuards.js +1 -1
- package/lib/components/Search/SearchCard/_utils/updateRealValue.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/updateRealValue.js +11 -11
- package/lib/components/Search/SearchCard/index.js +1 -1
- package/lib/components/Search/SearchCard/index.module.scss +8 -8
- package/lib/components/Search/SearchCollapsible/index.d.ts +4 -4
- package/lib/components/Search/SearchCollapsible/index.js +6 -6
- package/lib/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/lib/components/Search/SearchWithFilter/index.d.ts +4 -4
- package/lib/components/Search/SearchWithFilter/index.js +4 -4
- package/lib/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/lib/components/Search/SearchWithMore/index.d.ts +4 -4
- package/lib/components/Search/SearchWithMore/index.js +5 -5
- package/lib/components/Search/SearchWithMore/index.module.scss +2 -2
- package/lib/components/Search/_components/ButtonGroup/index.js +1 -1
- package/lib/components/Search/_components/SearchBase/index.d.ts +8 -8
- package/lib/components/Search/_components/SearchBase/index.js +5 -5
- package/lib/components/Search/_components/SearchButtons/index.d.ts +2 -2
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.d.ts +9 -9
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.js +19 -19
- package/lib/components/Search/_hooks/useSearchCommon.d.ts +1 -1
- package/lib/components/Search/_hooks/useSearchCommon.js +21 -21
- package/lib/components/Search/_hooks/useSearchExpand.d.ts +12 -12
- package/lib/components/Search/_hooks/useSearchExpand.js +32 -32
- package/lib/components/Search/_hooks/useSearchForm.d.ts +1 -1
- package/lib/components/Search/_hooks/useSearchForm.js +1 -1
- package/lib/components/Search/_hooks/useSearchItems.d.ts +5 -4
- package/lib/components/Search/_hooks/useSearchItems.js +5 -4
- package/lib/components/Search/_types/index.d.ts +12 -12
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +6 -6
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +10 -10
- package/lib/components/Search/_utils/calculateVisibleItems.d.ts +9 -9
- package/lib/components/Search/_utils/calculateVisibleItems.js +12 -12
- package/lib/components/Search/_utils/cleanSearchData.d.ts +3 -3
- package/lib/components/Search/_utils/cleanSearchData.js +3 -3
- package/lib/components/Search/_utils/measureButtonGroupWidth.d.ts +3 -3
- package/lib/components/Search/_utils/measureButtonGroupWidth.js +4 -4
- package/lib/components/Search/_utils/shouldDisplayExtraItem.d.ts +7 -7
- package/lib/components/Search/_utils/shouldDisplayExtraItem.js +7 -7
- package/lib/components/Search/index.d.ts +2 -2
- package/lib/components/Search/index.js +4 -4
- package/lib/components/Search/index.module.scss +1 -1
- package/lib/components/SecondConf/index.module.scss +1 -1
- package/lib/components/Select/AutoCompleteSelect/index.js +4 -4
- package/lib/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/lib/components/Select/IconSelect/index.module.scss +2 -2
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +4 -4
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +5 -5
- package/lib/components/Select/TreeSelect/index.module.scss +1 -1
- package/lib/components/Select/_hooks/useSelectComposition.d.ts +1 -1
- package/lib/components/Select/_hooks/useSelectComposition.js +1 -1
- package/lib/components/Select/_hooks/useSelectInputOptions.d.ts +1 -1
- package/lib/components/Select/_hooks/useSelectInputOptions.js +1 -1
- package/lib/components/Select/_utils/calculatePopupWidth.d.ts +1 -1
- package/lib/components/Select/_utils/calculatePopupWidth.js +1 -1
- package/lib/components/Select/_utils/filterOption.d.ts +1 -1
- package/lib/components/Select/_utils/filterOption.js +1 -1
- package/lib/components/Select/_utils/getElementPosition.d.ts +7 -6
- package/lib/components/Select/_utils/getElementPosition.js +7 -6
- package/lib/components/Select/index.module.scss +8 -8
- package/lib/components/Spreadsheet/xlsxspread.js +2 -2
- package/lib/components/Switch/index.module.scss +2 -2
- package/lib/components/TabBar/index.module.scss +8 -8
- package/lib/components/Table/_components/Pagination/index.js +3 -3
- package/lib/components/Table/_hooks/useAutoScrolling.d.ts +1 -1
- package/lib/components/Table/_hooks/useAutoScrolling.js +8 -7
- package/lib/components/Table/_hooks/useEllipsisTooltip.d.ts +1 -1
- package/lib/components/Table/_hooks/useEllipsisTooltip.js +6 -6
- package/lib/components/Table/_hooks/usePaginationSync.d.ts +3 -3
- package/lib/components/Table/_hooks/usePaginationSync.js +5 -5
- package/lib/components/Table/_hooks/useScrollEnd.js +7 -7
- package/lib/components/Table/_hooks/useTableColumns.js +30 -28
- package/lib/components/Table/_hooks/useTablePagination.js +7 -7
- package/lib/components/Table/_utils/tableUtils.d.ts +7 -7
- package/lib/components/Table/_utils/tableUtils.js +11 -11
- package/lib/components/Table/index.d.ts +11 -8
- package/lib/components/Table/index.module.scss +3 -3
- package/lib/components/Tags/_components/EllipsisTag/index.d.ts +1 -1
- package/lib/components/Tags/_components/EllipsisTag/index.js +1 -1
- package/lib/components/Tags/_components/MeasureContainer/index.d.ts +1 -1
- package/lib/components/Tags/_components/MeasureContainer/index.js +1 -1
- package/lib/components/Tags/_hooks/useVisibleTags.d.ts +5 -5
- package/lib/components/Tags/_hooks/useVisibleTags.js +13 -13
- package/lib/components/Tags/_utils/calculateVisibleCount.d.ts +6 -6
- package/lib/components/Tags/_utils/calculateVisibleCount.js +12 -12
- package/lib/components/Tags/_utils/getTagColor.d.ts +4 -4
- package/lib/components/Tags/_utils/getTagColor.js +4 -4
- package/lib/components/Tags/index.js +2 -2
- package/lib/components/TextEllipsis/index.d.ts +11 -11
- package/lib/components/TextEllipsis/index.js +18 -18
- package/lib/components/Tree/_components/TitleSearchBar/index.js +2 -2
- package/lib/components/Tree/_hooks/useClearNodeTitle.d.ts +4 -4
- package/lib/components/Tree/_hooks/useClearNodeTitle.js +8 -8
- package/lib/components/Tree/_hooks/useTreeCheck.d.ts +2 -2
- package/lib/components/Tree/_hooks/useTreeCheck.js +4 -4
- package/lib/components/Tree/_hooks/useTreeSearch.d.ts +1 -1
- package/lib/components/Tree/_hooks/useTreeSearch.js +7 -7
- package/lib/components/Tree/_hooks/useTreeState.d.ts +3 -3
- package/lib/components/Tree/_hooks/useTreeState.js +10 -10
- package/lib/components/Tree/_utils/index.d.ts +24 -24
- package/lib/components/Tree/_utils/index.js +28 -28
- package/lib/components/Tree/_utils/normalizeCheckedKeys.d.ts +4 -4
- package/lib/components/Tree/_utils/normalizeCheckedKeys.js +16 -16
- package/lib/components/Tree/index.d.ts +3 -3
- package/lib/components/Tree/index.js +22 -21
- package/lib/components/Tree/index.module.scss +2 -2
- package/lib/components/Upload/_components/UploadedItem/index.js +2 -2
- package/lib/components/Upload/_components/UploadingItem/index.js +2 -2
- package/lib/components/Upload/_hooks/useUploadFileList.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadFileList.js +1 -1
- package/lib/components/Upload/_hooks/useUploadOperations.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadOperations.js +3 -3
- package/lib/components/Upload/_hooks/useUploadPreview.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadPreview.js +1 -1
- package/lib/components/Upload/_utils/chunkUpload.d.ts +1 -1
- package/lib/components/Upload/_utils/chunkUpload.js +4 -4
- package/lib/components/Upload/_utils/createFormData.d.ts +1 -1
- package/lib/components/Upload/_utils/createFormData.js +1 -1
- package/lib/components/Upload/_utils/extractFileUrl.d.ts +1 -1
- package/lib/components/Upload/_utils/extractFileUrl.js +1 -1
- package/lib/components/Upload/_utils/isSuccessResponse.d.ts +1 -1
- package/lib/components/Upload/_utils/isSuccessResponse.js +1 -1
- package/lib/components/Upload/_utils/normalUpload.d.ts +1 -1
- package/lib/components/Upload/_utils/normalUpload.js +2 -2
- package/lib/components/Upload/_utils/toMB.d.ts +1 -1
- package/lib/components/Upload/_utils/toMB.js +1 -1
- package/lib/components/Upload/_utils/validateFile.d.ts +1 -1
- package/lib/components/Upload/_utils/validateFile.js +1 -1
- package/lib/components/Upload/index.js +2 -2
- package/lib/config-provider/index.d.ts +3 -3
- package/lib/config-provider/index.js +2 -2
- package/lib/hooks/usePermissions.js +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/index.js +22 -0
- package/lib/request/ResType.d.ts +3 -3
- package/lib/request/index.d.ts +6 -6
- package/lib/request/index.js +6 -6
- package/lib/styles/antd-overload.scss +12 -9
- package/lib/styles/tokens.d.ts +26 -0
- package/lib/styles/tokens.js +38 -0
- package/lib/styles/tokens.scss +62 -0
- package/lib/typings.d.ts +3 -3
- package/lib/utils/getUUID.d.ts +1 -1
- package/lib/utils/getUUID.js +1 -1
- package/package.json +3 -3
- package/src/components/Button/index.tsx +2 -2
- package/src/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.ts +4 -4
- package/src/components/ChainGraph/ChainGraphServices/NodeEvents.ts +3 -3
- package/src/components/ChainGraph/ChainGraphServices/RootNode.ts +27 -27
- package/src/components/ChainGraph/ChainGraphServices/TreeNode.ts +32 -32
- package/src/components/ChainGraph/ChainGraphServices/index.ts +11 -11
- package/src/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/src/components/ChainGraph/_utils/findAncestorsOfNode.ts +12 -12
- package/src/components/ChainGraph/_utils/getTextSize.ts +4 -4
- package/src/components/ChainGraph/_utils/styles.ts +3 -3
- package/src/components/ChainGraph/index.module.scss +2 -2
- package/src/components/ChainGraph/index.tsx +8 -8
- package/src/components/Chart/Bar/Bar3DOpt.tsx +33 -33
- package/src/components/Chart/Bar/index.tsx +28 -28
- package/src/components/Chart/Bubble/index.tsx +47 -47
- package/src/components/Chart/Common/index.tsx +12 -12
- package/src/components/Chart/Gauge/index.tsx +11 -11
- package/src/components/Chart/Group/index.tsx +1 -1
- package/src/components/Chart/Heatmap/index.tsx +36 -36
- package/src/components/Chart/Line/index.tsx +28 -28
- package/src/components/Chart/Pie/Pie3D/_hooks/index.ts +14 -14
- package/src/components/Chart/Pie/Pie3D/_utils/label.ts +31 -31
- package/src/components/Chart/Pie/index.tsx +42 -42
- package/src/components/Chart/Polar/index.tsx +11 -11
- package/src/components/Chart/Radar/index.tsx +12 -12
- package/src/components/Chart/Sankey/index.tsx +12 -12
- package/src/components/Chart/Tree/index.tsx +12 -12
- package/src/components/Chart/_utils/autoSmooth.ts +3 -3
- package/src/components/Chart/_utils/bubble.ts +8 -8
- package/src/components/Chart/_utils/cartesian.ts +4 -4
- package/src/components/Chart/chartUtils/calculateAxisConfig.ts +16 -16
- package/src/components/Chart/chartUtils/chartTooltipFormatter.ts +2 -2
- package/src/components/Chart/chartUtils/useDataZoomWindow.ts +8 -8
- package/src/components/Chart/chartUtils/useLegendSelection.ts +6 -6
- package/src/components/Chart/chartUtils/yAxisDisplayUnit.ts +4 -4
- package/src/components/Chart/index.tsx +2 -2
- package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.tsx +8 -8
- package/src/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/src/components/Chat/ChatHistory/_utils/index.ts +1 -1
- package/src/components/Chat/ChatHistory/index.module.scss +3 -3
- package/src/components/Chat/ChatHistory/index.tsx +2 -2
- package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/src/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/src/components/Chat/ChatInput/_components/UploadButton/index.tsx +2 -2
- package/src/components/Chat/ChatInput/_utils/index.ts +3 -3
- package/src/components/Chat/ChatInput/index.module.scss +4 -4
- package/src/components/Chat/ChatInput/index.tsx +24 -23
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.tsx +0 -2
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.tsx +6 -6
- package/src/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/src/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/src/components/Chat/ChatList/_hooks/useAssistantNavigation.ts +1 -1
- package/src/components/Chat/ChatList/_hooks/useCalculateRowIndex.ts +1 -1
- package/src/components/Chat/ChatList/_utils/cleanRedactedReasoning.ts +3 -3
- package/src/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/src/components/Checkbox/CheckboxGroup/index.tsx +6 -6
- package/src/components/Checkbox/index.module.scss +2 -2
- package/src/components/CodeMirror/index.module.scss +4 -4
- package/src/components/CodeMirror/index.tsx +15 -15
- package/src/components/CodeMirror/linters/errorTranslator.ts +19 -19
- package/src/components/CodeMirror/linters/jsonLinter.ts +11 -11
- package/src/components/CodeMirror/linters/sqlLinter.ts +29 -29
- package/src/components/Copy/index.module.scss +3 -3
- package/src/components/DatePicker/defaultModalPickerGetPopupContainer.ts +2 -2
- package/src/components/DatePicker/index.tsx +9 -9
- package/src/components/Editor/index.module.scss +2 -2
- package/src/components/Editor/index.tsx +3 -3
- package/src/components/FileCol/index.tsx +2 -2
- package/src/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/src/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/src/components/FilePreview/_hooks/useXlsxData.ts +1 -1
- package/src/components/FilePreview/index.module.scss +2 -2
- package/src/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.ts +8 -8
- package/src/components/Form/ModalForm/_hooks/useColumnFormItems.ts +18 -18
- package/src/components/Form/ModalForm/_hooks/useFormItems.ts +5 -5
- package/src/components/FormItem/FormCodeMirror/index.tsx +6 -6
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/src/components/FormItem/FormRadio/index.module.scss +2 -2
- package/src/components/FormItem/FormUpload/index.module.scss +13 -13
- package/src/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/src/components/FormItem/ItemContainer/index.tsx +4 -4
- package/src/components/FormItem/databaseTypeMapping.ts +43 -43
- package/src/components/FormItem/index.tsx +15 -15
- package/src/components/Icon/index.tsx +4 -4
- package/src/components/Input/Number/index.module.scss +5 -5
- package/src/components/Input/Number/index.tsx +6 -6
- package/src/components/Input/Password/index.tsx +3 -3
- package/src/components/Input/Range/index.module.scss +2 -2
- package/src/components/Input/Range/index.tsx +3 -3
- package/src/components/Input/Search/index.tsx +3 -3
- package/src/components/Input/TextArea/index.module.scss +5 -5
- package/src/components/Input/TextArea/index.tsx +6 -6
- package/src/components/Input/index.module.scss +2 -2
- package/src/components/Input/index.tsx +14 -14
- package/src/components/Markdown/Editor/index.module.scss +3 -3
- package/src/components/Markdown/Views/ArtifactBlock.tsx +5 -5
- package/src/components/Markdown/Views/MermaidBlock.tsx +5 -5
- package/src/components/Markdown/Views/blocks.module.scss +11 -11
- package/src/components/Markdown/Views/index.module.scss +1 -1
- package/src/components/Markdown/Views/index.tsx +5 -5
- package/src/components/Modal/_hooks/useModalDrag.ts +1 -1
- package/src/components/Modal/_hooks/useModalElements.ts +1 -1
- package/src/components/Modal/_utils/calculatePosition.ts +7 -7
- package/src/components/Modal/index.module.scss +1 -1
- package/src/components/Operate/_hooks/useOperateEllipsis.ts +5 -5
- package/src/components/Operate/index.tsx +16 -16
- package/src/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/src/components/Panel/IframePanel/index.module.scss +1 -1
- package/src/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/src/components/Panel/ListPanel/ListModalPanel/index.tsx +8 -8
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.tsx +1 -1
- package/src/components/Panel/ListPanel/index.module.scss +5 -5
- package/src/components/Panel/ListPanel/index.tsx +5 -5
- package/src/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/src/components/Search/SearchAdvanced/index.tsx +4 -4
- package/src/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.tsx +8 -8
- package/src/components/Search/SearchCard/_components/OptionRow/Item/index.tsx +13 -13
- package/src/components/Search/SearchCard/_components/OptionRow/index.tsx +9 -9
- package/src/components/Search/SearchCard/_hooks/useSearchCardCollapse.ts +1 -1
- package/src/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.ts +14 -14
- package/src/components/Search/SearchCard/_hooks/useSearchCardValue.ts +5 -5
- package/src/components/Search/SearchCard/_utils/getRealValues.ts +5 -5
- package/src/components/Search/SearchCard/_utils/hasSelectedChildren.ts +3 -3
- package/src/components/Search/SearchCard/_utils/typeGuards.ts +1 -1
- package/src/components/Search/SearchCard/_utils/updateRealValue.ts +11 -11
- package/src/components/Search/SearchCard/index.module.scss +8 -8
- package/src/components/Search/SearchCard/index.tsx +1 -1
- package/src/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/src/components/Search/SearchCollapsible/index.tsx +6 -6
- package/src/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/src/components/Search/SearchWithFilter/index.tsx +4 -4
- package/src/components/Search/SearchWithMore/index.module.scss +2 -2
- package/src/components/Search/SearchWithMore/index.tsx +5 -5
- package/src/components/Search/_components/ButtonGroup/index.tsx +1 -1
- package/src/components/Search/_components/SearchBase/index.tsx +9 -9
- package/src/components/Search/_components/SearchButtons/index.tsx +2 -2
- package/src/components/Search/_hooks/useAdaptiveColumnNum.ts +19 -19
- package/src/components/Search/_hooks/useSearchCommon.ts +21 -21
- package/src/components/Search/_hooks/useSearchExpand.ts +32 -32
- package/src/components/Search/_hooks/useSearchForm.ts +1 -1
- package/src/components/Search/_hooks/useSearchItems.ts +5 -4
- package/src/components/Search/_types/index.ts +12 -12
- package/src/components/Search/_utils/calculateButtonGroupAndColumnWidth.ts +10 -10
- package/src/components/Search/_utils/calculateVisibleItems.ts +12 -12
- package/src/components/Search/_utils/cleanSearchData.ts +3 -3
- package/src/components/Search/_utils/measureButtonGroupWidth.ts +4 -4
- package/src/components/Search/_utils/shouldDisplayExtraItem.ts +7 -7
- package/src/components/Search/index.module.scss +1 -1
- package/src/components/Search/index.tsx +4 -4
- package/src/components/SecondConf/index.module.scss +1 -1
- package/src/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/src/components/Select/AutoCompleteSelect/index.tsx +4 -4
- package/src/components/Select/IconSelect/index.module.scss +2 -2
- package/src/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.ts +5 -5
- package/src/components/Select/TreeSelect/index.module.scss +1 -1
- package/src/components/Select/_hooks/useSelectComposition.ts +1 -1
- package/src/components/Select/_hooks/useSelectInputOptions.ts +1 -1
- package/src/components/Select/_utils/calculatePopupWidth.ts +1 -1
- package/src/components/Select/_utils/filterOption.ts +1 -1
- package/src/components/Select/_utils/getElementPosition.ts +7 -6
- package/src/components/Select/index.module.scss +8 -8
- package/src/components/Spreadsheet/xlsxspread.ts +2 -2
- package/src/components/Switch/index.module.scss +2 -2
- package/src/components/TabBar/index.module.scss +8 -8
- package/src/components/Table/_components/Pagination/index.tsx +3 -3
- package/src/components/Table/_hooks/useAutoScrolling.ts +9 -8
- package/src/components/Table/_hooks/useEllipsisTooltip.ts +6 -6
- package/src/components/Table/_hooks/usePaginationSync.ts +5 -5
- package/src/components/Table/_hooks/useScrollEnd.ts +9 -9
- package/src/components/Table/_hooks/useTableColumns.tsx +30 -28
- package/src/components/Table/_hooks/useTablePagination.ts +7 -7
- package/src/components/Table/_utils/tableUtils.ts +11 -11
- package/src/components/Table/index.module.scss +3 -3
- package/src/components/Table/index.tsx +12 -9
- package/src/components/Tags/_components/EllipsisTag/index.tsx +1 -1
- package/src/components/Tags/_components/MeasureContainer/index.tsx +1 -1
- package/src/components/Tags/_hooks/useVisibleTags.ts +13 -13
- package/src/components/Tags/_utils/calculateVisibleCount.ts +12 -12
- package/src/components/Tags/_utils/getTagColor.ts +4 -4
- package/src/components/Tags/index.tsx +4 -4
- package/src/components/TextEllipsis/index.tsx +28 -28
- package/src/components/Tree/_components/TitleSearchBar/index.tsx +2 -2
- package/src/components/Tree/_hooks/useClearNodeTitle.ts +8 -8
- package/src/components/Tree/_hooks/useTreeCheck.ts +4 -4
- package/src/components/Tree/_hooks/useTreeSearch.ts +7 -7
- package/src/components/Tree/_hooks/useTreeState.ts +10 -10
- package/src/components/Tree/_utils/index.ts +28 -28
- package/src/components/Tree/_utils/normalizeCheckedKeys.ts +16 -16
- package/src/components/Tree/index.module.scss +2 -2
- package/src/components/Tree/index.tsx +25 -24
- package/src/components/Upload/_components/UploadedItem/index.tsx +2 -2
- package/src/components/Upload/_components/UploadingItem/index.tsx +2 -2
- package/src/components/Upload/_hooks/useUploadFileList.ts +1 -1
- package/src/components/Upload/_hooks/useUploadOperations.ts +3 -3
- package/src/components/Upload/_hooks/useUploadPreview.ts +1 -1
- package/src/components/Upload/_utils/chunkUpload.ts +4 -4
- package/src/components/Upload/_utils/createFormData.ts +1 -1
- package/src/components/Upload/_utils/extractFileUrl.ts +1 -1
- package/src/components/Upload/_utils/isSuccessResponse.ts +1 -1
- package/src/components/Upload/_utils/normalUpload.ts +2 -2
- package/src/components/Upload/_utils/toMB.ts +1 -1
- package/src/components/Upload/_utils/validateFile.ts +1 -1
- package/src/components/Upload/index.tsx +2 -2
- package/src/config-provider/index.tsx +4 -4
- package/src/hooks/usePermissions.ts +3 -3
- package/src/index.ts +8 -4
- package/src/request/ResType.ts +3 -3
- package/src/request/index.ts +7 -7
- package/src/styles/antd-overload.scss +12 -9
- package/src/styles/tokens.scss +62 -0
- package/src/styles/tokens.ts +52 -0
- package/src/typings.d.ts +3 -3
- package/src/utils/getUUID.ts +1 -1
|
@@ -7,7 +7,7 @@ import { getUUID } from "../../../utils";
|
|
|
7
7
|
import { deepCopy } from "hsu-utils";
|
|
8
8
|
import { toMB, validateFile, createFormData, isSuccessResponse } from ".";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Chunked upload
|
|
11
11
|
*/
|
|
12
12
|
export function chunkUpload(_x) {
|
|
13
13
|
return _chunkUpload.apply(this, arguments);
|
|
@@ -19,7 +19,7 @@ function _chunkUpload() {
|
|
|
19
19
|
while (1) switch (_context.prev = _context.next) {
|
|
20
20
|
case 0:
|
|
21
21
|
file = _ref.file, chunkAction = _ref.chunkAction, mergeChunkAction = _ref.mergeChunkAction, chunkNum = _ref.chunkNum, 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;
|
|
22
|
-
//
|
|
22
|
+
// Validate the file
|
|
23
23
|
validation = validateFile({
|
|
24
24
|
file: file,
|
|
25
25
|
accept: accept,
|
|
@@ -35,8 +35,8 @@ function _chunkUpload() {
|
|
|
35
35
|
case 5:
|
|
36
36
|
name = file.name;
|
|
37
37
|
uploadId = getUUID();
|
|
38
|
-
sliceSize = toMB(5); //
|
|
39
|
-
totalSlices = Math.ceil(file.size / sliceSize); //
|
|
38
|
+
sliceSize = toMB(5); // Chunk size, 5MB per chunk
|
|
39
|
+
totalSlices = Math.ceil(file.size / sliceSize); // Get the number of chunks
|
|
40
40
|
chunk = 0;
|
|
41
41
|
postPromises = [];
|
|
42
42
|
success = 0;
|
|
@@ -18,7 +18,7 @@ interface NormalUploadOptions {
|
|
|
18
18
|
onUploadSuccess?: () => void;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Normal file upload
|
|
22
22
|
*/
|
|
23
23
|
export declare function normalUpload({ file, action, data, headers, accept, size, en, uploadingList, setUploadingList, onProgress, onSuccess, onError, onUploadSuccess, }: NormalUploadOptions): Promise<void>;
|
|
24
24
|
export {};
|
|
@@ -6,7 +6,7 @@ import axios from "axios";
|
|
|
6
6
|
import { deepCopy } from "hsu-utils";
|
|
7
7
|
import { validateFile, createFormData, isSuccessResponse } from ".";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Normal file upload
|
|
10
10
|
*/
|
|
11
11
|
export function normalUpload(_x) {
|
|
12
12
|
return _normalUpload.apply(this, arguments);
|
|
@@ -18,7 +18,7 @@ function _normalUpload() {
|
|
|
18
18
|
while (1) switch (_context.prev = _context.next) {
|
|
19
19
|
case 0:
|
|
20
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
|
-
//
|
|
21
|
+
// Validate the file
|
|
22
22
|
validation = validateFile({
|
|
23
23
|
file: file,
|
|
24
24
|
accept: accept,
|
|
@@ -72,7 +72,7 @@ var Upload = function Upload(props) {
|
|
|
72
72
|
previewOpen = _useUploadPreview.open,
|
|
73
73
|
setPreviewFile = _useUploadPreview.setFile;
|
|
74
74
|
|
|
75
|
-
//
|
|
75
|
+
// Chunked upload
|
|
76
76
|
var chunkCustomRequest = useCallback( /*#__PURE__*/function () {
|
|
77
77
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
|
|
78
78
|
var _file, onSuccess, onError, onProgress, file;
|
|
@@ -119,7 +119,7 @@ var Upload = function Upload(props) {
|
|
|
119
119
|
};
|
|
120
120
|
}(), [chunkAction, mergeChunkAction, chunkNum, data, headers, accept, size, en, uploadingList, setUploadingList, onUploadSuccess]);
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// Normal upload
|
|
123
123
|
var customRequest = useCallback( /*#__PURE__*/function () {
|
|
124
124
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(options) {
|
|
125
125
|
var _file, onSuccess, onError, onProgress, file;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RequestImpl } from "../request";
|
|
3
3
|
export interface ConfigProviderProps {
|
|
4
|
-
/**
|
|
4
|
+
/** Current user's permission code list; when provided, usePermissions / hasPermi validate against it. If omitted, everything is allowed by default */
|
|
5
5
|
permissions?: string[] | null;
|
|
6
|
-
/**
|
|
6
|
+
/** Inject the HTTP request implementation, used by smart components such as ImportForm */
|
|
7
7
|
request?: Partial<RequestImpl>;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Hsu UI
|
|
11
|
+
* Hsu UI global configuration: injects permissions and the request implementation.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* <ConfigProvider permissions={perms} request={{ get, post, del, put }}>
|
|
@@ -3,7 +3,7 @@ import { PermissionsContent } from "../hooks/usePermissions";
|
|
|
3
3
|
import { configureRequest } from "../request";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
/**
|
|
6
|
-
* Hsu UI
|
|
6
|
+
* Hsu UI global configuration: injects permissions and the request implementation.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* <ConfigProvider permissions={perms} request={{ get, post, del, put }}>
|
|
@@ -15,7 +15,7 @@ var ConfigProvider = function ConfigProvider(_ref) {
|
|
|
15
15
|
permissions = _ref$permissions === void 0 ? null : _ref$permissions,
|
|
16
16
|
request = _ref.request,
|
|
17
17
|
children = _ref.children;
|
|
18
|
-
//
|
|
18
|
+
// Inject synchronously during render so child components get the request implementation on their very first interaction
|
|
19
19
|
useMemo(function () {
|
|
20
20
|
if (request) configureRequest(request);
|
|
21
21
|
}, [request]);
|
|
@@ -6,17 +6,17 @@ export var PermissionsContent = /*#__PURE__*/createContext({
|
|
|
6
6
|
export default function usePermissions(hasPermi) {
|
|
7
7
|
var permissions = useContext(PermissionsContent).permissions;
|
|
8
8
|
var checkPermission = useCallback(function (hasPermi) {
|
|
9
|
-
//
|
|
9
|
+
// If hasPermi or permissions is empty, treat as permitted
|
|
10
10
|
if (!hasPermi || !permissions) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
//
|
|
14
|
+
// If hasPermi or permissions is an empty array, treat as not permitted
|
|
15
15
|
if (Array.isArray(hasPermi) && !hasPermi.length || Array.isArray(permissions) && !permissions.length) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
//
|
|
19
|
+
// If neither hasPermi nor permissions is an empty array, check whether hasPermi is included in permissions
|
|
20
20
|
return array_is_includes(permissions, hasPermi);
|
|
21
21
|
}, [permissions]);
|
|
22
22
|
var permitted = useMemo(function () {
|
package/es/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { configureRequest, get, post, del, put, } from "./request";
|
|
|
4
4
|
export type { RequestImpl, RequestConfig, ResType, ListRes, FileRes } from "./request";
|
|
5
5
|
export { usePermissions, PermissionsContent, useLabelWidth } from "./hooks";
|
|
6
6
|
export { getUUID, supportsHasSelector, isLegacyHasSelectorBrowser } from "./utils";
|
|
7
|
+
export { lightTokens, darkTokens, defaultPrimaryColor } from "./styles/tokens";
|
|
8
|
+
export type { HsuThemeTokens } from "./styles/tokens";
|
|
7
9
|
export { default as Button } from "./components/Button";
|
|
8
10
|
export * from "./components/Button";
|
|
9
11
|
export { default as ChainGraph } from "./components/ChainGraph";
|
package/es/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Global configuration (permissions + request injection)
|
|
2
2
|
export { default as ConfigProvider } from "./config-provider";
|
|
3
|
-
//
|
|
3
|
+
// Request injection layer
|
|
4
4
|
export { configureRequest, get, post, del, put } from "./request";
|
|
5
5
|
// hooks & utils
|
|
6
6
|
export { usePermissions, PermissionsContent, useLabelWidth } from "./hooks";
|
|
7
7
|
export { getUUID, supportsHasSelector, isLegacyHasSelectorBrowser } from "./utils";
|
|
8
8
|
|
|
9
|
-
//
|
|
9
|
+
// Design tokens (TS constants for JS-side consumers such as antd themeConfig; CSS-variable version lives in es/styles/tokens.scss)
|
|
10
|
+
export { lightTokens, darkTokens, defaultPrimaryColor } from "./styles/tokens";
|
|
11
|
+
// Components
|
|
10
12
|
export { default as Button } from "./components/Button";
|
|
11
13
|
export * from "./components/Button";
|
|
12
14
|
export { default as ChainGraph } from "./components/ChainGraph";
|
|
@@ -74,4 +76,4 @@ export * from "./components/Tree";
|
|
|
74
76
|
export { default as Upload } from "./components/Upload";
|
|
75
77
|
export * from "./components/Upload";
|
|
76
78
|
|
|
77
|
-
//
|
|
79
|
+
// Explicit disambiguation: both Table and Descriptions export ColumnsType; Table's takes precedence (public API).
|
package/es/request/ResType.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Generic response wrapper: the { code, data, msg } structure agreed with the backend */
|
|
2
2
|
export interface ResType<T = unknown> {
|
|
3
3
|
code: number;
|
|
4
4
|
data: T;
|
|
5
5
|
msg?: string;
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
7
|
+
/** Paginated list response */
|
|
8
8
|
export interface ListRes<T> {
|
|
9
9
|
list: Array<T>;
|
|
10
10
|
page: {
|
|
@@ -13,7 +13,7 @@ export interface ListRes<T> {
|
|
|
13
13
|
total: number;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
16
|
+
/** File response (binary download) */
|
|
17
17
|
export interface FileRes {
|
|
18
18
|
filename: string;
|
|
19
19
|
data: ArrayBuffer;
|
package/es/request/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ResType } from "./ResType";
|
|
2
2
|
export * from "./ResType";
|
|
3
|
-
/**
|
|
3
|
+
/** Request configuration (a subset compatible with common axios wrappers) */
|
|
4
4
|
export interface RequestConfig<P = object> {
|
|
5
5
|
params?: P;
|
|
6
6
|
responseType?: string;
|
|
7
7
|
headers?: Record<string, unknown>;
|
|
8
|
-
/**
|
|
8
|
+
/** When true, a 401 on this request does not trigger the global redirect to login */
|
|
9
9
|
skipAuthRedirect?: boolean;
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Request implementation interface that the library's internal "smart components" depend on.
|
|
14
|
+
* Injected by consumers via ConfigProvider's `request` or `configureRequest()`;
|
|
15
|
+
* the component library itself is not bound to any specific HTTP client.
|
|
16
16
|
*/
|
|
17
17
|
export interface RequestImpl {
|
|
18
18
|
get<T = unknown>(url: string, config?: any): Promise<ResType<T>>;
|
|
@@ -20,7 +20,7 @@ export interface RequestImpl {
|
|
|
20
20
|
del<T = unknown>(url: string, config?: any): Promise<ResType<T>>;
|
|
21
21
|
put<T = unknown>(url: string, data?: any): Promise<ResType<T>>;
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
23
|
+
/** Inject the real request implementation (only the methods you use need to be provided) */
|
|
24
24
|
export declare const configureRequest: (request: Partial<RequestImpl>) => void;
|
|
25
25
|
export declare const get: RequestImpl["get"];
|
|
26
26
|
export declare const post: RequestImpl["post"];
|
package/es/request/index.js
CHANGED
|
@@ -6,14 +6,14 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
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); }
|
|
7
7
|
export * from "./ResType";
|
|
8
8
|
|
|
9
|
-
/**
|
|
9
|
+
/** Request configuration (a subset compatible with common axios wrappers) */
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Request implementation interface that the library's internal "smart components" depend on.
|
|
13
|
+
* Injected by consumers via ConfigProvider's `request` or `configureRequest()`;
|
|
14
|
+
* the component library itself is not bound to any specific HTTP client.
|
|
15
15
|
*/
|
|
16
|
-
//
|
|
16
|
+
// Note: config/data use loose types to accommodate signature differences across axios wrappers
|
|
17
17
|
|
|
18
18
|
var notConfigured = function notConfigured() {
|
|
19
19
|
throw new Error("[@hsu-react/ui] 尚未注入 request。请用 <ConfigProvider request={...}> 包裹应用," + "或在入口调用 configureRequest({ get, post, del, put })。");
|
|
@@ -25,7 +25,7 @@ var impl = {
|
|
|
25
25
|
put: notConfigured
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
/**
|
|
28
|
+
/** Inject the real request implementation (only the methods you use need to be provided) */
|
|
29
29
|
export var configureRequest = function configureRequest(request) {
|
|
30
30
|
impl = _objectSpread(_objectSpread({}, impl), request);
|
|
31
31
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Design tokens (colors/fonts/radii/shadows, incl. dark theme) — importing this file brings in the full set of variables
|
|
2
|
+
@use "./tokens";
|
|
3
|
+
|
|
1
4
|
.ant-layout-sider-children {
|
|
2
5
|
display: flex;
|
|
3
6
|
flex-direction: column;
|
|
@@ -21,18 +24,18 @@
|
|
|
21
24
|
justify-content: center;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
//
|
|
27
|
+
// Primary buttons are driven by the antd colorPrimary token (auto-picks color for light/dark appearance + correct hover/active derivation)
|
|
25
28
|
|
|
26
29
|
.ant-menu-item,
|
|
27
30
|
.ant-menu-submenu-title {
|
|
28
31
|
column-gap: 5px;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
// ===== Cloudflare
|
|
34
|
+
// ===== Cloudflare style: side menu (shared by light/dark) =====
|
|
32
35
|
.ant-layout-sider .ant-menu {
|
|
33
36
|
border-inline-end: none;
|
|
34
37
|
|
|
35
|
-
//
|
|
38
|
+
// Aqua highlight bar on the left of the selected row + medium font weight, echoing the CF dashboard's left-edge indicator
|
|
36
39
|
.ant-menu-item-selected {
|
|
37
40
|
position: relative;
|
|
38
41
|
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
// CF
|
|
59
|
+
// CF section titles: small size, bold, letter-spaced, muted color (uppercase English)
|
|
57
60
|
.ant-menu-item-group-title {
|
|
58
61
|
padding: 18px 20px 6px;
|
|
59
62
|
|
|
@@ -66,29 +69,29 @@
|
|
|
66
69
|
color: var(--cf-text-3);
|
|
67
70
|
}
|
|
68
71
|
|
|
69
|
-
//
|
|
72
|
+
// Items within a group use more restrained left-aligned indentation (closer to CF)
|
|
70
73
|
.ant-menu-item-group-list .ant-menu-item {
|
|
71
74
|
padding-left: 20px !important;
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
75
|
-
// ===== Cloudflare
|
|
78
|
+
// ===== Cloudflare style: tables =====
|
|
76
79
|
.ant-table-wrapper {
|
|
77
80
|
.ant-table {
|
|
78
|
-
//
|
|
81
|
+
// Lighter font weight and letter spacing for table headers
|
|
79
82
|
.ant-table-thead > tr > th {
|
|
80
83
|
font-weight: 600;
|
|
81
84
|
font-size: 13px;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
|
-
//
|
|
87
|
+
// Remove the default vertical divider on the right of cells (CF tables keep horizontal lines only)
|
|
85
88
|
.ant-table-thead > tr > th::before {
|
|
86
89
|
display: none !important;
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
// ===== Cloudflare
|
|
94
|
+
// ===== Cloudflare style: Tags use outlined style with a light background =====
|
|
92
95
|
.ant-tag {
|
|
93
96
|
border-radius: 6px;
|
|
94
97
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TS constants for the Hsu UI design tokens (for JS-side consumers such as antd themeConfig).
|
|
3
|
+
* The CSS-variable version lives in ./tokens.scss; the two must be kept in sync.
|
|
4
|
+
*/
|
|
5
|
+
export interface HsuThemeTokens {
|
|
6
|
+
/** Page canvas */
|
|
7
|
+
canvas: string;
|
|
8
|
+
/** Card/panel background */
|
|
9
|
+
surface: string;
|
|
10
|
+
/** Table header/secondary background */
|
|
11
|
+
subtle: string;
|
|
12
|
+
/** Border */
|
|
13
|
+
border: string;
|
|
14
|
+
/** Lighter border */
|
|
15
|
+
borderWeak: string;
|
|
16
|
+
/** Header bar background */
|
|
17
|
+
headerBg: string;
|
|
18
|
+
text: string;
|
|
19
|
+
text2: string;
|
|
20
|
+
text3: string;
|
|
21
|
+
rowHover: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const lightTokens: HsuThemeTokens;
|
|
24
|
+
export declare const darkTokens: HsuThemeTokens;
|
|
25
|
+
/** Default primary color (initial value of the CSS variable --primary-color; consuming projects may override at runtime) */
|
|
26
|
+
export declare const defaultPrimaryColor = "#1677ff";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TS constants for the Hsu UI design tokens (for JS-side consumers such as antd themeConfig).
|
|
3
|
+
* The CSS-variable version lives in ./tokens.scss; the two must be kept in sync.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export var lightTokens = {
|
|
7
|
+
canvas: "#f6f7f9",
|
|
8
|
+
surface: "#ffffff",
|
|
9
|
+
subtle: "#fafbfc",
|
|
10
|
+
border: "#e6e8eb",
|
|
11
|
+
borderWeak: "#eceef1",
|
|
12
|
+
headerBg: "#ffffff",
|
|
13
|
+
text: "rgba(0, 0, 0, 0.88)",
|
|
14
|
+
text2: "rgba(0, 0, 0, 0.45)",
|
|
15
|
+
text3: "rgba(0, 0, 0, 0.35)",
|
|
16
|
+
rowHover: "#f6f7f9"
|
|
17
|
+
};
|
|
18
|
+
export var darkTokens = {
|
|
19
|
+
canvas: "#131314",
|
|
20
|
+
surface: "#1c1c1e",
|
|
21
|
+
subtle: "#232325",
|
|
22
|
+
border: "rgba(255, 255, 255, 0.12)",
|
|
23
|
+
borderWeak: "rgba(255, 255, 255, 0.08)",
|
|
24
|
+
headerBg: "#1c1c1e",
|
|
25
|
+
text: "rgba(255, 255, 255, 0.85)",
|
|
26
|
+
text2: "rgba(255, 255, 255, 0.45)",
|
|
27
|
+
text3: "rgba(255, 255, 255, 0.35)",
|
|
28
|
+
rowHover: "rgba(255, 255, 255, 0.04)"
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** Default primary color (initial value of the CSS variable --primary-color; consuming projects may override at runtime) */
|
|
32
|
+
export var defaultPrimaryColor = "#1677ff";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// =============================================================
|
|
2
|
+
// Hsu UI design tokens (single source of truth)
|
|
3
|
+
// Two value sets, light/dark; dark is activated by html[data-theme="dark"] (Theme toggle in consuming projects)
|
|
4
|
+
// or html[data-prefers-color-scheme="dark"] (dumi docs site).
|
|
5
|
+
// TS-side constants live in ./tokens.ts (for JS consumers such as antd themeConfig); the two must be kept in sync.
|
|
6
|
+
// =============================================================
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
// ---- Colors - neutral ----
|
|
10
|
+
--cf-canvas: #f6f7f9; // Page canvas
|
|
11
|
+
--cf-surface: #ffffff; // Card/panel background
|
|
12
|
+
--cf-subtle: #fafbfc; // Table header/secondary background
|
|
13
|
+
--cf-border: #e6e8eb; // Border
|
|
14
|
+
--cf-border-weak: #eceef1; // Lighter border
|
|
15
|
+
--cf-text: rgba(0, 0, 0, 0.88);
|
|
16
|
+
--cf-text-2: rgba(0, 0, 0, 0.45);
|
|
17
|
+
--cf-text-3: rgba(0, 0, 0, 0.35);
|
|
18
|
+
--cf-row-hover: #f6f7f9;
|
|
19
|
+
|
|
20
|
+
// ---- Colors - brand & functional ----
|
|
21
|
+
--primary-color: #1677ff; // Default primary color (consuming projects may override at runtime)
|
|
22
|
+
--cf-success: #52c41a;
|
|
23
|
+
--cf-warning: #faad14;
|
|
24
|
+
--cf-error: #ff4d4f;
|
|
25
|
+
|
|
26
|
+
// ---- Fonts ----
|
|
27
|
+
--cf-font-family:
|
|
28
|
+
PingFangSC-Regular, "PingFang SC", -apple-system, BlinkMacSystemFont,
|
|
29
|
+
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
|
|
30
|
+
--cf-font-size-sm: 12px;
|
|
31
|
+
--cf-font-size: 14px;
|
|
32
|
+
--cf-font-size-lg: 16px;
|
|
33
|
+
|
|
34
|
+
// ---- Border radius ----
|
|
35
|
+
--cf-radius-sm: 6px;
|
|
36
|
+
--cf-radius: 8px;
|
|
37
|
+
--cf-radius-lg: 12px;
|
|
38
|
+
|
|
39
|
+
// ---- Shadows (the CF look relies mainly on borders; shadows are for overlays only) ----
|
|
40
|
+
--cf-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
41
|
+
--cf-shadow-2: 0 4px 12px rgba(16, 24, 40, 0.08);
|
|
42
|
+
--cf-shadow-3: 0 8px 24px rgba(16, 24, 40, 0.12);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
html[data-theme="dark"],
|
|
46
|
+
html[data-prefers-color="dark"],
|
|
47
|
+
html[data-prefers-color-scheme="dark"] {
|
|
48
|
+
--cf-canvas: #131314;
|
|
49
|
+
--cf-surface: #1c1c1e;
|
|
50
|
+
--cf-subtle: #232325;
|
|
51
|
+
--cf-border: rgba(255, 255, 255, 0.12);
|
|
52
|
+
--cf-border-weak: rgba(255, 255, 255, 0.08);
|
|
53
|
+
--cf-text: rgba(255, 255, 255, 0.85);
|
|
54
|
+
--cf-text-2: rgba(255, 255, 255, 0.45);
|
|
55
|
+
--cf-text-3: rgba(255, 255, 255, 0.35);
|
|
56
|
+
--cf-row-hover: rgba(255, 255, 255, 0.04);
|
|
57
|
+
|
|
58
|
+
// Deeper shadows in dark mode (to distinguish overlays from the dark background)
|
|
59
|
+
--cf-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
60
|
+
--cf-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
61
|
+
--cf-shadow-3: 0 8px 24px rgba(0, 0, 0, 0.55);
|
|
62
|
+
}
|
package/es/typings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
// Ambient declarations: supply missing module types for build-time type checking / declaration file generation.
|
|
2
|
+
// Types only; no runtime effect.
|
|
3
3
|
|
|
4
4
|
// CSS / Sass Modules
|
|
5
5
|
declare module "*.module.scss" {
|
|
@@ -19,7 +19,7 @@ declare module "*.css" {
|
|
|
19
19
|
export default content;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// Static assets
|
|
23
23
|
declare module "*.png" {
|
|
24
24
|
const src: string;
|
|
25
25
|
export default src;
|
package/es/utils/getUUID.d.ts
CHANGED
package/es/utils/getUUID.js
CHANGED
|
@@ -12,8 +12,8 @@ var _indexModule = _interopRequireDefault(require("./index.module.scss"));
|
|
|
12
12
|
var _ChakraButton = _interopRequireDefault(require("./ChakraButton"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
// forwardRef
|
|
16
|
-
//
|
|
15
|
+
// forwardRef: when wrapped by overlay components like Tooltip / Popconfirm, the button DOM can be accessed directly,
|
|
16
|
+
// preventing rc libraries from falling back to findDOMNode and triggering React deprecation warnings
|
|
17
17
|
const InternalButton = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
18
18
|
const {
|
|
19
19
|
hasPermi,
|
|
@@ -31,13 +31,13 @@ function ArrowEdge(arrowEdgeProps) {
|
|
|
31
31
|
const line = group.addShape("path", {
|
|
32
32
|
attrs: {
|
|
33
33
|
path: [
|
|
34
|
-
//
|
|
34
|
+
// Start point
|
|
35
35
|
["M", startPoint.x, startPoint.y],
|
|
36
|
-
//
|
|
36
|
+
// Horizontally right to the middle X position
|
|
37
37
|
["L", (startPoint.x + endPoint.x) / 2, startPoint.y],
|
|
38
|
-
//
|
|
38
|
+
// Vertically down/up to the end point's Y position
|
|
39
39
|
["L", (startPoint.x + endPoint.x) / 2, endPoint.y],
|
|
40
|
-
//
|
|
40
|
+
// Horizontally right to the end point
|
|
41
41
|
["L", endPoint.x, endPoint.y]],
|
|
42
42
|
endArrow: {
|
|
43
43
|
path: "M 0,0 L 6,3 L 6,-3 Z",
|
|
@@ -19,7 +19,7 @@ class NodeEvents {
|
|
|
19
19
|
this.onNodeClick("text-shape");
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// ====================
|
|
22
|
+
// ==================== Node hover ====================
|
|
23
23
|
onNodeHover = () => {
|
|
24
24
|
this._graph?.on("node:mouseenter", e => {
|
|
25
25
|
const node = e.item;
|
|
@@ -35,7 +35,7 @@ class NodeEvents {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
// ====================
|
|
38
|
+
// ==================== Collapse/expand ====================
|
|
39
39
|
onCollapseExpand = () => {
|
|
40
40
|
this._graph?.on("collapse-icon:mouseenter", () => {
|
|
41
41
|
this._graph?.setMode("collapseExpand");
|
|
@@ -45,7 +45,7 @@ class NodeEvents {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// ====================
|
|
48
|
+
// ==================== Node click ====================
|
|
49
49
|
onNodeClick = shapeName => {
|
|
50
50
|
this._graph?.on(`${shapeName}:click`, e => {
|
|
51
51
|
const node = e.item;
|