@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.
Files changed (1776) hide show
  1. package/README.md +54 -0
  2. package/es/components/Button/ChakraButton/index.d.ts +11 -0
  3. package/es/components/Button/ChakraButton/index.js +61 -0
  4. package/es/components/Button/ChakraButton/index.module.less +20 -0
  5. package/es/components/Button/index.d.ts +14 -0
  6. package/es/components/Button/index.js +41 -0
  7. package/es/components/Button/index.module.less +11 -0
  8. package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.d.ts +6 -0
  9. package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +51 -0
  10. package/es/components/ChainGraph/ChainGraphServices/NodeEvents.d.ts +14 -0
  11. package/es/components/ChainGraph/ChainGraphServices/NodeEvents.js +78 -0
  12. package/es/components/ChainGraph/ChainGraphServices/RootNode.d.ts +17 -0
  13. package/es/components/ChainGraph/ChainGraphServices/RootNode.js +280 -0
  14. package/es/components/ChainGraph/ChainGraphServices/TreeNode.d.ts +17 -0
  15. package/es/components/ChainGraph/ChainGraphServices/TreeNode.js +327 -0
  16. package/es/components/ChainGraph/ChainGraphServices/index.d.ts +88 -0
  17. package/es/components/ChainGraph/ChainGraphServices/index.js +459 -0
  18. package/es/components/ChainGraph/_components/ExpandButtons/index.d.ts +8 -0
  19. package/es/components/ChainGraph/_components/ExpandButtons/index.js +23 -0
  20. package/es/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
  21. package/es/components/ChainGraph/_components/SearchSelect/index.d.ts +6 -0
  22. package/es/components/ChainGraph/_components/SearchSelect/index.js +18 -0
  23. package/es/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
  24. package/es/components/ChainGraph/_hooks/index.d.ts +7 -0
  25. package/es/components/ChainGraph/_hooks/index.js +7 -0
  26. package/es/components/ChainGraph/_hooks/useChainGraphData.d.ts +15 -0
  27. package/es/components/ChainGraph/_hooks/useChainGraphData.js +44 -0
  28. package/es/components/ChainGraph/_hooks/useChainGraphExpand.d.ts +12 -0
  29. package/es/components/ChainGraph/_hooks/useChainGraphExpand.js +32 -0
  30. package/es/components/ChainGraph/_hooks/useChainGraphInit.d.ts +23 -0
  31. package/es/components/ChainGraph/_hooks/useChainGraphInit.js +53 -0
  32. package/es/components/ChainGraph/_hooks/useChainGraphLayout.d.ts +9 -0
  33. package/es/components/ChainGraph/_hooks/useChainGraphLayout.js +12 -0
  34. package/es/components/ChainGraph/_hooks/useChainGraphMiniMap.d.ts +7 -0
  35. package/es/components/ChainGraph/_hooks/useChainGraphMiniMap.js +10 -0
  36. package/es/components/ChainGraph/_hooks/useChainGraphResize.d.ts +9 -0
  37. package/es/components/ChainGraph/_hooks/useChainGraphResize.js +29 -0
  38. package/es/components/ChainGraph/_hooks/useChainGraphSearch.d.ts +7 -0
  39. package/es/components/ChainGraph/_hooks/useChainGraphSearch.js +10 -0
  40. package/es/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +9 -0
  41. package/es/components/ChainGraph/_utils/findAncestorsOfNode.js +38 -0
  42. package/es/components/ChainGraph/_utils/getTextSize.d.ts +11 -0
  43. package/es/components/ChainGraph/_utils/getTextSize.js +26 -0
  44. package/es/components/ChainGraph/_utils/index.d.ts +3 -0
  45. package/es/components/ChainGraph/_utils/index.js +3 -0
  46. package/es/components/ChainGraph/_utils/styles.d.ts +13 -0
  47. package/es/components/ChainGraph/_utils/styles.js +21 -0
  48. package/es/components/ChainGraph/index.d.ts +37 -0
  49. package/es/components/ChainGraph/index.js +172 -0
  50. package/es/components/ChainGraph/index.module.less +39 -0
  51. package/es/components/Chart/Bar/Bar3DOpt.d.ts +11 -0
  52. package/es/components/Chart/Bar/Bar3DOpt.js +187 -0
  53. package/es/components/Chart/Bar/index.d.ts +20 -0
  54. package/es/components/Chart/Bar/index.js +293 -0
  55. package/es/components/Chart/Bubble/index.d.ts +24 -0
  56. package/es/components/Chart/Bubble/index.js +339 -0
  57. package/es/components/Chart/Common/index.d.ts +4 -0
  58. package/es/components/Chart/Common/index.js +94 -0
  59. package/es/components/Chart/Gauge/index.d.ts +8 -0
  60. package/es/components/Chart/Gauge/index.js +145 -0
  61. package/es/components/Chart/Group/index.d.ts +20 -0
  62. package/es/components/Chart/Group/index.js +111 -0
  63. package/es/components/Chart/Group/index.module.less +67 -0
  64. package/es/components/Chart/Heatmap/index.d.ts +35 -0
  65. package/es/components/Chart/Heatmap/index.js +249 -0
  66. package/es/components/Chart/Line/index.d.ts +21 -0
  67. package/es/components/Chart/Line/index.js +289 -0
  68. package/es/components/Chart/Pie/Pie3D/_hooks/index.d.ts +15 -0
  69. package/es/components/Chart/Pie/Pie3D/_hooks/index.js +181 -0
  70. package/es/components/Chart/Pie/Pie3D/_utils/label.d.ts +2 -0
  71. package/es/components/Chart/Pie/Pie3D/_utils/label.js +273 -0
  72. package/es/components/Chart/Pie/Pie3D/_utils/option.d.ts +20 -0
  73. package/es/components/Chart/Pie/Pie3D/_utils/option.js +103 -0
  74. package/es/components/Chart/Pie/Pie3D/_utils/parametricEquation.d.ts +15 -0
  75. package/es/components/Chart/Pie/Pie3D/_utils/parametricEquation.js +53 -0
  76. package/es/components/Chart/Pie/Pie3D/_utils/series.d.ts +3 -0
  77. package/es/components/Chart/Pie/Pie3D/_utils/series.js +60 -0
  78. package/es/components/Chart/Pie/Pie3D/index.d.ts +86 -0
  79. package/es/components/Chart/Pie/Pie3D/index.js +140 -0
  80. package/es/components/Chart/Pie/index.d.ts +32 -0
  81. package/es/components/Chart/Pie/index.js +294 -0
  82. package/es/components/Chart/Polar/index.d.ts +13 -0
  83. package/es/components/Chart/Polar/index.js +197 -0
  84. package/es/components/Chart/Radar/index.d.ts +29 -0
  85. package/es/components/Chart/Radar/index.js +309 -0
  86. package/es/components/Chart/Sankey/index.d.ts +12 -0
  87. package/es/components/Chart/Sankey/index.js +191 -0
  88. package/es/components/Chart/Tree/index.d.ts +8 -0
  89. package/es/components/Chart/Tree/index.js +110 -0
  90. package/es/components/Chart/_utils/autoScrollLegend.d.ts +14 -0
  91. package/es/components/Chart/_utils/autoScrollLegend.js +89 -0
  92. package/es/components/Chart/_utils/autoSmooth.d.ts +15 -0
  93. package/es/components/Chart/_utils/autoSmooth.js +140 -0
  94. package/es/components/Chart/_utils/bubble.d.ts +8 -0
  95. package/es/components/Chart/_utils/bubble.js +214 -0
  96. package/es/components/Chart/_utils/cartesian.d.ts +25 -0
  97. package/es/components/Chart/_utils/cartesian.js +100 -0
  98. package/es/components/Chart/_utils/heatmap.d.ts +3 -0
  99. package/es/components/Chart/_utils/heatmap.js +38 -0
  100. package/es/components/Chart/_utils/tree.d.ts +2 -0
  101. package/es/components/Chart/_utils/tree.js +33 -0
  102. package/es/components/Chart/chartUtils/calculateAxisConfig.d.ts +11 -0
  103. package/es/components/Chart/chartUtils/calculateAxisConfig.js +94 -0
  104. package/es/components/Chart/chartUtils/chartTooltipFormatter.d.ts +23 -0
  105. package/es/components/Chart/chartUtils/chartTooltipFormatter.js +27 -0
  106. package/es/components/Chart/chartUtils/index.d.ts +7 -0
  107. package/es/components/Chart/chartUtils/index.js +5 -0
  108. package/es/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +13 -0
  109. package/es/components/Chart/chartUtils/yAxisDisplayUnit.js +45 -0
  110. package/es/components/Chart/index.d.ts +60 -0
  111. package/es/components/Chart/index.js +35 -0
  112. package/es/components/Chart/index.module.less +4 -0
  113. package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.d.ts +12 -0
  114. package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.js +32 -0
  115. package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
  116. package/es/components/Chat/ChatHistory/_components/HistoryItem/index.d.ts +11 -0
  117. package/es/components/Chat/ChatHistory/_components/HistoryItem/index.js +172 -0
  118. package/es/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
  119. package/es/components/Chat/ChatHistory/_components/NewChatButton/index.d.ts +6 -0
  120. package/es/components/Chat/ChatHistory/_components/NewChatButton/index.js +22 -0
  121. package/es/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
  122. package/es/components/Chat/ChatHistory/_components/index.d.ts +3 -0
  123. package/es/components/Chat/ChatHistory/_components/index.js +3 -0
  124. package/es/components/Chat/ChatHistory/_hooks/index.d.ts +1 -0
  125. package/es/components/Chat/ChatHistory/_hooks/index.js +1 -0
  126. package/es/components/Chat/ChatHistory/_hooks/useRename.d.ts +9 -0
  127. package/es/components/Chat/ChatHistory/_hooks/useRename.js +38 -0
  128. package/es/components/Chat/ChatHistory/_utils/index.d.ts +4 -0
  129. package/es/components/Chat/ChatHistory/_utils/index.js +6 -0
  130. package/es/components/Chat/ChatHistory/index.d.ts +20 -0
  131. package/es/components/Chat/ChatHistory/index.js +63 -0
  132. package/es/components/Chat/ChatHistory/index.module.less +54 -0
  133. package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.d.ts +14 -0
  134. package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.js +28 -0
  135. package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
  136. package/es/components/Chat/ChatInput/_components/FileList/index.d.ts +8 -0
  137. package/es/components/Chat/ChatInput/_components/FileList/index.js +27 -0
  138. package/es/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
  139. package/es/components/Chat/ChatInput/_components/SendButton/index.d.ts +9 -0
  140. package/es/components/Chat/ChatInput/_components/SendButton/index.js +32 -0
  141. package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
  142. package/es/components/Chat/ChatInput/_components/StopButton/index.d.ts +7 -0
  143. package/es/components/Chat/ChatInput/_components/StopButton/index.js +20 -0
  144. package/es/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
  145. package/es/components/Chat/ChatInput/_components/UploadButton/index.d.ts +16 -0
  146. package/es/components/Chat/ChatInput/_components/UploadButton/index.js +74 -0
  147. package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
  148. package/es/components/Chat/ChatInput/_components/index.d.ts +6 -0
  149. package/es/components/Chat/ChatInput/_components/index.js +5 -0
  150. package/es/components/Chat/ChatInput/_hooks/index.d.ts +2 -0
  151. package/es/components/Chat/ChatInput/_hooks/index.js +2 -0
  152. package/es/components/Chat/ChatInput/_hooks/useCurrentModel.d.ts +2 -0
  153. package/es/components/Chat/ChatInput/_hooks/useCurrentModel.js +23 -0
  154. package/es/components/Chat/ChatInput/_hooks/useFileList.d.ts +6 -0
  155. package/es/components/Chat/ChatInput/_hooks/useFileList.js +22 -0
  156. package/es/components/Chat/ChatInput/_utils/index.d.ts +13 -0
  157. package/es/components/Chat/ChatInput/_utils/index.js +85 -0
  158. package/es/components/Chat/ChatInput/index.d.ts +56 -0
  159. package/es/components/Chat/ChatInput/index.js +244 -0
  160. package/es/components/Chat/ChatInput/index.module.less +100 -0
  161. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.d.ts +6 -0
  162. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +54 -0
  163. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
  164. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.d.ts +8 -0
  165. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.js +92 -0
  166. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
  167. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.d.ts +7 -0
  168. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.js +102 -0
  169. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
  170. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.d.ts +14 -0
  171. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +111 -0
  172. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
  173. package/es/components/Chat/ChatList/_components/Assistant/index.d.ts +18 -0
  174. package/es/components/Chat/ChatList/_components/Assistant/index.js +87 -0
  175. package/es/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
  176. package/es/components/Chat/ChatList/_components/User/index.d.ts +14 -0
  177. package/es/components/Chat/ChatList/_components/User/index.js +72 -0
  178. package/es/components/Chat/ChatList/_components/User/index.module.less +144 -0
  179. package/es/components/Chat/ChatList/_hooks/index.d.ts +3 -0
  180. package/es/components/Chat/ChatList/_hooks/index.js +2 -0
  181. package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +16 -0
  182. package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.js +38 -0
  183. package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.d.ts +22 -0
  184. package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +88 -0
  185. package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +6 -0
  186. package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +9 -0
  187. package/es/components/Chat/ChatList/_utils/index.d.ts +1 -0
  188. package/es/components/Chat/ChatList/_utils/index.js +1 -0
  189. package/es/components/Chat/ChatList/index.d.ts +73 -0
  190. package/es/components/Chat/ChatList/index.js +84 -0
  191. package/es/components/Chat/ChatList/index.module.less +8 -0
  192. package/es/components/Chat/index.d.ts +13 -0
  193. package/es/components/Chat/index.js +9 -0
  194. package/es/components/Checkbox/CheckboxGroup/index.d.ts +10 -0
  195. package/es/components/Checkbox/CheckboxGroup/index.js +100 -0
  196. package/es/components/Checkbox/CheckboxGroup/index.module.less +130 -0
  197. package/es/components/Checkbox/index.d.ts +12 -0
  198. package/es/components/Checkbox/index.js +25 -0
  199. package/es/components/Checkbox/index.module.less +93 -0
  200. package/es/components/CodeMirror/index.d.ts +21 -0
  201. package/es/components/CodeMirror/index.js +222 -0
  202. package/es/components/CodeMirror/index.module.less +36 -0
  203. package/es/components/CodeMirror/linters/errorTranslator.d.ts +4 -0
  204. package/es/components/CodeMirror/linters/errorTranslator.js +85 -0
  205. package/es/components/CodeMirror/linters/jsonLinter.d.ts +15 -0
  206. package/es/components/CodeMirror/linters/jsonLinter.js +136 -0
  207. package/es/components/CodeMirror/linters/sqlLinter.d.ts +9 -0
  208. package/es/components/CodeMirror/linters/sqlLinter.js +269 -0
  209. package/es/components/Copy/index.d.ts +12 -0
  210. package/es/components/Copy/index.js +116 -0
  211. package/es/components/Copy/index.module.less +44 -0
  212. package/es/components/DatePicker/RangePicker/index.d.ts +16 -0
  213. package/es/components/DatePicker/RangePicker/index.js +192 -0
  214. package/es/components/DatePicker/RangePicker/index.module.less +47 -0
  215. package/es/components/DatePicker/StepPicker/index.d.ts +19 -0
  216. package/es/components/DatePicker/StepPicker/index.js +86 -0
  217. package/es/components/DatePicker/StepPicker/index.module.less +27 -0
  218. package/es/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +5 -0
  219. package/es/components/DatePicker/defaultModalPickerGetPopupContainer.js +8 -0
  220. package/es/components/DatePicker/index.d.ts +21 -0
  221. package/es/components/DatePicker/index.js +198 -0
  222. package/es/components/DatePicker/index.module.less +39 -0
  223. package/es/components/Descriptions/index.d.ts +16 -0
  224. package/es/components/Descriptions/index.js +127 -0
  225. package/es/components/Descriptions/index.module.less +16 -0
  226. package/es/components/Editor/index.d.ts +17 -0
  227. package/es/components/Editor/index.js +95 -0
  228. package/es/components/Editor/index.module.less +62 -0
  229. package/es/components/FileCol/index.d.ts +8 -0
  230. package/es/components/FileCol/index.js +69 -0
  231. package/es/components/FileCol/index.module.less +23 -0
  232. package/es/components/FilePreview/_components/BasePreview/index.module.less +80 -0
  233. package/es/components/FilePreview/_components/ImagePreview/index.d.ts +8 -0
  234. package/es/components/FilePreview/_components/ImagePreview/index.js +25 -0
  235. package/es/components/FilePreview/_components/MarkdownPreview/index.d.ts +8 -0
  236. package/es/components/FilePreview/_components/MarkdownPreview/index.js +30 -0
  237. package/es/components/FilePreview/_components/PdfPreview/index.d.ts +10 -0
  238. package/es/components/FilePreview/_components/PdfPreview/index.js +263 -0
  239. package/es/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
  240. package/es/components/FilePreview/_components/TextPreview/index.d.ts +8 -0
  241. package/es/components/FilePreview/_components/TextPreview/index.js +32 -0
  242. package/es/components/FilePreview/_components/VideoPreview/index.d.ts +8 -0
  243. package/es/components/FilePreview/_components/VideoPreview/index.js +31 -0
  244. package/es/components/FilePreview/_components/XlsxPreview/index.d.ts +9 -0
  245. package/es/components/FilePreview/_components/XlsxPreview/index.js +36 -0
  246. package/es/components/FilePreview/_hooks/index.d.ts +1 -0
  247. package/es/components/FilePreview/_hooks/index.js +1 -0
  248. package/es/components/FilePreview/_hooks/useXlsxData.d.ts +10 -0
  249. package/es/components/FilePreview/_hooks/useXlsxData.js +30 -0
  250. package/es/components/FilePreview/_utils/index.d.ts +2 -0
  251. package/es/components/FilePreview/_utils/index.js +1 -0
  252. package/es/components/FilePreview/_utils/types.d.ts +2 -0
  253. package/es/components/FilePreview/_utils/types.js +1 -0
  254. package/es/components/FilePreview/index.d.ts +16 -0
  255. package/es/components/FilePreview/index.js +87 -0
  256. package/es/components/FilePreview/index.module.less +89 -0
  257. package/es/components/FlexFill/index.d.ts +12 -0
  258. package/es/components/FlexFill/index.js +28 -0
  259. package/es/components/Form/DrawerForm/index.d.ts +18 -0
  260. package/es/components/Form/DrawerForm/index.js +125 -0
  261. package/es/components/Form/DrawerForm/index.module.less +51 -0
  262. package/es/components/Form/ImportForm/index.d.ts +17 -0
  263. package/es/components/Form/ImportForm/index.js +116 -0
  264. package/es/components/Form/ImportForm/index.module.less +10 -0
  265. package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +11 -0
  266. package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +61 -0
  267. package/es/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +7 -0
  268. package/es/components/Form/ModalForm/_hooks/useColumnFormItems.js +62 -0
  269. package/es/components/Form/ModalForm/_hooks/useFormItems.d.ts +9 -0
  270. package/es/components/Form/ModalForm/_hooks/useFormItems.js +43 -0
  271. package/es/components/Form/ModalForm/index.d.ts +30 -0
  272. package/es/components/Form/ModalForm/index.js +178 -0
  273. package/es/components/Form/ModalForm/index.module.less +74 -0
  274. package/es/components/Form/index.d.ts +13 -0
  275. package/es/components/Form/index.js +11 -0
  276. package/es/components/FormItem/FormAuto/index.d.ts +8 -0
  277. package/es/components/FormItem/FormAuto/index.js +21 -0
  278. package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.d.ts +8 -0
  279. package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.js +34 -0
  280. package/es/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
  281. package/es/components/FormItem/FormCheckbox/index.d.ts +13 -0
  282. package/es/components/FormItem/FormCheckbox/index.js +40 -0
  283. package/es/components/FormItem/FormCheckbox/index.module.less +2 -0
  284. package/es/components/FormItem/FormCodeMirror/index.d.ts +8 -0
  285. package/es/components/FormItem/FormCodeMirror/index.js +93 -0
  286. package/es/components/FormItem/FormDatePicker/FormRangePicker/index.d.ts +8 -0
  287. package/es/components/FormItem/FormDatePicker/FormRangePicker/index.js +34 -0
  288. package/es/components/FormItem/FormDatePicker/FormStepPicker/index.d.ts +8 -0
  289. package/es/components/FormItem/FormDatePicker/FormStepPicker/index.js +34 -0
  290. package/es/components/FormItem/FormDatePicker/index.d.ts +15 -0
  291. package/es/components/FormItem/FormDatePicker/index.js +38 -0
  292. package/es/components/FormItem/FormDatePicker/index.module.less +3 -0
  293. package/es/components/FormItem/FormEditor/index.d.ts +8 -0
  294. package/es/components/FormItem/FormEditor/index.js +28 -0
  295. package/es/components/FormItem/FormInput/FormInputNumber/index.d.ts +8 -0
  296. package/es/components/FormItem/FormInput/FormInputNumber/index.js +32 -0
  297. package/es/components/FormItem/FormInput/FormPassword/index.d.ts +8 -0
  298. package/es/components/FormItem/FormInput/FormPassword/index.js +36 -0
  299. package/es/components/FormItem/FormInput/FormPasswordStrength/index.d.ts +10 -0
  300. package/es/components/FormItem/FormInput/FormPasswordStrength/index.js +68 -0
  301. package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
  302. package/es/components/FormItem/FormInput/FormRangeInput/index.d.ts +8 -0
  303. package/es/components/FormItem/FormInput/FormRangeInput/index.js +37 -0
  304. package/es/components/FormItem/FormInput/FormTextAreaInput/index.d.ts +10 -0
  305. package/es/components/FormItem/FormInput/FormTextAreaInput/index.js +32 -0
  306. package/es/components/FormItem/FormInput/index.d.ts +24 -0
  307. package/es/components/FormItem/FormInput/index.js +45 -0
  308. package/es/components/FormItem/FormRadio/index.d.ts +11 -0
  309. package/es/components/FormItem/FormRadio/index.js +36 -0
  310. package/es/components/FormItem/FormRadio/index.module.less +106 -0
  311. package/es/components/FormItem/FormSegmented/index.d.ts +8 -0
  312. package/es/components/FormItem/FormSegmented/index.js +35 -0
  313. package/es/components/FormItem/FormSegmented/index.module.less +34 -0
  314. package/es/components/FormItem/FormSelect/FormAutoCompleteSelect/index.d.ts +8 -0
  315. package/es/components/FormItem/FormSelect/FormAutoCompleteSelect/index.js +32 -0
  316. package/es/components/FormItem/FormSelect/FormIconSelect/index.d.ts +8 -0
  317. package/es/components/FormItem/FormSelect/FormIconSelect/index.js +30 -0
  318. package/es/components/FormItem/FormSelect/FormTreeSelect/index.d.ts +8 -0
  319. package/es/components/FormItem/FormSelect/FormTreeSelect/index.js +32 -0
  320. package/es/components/FormItem/FormSelect/index.d.ts +17 -0
  321. package/es/components/FormItem/FormSelect/index.js +38 -0
  322. package/es/components/FormItem/FormSlider/index.d.ts +9 -0
  323. package/es/components/FormItem/FormSlider/index.js +84 -0
  324. package/es/components/FormItem/FormSlider/index.module.less +15 -0
  325. package/es/components/FormItem/FormSwitch/index.d.ts +8 -0
  326. package/es/components/FormItem/FormSwitch/index.js +34 -0
  327. package/es/components/FormItem/FormSwitch/index.module.less +3 -0
  328. package/es/components/FormItem/FormText/index.d.ts +16 -0
  329. package/es/components/FormItem/FormText/index.js +62 -0
  330. package/es/components/FormItem/FormText/index.module.less +9 -0
  331. package/es/components/FormItem/FormTree/index.d.ts +8 -0
  332. package/es/components/FormItem/FormTree/index.js +33 -0
  333. package/es/components/FormItem/FormUpload/FormImage/index.d.ts +13 -0
  334. package/es/components/FormItem/FormUpload/FormImage/index.js +202 -0
  335. package/es/components/FormItem/FormUpload/index.d.ts +19 -0
  336. package/es/components/FormItem/FormUpload/index.js +158 -0
  337. package/es/components/FormItem/FormUpload/index.module.less +142 -0
  338. package/es/components/FormItem/ItemContainer/_hooks/useInputSize.d.ts +14 -0
  339. package/es/components/FormItem/ItemContainer/_hooks/useInputSize.js +27 -0
  340. package/es/components/FormItem/ItemContainer/_hooks/useLabelSize.d.ts +12 -0
  341. package/es/components/FormItem/ItemContainer/_hooks/useLabelSize.js +23 -0
  342. package/es/components/FormItem/ItemContainer/index.d.ts +40 -0
  343. package/es/components/FormItem/ItemContainer/index.js +198 -0
  344. package/es/components/FormItem/ItemContainer/index.module.less +387 -0
  345. package/es/components/FormItem/databaseTypeMapping.d.ts +56 -0
  346. package/es/components/FormItem/databaseTypeMapping.js +179 -0
  347. package/es/components/FormItem/index.d.ts +59 -0
  348. package/es/components/FormItem/index.js +210 -0
  349. package/es/components/FormItem/rules.d.ts +5 -0
  350. package/es/components/FormItem/rules.js +71 -0
  351. package/es/components/Icon/index.d.ts +10 -0
  352. package/es/components/Icon/index.js +79 -0
  353. package/es/components/Icon/index.module.less +8 -0
  354. package/es/components/Input/Number/index.d.ts +11 -0
  355. package/es/components/Input/Number/index.js +140 -0
  356. package/es/components/Input/Number/index.module.less +78 -0
  357. package/es/components/Input/Password/index.d.ts +9 -0
  358. package/es/components/Input/Password/index.js +88 -0
  359. package/es/components/Input/Password/index.module.less +15 -0
  360. package/es/components/Input/Range/index.d.ts +31 -0
  361. package/es/components/Input/Range/index.js +199 -0
  362. package/es/components/Input/Range/index.module.less +97 -0
  363. package/es/components/Input/Search/index.d.ts +8 -0
  364. package/es/components/Input/Search/index.js +88 -0
  365. package/es/components/Input/Search/index.module.less +22 -0
  366. package/es/components/Input/TextArea/index.d.ts +14 -0
  367. package/es/components/Input/TextArea/index.js +156 -0
  368. package/es/components/Input/TextArea/index.module.less +130 -0
  369. package/es/components/Input/index.d.ts +24 -0
  370. package/es/components/Input/index.js +190 -0
  371. package/es/components/Input/index.module.less +19 -0
  372. package/es/components/Markdown/Editor/index.d.ts +21 -0
  373. package/es/components/Markdown/Editor/index.js +82 -0
  374. package/es/components/Markdown/Editor/index.module.less +56 -0
  375. package/es/components/Markdown/Views/ArtifactBlock.d.ts +15 -0
  376. package/es/components/Markdown/Views/ArtifactBlock.js +61 -0
  377. package/es/components/Markdown/Views/MermaidBlock.d.ts +10 -0
  378. package/es/components/Markdown/Views/MermaidBlock.js +78 -0
  379. package/es/components/Markdown/Views/blocks.module.less +86 -0
  380. package/es/components/Markdown/Views/index.d.ts +10 -0
  381. package/es/components/Markdown/Views/index.js +117 -0
  382. package/es/components/Markdown/Views/index.module.less +73 -0
  383. package/es/components/Markdown/index.d.ts +9 -0
  384. package/es/components/Markdown/index.js +7 -0
  385. package/es/components/Modal/_hooks/index.d.ts +2 -0
  386. package/es/components/Modal/_hooks/index.js +2 -0
  387. package/es/components/Modal/_hooks/useModalDrag.d.ts +12 -0
  388. package/es/components/Modal/_hooks/useModalDrag.js +50 -0
  389. package/es/components/Modal/_hooks/useModalElements.d.ts +17 -0
  390. package/es/components/Modal/_hooks/useModalElements.js +66 -0
  391. package/es/components/Modal/_utils/calculatePosition.d.ts +13 -0
  392. package/es/components/Modal/_utils/calculatePosition.js +29 -0
  393. package/es/components/Modal/_utils/index.d.ts +1 -0
  394. package/es/components/Modal/_utils/index.js +1 -0
  395. package/es/components/Modal/index.d.ts +11 -0
  396. package/es/components/Modal/index.js +100 -0
  397. package/es/components/Modal/index.module.less +90 -0
  398. package/es/components/Operate/_hooks/useOperateEllipsis.d.ts +10 -0
  399. package/es/components/Operate/_hooks/useOperateEllipsis.js +18 -0
  400. package/es/components/Operate/index.d.ts +21 -0
  401. package/es/components/Operate/index.js +272 -0
  402. package/es/components/Operate/index.module.less +60 -0
  403. package/es/components/Operate/more.png +0 -0
  404. package/es/components/Panel/DefaultPanel/index.d.ts +14 -0
  405. package/es/components/Panel/DefaultPanel/index.js +72 -0
  406. package/es/components/Panel/DefaultPanel/index.module.less +51 -0
  407. package/es/components/Panel/IframePanel/index.d.ts +7 -0
  408. package/es/components/Panel/IframePanel/index.js +63 -0
  409. package/es/components/Panel/IframePanel/index.module.less +68 -0
  410. package/es/components/Panel/ListPanel/ListModalPanel/index.d.ts +52 -0
  411. package/es/components/Panel/ListPanel/ListModalPanel/index.js +162 -0
  412. package/es/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
  413. package/es/components/Panel/ListPanel/_components/ColumnMgt/index.d.ts +24 -0
  414. package/es/components/Panel/ListPanel/_components/ColumnMgt/index.js +348 -0
  415. package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
  416. package/es/components/Panel/ListPanel/_components/ToolBar/index.d.ts +14 -0
  417. package/es/components/Panel/ListPanel/_components/ToolBar/index.js +84 -0
  418. package/es/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
  419. package/es/components/Panel/ListPanel/index.d.ts +69 -0
  420. package/es/components/Panel/ListPanel/index.js +335 -0
  421. package/es/components/Panel/ListPanel/index.module.less +134 -0
  422. package/es/components/Panel/index.d.ts +11 -0
  423. package/es/components/Panel/index.js +9 -0
  424. package/es/components/Search/SearchAdvanced/index.d.ts +17 -0
  425. package/es/components/Search/SearchAdvanced/index.js +170 -0
  426. package/es/components/Search/SearchAdvanced/index.module.less +3 -0
  427. package/es/components/Search/SearchCard/_components/CollapseToggle/index.d.ts +7 -0
  428. package/es/components/Search/SearchCard/_components/CollapseToggle/index.js +26 -0
  429. package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.d.ts +10 -0
  430. package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +74 -0
  431. package/es/components/Search/SearchCard/_components/OptionRow/Item/index.d.ts +11 -0
  432. package/es/components/Search/SearchCard/_components/OptionRow/Item/index.js +151 -0
  433. package/es/components/Search/SearchCard/_components/OptionRow/index.d.ts +33 -0
  434. package/es/components/Search/SearchCard/_components/OptionRow/index.js +149 -0
  435. package/es/components/Search/SearchCard/_components/SearchBox/index.d.ts +9 -0
  436. package/es/components/Search/SearchCard/_components/SearchBox/index.js +25 -0
  437. package/es/components/Search/SearchCard/_hooks/index.d.ts +3 -0
  438. package/es/components/Search/SearchCard/_hooks/index.js +3 -0
  439. package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +13 -0
  440. package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +26 -0
  441. package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +9 -0
  442. package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +235 -0
  443. package/es/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +19 -0
  444. package/es/components/Search/SearchCard/_hooks/useSearchCardValue.js +71 -0
  445. package/es/components/Search/SearchCard/_utils/getRealValues.d.ts +5 -0
  446. package/es/components/Search/SearchCard/_utils/getRealValues.js +24 -0
  447. package/es/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +4 -0
  448. package/es/components/Search/SearchCard/_utils/hasSelectedChildren.js +15 -0
  449. package/es/components/Search/SearchCard/_utils/index.d.ts +4 -0
  450. package/es/components/Search/SearchCard/_utils/index.js +4 -0
  451. package/es/components/Search/SearchCard/_utils/typeGuards.d.ts +6 -0
  452. package/es/components/Search/SearchCard/_utils/typeGuards.js +12 -0
  453. package/es/components/Search/SearchCard/_utils/updateRealValue.d.ts +4 -0
  454. package/es/components/Search/SearchCard/_utils/updateRealValue.js +61 -0
  455. package/es/components/Search/SearchCard/index.d.ts +19 -0
  456. package/es/components/Search/SearchCard/index.js +101 -0
  457. package/es/components/Search/SearchCard/index.module.less +295 -0
  458. package/es/components/Search/SearchCollapsible/index.d.ts +16 -0
  459. package/es/components/Search/SearchCollapsible/index.js +181 -0
  460. package/es/components/Search/SearchCollapsible/index.module.less +3 -0
  461. package/es/components/Search/SearchWithFilter/index.d.ts +15 -0
  462. package/es/components/Search/SearchWithFilter/index.js +160 -0
  463. package/es/components/Search/SearchWithFilter/index.module.less +3 -0
  464. package/es/components/Search/SearchWithMore/index.d.ts +17 -0
  465. package/es/components/Search/SearchWithMore/index.js +159 -0
  466. package/es/components/Search/SearchWithMore/index.module.less +3 -0
  467. package/es/components/Search/_components/AdvancedFiltersDrawer/index.d.ts +18 -0
  468. package/es/components/Search/_components/AdvancedFiltersDrawer/index.js +72 -0
  469. package/es/components/Search/_components/ButtonGroup/index.d.ts +15 -0
  470. package/es/components/Search/_components/ButtonGroup/index.js +48 -0
  471. package/es/components/Search/_components/CollapseToggle/index.d.ts +7 -0
  472. package/es/components/Search/_components/CollapseToggle/index.js +23 -0
  473. package/es/components/Search/_components/ExpandButton/index.d.ts +10 -0
  474. package/es/components/Search/_components/ExpandButton/index.js +34 -0
  475. package/es/components/Search/_components/FilterDropdown/index.d.ts +10 -0
  476. package/es/components/Search/_components/FilterDropdown/index.js +127 -0
  477. package/es/components/Search/_components/SearchButtons/index.d.ts +12 -0
  478. package/es/components/Search/_components/SearchButtons/index.js +34 -0
  479. package/es/components/Search/_hooks/index.d.ts +6 -0
  480. package/es/components/Search/_hooks/index.js +5 -0
  481. package/es/components/Search/_hooks/useAdaptiveColumnNum.d.ts +13 -0
  482. package/es/components/Search/_hooks/useAdaptiveColumnNum.js +114 -0
  483. package/es/components/Search/_hooks/useSearchCommon.d.ts +52 -0
  484. package/es/components/Search/_hooks/useSearchCommon.js +218 -0
  485. package/es/components/Search/_hooks/useSearchExpand.d.ts +22 -0
  486. package/es/components/Search/_hooks/useSearchExpand.js +173 -0
  487. package/es/components/Search/_hooks/useSearchForm.d.ts +10 -0
  488. package/es/components/Search/_hooks/useSearchForm.js +15 -0
  489. package/es/components/Search/_hooks/useSearchItems.d.ts +12 -0
  490. package/es/components/Search/_hooks/useSearchItems.js +49 -0
  491. package/es/components/Search/_types/index.d.ts +48 -0
  492. package/es/components/Search/_types/index.js +1 -0
  493. package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +13 -0
  494. package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +44 -0
  495. package/es/components/Search/_utils/calculateVisibleItems.d.ts +13 -0
  496. package/es/components/Search/_utils/calculateVisibleItems.js +38 -0
  497. package/es/components/Search/_utils/cleanSearchData.d.ts +6 -0
  498. package/es/components/Search/_utils/cleanSearchData.js +16 -0
  499. package/es/components/Search/_utils/index.d.ts +3 -0
  500. package/es/components/Search/_utils/index.js +3 -0
  501. package/es/components/Search/bottomLine.png +0 -0
  502. package/es/components/Search/index.d.ts +30 -0
  503. package/es/components/Search/index.js +158 -0
  504. package/es/components/Search/index.module.less +185 -0
  505. package/es/components/SecondConf/index.d.ts +8 -0
  506. package/es/components/SecondConf/index.js +47 -0
  507. package/es/components/SecondConf/index.module.less +36 -0
  508. package/es/components/Select/AutoCompleteSelect/index.d.ts +21 -0
  509. package/es/components/Select/AutoCompleteSelect/index.js +216 -0
  510. package/es/components/Select/AutoCompleteSelect/index.module.less +315 -0
  511. package/es/components/Select/IconSelect/index.d.ts +8 -0
  512. package/es/components/Select/IconSelect/index.js +142 -0
  513. package/es/components/Select/IconSelect/index.module.less +66 -0
  514. package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +8 -0
  515. package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +36 -0
  516. package/es/components/Select/TreeSelect/_utils/index.d.ts +2 -0
  517. package/es/components/Select/TreeSelect/_utils/index.js +2 -0
  518. package/es/components/Select/TreeSelect/_utils/treeExpandedKeysState.d.ts +6 -0
  519. package/es/components/Select/TreeSelect/_utils/treeExpandedKeysState.js +14 -0
  520. package/es/components/Select/TreeSelect/index.d.ts +16 -0
  521. package/es/components/Select/TreeSelect/index.js +153 -0
  522. package/es/components/Select/TreeSelect/index.module.less +126 -0
  523. package/es/components/Select/_components/Prefix/index.d.ts +6 -0
  524. package/es/components/Select/_components/Prefix/index.js +13 -0
  525. package/es/components/Select/_components/Suffix/index.d.ts +6 -0
  526. package/es/components/Select/_components/Suffix/index.js +13 -0
  527. package/es/components/Select/_hooks/index.d.ts +3 -0
  528. package/es/components/Select/_hooks/index.js +3 -0
  529. package/es/components/Select/_hooks/useSelectComposition.d.ts +10 -0
  530. package/es/components/Select/_hooks/useSelectComposition.js +36 -0
  531. package/es/components/Select/_hooks/useSelectInputOptions.d.ts +17 -0
  532. package/es/components/Select/_hooks/useSelectInputOptions.js +30 -0
  533. package/es/components/Select/_hooks/useSelectPopupPosition.d.ts +2 -0
  534. package/es/components/Select/_hooks/useSelectPopupPosition.js +55 -0
  535. package/es/components/Select/_utils/calculatePopupWidth.d.ts +13 -0
  536. package/es/components/Select/_utils/calculatePopupWidth.js +16 -0
  537. package/es/components/Select/_utils/filterOption.d.ts +13 -0
  538. package/es/components/Select/_utils/filterOption.js +19 -0
  539. package/es/components/Select/_utils/getElementPosition.d.ts +8 -0
  540. package/es/components/Select/_utils/getElementPosition.js +15 -0
  541. package/es/components/Select/_utils/index.d.ts +3 -0
  542. package/es/components/Select/_utils/index.js +3 -0
  543. package/es/components/Select/index.d.ts +23 -0
  544. package/es/components/Select/index.js +220 -0
  545. package/es/components/Select/index.module.less +320 -0
  546. package/es/components/Slider/index.d.ts +7 -0
  547. package/es/components/Slider/index.js +56 -0
  548. package/es/components/Slider/index.module.less +66 -0
  549. package/es/components/Spreadsheet/index.d.ts +14 -0
  550. package/es/components/Spreadsheet/index.js +75 -0
  551. package/es/components/Spreadsheet/index.module.less +29 -0
  552. package/es/components/Spreadsheet/xlsxspread.d.ts +38 -0
  553. package/es/components/Spreadsheet/xlsxspread.js +167 -0
  554. package/es/components/Switch/index.d.ts +10 -0
  555. package/es/components/Switch/index.js +30 -0
  556. package/es/components/TabBar/index.d.ts +18 -0
  557. package/es/components/TabBar/index.js +58 -0
  558. package/es/components/TabBar/index.module.less +114 -0
  559. package/es/components/Table/_components/Drag/index.d.ts +21 -0
  560. package/es/components/Table/_components/Drag/index.js +96 -0
  561. package/es/components/Table/_components/Pagination/index.d.ts +11 -0
  562. package/es/components/Table/_components/Pagination/index.js +132 -0
  563. package/es/components/Table/_components/Pagination/index.module.less +199 -0
  564. package/es/components/Table/_hooks/useAutoScrolling.d.ts +18 -0
  565. package/es/components/Table/_hooks/useAutoScrolling.js +438 -0
  566. package/es/components/Table/_hooks/useEllipsisTooltip.d.ts +9 -0
  567. package/es/components/Table/_hooks/useEllipsisTooltip.js +48 -0
  568. package/es/components/Table/_hooks/useHideHeaderScrollbar.d.ts +12 -0
  569. package/es/components/Table/_hooks/useHideHeaderScrollbar.js +58 -0
  570. package/es/components/Table/_hooks/usePaginationSync.d.ts +17 -0
  571. package/es/components/Table/_hooks/usePaginationSync.js +43 -0
  572. package/es/components/Table/_hooks/useScrollEnd.d.ts +12 -0
  573. package/es/components/Table/_hooks/useScrollEnd.js +75 -0
  574. package/es/components/Table/_hooks/useSetTableHeight.d.ts +16 -0
  575. package/es/components/Table/_hooks/useSetTableHeight.js +50 -0
  576. package/es/components/Table/_hooks/useTableColumns.d.ts +40 -0
  577. package/es/components/Table/_hooks/useTableColumns.js +275 -0
  578. package/es/components/Table/_hooks/useTablePagination.d.ts +26 -0
  579. package/es/components/Table/_hooks/useTablePagination.js +91 -0
  580. package/es/components/Table/_utils/tableUtils.d.ts +23 -0
  581. package/es/components/Table/_utils/tableUtils.js +42 -0
  582. package/es/components/Table/index.d.ts +91 -0
  583. package/es/components/Table/index.js +234 -0
  584. package/es/components/Table/index.module.less +361 -0
  585. package/es/components/Tags/_components/EllipsisTag/index.d.ts +11 -0
  586. package/es/components/Tags/_components/EllipsisTag/index.js +45 -0
  587. package/es/components/Tags/_components/EllipsisTag/index.module.less +18 -0
  588. package/es/components/Tags/_components/MeasureContainer/index.d.ts +10 -0
  589. package/es/components/Tags/_components/MeasureContainer/index.js +25 -0
  590. package/es/components/Tags/_components/MeasureContainer/index.module.less +15 -0
  591. package/es/components/Tags/_hooks/index.d.ts +1 -0
  592. package/es/components/Tags/_hooks/index.js +1 -0
  593. package/es/components/Tags/_hooks/useVisibleTags.d.ts +15 -0
  594. package/es/components/Tags/_hooks/useVisibleTags.js +92 -0
  595. package/es/components/Tags/_utils/calculateVisibleCount.d.ts +9 -0
  596. package/es/components/Tags/_utils/calculateVisibleCount.js +42 -0
  597. package/es/components/Tags/_utils/getTagColor.d.ts +7 -0
  598. package/es/components/Tags/_utils/getTagColor.js +12 -0
  599. package/es/components/Tags/_utils/index.d.ts +2 -0
  600. package/es/components/Tags/_utils/index.js +2 -0
  601. package/es/components/Tags/index.d.ts +11 -0
  602. package/es/components/Tags/index.js +65 -0
  603. package/es/components/Tags/index.module.less +33 -0
  604. package/es/components/TextEllipsis/index.d.ts +29 -0
  605. package/es/components/TextEllipsis/index.js +184 -0
  606. package/es/components/TextEllipsis/index.module.less +28 -0
  607. package/es/components/Tree/_components/TitleSearchBar/index.d.ts +16 -0
  608. package/es/components/Tree/_components/TitleSearchBar/index.js +60 -0
  609. package/es/components/Tree/_hooks/useClearNodeTitle.d.ts +8 -0
  610. package/es/components/Tree/_hooks/useClearNodeTitle.js +34 -0
  611. package/es/components/Tree/_hooks/useTreeCheck.d.ts +7 -0
  612. package/es/components/Tree/_hooks/useTreeCheck.js +25 -0
  613. package/es/components/Tree/_hooks/useTreeSearch.d.ts +10 -0
  614. package/es/components/Tree/_hooks/useTreeSearch.js +89 -0
  615. package/es/components/Tree/_hooks/useTreeState.d.ts +11 -0
  616. package/es/components/Tree/_hooks/useTreeState.js +76 -0
  617. package/es/components/Tree/_utils/index.d.ts +44 -0
  618. package/es/components/Tree/_utils/index.js +210 -0
  619. package/es/components/Tree/_utils/normalizeCheckedKeys.d.ts +8 -0
  620. package/es/components/Tree/_utils/normalizeCheckedKeys.js +96 -0
  621. package/es/components/Tree/index.d.ts +48 -0
  622. package/es/components/Tree/index.js +234 -0
  623. package/es/components/Tree/index.module.less +142 -0
  624. package/es/components/Upload/_components/UploadedItem/index.d.ts +21 -0
  625. package/es/components/Upload/_components/UploadedItem/index.js +103 -0
  626. package/es/components/Upload/_components/UploadingItem/index.d.ts +19 -0
  627. package/es/components/Upload/_components/UploadingItem/index.js +58 -0
  628. package/es/components/Upload/_hooks/index.d.ts +3 -0
  629. package/es/components/Upload/_hooks/index.js +3 -0
  630. package/es/components/Upload/_hooks/useUploadFileList.d.ts +22 -0
  631. package/es/components/Upload/_hooks/useUploadFileList.js +82 -0
  632. package/es/components/Upload/_hooks/useUploadOperations.d.ts +19 -0
  633. package/es/components/Upload/_hooks/useUploadOperations.js +76 -0
  634. package/es/components/Upload/_hooks/useUploadPreview.d.ts +17 -0
  635. package/es/components/Upload/_hooks/useUploadPreview.js +21 -0
  636. package/es/components/Upload/_utils/chunkUpload.d.ts +26 -0
  637. package/es/components/Upload/_utils/chunkUpload.js +180 -0
  638. package/es/components/Upload/_utils/createFormData.d.ts +4 -0
  639. package/es/components/Upload/_utils/createFormData.js +16 -0
  640. package/es/components/Upload/_utils/extractFileUrl.d.ts +5 -0
  641. package/es/components/Upload/_utils/extractFileUrl.js +17 -0
  642. package/es/components/Upload/_utils/index.d.ts +7 -0
  643. package/es/components/Upload/_utils/index.js +7 -0
  644. package/es/components/Upload/_utils/isSuccessResponse.d.ts +9 -0
  645. package/es/components/Upload/_utils/isSuccessResponse.js +8 -0
  646. package/es/components/Upload/_utils/normalUpload.d.ts +24 -0
  647. package/es/components/Upload/_utils/normalUpload.js +82 -0
  648. package/es/components/Upload/_utils/toMB.d.ts +4 -0
  649. package/es/components/Upload/_utils/toMB.js +6 -0
  650. package/es/components/Upload/_utils/validateFile.d.ts +15 -0
  651. package/es/components/Upload/_utils/validateFile.js +28 -0
  652. package/es/components/Upload/index.d.ts +42 -0
  653. package/es/components/Upload/index.js +248 -0
  654. package/es/components/Upload/index.module.less +74 -0
  655. package/es/config-provider/index.d.ts +19 -0
  656. package/es/config-provider/index.js +32 -0
  657. package/es/hooks/index.d.ts +2 -0
  658. package/es/hooks/index.js +2 -0
  659. package/es/hooks/useLabelWidth.d.ts +14 -0
  660. package/es/hooks/useLabelWidth.js +57 -0
  661. package/es/hooks/usePermissions.d.ts +9 -0
  662. package/es/hooks/usePermissions.js +30 -0
  663. package/es/index.d.ts +73 -0
  664. package/es/index.js +77 -0
  665. package/es/request/ResType.d.ts +20 -0
  666. package/es/request/ResType.js +1 -0
  667. package/es/request/index.d.ts +28 -0
  668. package/es/request/index.js +43 -0
  669. package/es/styles/antd-overload.less +133 -0
  670. package/es/styles/utils.less +88 -0
  671. package/es/styles/variables.global.less +1 -0
  672. package/es/typings.d.ts +42 -0
  673. package/es/utils/cssSupports.d.ts +2 -0
  674. package/es/utils/cssSupports.js +19 -0
  675. package/es/utils/getUUID.d.ts +4 -0
  676. package/es/utils/getUUID.js +10 -0
  677. package/es/utils/index.d.ts +2 -0
  678. package/es/utils/index.js +2 -0
  679. package/lib/components/Button/ChakraButton/index.d.ts +11 -0
  680. package/lib/components/Button/ChakraButton/index.js +65 -0
  681. package/lib/components/Button/ChakraButton/index.module.less +20 -0
  682. package/lib/components/Button/index.d.ts +14 -0
  683. package/lib/components/Button/index.js +44 -0
  684. package/lib/components/Button/index.module.less +11 -0
  685. package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.d.ts +6 -0
  686. package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +56 -0
  687. package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.d.ts +14 -0
  688. package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.js +71 -0
  689. package/lib/components/ChainGraph/ChainGraphServices/RootNode.d.ts +17 -0
  690. package/lib/components/ChainGraph/ChainGraphServices/RootNode.js +292 -0
  691. package/lib/components/ChainGraph/ChainGraphServices/TreeNode.d.ts +17 -0
  692. package/lib/components/ChainGraph/ChainGraphServices/TreeNode.js +335 -0
  693. package/lib/components/ChainGraph/ChainGraphServices/index.d.ts +88 -0
  694. package/lib/components/ChainGraph/ChainGraphServices/index.js +472 -0
  695. package/lib/components/ChainGraph/_components/ExpandButtons/index.d.ts +8 -0
  696. package/lib/components/ChainGraph/_components/ExpandButtons/index.js +31 -0
  697. package/lib/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
  698. package/lib/components/ChainGraph/_components/SearchSelect/index.d.ts +6 -0
  699. package/lib/components/ChainGraph/_components/SearchSelect/index.js +24 -0
  700. package/lib/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
  701. package/lib/components/ChainGraph/_hooks/index.d.ts +7 -0
  702. package/lib/components/ChainGraph/_hooks/index.js +54 -0
  703. package/lib/components/ChainGraph/_hooks/useChainGraphData.d.ts +15 -0
  704. package/lib/components/ChainGraph/_hooks/useChainGraphData.js +40 -0
  705. package/lib/components/ChainGraph/_hooks/useChainGraphExpand.d.ts +12 -0
  706. package/lib/components/ChainGraph/_hooks/useChainGraphExpand.js +31 -0
  707. package/lib/components/ChainGraph/_hooks/useChainGraphInit.d.ts +23 -0
  708. package/lib/components/ChainGraph/_hooks/useChainGraphInit.js +53 -0
  709. package/lib/components/ChainGraph/_hooks/useChainGraphLayout.d.ts +9 -0
  710. package/lib/components/ChainGraph/_hooks/useChainGraphLayout.js +20 -0
  711. package/lib/components/ChainGraph/_hooks/useChainGraphMiniMap.d.ts +7 -0
  712. package/lib/components/ChainGraph/_hooks/useChainGraphMiniMap.js +18 -0
  713. package/lib/components/ChainGraph/_hooks/useChainGraphResize.d.ts +9 -0
  714. package/lib/components/ChainGraph/_hooks/useChainGraphResize.js +28 -0
  715. package/lib/components/ChainGraph/_hooks/useChainGraphSearch.d.ts +7 -0
  716. package/lib/components/ChainGraph/_hooks/useChainGraphSearch.js +18 -0
  717. package/lib/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +9 -0
  718. package/lib/components/ChainGraph/_utils/findAncestorsOfNode.js +36 -0
  719. package/lib/components/ChainGraph/_utils/getTextSize.d.ts +11 -0
  720. package/lib/components/ChainGraph/_utils/getTextSize.js +32 -0
  721. package/lib/components/ChainGraph/_utils/index.d.ts +3 -0
  722. package/lib/components/ChainGraph/_utils/index.js +38 -0
  723. package/lib/components/ChainGraph/_utils/styles.d.ts +13 -0
  724. package/lib/components/ChainGraph/_utils/styles.js +27 -0
  725. package/lib/components/ChainGraph/index.d.ts +37 -0
  726. package/lib/components/ChainGraph/index.js +148 -0
  727. package/lib/components/ChainGraph/index.module.less +39 -0
  728. package/lib/components/Chart/Bar/Bar3DOpt.d.ts +11 -0
  729. package/lib/components/Chart/Bar/Bar3DOpt.js +192 -0
  730. package/lib/components/Chart/Bar/index.d.ts +20 -0
  731. package/lib/components/Chart/Bar/index.js +295 -0
  732. package/lib/components/Chart/Bubble/index.d.ts +24 -0
  733. package/lib/components/Chart/Bubble/index.js +315 -0
  734. package/lib/components/Chart/Common/index.d.ts +4 -0
  735. package/lib/components/Chart/Common/index.js +97 -0
  736. package/lib/components/Chart/Gauge/index.d.ts +8 -0
  737. package/lib/components/Chart/Gauge/index.js +154 -0
  738. package/lib/components/Chart/Group/index.d.ts +20 -0
  739. package/lib/components/Chart/Group/index.js +94 -0
  740. package/lib/components/Chart/Group/index.module.less +67 -0
  741. package/lib/components/Chart/Heatmap/index.d.ts +35 -0
  742. package/lib/components/Chart/Heatmap/index.js +248 -0
  743. package/lib/components/Chart/Line/index.d.ts +21 -0
  744. package/lib/components/Chart/Line/index.js +291 -0
  745. package/lib/components/Chart/Pie/Pie3D/_hooks/index.d.ts +15 -0
  746. package/lib/components/Chart/Pie/Pie3D/_hooks/index.js +170 -0
  747. package/lib/components/Chart/Pie/Pie3D/_utils/label.d.ts +2 -0
  748. package/lib/components/Chart/Pie/Pie3D/_utils/label.js +275 -0
  749. package/lib/components/Chart/Pie/Pie3D/_utils/option.d.ts +20 -0
  750. package/lib/components/Chart/Pie/Pie3D/_utils/option.js +98 -0
  751. package/lib/components/Chart/Pie/Pie3D/_utils/parametricEquation.d.ts +15 -0
  752. package/lib/components/Chart/Pie/Pie3D/_utils/parametricEquation.js +59 -0
  753. package/lib/components/Chart/Pie/Pie3D/_utils/series.d.ts +3 -0
  754. package/lib/components/Chart/Pie/Pie3D/_utils/series.js +58 -0
  755. package/lib/components/Chart/Pie/Pie3D/index.d.ts +86 -0
  756. package/lib/components/Chart/Pie/Pie3D/index.js +135 -0
  757. package/lib/components/Chart/Pie/index.d.ts +32 -0
  758. package/lib/components/Chart/Pie/index.js +285 -0
  759. package/lib/components/Chart/Polar/index.d.ts +13 -0
  760. package/lib/components/Chart/Polar/index.js +206 -0
  761. package/lib/components/Chart/Radar/index.d.ts +29 -0
  762. package/lib/components/Chart/Radar/index.js +291 -0
  763. package/lib/components/Chart/Sankey/index.d.ts +12 -0
  764. package/lib/components/Chart/Sankey/index.js +192 -0
  765. package/lib/components/Chart/Tree/index.d.ts +8 -0
  766. package/lib/components/Chart/Tree/index.js +115 -0
  767. package/lib/components/Chart/_utils/autoScrollLegend.d.ts +14 -0
  768. package/lib/components/Chart/_utils/autoScrollLegend.js +93 -0
  769. package/lib/components/Chart/_utils/autoSmooth.d.ts +15 -0
  770. package/lib/components/Chart/_utils/autoSmooth.js +134 -0
  771. package/lib/components/Chart/_utils/bubble.d.ts +8 -0
  772. package/lib/components/Chart/_utils/bubble.js +191 -0
  773. package/lib/components/Chart/_utils/cartesian.d.ts +25 -0
  774. package/lib/components/Chart/_utils/cartesian.js +99 -0
  775. package/lib/components/Chart/_utils/heatmap.d.ts +3 -0
  776. package/lib/components/Chart/_utils/heatmap.js +42 -0
  777. package/lib/components/Chart/_utils/tree.d.ts +2 -0
  778. package/lib/components/Chart/_utils/tree.js +39 -0
  779. package/lib/components/Chart/chartUtils/calculateAxisConfig.d.ts +11 -0
  780. package/lib/components/Chart/chartUtils/calculateAxisConfig.js +100 -0
  781. package/lib/components/Chart/chartUtils/chartTooltipFormatter.d.ts +23 -0
  782. package/lib/components/Chart/chartUtils/chartTooltipFormatter.js +71 -0
  783. package/lib/components/Chart/chartUtils/index.d.ts +7 -0
  784. package/lib/components/Chart/chartUtils/index.js +70 -0
  785. package/lib/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +13 -0
  786. package/lib/components/Chart/chartUtils/yAxisDisplayUnit.js +56 -0
  787. package/lib/components/Chart/index.d.ts +60 -0
  788. package/lib/components/Chart/index.js +41 -0
  789. package/lib/components/Chart/index.module.less +4 -0
  790. package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.d.ts +12 -0
  791. package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.js +37 -0
  792. package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
  793. package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.d.ts +11 -0
  794. package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.js +151 -0
  795. package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
  796. package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.d.ts +6 -0
  797. package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.js +29 -0
  798. package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
  799. package/lib/components/Chat/ChatHistory/_components/index.d.ts +3 -0
  800. package/lib/components/Chat/ChatHistory/_components/index.js +27 -0
  801. package/lib/components/Chat/ChatHistory/_hooks/index.d.ts +1 -0
  802. package/lib/components/Chat/ChatHistory/_hooks/index.js +12 -0
  803. package/lib/components/Chat/ChatHistory/_hooks/useRename.d.ts +9 -0
  804. package/lib/components/Chat/ChatHistory/_hooks/useRename.js +33 -0
  805. package/lib/components/Chat/ChatHistory/_utils/index.d.ts +4 -0
  806. package/lib/components/Chat/ChatHistory/_utils/index.js +13 -0
  807. package/lib/components/Chat/ChatHistory/index.d.ts +20 -0
  808. package/lib/components/Chat/ChatHistory/index.js +72 -0
  809. package/lib/components/Chat/ChatHistory/index.module.less +54 -0
  810. package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.d.ts +14 -0
  811. package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.js +33 -0
  812. package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
  813. package/lib/components/Chat/ChatInput/_components/FileList/index.d.ts +8 -0
  814. package/lib/components/Chat/ChatInput/_components/FileList/index.js +30 -0
  815. package/lib/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
  816. package/lib/components/Chat/ChatInput/_components/SendButton/index.d.ts +9 -0
  817. package/lib/components/Chat/ChatInput/_components/SendButton/index.js +39 -0
  818. package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
  819. package/lib/components/Chat/ChatInput/_components/StopButton/index.d.ts +7 -0
  820. package/lib/components/Chat/ChatInput/_components/StopButton/index.js +28 -0
  821. package/lib/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
  822. package/lib/components/Chat/ChatInput/_components/UploadButton/index.d.ts +16 -0
  823. package/lib/components/Chat/ChatInput/_components/UploadButton/index.js +76 -0
  824. package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
  825. package/lib/components/Chat/ChatInput/_components/index.d.ts +6 -0
  826. package/lib/components/Chat/ChatInput/_components/index.js +41 -0
  827. package/lib/components/Chat/ChatInput/_hooks/index.d.ts +2 -0
  828. package/lib/components/Chat/ChatInput/_hooks/index.js +19 -0
  829. package/lib/components/Chat/ChatInput/_hooks/useCurrentModel.d.ts +2 -0
  830. package/lib/components/Chat/ChatInput/_hooks/useCurrentModel.js +19 -0
  831. package/lib/components/Chat/ChatInput/_hooks/useFileList.d.ts +6 -0
  832. package/lib/components/Chat/ChatInput/_hooks/useFileList.js +20 -0
  833. package/lib/components/Chat/ChatInput/_utils/index.d.ts +13 -0
  834. package/lib/components/Chat/ChatInput/_utils/index.js +87 -0
  835. package/lib/components/Chat/ChatInput/index.d.ts +56 -0
  836. package/lib/components/Chat/ChatInput/index.js +204 -0
  837. package/lib/components/Chat/ChatInput/index.module.less +100 -0
  838. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.d.ts +6 -0
  839. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +61 -0
  840. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
  841. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.d.ts +8 -0
  842. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.js +86 -0
  843. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
  844. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.d.ts +7 -0
  845. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.js +82 -0
  846. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
  847. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.d.ts +14 -0
  848. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +108 -0
  849. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
  850. package/lib/components/Chat/ChatList/_components/Assistant/index.d.ts +18 -0
  851. package/lib/components/Chat/ChatList/_components/Assistant/index.js +95 -0
  852. package/lib/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
  853. package/lib/components/Chat/ChatList/_components/User/index.d.ts +14 -0
  854. package/lib/components/Chat/ChatList/_components/User/index.js +76 -0
  855. package/lib/components/Chat/ChatList/_components/User/index.module.less +144 -0
  856. package/lib/components/Chat/ChatList/_hooks/index.d.ts +3 -0
  857. package/lib/components/Chat/ChatList/_hooks/index.js +20 -0
  858. package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +16 -0
  859. package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.js +36 -0
  860. package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.d.ts +22 -0
  861. package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +79 -0
  862. package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +6 -0
  863. package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +15 -0
  864. package/lib/components/Chat/ChatList/_utils/index.d.ts +1 -0
  865. package/lib/components/Chat/ChatList/_utils/index.js +12 -0
  866. package/lib/components/Chat/ChatList/index.d.ts +73 -0
  867. package/lib/components/Chat/ChatList/index.js +88 -0
  868. package/lib/components/Chat/ChatList/index.module.less +8 -0
  869. package/lib/components/Chat/index.d.ts +13 -0
  870. package/lib/components/Chat/index.js +16 -0
  871. package/lib/components/Checkbox/CheckboxGroup/index.d.ts +10 -0
  872. package/lib/components/Checkbox/CheckboxGroup/index.js +103 -0
  873. package/lib/components/Checkbox/CheckboxGroup/index.module.less +130 -0
  874. package/lib/components/Checkbox/index.d.ts +12 -0
  875. package/lib/components/Checkbox/index.js +28 -0
  876. package/lib/components/Checkbox/index.module.less +93 -0
  877. package/lib/components/CodeMirror/index.d.ts +21 -0
  878. package/lib/components/CodeMirror/index.js +136 -0
  879. package/lib/components/CodeMirror/index.module.less +36 -0
  880. package/lib/components/CodeMirror/linters/errorTranslator.d.ts +4 -0
  881. package/lib/components/CodeMirror/linters/errorTranslator.js +73 -0
  882. package/lib/components/CodeMirror/linters/jsonLinter.d.ts +15 -0
  883. package/lib/components/CodeMirror/linters/jsonLinter.js +116 -0
  884. package/lib/components/CodeMirror/linters/sqlLinter.d.ts +9 -0
  885. package/lib/components/CodeMirror/linters/sqlLinter.js +226 -0
  886. package/lib/components/Copy/index.d.ts +12 -0
  887. package/lib/components/Copy/index.js +113 -0
  888. package/lib/components/Copy/index.module.less +44 -0
  889. package/lib/components/DatePicker/RangePicker/index.d.ts +16 -0
  890. package/lib/components/DatePicker/RangePicker/index.js +163 -0
  891. package/lib/components/DatePicker/RangePicker/index.module.less +47 -0
  892. package/lib/components/DatePicker/StepPicker/index.d.ts +19 -0
  893. package/lib/components/DatePicker/StepPicker/index.js +81 -0
  894. package/lib/components/DatePicker/StepPicker/index.module.less +27 -0
  895. package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +5 -0
  896. package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.js +13 -0
  897. package/lib/components/DatePicker/index.d.ts +21 -0
  898. package/lib/components/DatePicker/index.js +187 -0
  899. package/lib/components/DatePicker/index.module.less +39 -0
  900. package/lib/components/Descriptions/index.d.ts +16 -0
  901. package/lib/components/Descriptions/index.js +124 -0
  902. package/lib/components/Descriptions/index.module.less +16 -0
  903. package/lib/components/Editor/index.d.ts +17 -0
  904. package/lib/components/Editor/index.js +91 -0
  905. package/lib/components/Editor/index.module.less +62 -0
  906. package/lib/components/FileCol/index.d.ts +8 -0
  907. package/lib/components/FileCol/index.js +59 -0
  908. package/lib/components/FileCol/index.module.less +23 -0
  909. package/lib/components/FilePreview/_components/BasePreview/index.module.less +80 -0
  910. package/lib/components/FilePreview/_components/ImagePreview/index.d.ts +8 -0
  911. package/lib/components/FilePreview/_components/ImagePreview/index.js +29 -0
  912. package/lib/components/FilePreview/_components/MarkdownPreview/index.d.ts +8 -0
  913. package/lib/components/FilePreview/_components/MarkdownPreview/index.js +35 -0
  914. package/lib/components/FilePreview/_components/PdfPreview/index.d.ts +10 -0
  915. package/lib/components/FilePreview/_components/PdfPreview/index.js +251 -0
  916. package/lib/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
  917. package/lib/components/FilePreview/_components/TextPreview/index.d.ts +8 -0
  918. package/lib/components/FilePreview/_components/TextPreview/index.js +36 -0
  919. package/lib/components/FilePreview/_components/VideoPreview/index.d.ts +8 -0
  920. package/lib/components/FilePreview/_components/VideoPreview/index.js +36 -0
  921. package/lib/components/FilePreview/_components/XlsxPreview/index.d.ts +9 -0
  922. package/lib/components/FilePreview/_components/XlsxPreview/index.js +41 -0
  923. package/lib/components/FilePreview/_hooks/index.d.ts +1 -0
  924. package/lib/components/FilePreview/_hooks/index.js +12 -0
  925. package/lib/components/FilePreview/_hooks/useXlsxData.d.ts +10 -0
  926. package/lib/components/FilePreview/_hooks/useXlsxData.js +26 -0
  927. package/lib/components/FilePreview/_utils/index.d.ts +2 -0
  928. package/lib/components/FilePreview/_utils/index.js +12 -0
  929. package/lib/components/FilePreview/_utils/types.d.ts +2 -0
  930. package/lib/components/FilePreview/_utils/types.js +7 -0
  931. package/lib/components/FilePreview/index.d.ts +16 -0
  932. package/lib/components/FilePreview/index.js +101 -0
  933. package/lib/components/FilePreview/index.module.less +89 -0
  934. package/lib/components/FlexFill/index.d.ts +12 -0
  935. package/lib/components/FlexFill/index.js +30 -0
  936. package/lib/components/Form/DrawerForm/index.d.ts +18 -0
  937. package/lib/components/Form/DrawerForm/index.js +115 -0
  938. package/lib/components/Form/DrawerForm/index.module.less +51 -0
  939. package/lib/components/Form/ImportForm/index.d.ts +17 -0
  940. package/lib/components/Form/ImportForm/index.js +110 -0
  941. package/lib/components/Form/ImportForm/index.module.less +10 -0
  942. package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +11 -0
  943. package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +53 -0
  944. package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +7 -0
  945. package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.js +64 -0
  946. package/lib/components/Form/ModalForm/_hooks/useFormItems.d.ts +9 -0
  947. package/lib/components/Form/ModalForm/_hooks/useFormItems.js +38 -0
  948. package/lib/components/Form/ModalForm/index.d.ts +30 -0
  949. package/lib/components/Form/ModalForm/index.js +155 -0
  950. package/lib/components/Form/ModalForm/index.module.less +74 -0
  951. package/lib/components/Form/index.d.ts +13 -0
  952. package/lib/components/Form/index.js +18 -0
  953. package/lib/components/FormItem/FormAuto/index.d.ts +8 -0
  954. package/lib/components/FormItem/FormAuto/index.js +22 -0
  955. package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.d.ts +8 -0
  956. package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.js +35 -0
  957. package/lib/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
  958. package/lib/components/FormItem/FormCheckbox/index.d.ts +13 -0
  959. package/lib/components/FormItem/FormCheckbox/index.js +41 -0
  960. package/lib/components/FormItem/FormCheckbox/index.module.less +2 -0
  961. package/lib/components/FormItem/FormCodeMirror/index.d.ts +8 -0
  962. package/lib/components/FormItem/FormCodeMirror/index.js +79 -0
  963. package/lib/components/FormItem/FormDatePicker/FormRangePicker/index.d.ts +8 -0
  964. package/lib/components/FormItem/FormDatePicker/FormRangePicker/index.js +35 -0
  965. package/lib/components/FormItem/FormDatePicker/FormStepPicker/index.d.ts +8 -0
  966. package/lib/components/FormItem/FormDatePicker/FormStepPicker/index.js +35 -0
  967. package/lib/components/FormItem/FormDatePicker/index.d.ts +15 -0
  968. package/lib/components/FormItem/FormDatePicker/index.js +39 -0
  969. package/lib/components/FormItem/FormDatePicker/index.module.less +3 -0
  970. package/lib/components/FormItem/FormEditor/index.d.ts +8 -0
  971. package/lib/components/FormItem/FormEditor/index.js +28 -0
  972. package/lib/components/FormItem/FormInput/FormInputNumber/index.d.ts +8 -0
  973. package/lib/components/FormItem/FormInput/FormInputNumber/index.js +33 -0
  974. package/lib/components/FormItem/FormInput/FormPassword/index.d.ts +8 -0
  975. package/lib/components/FormItem/FormInput/FormPassword/index.js +36 -0
  976. package/lib/components/FormItem/FormInput/FormPasswordStrength/index.d.ts +10 -0
  977. package/lib/components/FormItem/FormInput/FormPasswordStrength/index.js +61 -0
  978. package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
  979. package/lib/components/FormItem/FormInput/FormRangeInput/index.d.ts +8 -0
  980. package/lib/components/FormItem/FormInput/FormRangeInput/index.js +37 -0
  981. package/lib/components/FormItem/FormInput/FormTextAreaInput/index.d.ts +10 -0
  982. package/lib/components/FormItem/FormInput/FormTextAreaInput/index.js +33 -0
  983. package/lib/components/FormItem/FormInput/index.d.ts +24 -0
  984. package/lib/components/FormItem/FormInput/index.js +46 -0
  985. package/lib/components/FormItem/FormRadio/index.d.ts +11 -0
  986. package/lib/components/FormItem/FormRadio/index.js +40 -0
  987. package/lib/components/FormItem/FormRadio/index.module.less +106 -0
  988. package/lib/components/FormItem/FormSegmented/index.d.ts +8 -0
  989. package/lib/components/FormItem/FormSegmented/index.js +36 -0
  990. package/lib/components/FormItem/FormSegmented/index.module.less +34 -0
  991. package/lib/components/FormItem/FormSelect/FormAutoCompleteSelect/index.d.ts +8 -0
  992. package/lib/components/FormItem/FormSelect/FormAutoCompleteSelect/index.js +33 -0
  993. package/lib/components/FormItem/FormSelect/FormIconSelect/index.d.ts +8 -0
  994. package/lib/components/FormItem/FormSelect/FormIconSelect/index.js +31 -0
  995. package/lib/components/FormItem/FormSelect/FormTreeSelect/index.d.ts +8 -0
  996. package/lib/components/FormItem/FormSelect/FormTreeSelect/index.js +33 -0
  997. package/lib/components/FormItem/FormSelect/index.d.ts +17 -0
  998. package/lib/components/FormItem/FormSelect/index.js +39 -0
  999. package/lib/components/FormItem/FormSlider/index.d.ts +9 -0
  1000. package/lib/components/FormItem/FormSlider/index.js +70 -0
  1001. package/lib/components/FormItem/FormSlider/index.module.less +15 -0
  1002. package/lib/components/FormItem/FormSwitch/index.d.ts +8 -0
  1003. package/lib/components/FormItem/FormSwitch/index.js +35 -0
  1004. package/lib/components/FormItem/FormSwitch/index.module.less +3 -0
  1005. package/lib/components/FormItem/FormText/index.d.ts +16 -0
  1006. package/lib/components/FormItem/FormText/index.js +64 -0
  1007. package/lib/components/FormItem/FormText/index.module.less +9 -0
  1008. package/lib/components/FormItem/FormTree/index.d.ts +8 -0
  1009. package/lib/components/FormItem/FormTree/index.js +33 -0
  1010. package/lib/components/FormItem/FormUpload/FormImage/index.d.ts +13 -0
  1011. package/lib/components/FormItem/FormUpload/FormImage/index.js +129 -0
  1012. package/lib/components/FormItem/FormUpload/index.d.ts +19 -0
  1013. package/lib/components/FormItem/FormUpload/index.js +143 -0
  1014. package/lib/components/FormItem/FormUpload/index.module.less +142 -0
  1015. package/lib/components/FormItem/ItemContainer/_hooks/useInputSize.d.ts +14 -0
  1016. package/lib/components/FormItem/ItemContainer/_hooks/useInputSize.js +34 -0
  1017. package/lib/components/FormItem/ItemContainer/_hooks/useLabelSize.d.ts +12 -0
  1018. package/lib/components/FormItem/ItemContainer/_hooks/useLabelSize.js +30 -0
  1019. package/lib/components/FormItem/ItemContainer/index.d.ts +40 -0
  1020. package/lib/components/FormItem/ItemContainer/index.js +192 -0
  1021. package/lib/components/FormItem/ItemContainer/index.module.less +387 -0
  1022. package/lib/components/FormItem/databaseTypeMapping.d.ts +56 -0
  1023. package/lib/components/FormItem/databaseTypeMapping.js +178 -0
  1024. package/lib/components/FormItem/index.d.ts +59 -0
  1025. package/lib/components/FormItem/index.js +270 -0
  1026. package/lib/components/FormItem/rules.d.ts +5 -0
  1027. package/lib/components/FormItem/rules.js +75 -0
  1028. package/lib/components/Icon/index.d.ts +10 -0
  1029. package/lib/components/Icon/index.js +88 -0
  1030. package/lib/components/Icon/index.module.less +8 -0
  1031. package/lib/components/Input/Number/index.d.ts +11 -0
  1032. package/lib/components/Input/Number/index.js +128 -0
  1033. package/lib/components/Input/Number/index.module.less +78 -0
  1034. package/lib/components/Input/Password/index.d.ts +9 -0
  1035. package/lib/components/Input/Password/index.js +73 -0
  1036. package/lib/components/Input/Password/index.module.less +15 -0
  1037. package/lib/components/Input/Range/index.d.ts +31 -0
  1038. package/lib/components/Input/Range/index.js +164 -0
  1039. package/lib/components/Input/Range/index.module.less +97 -0
  1040. package/lib/components/Input/Search/index.d.ts +8 -0
  1041. package/lib/components/Input/Search/index.js +71 -0
  1042. package/lib/components/Input/Search/index.module.less +22 -0
  1043. package/lib/components/Input/TextArea/index.d.ts +14 -0
  1044. package/lib/components/Input/TextArea/index.js +138 -0
  1045. package/lib/components/Input/TextArea/index.module.less +130 -0
  1046. package/lib/components/Input/index.d.ts +24 -0
  1047. package/lib/components/Input/index.js +174 -0
  1048. package/lib/components/Input/index.module.less +19 -0
  1049. package/lib/components/Markdown/Editor/index.d.ts +21 -0
  1050. package/lib/components/Markdown/Editor/index.js +77 -0
  1051. package/lib/components/Markdown/Editor/index.module.less +56 -0
  1052. package/lib/components/Markdown/Views/ArtifactBlock.d.ts +15 -0
  1053. package/lib/components/Markdown/Views/ArtifactBlock.js +57 -0
  1054. package/lib/components/Markdown/Views/MermaidBlock.d.ts +10 -0
  1055. package/lib/components/Markdown/Views/MermaidBlock.js +73 -0
  1056. package/lib/components/Markdown/Views/blocks.module.less +86 -0
  1057. package/lib/components/Markdown/Views/index.d.ts +10 -0
  1058. package/lib/components/Markdown/Views/index.js +120 -0
  1059. package/lib/components/Markdown/Views/index.module.less +73 -0
  1060. package/lib/components/Markdown/index.d.ts +9 -0
  1061. package/lib/components/Markdown/index.js +14 -0
  1062. package/lib/components/Modal/_hooks/index.d.ts +2 -0
  1063. package/lib/components/Modal/_hooks/index.js +19 -0
  1064. package/lib/components/Modal/_hooks/useModalDrag.d.ts +12 -0
  1065. package/lib/components/Modal/_hooks/useModalDrag.js +57 -0
  1066. package/lib/components/Modal/_hooks/useModalElements.d.ts +17 -0
  1067. package/lib/components/Modal/_hooks/useModalElements.js +55 -0
  1068. package/lib/components/Modal/_utils/calculatePosition.d.ts +13 -0
  1069. package/lib/components/Modal/_utils/calculatePosition.js +35 -0
  1070. package/lib/components/Modal/_utils/index.d.ts +1 -0
  1071. package/lib/components/Modal/_utils/index.js +12 -0
  1072. package/lib/components/Modal/index.d.ts +11 -0
  1073. package/lib/components/Modal/index.js +95 -0
  1074. package/lib/components/Modal/index.module.less +90 -0
  1075. package/lib/components/Operate/_hooks/useOperateEllipsis.d.ts +10 -0
  1076. package/lib/components/Operate/_hooks/useOperateEllipsis.js +23 -0
  1077. package/lib/components/Operate/index.d.ts +21 -0
  1078. package/lib/components/Operate/index.js +254 -0
  1079. package/lib/components/Operate/index.module.less +60 -0
  1080. package/lib/components/Operate/more.png +0 -0
  1081. package/lib/components/Panel/DefaultPanel/index.d.ts +14 -0
  1082. package/lib/components/Panel/DefaultPanel/index.js +62 -0
  1083. package/lib/components/Panel/DefaultPanel/index.module.less +51 -0
  1084. package/lib/components/Panel/IframePanel/index.d.ts +7 -0
  1085. package/lib/components/Panel/IframePanel/index.js +53 -0
  1086. package/lib/components/Panel/IframePanel/index.module.less +68 -0
  1087. package/lib/components/Panel/ListPanel/ListModalPanel/index.d.ts +52 -0
  1088. package/lib/components/Panel/ListPanel/ListModalPanel/index.js +149 -0
  1089. package/lib/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
  1090. package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.d.ts +24 -0
  1091. package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.js +286 -0
  1092. package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
  1093. package/lib/components/Panel/ListPanel/_components/ToolBar/index.d.ts +14 -0
  1094. package/lib/components/Panel/ListPanel/_components/ToolBar/index.js +85 -0
  1095. package/lib/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
  1096. package/lib/components/Panel/ListPanel/index.d.ts +69 -0
  1097. package/lib/components/Panel/ListPanel/index.js +304 -0
  1098. package/lib/components/Panel/ListPanel/index.module.less +134 -0
  1099. package/lib/components/Panel/index.d.ts +11 -0
  1100. package/lib/components/Panel/index.js +16 -0
  1101. package/lib/components/Search/SearchAdvanced/index.d.ts +17 -0
  1102. package/lib/components/Search/SearchAdvanced/index.js +162 -0
  1103. package/lib/components/Search/SearchAdvanced/index.module.less +3 -0
  1104. package/lib/components/Search/SearchCard/_components/CollapseToggle/index.d.ts +7 -0
  1105. package/lib/components/Search/SearchCard/_components/CollapseToggle/index.js +33 -0
  1106. package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.d.ts +10 -0
  1107. package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +76 -0
  1108. package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.d.ts +11 -0
  1109. package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.js +157 -0
  1110. package/lib/components/Search/SearchCard/_components/OptionRow/index.d.ts +33 -0
  1111. package/lib/components/Search/SearchCard/_components/OptionRow/index.js +141 -0
  1112. package/lib/components/Search/SearchCard/_components/SearchBox/index.d.ts +9 -0
  1113. package/lib/components/Search/SearchCard/_components/SearchBox/index.js +34 -0
  1114. package/lib/components/Search/SearchCard/_hooks/index.d.ts +3 -0
  1115. package/lib/components/Search/SearchCard/_hooks/index.js +26 -0
  1116. package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +13 -0
  1117. package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +23 -0
  1118. package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +9 -0
  1119. package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +146 -0
  1120. package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +19 -0
  1121. package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.js +59 -0
  1122. package/lib/components/Search/SearchCard/_utils/getRealValues.d.ts +5 -0
  1123. package/lib/components/Search/SearchCard/_utils/getRealValues.js +30 -0
  1124. package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +4 -0
  1125. package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.js +20 -0
  1126. package/lib/components/Search/SearchCard/_utils/index.d.ts +4 -0
  1127. package/lib/components/Search/SearchCard/_utils/index.js +45 -0
  1128. package/lib/components/Search/SearchCard/_utils/typeGuards.d.ts +6 -0
  1129. package/lib/components/Search/SearchCard/_utils/typeGuards.js +21 -0
  1130. package/lib/components/Search/SearchCard/_utils/updateRealValue.d.ts +4 -0
  1131. package/lib/components/Search/SearchCard/_utils/updateRealValue.js +61 -0
  1132. package/lib/components/Search/SearchCard/index.d.ts +19 -0
  1133. package/lib/components/Search/SearchCard/index.js +109 -0
  1134. package/lib/components/Search/SearchCard/index.module.less +295 -0
  1135. package/lib/components/Search/SearchCollapsible/index.d.ts +16 -0
  1136. package/lib/components/Search/SearchCollapsible/index.js +167 -0
  1137. package/lib/components/Search/SearchCollapsible/index.module.less +3 -0
  1138. package/lib/components/Search/SearchWithFilter/index.d.ts +15 -0
  1139. package/lib/components/Search/SearchWithFilter/index.js +147 -0
  1140. package/lib/components/Search/SearchWithFilter/index.module.less +3 -0
  1141. package/lib/components/Search/SearchWithMore/index.d.ts +17 -0
  1142. package/lib/components/Search/SearchWithMore/index.js +148 -0
  1143. package/lib/components/Search/SearchWithMore/index.module.less +3 -0
  1144. package/lib/components/Search/_components/AdvancedFiltersDrawer/index.d.ts +18 -0
  1145. package/lib/components/Search/_components/AdvancedFiltersDrawer/index.js +66 -0
  1146. package/lib/components/Search/_components/ButtonGroup/index.d.ts +15 -0
  1147. package/lib/components/Search/_components/ButtonGroup/index.js +49 -0
  1148. package/lib/components/Search/_components/CollapseToggle/index.d.ts +7 -0
  1149. package/lib/components/Search/_components/CollapseToggle/index.js +30 -0
  1150. package/lib/components/Search/_components/ExpandButton/index.d.ts +10 -0
  1151. package/lib/components/Search/_components/ExpandButton/index.js +39 -0
  1152. package/lib/components/Search/_components/FilterDropdown/index.d.ts +10 -0
  1153. package/lib/components/Search/_components/FilterDropdown/index.js +111 -0
  1154. package/lib/components/Search/_components/SearchButtons/index.d.ts +12 -0
  1155. package/lib/components/Search/_components/SearchButtons/index.js +38 -0
  1156. package/lib/components/Search/_hooks/index.d.ts +6 -0
  1157. package/lib/components/Search/_hooks/index.js +40 -0
  1158. package/lib/components/Search/_hooks/useAdaptiveColumnNum.d.ts +13 -0
  1159. package/lib/components/Search/_hooks/useAdaptiveColumnNum.js +93 -0
  1160. package/lib/components/Search/_hooks/useSearchCommon.d.ts +52 -0
  1161. package/lib/components/Search/_hooks/useSearchCommon.js +204 -0
  1162. package/lib/components/Search/_hooks/useSearchExpand.d.ts +22 -0
  1163. package/lib/components/Search/_hooks/useSearchExpand.js +165 -0
  1164. package/lib/components/Search/_hooks/useSearchForm.d.ts +10 -0
  1165. package/lib/components/Search/_hooks/useSearchForm.js +22 -0
  1166. package/lib/components/Search/_hooks/useSearchItems.d.ts +12 -0
  1167. package/lib/components/Search/_hooks/useSearchItems.js +40 -0
  1168. package/lib/components/Search/_types/index.d.ts +48 -0
  1169. package/lib/components/Search/_types/index.js +5 -0
  1170. package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +13 -0
  1171. package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +49 -0
  1172. package/lib/components/Search/_utils/calculateVisibleItems.d.ts +13 -0
  1173. package/lib/components/Search/_utils/calculateVisibleItems.js +40 -0
  1174. package/lib/components/Search/_utils/cleanSearchData.d.ts +6 -0
  1175. package/lib/components/Search/_utils/cleanSearchData.js +22 -0
  1176. package/lib/components/Search/_utils/index.d.ts +3 -0
  1177. package/lib/components/Search/_utils/index.js +26 -0
  1178. package/lib/components/Search/bottomLine.png +0 -0
  1179. package/lib/components/Search/index.d.ts +30 -0
  1180. package/lib/components/Search/index.js +145 -0
  1181. package/lib/components/Search/index.module.less +185 -0
  1182. package/lib/components/SecondConf/index.d.ts +8 -0
  1183. package/lib/components/SecondConf/index.js +47 -0
  1184. package/lib/components/SecondConf/index.module.less +36 -0
  1185. package/lib/components/Select/AutoCompleteSelect/index.d.ts +21 -0
  1186. package/lib/components/Select/AutoCompleteSelect/index.js +199 -0
  1187. package/lib/components/Select/AutoCompleteSelect/index.module.less +315 -0
  1188. package/lib/components/Select/IconSelect/index.d.ts +8 -0
  1189. package/lib/components/Select/IconSelect/index.js +124 -0
  1190. package/lib/components/Select/IconSelect/index.module.less +66 -0
  1191. package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +8 -0
  1192. package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +30 -0
  1193. package/lib/components/Select/TreeSelect/_utils/index.d.ts +2 -0
  1194. package/lib/components/Select/TreeSelect/_utils/index.js +37 -0
  1195. package/lib/components/Select/TreeSelect/_utils/treeExpandedKeysState.d.ts +6 -0
  1196. package/lib/components/Select/TreeSelect/_utils/treeExpandedKeysState.js +15 -0
  1197. package/lib/components/Select/TreeSelect/index.d.ts +16 -0
  1198. package/lib/components/Select/TreeSelect/index.js +135 -0
  1199. package/lib/components/Select/TreeSelect/index.module.less +126 -0
  1200. package/lib/components/Select/_components/Prefix/index.d.ts +6 -0
  1201. package/lib/components/Select/_components/Prefix/index.js +22 -0
  1202. package/lib/components/Select/_components/Suffix/index.d.ts +6 -0
  1203. package/lib/components/Select/_components/Suffix/index.js +22 -0
  1204. package/lib/components/Select/_hooks/index.d.ts +3 -0
  1205. package/lib/components/Select/_hooks/index.js +26 -0
  1206. package/lib/components/Select/_hooks/useSelectComposition.d.ts +10 -0
  1207. package/lib/components/Select/_hooks/useSelectComposition.js +34 -0
  1208. package/lib/components/Select/_hooks/useSelectInputOptions.d.ts +17 -0
  1209. package/lib/components/Select/_hooks/useSelectInputOptions.js +28 -0
  1210. package/lib/components/Select/_hooks/useSelectPopupPosition.d.ts +2 -0
  1211. package/lib/components/Select/_hooks/useSelectPopupPosition.js +46 -0
  1212. package/lib/components/Select/_utils/calculatePopupWidth.d.ts +13 -0
  1213. package/lib/components/Select/_utils/calculatePopupWidth.js +21 -0
  1214. package/lib/components/Select/_utils/filterOption.d.ts +13 -0
  1215. package/lib/components/Select/_utils/filterOption.js +25 -0
  1216. package/lib/components/Select/_utils/getElementPosition.d.ts +8 -0
  1217. package/lib/components/Select/_utils/getElementPosition.js +22 -0
  1218. package/lib/components/Select/_utils/index.d.ts +3 -0
  1219. package/lib/components/Select/_utils/index.js +32 -0
  1220. package/lib/components/Select/index.d.ts +23 -0
  1221. package/lib/components/Select/index.js +200 -0
  1222. package/lib/components/Select/index.module.less +320 -0
  1223. package/lib/components/Slider/index.d.ts +7 -0
  1224. package/lib/components/Slider/index.js +46 -0
  1225. package/lib/components/Slider/index.module.less +66 -0
  1226. package/lib/components/Spreadsheet/index.d.ts +14 -0
  1227. package/lib/components/Spreadsheet/index.js +62 -0
  1228. package/lib/components/Spreadsheet/index.module.less +29 -0
  1229. package/lib/components/Spreadsheet/xlsxspread.d.ts +38 -0
  1230. package/lib/components/Spreadsheet/xlsxspread.js +168 -0
  1231. package/lib/components/Switch/index.d.ts +10 -0
  1232. package/lib/components/Switch/index.js +26 -0
  1233. package/lib/components/TabBar/index.d.ts +18 -0
  1234. package/lib/components/TabBar/index.js +56 -0
  1235. package/lib/components/TabBar/index.module.less +114 -0
  1236. package/lib/components/Table/_components/Drag/index.d.ts +21 -0
  1237. package/lib/components/Table/_components/Drag/index.js +100 -0
  1238. package/lib/components/Table/_components/Pagination/index.d.ts +11 -0
  1239. package/lib/components/Table/_components/Pagination/index.js +133 -0
  1240. package/lib/components/Table/_components/Pagination/index.module.less +199 -0
  1241. package/lib/components/Table/_hooks/useAutoScrolling.d.ts +18 -0
  1242. package/lib/components/Table/_hooks/useAutoScrolling.js +414 -0
  1243. package/lib/components/Table/_hooks/useEllipsisTooltip.d.ts +9 -0
  1244. package/lib/components/Table/_hooks/useEllipsisTooltip.js +50 -0
  1245. package/lib/components/Table/_hooks/useHideHeaderScrollbar.d.ts +12 -0
  1246. package/lib/components/Table/_hooks/useHideHeaderScrollbar.js +52 -0
  1247. package/lib/components/Table/_hooks/usePaginationSync.d.ts +17 -0
  1248. package/lib/components/Table/_hooks/usePaginationSync.js +39 -0
  1249. package/lib/components/Table/_hooks/useScrollEnd.d.ts +12 -0
  1250. package/lib/components/Table/_hooks/useScrollEnd.js +73 -0
  1251. package/lib/components/Table/_hooks/useSetTableHeight.d.ts +16 -0
  1252. package/lib/components/Table/_hooks/useSetTableHeight.js +47 -0
  1253. package/lib/components/Table/_hooks/useTableColumns.d.ts +40 -0
  1254. package/lib/components/Table/_hooks/useTableColumns.js +250 -0
  1255. package/lib/components/Table/_hooks/useTablePagination.d.ts +26 -0
  1256. package/lib/components/Table/_hooks/useTablePagination.js +91 -0
  1257. package/lib/components/Table/_utils/tableUtils.d.ts +23 -0
  1258. package/lib/components/Table/_utils/tableUtils.js +49 -0
  1259. package/lib/components/Table/index.d.ts +91 -0
  1260. package/lib/components/Table/index.js +238 -0
  1261. package/lib/components/Table/index.module.less +361 -0
  1262. package/lib/components/Tags/_components/EllipsisTag/index.d.ts +11 -0
  1263. package/lib/components/Tags/_components/EllipsisTag/index.js +51 -0
  1264. package/lib/components/Tags/_components/EllipsisTag/index.module.less +18 -0
  1265. package/lib/components/Tags/_components/MeasureContainer/index.d.ts +10 -0
  1266. package/lib/components/Tags/_components/MeasureContainer/index.js +32 -0
  1267. package/lib/components/Tags/_components/MeasureContainer/index.module.less +15 -0
  1268. package/lib/components/Tags/_hooks/index.d.ts +1 -0
  1269. package/lib/components/Tags/_hooks/index.js +12 -0
  1270. package/lib/components/Tags/_hooks/useVisibleTags.d.ts +15 -0
  1271. package/lib/components/Tags/_hooks/useVisibleTags.js +88 -0
  1272. package/lib/components/Tags/_utils/calculateVisibleCount.d.ts +9 -0
  1273. package/lib/components/Tags/_utils/calculateVisibleCount.js +46 -0
  1274. package/lib/components/Tags/_utils/getTagColor.d.ts +7 -0
  1275. package/lib/components/Tags/_utils/getTagColor.js +18 -0
  1276. package/lib/components/Tags/_utils/index.d.ts +2 -0
  1277. package/lib/components/Tags/_utils/index.js +19 -0
  1278. package/lib/components/Tags/index.d.ts +11 -0
  1279. package/lib/components/Tags/index.js +69 -0
  1280. package/lib/components/Tags/index.module.less +33 -0
  1281. package/lib/components/TextEllipsis/index.d.ts +29 -0
  1282. package/lib/components/TextEllipsis/index.js +168 -0
  1283. package/lib/components/TextEllipsis/index.module.less +28 -0
  1284. package/lib/components/Tree/_components/TitleSearchBar/index.d.ts +16 -0
  1285. package/lib/components/Tree/_components/TitleSearchBar/index.js +62 -0
  1286. package/lib/components/Tree/_hooks/useClearNodeTitle.d.ts +8 -0
  1287. package/lib/components/Tree/_hooks/useClearNodeTitle.js +40 -0
  1288. package/lib/components/Tree/_hooks/useTreeCheck.d.ts +7 -0
  1289. package/lib/components/Tree/_hooks/useTreeCheck.js +32 -0
  1290. package/lib/components/Tree/_hooks/useTreeSearch.d.ts +10 -0
  1291. package/lib/components/Tree/_hooks/useTreeSearch.js +73 -0
  1292. package/lib/components/Tree/_hooks/useTreeState.d.ts +11 -0
  1293. package/lib/components/Tree/_hooks/useTreeState.js +69 -0
  1294. package/lib/components/Tree/_utils/index.d.ts +44 -0
  1295. package/lib/components/Tree/_utils/index.js +149 -0
  1296. package/lib/components/Tree/_utils/normalizeCheckedKeys.d.ts +8 -0
  1297. package/lib/components/Tree/_utils/normalizeCheckedKeys.js +71 -0
  1298. package/lib/components/Tree/index.d.ts +48 -0
  1299. package/lib/components/Tree/index.js +217 -0
  1300. package/lib/components/Tree/index.module.less +142 -0
  1301. package/lib/components/Upload/_components/UploadedItem/index.d.ts +21 -0
  1302. package/lib/components/Upload/_components/UploadedItem/index.js +107 -0
  1303. package/lib/components/Upload/_components/UploadingItem/index.d.ts +19 -0
  1304. package/lib/components/Upload/_components/UploadingItem/index.js +61 -0
  1305. package/lib/components/Upload/_hooks/index.d.ts +3 -0
  1306. package/lib/components/Upload/_hooks/index.js +26 -0
  1307. package/lib/components/Upload/_hooks/useUploadFileList.d.ts +22 -0
  1308. package/lib/components/Upload/_hooks/useUploadFileList.js +66 -0
  1309. package/lib/components/Upload/_hooks/useUploadOperations.d.ts +19 -0
  1310. package/lib/components/Upload/_hooks/useUploadOperations.js +66 -0
  1311. package/lib/components/Upload/_hooks/useUploadPreview.d.ts +17 -0
  1312. package/lib/components/Upload/_hooks/useUploadPreview.js +18 -0
  1313. package/lib/components/Upload/_utils/chunkUpload.d.ts +26 -0
  1314. package/lib/components/Upload/_utils/chunkUpload.js +144 -0
  1315. package/lib/components/Upload/_utils/createFormData.d.ts +4 -0
  1316. package/lib/components/Upload/_utils/createFormData.js +21 -0
  1317. package/lib/components/Upload/_utils/extractFileUrl.d.ts +5 -0
  1318. package/lib/components/Upload/_utils/extractFileUrl.js +22 -0
  1319. package/lib/components/Upload/_utils/index.d.ts +7 -0
  1320. package/lib/components/Upload/_utils/index.js +54 -0
  1321. package/lib/components/Upload/_utils/isSuccessResponse.d.ts +9 -0
  1322. package/lib/components/Upload/_utils/isSuccessResponse.js +13 -0
  1323. package/lib/components/Upload/_utils/normalUpload.d.ts +24 -0
  1324. package/lib/components/Upload/_utils/normalUpload.js +80 -0
  1325. package/lib/components/Upload/_utils/toMB.d.ts +4 -0
  1326. package/lib/components/Upload/_utils/toMB.js +12 -0
  1327. package/lib/components/Upload/_utils/validateFile.d.ts +15 -0
  1328. package/lib/components/Upload/_utils/validateFile.js +35 -0
  1329. package/lib/components/Upload/index.d.ts +42 -0
  1330. package/lib/components/Upload/index.js +211 -0
  1331. package/lib/components/Upload/index.module.less +74 -0
  1332. package/lib/config-provider/index.d.ts +19 -0
  1333. package/lib/config-provider/index.js +38 -0
  1334. package/lib/hooks/index.d.ts +2 -0
  1335. package/lib/hooks/index.js +28 -0
  1336. package/lib/hooks/useLabelWidth.d.ts +14 -0
  1337. package/lib/hooks/useLabelWidth.js +58 -0
  1338. package/lib/hooks/usePermissions.d.ts +9 -0
  1339. package/lib/hooks/usePermissions.js +37 -0
  1340. package/lib/index.d.ts +73 -0
  1341. package/lib/index.js +725 -0
  1342. package/lib/request/ResType.d.ts +20 -0
  1343. package/lib/request/ResType.js +5 -0
  1344. package/lib/request/index.d.ts +28 -0
  1345. package/lib/request/index.js +60 -0
  1346. package/lib/styles/antd-overload.less +133 -0
  1347. package/lib/styles/utils.less +88 -0
  1348. package/lib/styles/variables.global.less +1 -0
  1349. package/lib/typings.d.ts +42 -0
  1350. package/lib/utils/cssSupports.d.ts +2 -0
  1351. package/lib/utils/cssSupports.js +27 -0
  1352. package/lib/utils/getUUID.d.ts +4 -0
  1353. package/lib/utils/getUUID.js +17 -0
  1354. package/lib/utils/index.d.ts +2 -0
  1355. package/lib/utils/index.js +25 -0
  1356. package/package.json +139 -0
  1357. package/src/components/Button/ChakraButton/index.module.less +20 -0
  1358. package/src/components/Button/ChakraButton/index.tsx +76 -0
  1359. package/src/components/Button/index.md +49 -0
  1360. package/src/components/Button/index.module.less +11 -0
  1361. package/src/components/Button/index.tsx +60 -0
  1362. package/src/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.ts +57 -0
  1363. package/src/components/ChainGraph/ChainGraphServices/NodeEvents.ts +80 -0
  1364. package/src/components/ChainGraph/ChainGraphServices/RootNode.ts +339 -0
  1365. package/src/components/ChainGraph/ChainGraphServices/TreeNode.ts +394 -0
  1366. package/src/components/ChainGraph/ChainGraphServices/index.ts +650 -0
  1367. package/src/components/ChainGraph/_components/ExpandButtons/index.module.less +18 -0
  1368. package/src/components/ChainGraph/_components/ExpandButtons/index.tsx +28 -0
  1369. package/src/components/ChainGraph/_components/SearchSelect/index.module.less +11 -0
  1370. package/src/components/ChainGraph/_components/SearchSelect/index.tsx +29 -0
  1371. package/src/components/ChainGraph/_hooks/index.ts +8 -0
  1372. package/src/components/ChainGraph/_hooks/useChainGraphData.ts +58 -0
  1373. package/src/components/ChainGraph/_hooks/useChainGraphExpand.ts +29 -0
  1374. package/src/components/ChainGraph/_hooks/useChainGraphInit.ts +89 -0
  1375. package/src/components/ChainGraph/_hooks/useChainGraphLayout.ts +19 -0
  1376. package/src/components/ChainGraph/_hooks/useChainGraphMiniMap.ts +18 -0
  1377. package/src/components/ChainGraph/_hooks/useChainGraphResize.ts +29 -0
  1378. package/src/components/ChainGraph/_hooks/useChainGraphSearch.ts +17 -0
  1379. package/src/components/ChainGraph/_utils/findAncestorsOfNode.ts +42 -0
  1380. package/src/components/ChainGraph/_utils/getTextSize.ts +21 -0
  1381. package/src/components/ChainGraph/_utils/index.ts +4 -0
  1382. package/src/components/ChainGraph/_utils/styles.ts +24 -0
  1383. package/src/components/ChainGraph/index.md +17 -0
  1384. package/src/components/ChainGraph/index.module.less +39 -0
  1385. package/src/components/ChainGraph/index.tsx +195 -0
  1386. package/src/components/Chart/Bar/Bar3DOpt.tsx +231 -0
  1387. package/src/components/Chart/Bar/index.tsx +392 -0
  1388. package/src/components/Chart/Bubble/index.tsx +437 -0
  1389. package/src/components/Chart/Common/index.tsx +84 -0
  1390. package/src/components/Chart/Gauge/index.tsx +165 -0
  1391. package/src/components/Chart/Group/index.module.less +67 -0
  1392. package/src/components/Chart/Group/index.tsx +134 -0
  1393. package/src/components/Chart/Heatmap/index.tsx +320 -0
  1394. package/src/components/Chart/Line/index.tsx +389 -0
  1395. package/src/components/Chart/Pie/Pie3D/_hooks/index.ts +300 -0
  1396. package/src/components/Chart/Pie/Pie3D/_utils/label.ts +394 -0
  1397. package/src/components/Chart/Pie/Pie3D/_utils/option.ts +147 -0
  1398. package/src/components/Chart/Pie/Pie3D/_utils/parametricEquation.ts +77 -0
  1399. package/src/components/Chart/Pie/Pie3D/_utils/series.ts +74 -0
  1400. package/src/components/Chart/Pie/Pie3D/index.tsx +233 -0
  1401. package/src/components/Chart/Pie/index.tsx +346 -0
  1402. package/src/components/Chart/Polar/index.tsx +231 -0
  1403. package/src/components/Chart/Radar/index.tsx +371 -0
  1404. package/src/components/Chart/Sankey/index.tsx +196 -0
  1405. package/src/components/Chart/Tree/index.tsx +113 -0
  1406. package/src/components/Chart/_utils/autoScrollLegend.ts +107 -0
  1407. package/src/components/Chart/_utils/autoSmooth.ts +164 -0
  1408. package/src/components/Chart/_utils/bubble.ts +260 -0
  1409. package/src/components/Chart/_utils/cartesian.ts +155 -0
  1410. package/src/components/Chart/_utils/heatmap.ts +41 -0
  1411. package/src/components/Chart/_utils/tree.ts +45 -0
  1412. package/src/components/Chart/chartUtils/calculateAxisConfig.ts +96 -0
  1413. package/src/components/Chart/chartUtils/chartTooltipFormatter.ts +128 -0
  1414. package/src/components/Chart/chartUtils/index.ts +37 -0
  1415. package/src/components/Chart/chartUtils/yAxisDisplayUnit.ts +62 -0
  1416. package/src/components/Chart/index.md +17 -0
  1417. package/src/components/Chart/index.module.less +4 -0
  1418. package/src/components/Chart/index.tsx +88 -0
  1419. package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.module.less +21 -0
  1420. package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.tsx +42 -0
  1421. package/src/components/Chat/ChatHistory/_components/HistoryItem/index.module.less +74 -0
  1422. package/src/components/Chat/ChatHistory/_components/HistoryItem/index.tsx +167 -0
  1423. package/src/components/Chat/ChatHistory/_components/NewChatButton/index.module.less +34 -0
  1424. package/src/components/Chat/ChatHistory/_components/NewChatButton/index.tsx +20 -0
  1425. package/src/components/Chat/ChatHistory/_components/index.ts +4 -0
  1426. package/src/components/Chat/ChatHistory/_hooks/index.ts +2 -0
  1427. package/src/components/Chat/ChatHistory/_hooks/useRename.ts +33 -0
  1428. package/src/components/Chat/ChatHistory/_utils/index.ts +7 -0
  1429. package/src/components/Chat/ChatHistory/index.module.less +54 -0
  1430. package/src/components/Chat/ChatHistory/index.tsx +85 -0
  1431. package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.module.less +29 -0
  1432. package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.tsx +39 -0
  1433. package/src/components/Chat/ChatInput/_components/FileList/index.module.less +29 -0
  1434. package/src/components/Chat/ChatInput/_components/FileList/index.tsx +30 -0
  1435. package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +18 -0
  1436. package/src/components/Chat/ChatInput/_components/SendButton/index.tsx +43 -0
  1437. package/src/components/Chat/ChatInput/_components/StopButton/index.module.less +10 -0
  1438. package/src/components/Chat/ChatInput/_components/StopButton/index.tsx +22 -0
  1439. package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +12 -0
  1440. package/src/components/Chat/ChatInput/_components/UploadButton/index.tsx +94 -0
  1441. package/src/components/Chat/ChatInput/_components/index.ts +6 -0
  1442. package/src/components/Chat/ChatInput/_hooks/index.ts +3 -0
  1443. package/src/components/Chat/ChatInput/_hooks/useCurrentModel.ts +19 -0
  1444. package/src/components/Chat/ChatInput/_hooks/useFileList.ts +18 -0
  1445. package/src/components/Chat/ChatInput/_utils/index.ts +98 -0
  1446. package/src/components/Chat/ChatInput/index.module.less +100 -0
  1447. package/src/components/Chat/ChatInput/index.tsx +287 -0
  1448. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.less +51 -0
  1449. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.tsx +63 -0
  1450. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.less +41 -0
  1451. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.tsx +104 -0
  1452. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.less +129 -0
  1453. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.tsx +95 -0
  1454. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +64 -0
  1455. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.tsx +120 -0
  1456. package/src/components/Chat/ChatList/_components/Assistant/index.module.less +73 -0
  1457. package/src/components/Chat/ChatList/_components/Assistant/index.tsx +117 -0
  1458. package/src/components/Chat/ChatList/_components/User/index.module.less +144 -0
  1459. package/src/components/Chat/ChatList/_components/User/index.tsx +87 -0
  1460. package/src/components/Chat/ChatList/_hooks/index.ts +4 -0
  1461. package/src/components/Chat/ChatList/_hooks/useAssistantNavigation.ts +40 -0
  1462. package/src/components/Chat/ChatList/_hooks/useCalculateRowIndex.ts +128 -0
  1463. package/src/components/Chat/ChatList/_utils/cleanRedactedReasoning.ts +13 -0
  1464. package/src/components/Chat/ChatList/_utils/index.ts +2 -0
  1465. package/src/components/Chat/ChatList/index.module.less +8 -0
  1466. package/src/components/Chat/ChatList/index.tsx +179 -0
  1467. package/src/components/Chat/index.md +17 -0
  1468. package/src/components/Chat/index.tsx +32 -0
  1469. package/src/components/Checkbox/CheckboxGroup/index.module.less +130 -0
  1470. package/src/components/Checkbox/CheckboxGroup/index.tsx +129 -0
  1471. package/src/components/Checkbox/index.md +17 -0
  1472. package/src/components/Checkbox/index.module.less +93 -0
  1473. package/src/components/Checkbox/index.tsx +35 -0
  1474. package/src/components/CodeMirror/index.md +17 -0
  1475. package/src/components/CodeMirror/index.module.less +36 -0
  1476. package/src/components/CodeMirror/index.tsx +171 -0
  1477. package/src/components/CodeMirror/linters/errorTranslator.ts +166 -0
  1478. package/src/components/CodeMirror/linters/jsonLinter.ts +122 -0
  1479. package/src/components/CodeMirror/linters/sqlLinter.ts +226 -0
  1480. package/src/components/Copy/index.md +42 -0
  1481. package/src/components/Copy/index.module.less +44 -0
  1482. package/src/components/Copy/index.tsx +140 -0
  1483. package/src/components/DatePicker/RangePicker/index.module.less +47 -0
  1484. package/src/components/DatePicker/RangePicker/index.tsx +214 -0
  1485. package/src/components/DatePicker/StepPicker/index.module.less +27 -0
  1486. package/src/components/DatePicker/StepPicker/index.tsx +101 -0
  1487. package/src/components/DatePicker/defaultModalPickerGetPopupContainer.ts +7 -0
  1488. package/src/components/DatePicker/index.md +17 -0
  1489. package/src/components/DatePicker/index.module.less +39 -0
  1490. package/src/components/DatePicker/index.tsx +215 -0
  1491. package/src/components/Descriptions/index.md +17 -0
  1492. package/src/components/Descriptions/index.module.less +16 -0
  1493. package/src/components/Descriptions/index.tsx +160 -0
  1494. package/src/components/Editor/index.md +17 -0
  1495. package/src/components/Editor/index.module.less +62 -0
  1496. package/src/components/Editor/index.tsx +103 -0
  1497. package/src/components/FileCol/index.md +17 -0
  1498. package/src/components/FileCol/index.module.less +23 -0
  1499. package/src/components/FileCol/index.tsx +61 -0
  1500. package/src/components/FilePreview/_components/BasePreview/index.module.less +80 -0
  1501. package/src/components/FilePreview/_components/ImagePreview/index.tsx +30 -0
  1502. package/src/components/FilePreview/_components/MarkdownPreview/index.tsx +31 -0
  1503. package/src/components/FilePreview/_components/PdfPreview/index.module.less +191 -0
  1504. package/src/components/FilePreview/_components/PdfPreview/index.tsx +260 -0
  1505. package/src/components/FilePreview/_components/TextPreview/index.tsx +31 -0
  1506. package/src/components/FilePreview/_components/VideoPreview/index.tsx +30 -0
  1507. package/src/components/FilePreview/_components/XlsxPreview/index.tsx +40 -0
  1508. package/src/components/FilePreview/_hooks/index.ts +2 -0
  1509. package/src/components/FilePreview/_hooks/useXlsxData.ts +27 -0
  1510. package/src/components/FilePreview/_utils/index.ts +2 -0
  1511. package/src/components/FilePreview/_utils/types.ts +23 -0
  1512. package/src/components/FilePreview/index.md +17 -0
  1513. package/src/components/FilePreview/index.module.less +89 -0
  1514. package/src/components/FilePreview/index.tsx +92 -0
  1515. package/src/components/FlexFill/index.md +17 -0
  1516. package/src/components/FlexFill/index.tsx +38 -0
  1517. package/src/components/Form/DrawerForm/index.module.less +51 -0
  1518. package/src/components/Form/DrawerForm/index.tsx +135 -0
  1519. package/src/components/Form/ImportForm/index.module.less +10 -0
  1520. package/src/components/Form/ImportForm/index.tsx +129 -0
  1521. package/src/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.ts +78 -0
  1522. package/src/components/Form/ModalForm/_hooks/useColumnFormItems.ts +81 -0
  1523. package/src/components/Form/ModalForm/_hooks/useFormItems.ts +43 -0
  1524. package/src/components/Form/ModalForm/index.module.less +74 -0
  1525. package/src/components/Form/ModalForm/index.tsx +225 -0
  1526. package/src/components/Form/index.md +17 -0
  1527. package/src/components/Form/index.tsx +22 -0
  1528. package/src/components/FormItem/FormAuto/index.tsx +22 -0
  1529. package/src/components/FormItem/FormCheckbox/FormCheckboxGroup/index.module.less +2 -0
  1530. package/src/components/FormItem/FormCheckbox/FormCheckboxGroup/index.tsx +32 -0
  1531. package/src/components/FormItem/FormCheckbox/index.module.less +2 -0
  1532. package/src/components/FormItem/FormCheckbox/index.tsx +48 -0
  1533. package/src/components/FormItem/FormCodeMirror/index.tsx +92 -0
  1534. package/src/components/FormItem/FormDatePicker/FormRangePicker/index.tsx +33 -0
  1535. package/src/components/FormItem/FormDatePicker/FormStepPicker/index.tsx +33 -0
  1536. package/src/components/FormItem/FormDatePicker/index.module.less +3 -0
  1537. package/src/components/FormItem/FormDatePicker/index.tsx +44 -0
  1538. package/src/components/FormItem/FormEditor/index.tsx +27 -0
  1539. package/src/components/FormItem/FormInput/FormInputNumber/index.tsx +31 -0
  1540. package/src/components/FormItem/FormInput/FormPassword/index.tsx +33 -0
  1541. package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.less +54 -0
  1542. package/src/components/FormItem/FormInput/FormPasswordStrength/index.tsx +63 -0
  1543. package/src/components/FormItem/FormInput/FormRangeInput/index.tsx +35 -0
  1544. package/src/components/FormItem/FormInput/FormTextAreaInput/index.tsx +33 -0
  1545. package/src/components/FormItem/FormInput/index.tsx +64 -0
  1546. package/src/components/FormItem/FormRadio/index.module.less +106 -0
  1547. package/src/components/FormItem/FormRadio/index.tsx +40 -0
  1548. package/src/components/FormItem/FormSegmented/index.module.less +34 -0
  1549. package/src/components/FormItem/FormSegmented/index.tsx +33 -0
  1550. package/src/components/FormItem/FormSelect/FormAutoCompleteSelect/index.tsx +33 -0
  1551. package/src/components/FormItem/FormSelect/FormIconSelect/index.tsx +29 -0
  1552. package/src/components/FormItem/FormSelect/FormTreeSelect/index.tsx +30 -0
  1553. package/src/components/FormItem/FormSelect/index.tsx +51 -0
  1554. package/src/components/FormItem/FormSlider/index.module.less +15 -0
  1555. package/src/components/FormItem/FormSlider/index.tsx +91 -0
  1556. package/src/components/FormItem/FormSwitch/index.module.less +3 -0
  1557. package/src/components/FormItem/FormSwitch/index.tsx +32 -0
  1558. package/src/components/FormItem/FormText/index.module.less +9 -0
  1559. package/src/components/FormItem/FormText/index.tsx +95 -0
  1560. package/src/components/FormItem/FormTree/index.tsx +33 -0
  1561. package/src/components/FormItem/FormUpload/FormImage/index.tsx +169 -0
  1562. package/src/components/FormItem/FormUpload/index.module.less +142 -0
  1563. package/src/components/FormItem/FormUpload/index.tsx +210 -0
  1564. package/src/components/FormItem/ItemContainer/_hooks/useInputSize.ts +53 -0
  1565. package/src/components/FormItem/ItemContainer/_hooks/useLabelSize.ts +45 -0
  1566. package/src/components/FormItem/ItemContainer/index.module.less +387 -0
  1567. package/src/components/FormItem/ItemContainer/index.tsx +268 -0
  1568. package/src/components/FormItem/databaseTypeMapping.ts +312 -0
  1569. package/src/components/FormItem/index.md +17 -0
  1570. package/src/components/FormItem/index.tsx +387 -0
  1571. package/src/components/FormItem/rules.ts +100 -0
  1572. package/src/components/Icon/index.md +43 -0
  1573. package/src/components/Icon/index.module.less +8 -0
  1574. package/src/components/Icon/index.tsx +120 -0
  1575. package/src/components/Input/Number/index.module.less +78 -0
  1576. package/src/components/Input/Number/index.tsx +174 -0
  1577. package/src/components/Input/Password/index.module.less +15 -0
  1578. package/src/components/Input/Password/index.tsx +85 -0
  1579. package/src/components/Input/Range/index.module.less +97 -0
  1580. package/src/components/Input/Range/index.tsx +225 -0
  1581. package/src/components/Input/Search/index.module.less +22 -0
  1582. package/src/components/Input/Search/index.tsx +81 -0
  1583. package/src/components/Input/TextArea/index.module.less +130 -0
  1584. package/src/components/Input/TextArea/index.tsx +170 -0
  1585. package/src/components/Input/index.md +17 -0
  1586. package/src/components/Input/index.module.less +19 -0
  1587. package/src/components/Input/index.tsx +223 -0
  1588. package/src/components/Markdown/Editor/index.module.less +56 -0
  1589. package/src/components/Markdown/Editor/index.tsx +92 -0
  1590. package/src/components/Markdown/Views/ArtifactBlock.tsx +61 -0
  1591. package/src/components/Markdown/Views/MermaidBlock.tsx +71 -0
  1592. package/src/components/Markdown/Views/blocks.module.less +86 -0
  1593. package/src/components/Markdown/Views/index.module.less +73 -0
  1594. package/src/components/Markdown/Views/index.tsx +107 -0
  1595. package/src/components/Markdown/index.md +17 -0
  1596. package/src/components/Markdown/index.tsx +15 -0
  1597. package/src/components/Modal/_hooks/index.ts +3 -0
  1598. package/src/components/Modal/_hooks/useModalDrag.ts +78 -0
  1599. package/src/components/Modal/_hooks/useModalElements.ts +62 -0
  1600. package/src/components/Modal/_utils/calculatePosition.ts +34 -0
  1601. package/src/components/Modal/_utils/index.ts +2 -0
  1602. package/src/components/Modal/index.md +17 -0
  1603. package/src/components/Modal/index.module.less +90 -0
  1604. package/src/components/Modal/index.tsx +112 -0
  1605. package/src/components/Operate/_hooks/useOperateEllipsis.ts +25 -0
  1606. package/src/components/Operate/index.md +17 -0
  1607. package/src/components/Operate/index.module.less +60 -0
  1608. package/src/components/Operate/index.tsx +335 -0
  1609. package/src/components/Operate/more.png +0 -0
  1610. package/src/components/Panel/DefaultPanel/index.module.less +51 -0
  1611. package/src/components/Panel/DefaultPanel/index.tsx +73 -0
  1612. package/src/components/Panel/IframePanel/index.module.less +68 -0
  1613. package/src/components/Panel/IframePanel/index.tsx +51 -0
  1614. package/src/components/Panel/ListPanel/ListModalPanel/index.module.less +30 -0
  1615. package/src/components/Panel/ListPanel/ListModalPanel/index.tsx +233 -0
  1616. package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +55 -0
  1617. package/src/components/Panel/ListPanel/_components/ColumnMgt/index.tsx +388 -0
  1618. package/src/components/Panel/ListPanel/_components/ToolBar/index.module.less +83 -0
  1619. package/src/components/Panel/ListPanel/_components/ToolBar/index.tsx +107 -0
  1620. package/src/components/Panel/ListPanel/index.module.less +134 -0
  1621. package/src/components/Panel/ListPanel/index.tsx +466 -0
  1622. package/src/components/Panel/index.md +17 -0
  1623. package/src/components/Panel/index.tsx +19 -0
  1624. package/src/components/Search/SearchAdvanced/index.module.less +3 -0
  1625. package/src/components/Search/SearchAdvanced/index.tsx +196 -0
  1626. package/src/components/Search/SearchCard/_components/CollapseToggle/index.tsx +28 -0
  1627. package/src/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.tsx +94 -0
  1628. package/src/components/Search/SearchCard/_components/OptionRow/Item/index.tsx +182 -0
  1629. package/src/components/Search/SearchCard/_components/OptionRow/index.tsx +204 -0
  1630. package/src/components/Search/SearchCard/_components/SearchBox/index.tsx +34 -0
  1631. package/src/components/Search/SearchCard/_hooks/index.ts +4 -0
  1632. package/src/components/Search/SearchCard/_hooks/useSearchCardCollapse.ts +25 -0
  1633. package/src/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.ts +175 -0
  1634. package/src/components/Search/SearchCard/_hooks/useSearchCardValue.ts +63 -0
  1635. package/src/components/Search/SearchCard/_utils/getRealValues.ts +31 -0
  1636. package/src/components/Search/SearchCard/_utils/hasSelectedChildren.ts +21 -0
  1637. package/src/components/Search/SearchCard/_utils/index.ts +9 -0
  1638. package/src/components/Search/SearchCard/_utils/typeGuards.ts +15 -0
  1639. package/src/components/Search/SearchCard/_utils/updateRealValue.ts +62 -0
  1640. package/src/components/Search/SearchCard/index.module.less +295 -0
  1641. package/src/components/Search/SearchCard/index.tsx +123 -0
  1642. package/src/components/Search/SearchCollapsible/index.module.less +3 -0
  1643. package/src/components/Search/SearchCollapsible/index.tsx +206 -0
  1644. package/src/components/Search/SearchWithFilter/index.module.less +3 -0
  1645. package/src/components/Search/SearchWithFilter/index.tsx +183 -0
  1646. package/src/components/Search/SearchWithMore/index.module.less +3 -0
  1647. package/src/components/Search/SearchWithMore/index.tsx +185 -0
  1648. package/src/components/Search/_components/AdvancedFiltersDrawer/index.tsx +87 -0
  1649. package/src/components/Search/_components/ButtonGroup/index.tsx +64 -0
  1650. package/src/components/Search/_components/CollapseToggle/index.tsx +28 -0
  1651. package/src/components/Search/_components/ExpandButton/index.tsx +51 -0
  1652. package/src/components/Search/_components/FilterDropdown/index.tsx +132 -0
  1653. package/src/components/Search/_components/SearchButtons/index.tsx +41 -0
  1654. package/src/components/Search/_hooks/index.ts +6 -0
  1655. package/src/components/Search/_hooks/useAdaptiveColumnNum.ts +115 -0
  1656. package/src/components/Search/_hooks/useSearchCommon.ts +337 -0
  1657. package/src/components/Search/_hooks/useSearchExpand.ts +198 -0
  1658. package/src/components/Search/_hooks/useSearchForm.ts +21 -0
  1659. package/src/components/Search/_hooks/useSearchItems.ts +53 -0
  1660. package/src/components/Search/_types/index.ts +53 -0
  1661. package/src/components/Search/_utils/calculateButtonGroupAndColumnWidth.ts +68 -0
  1662. package/src/components/Search/_utils/calculateVisibleItems.ts +51 -0
  1663. package/src/components/Search/_utils/cleanSearchData.ts +21 -0
  1664. package/src/components/Search/_utils/index.ts +4 -0
  1665. package/src/components/Search/bottomLine.png +0 -0
  1666. package/src/components/Search/index.md +17 -0
  1667. package/src/components/Search/index.module.less +185 -0
  1668. package/src/components/Search/index.tsx +199 -0
  1669. package/src/components/SecondConf/index.md +17 -0
  1670. package/src/components/SecondConf/index.module.less +36 -0
  1671. package/src/components/SecondConf/index.tsx +37 -0
  1672. package/src/components/Select/AutoCompleteSelect/index.module.less +315 -0
  1673. package/src/components/Select/AutoCompleteSelect/index.tsx +244 -0
  1674. package/src/components/Select/IconSelect/index.module.less +66 -0
  1675. package/src/components/Select/IconSelect/index.tsx +145 -0
  1676. package/src/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.ts +32 -0
  1677. package/src/components/Select/TreeSelect/_utils/index.ts +8 -0
  1678. package/src/components/Select/TreeSelect/_utils/treeExpandedKeysState.ts +39 -0
  1679. package/src/components/Select/TreeSelect/index.module.less +126 -0
  1680. package/src/components/Select/TreeSelect/index.tsx +233 -0
  1681. package/src/components/Select/_components/Prefix/index.tsx +15 -0
  1682. package/src/components/Select/_components/Suffix/index.tsx +15 -0
  1683. package/src/components/Select/_hooks/index.ts +4 -0
  1684. package/src/components/Select/_hooks/useSelectComposition.ts +36 -0
  1685. package/src/components/Select/_hooks/useSelectInputOptions.ts +38 -0
  1686. package/src/components/Select/_hooks/useSelectPopupPosition.ts +61 -0
  1687. package/src/components/Select/_utils/calculatePopupWidth.ts +37 -0
  1688. package/src/components/Select/_utils/filterOption.ts +41 -0
  1689. package/src/components/Select/_utils/getElementPosition.ts +16 -0
  1690. package/src/components/Select/_utils/index.ts +4 -0
  1691. package/src/components/Select/index.md +17 -0
  1692. package/src/components/Select/index.module.less +320 -0
  1693. package/src/components/Select/index.tsx +266 -0
  1694. package/src/components/Slider/index.md +17 -0
  1695. package/src/components/Slider/index.module.less +66 -0
  1696. package/src/components/Slider/index.tsx +43 -0
  1697. package/src/components/Spreadsheet/index.md +17 -0
  1698. package/src/components/Spreadsheet/index.module.less +29 -0
  1699. package/src/components/Spreadsheet/index.tsx +64 -0
  1700. package/src/components/Spreadsheet/xlsxspread.ts +179 -0
  1701. package/src/components/Switch/index.md +17 -0
  1702. package/src/components/Switch/index.tsx +36 -0
  1703. package/src/components/TabBar/index.md +17 -0
  1704. package/src/components/TabBar/index.module.less +114 -0
  1705. package/src/components/TabBar/index.tsx +86 -0
  1706. package/src/components/Table/_components/Drag/index.tsx +118 -0
  1707. package/src/components/Table/_components/Pagination/index.module.less +199 -0
  1708. package/src/components/Table/_components/Pagination/index.tsx +149 -0
  1709. package/src/components/Table/_hooks/useAutoScrolling.ts +579 -0
  1710. package/src/components/Table/_hooks/useEllipsisTooltip.ts +59 -0
  1711. package/src/components/Table/_hooks/useHideHeaderScrollbar.ts +89 -0
  1712. package/src/components/Table/_hooks/usePaginationSync.ts +41 -0
  1713. package/src/components/Table/_hooks/useScrollEnd.ts +98 -0
  1714. package/src/components/Table/_hooks/useSetTableHeight.ts +110 -0
  1715. package/src/components/Table/_hooks/useTableColumns.tsx +372 -0
  1716. package/src/components/Table/_hooks/useTablePagination.ts +125 -0
  1717. package/src/components/Table/_utils/tableUtils.ts +43 -0
  1718. package/src/components/Table/index.md +17 -0
  1719. package/src/components/Table/index.module.less +361 -0
  1720. package/src/components/Table/index.tsx +335 -0
  1721. package/src/components/Tags/_components/EllipsisTag/index.module.less +18 -0
  1722. package/src/components/Tags/_components/EllipsisTag/index.tsx +54 -0
  1723. package/src/components/Tags/_components/MeasureContainer/index.module.less +15 -0
  1724. package/src/components/Tags/_components/MeasureContainer/index.tsx +37 -0
  1725. package/src/components/Tags/_hooks/index.ts +1 -0
  1726. package/src/components/Tags/_hooks/useVisibleTags.ts +101 -0
  1727. package/src/components/Tags/_utils/calculateVisibleCount.ts +47 -0
  1728. package/src/components/Tags/_utils/getTagColor.ts +15 -0
  1729. package/src/components/Tags/_utils/index.ts +2 -0
  1730. package/src/components/Tags/index.md +17 -0
  1731. package/src/components/Tags/index.module.less +33 -0
  1732. package/src/components/Tags/index.tsx +80 -0
  1733. package/src/components/TextEllipsis/index.md +17 -0
  1734. package/src/components/TextEllipsis/index.module.less +28 -0
  1735. package/src/components/TextEllipsis/index.tsx +203 -0
  1736. package/src/components/Tree/_components/TitleSearchBar/index.tsx +71 -0
  1737. package/src/components/Tree/_hooks/useClearNodeTitle.ts +46 -0
  1738. package/src/components/Tree/_hooks/useTreeCheck.ts +39 -0
  1739. package/src/components/Tree/_hooks/useTreeSearch.ts +77 -0
  1740. package/src/components/Tree/_hooks/useTreeState.ts +91 -0
  1741. package/src/components/Tree/_utils/index.ts +170 -0
  1742. package/src/components/Tree/_utils/normalizeCheckedKeys.ts +74 -0
  1743. package/src/components/Tree/index.md +17 -0
  1744. package/src/components/Tree/index.module.less +142 -0
  1745. package/src/components/Tree/index.tsx +308 -0
  1746. package/src/components/Upload/_components/UploadedItem/index.tsx +139 -0
  1747. package/src/components/Upload/_components/UploadingItem/index.tsx +68 -0
  1748. package/src/components/Upload/_hooks/index.ts +4 -0
  1749. package/src/components/Upload/_hooks/useUploadFileList.ts +79 -0
  1750. package/src/components/Upload/_hooks/useUploadOperations.ts +77 -0
  1751. package/src/components/Upload/_hooks/useUploadPreview.ts +20 -0
  1752. package/src/components/Upload/_utils/chunkUpload.ts +179 -0
  1753. package/src/components/Upload/_utils/createFormData.ts +19 -0
  1754. package/src/components/Upload/_utils/extractFileUrl.ts +20 -0
  1755. package/src/components/Upload/_utils/index.ts +8 -0
  1756. package/src/components/Upload/_utils/isSuccessResponse.ts +11 -0
  1757. package/src/components/Upload/_utils/normalUpload.ts +94 -0
  1758. package/src/components/Upload/_utils/toMB.ts +7 -0
  1759. package/src/components/Upload/_utils/validateFile.ts +45 -0
  1760. package/src/components/Upload/index.md +17 -0
  1761. package/src/components/Upload/index.module.less +74 -0
  1762. package/src/components/Upload/index.tsx +306 -0
  1763. package/src/config-provider/index.tsx +41 -0
  1764. package/src/hooks/index.ts +2 -0
  1765. package/src/hooks/useLabelWidth.ts +92 -0
  1766. package/src/hooks/usePermissions.ts +48 -0
  1767. package/src/index.ts +88 -0
  1768. package/src/request/ResType.ts +22 -0
  1769. package/src/request/index.ts +51 -0
  1770. package/src/styles/antd-overload.less +133 -0
  1771. package/src/styles/utils.less +88 -0
  1772. package/src/styles/variables.global.less +1 -0
  1773. package/src/typings.d.ts +42 -0
  1774. package/src/utils/cssSupports.ts +28 -0
  1775. package/src/utils/getUUID.ts +10 -0
  1776. package/src/utils/index.ts +5 -0
@@ -0,0 +1,170 @@
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 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React from "react";
14
+ import { Form as AntdForm } from "antd";
15
+ import FormItem from "../../FormItem";
16
+ import classNames from "classnames";
17
+ import styles from "../index.module.less";
18
+ import { useSearchCommon } from "../_hooks";
19
+ import { ButtonGroup } from "../_components/ButtonGroup";
20
+ import { SearchButtons } from "../_components/SearchButtons";
21
+ import { FilterDropdown } from "../_components/FilterDropdown";
22
+ import { ExpandButton } from "../_components/ExpandButton";
23
+ import { AdvancedFiltersDrawer } from "../_components/AdvancedFiltersDrawer";
24
+ import { createElement as _createElement } from "react";
25
+ import { jsx as _jsx } from "react/jsx-runtime";
26
+ import { jsxs as _jsxs } from "react/jsx-runtime";
27
+ import { Fragment as _Fragment } from "react/jsx-runtime";
28
+ /**
29
+ * 高级筛选模式的 Search 组件
30
+ * - 不显示标签(label)
31
+ * - 使用抽屉形式展示更多筛选项
32
+ * - 更适合复杂的筛选场景
33
+ */
34
+ var SearchAdvanced = function SearchAdvanced(props) {
35
+ var _props$searchItems = props.searchItems,
36
+ searchItems = _props$searchItems === void 0 ? [] : _props$searchItems,
37
+ _props$moreSearchItem = props.moreSearchItems,
38
+ moreSearchItems = _props$moreSearchItem === void 0 ? [] : _props$moreSearchItem,
39
+ className = props.className,
40
+ onSearch = props.onSearch,
41
+ onReset = props.onReset,
42
+ externalForm = props.externalForm,
43
+ hasPermi = props.hasPermi,
44
+ _props$columnNum = props.columnNum,
45
+ columnNum = _props$columnNum === void 0 ? 4 : _props$columnNum,
46
+ beforeButtonGroup = props.beforeButtonGroup,
47
+ affterButtonGroup = props.affterButtonGroup,
48
+ searchData = props.searchData,
49
+ advancedFiltersProps = props.advancedFiltersProps,
50
+ setFilter = props.setFilter,
51
+ minLabelWidth = props.minLabelWidth,
52
+ _props$defaultExpande = props.defaultExpanded,
53
+ defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande,
54
+ onExpandChange = props.onExpandChange,
55
+ _props$autoAdaptWidth = props.autoAdaptWidth,
56
+ autoAdaptWidth = _props$autoAdaptWidth === void 0 ? true : _props$autoAdaptWidth,
57
+ baseWidth = props.baseWidth,
58
+ onValuesChange = props.onValuesChange,
59
+ _props$searchDisabled = props.searchDisabled,
60
+ searchDisabled = _props$searchDisabled === void 0 ? false : _props$searchDisabled,
61
+ _props$showAllSearchI = props.showAllSearchItems,
62
+ showAllSearchItems = _props$showAllSearchI === void 0 ? false : _props$showAllSearchI,
63
+ searchText = props.searchText,
64
+ resetText = props.resetText,
65
+ onFilterChange = props.onFilterChange,
66
+ _props$columnOffsetWi = props.columnOffsetWidth,
67
+ columnOffsetWidth = _props$columnOffsetWi === void 0 ? 0 : _props$columnOffsetWi;
68
+ var _AntdForm$useForm = AntdForm.useForm(externalForm),
69
+ _AntdForm$useForm2 = _slicedToArray(_AntdForm$useForm, 1),
70
+ form = _AntdForm$useForm2[0];
71
+ var _useSearchCommon = useSearchCommon({
72
+ form: form,
73
+ searchItems: searchItems,
74
+ moreSearchItems: moreSearchItems,
75
+ searchData: searchData,
76
+ hasPermi: hasPermi,
77
+ beforeButtonGroup: beforeButtonGroup,
78
+ affterButtonGroup: affterButtonGroup,
79
+ columnNum: columnNum,
80
+ autoAdaptWidth: autoAdaptWidth,
81
+ defaultExpanded: defaultExpanded,
82
+ onExpandChange: onExpandChange,
83
+ showAllSearchItems: showAllSearchItems,
84
+ minLabelWidth: minLabelWidth,
85
+ baseWidth: baseWidth,
86
+ onSearch: onSearch,
87
+ onReset: onReset,
88
+ columnOffsetWidth: columnOffsetWidth
89
+ }),
90
+ containerRef = _useSearchCommon.containerRef,
91
+ buttonGroupRef = _useSearchCommon.buttonGroupRef,
92
+ cls = _useSearchCommon.cls,
93
+ getLabelWidth = _useSearchCommon.getLabelWidth,
94
+ processedSearchItems = _useSearchCommon.processedSearchItems,
95
+ setSearchItems = _useSearchCommon.setSearchItems,
96
+ currentSearchItems = _useSearchCommon.currentSearchItems,
97
+ totalColumnNum = _useSearchCommon.totalColumnNum,
98
+ expand = _useSearchCommon.expand,
99
+ setExpand = _useSearchCommon.setExpand,
100
+ toggleExpand = _useSearchCommon.toggleExpand,
101
+ showExpandButton = _useSearchCommon.showExpandButton,
102
+ onSearchClick = _useSearchCommon.onSearchClick,
103
+ onResetClick = _useSearchCommon.onResetClick,
104
+ shouldRender = _useSearchCommon.shouldRender,
105
+ permitted = _useSearchCommon.permitted;
106
+ if (!shouldRender) {
107
+ return null;
108
+ }
109
+ return /*#__PURE__*/_jsxs(_Fragment, {
110
+ children: [/*#__PURE__*/_jsx("div", {
111
+ ref: containerRef,
112
+ className: classNames(styles.Search, className, _defineProperty({}, styles.advancedFilters, true)),
113
+ style: {
114
+ "--column-number": totalColumnNum,
115
+ "--column-offset-width": "".concat(columnOffsetWidth, "px")
116
+ },
117
+ children: /*#__PURE__*/_jsx("div", {
118
+ className: classNames(styles.searchOption, styles[expand.toString()]),
119
+ children: /*#__PURE__*/_jsxs(AntdForm, {
120
+ form: form,
121
+ className: classNames(styles.option, cls),
122
+ onValuesChange: onValuesChange,
123
+ children: [permitted && (currentSearchItems === null || currentSearchItems === void 0 ? void 0 : currentSearchItems.map(function (item) {
124
+ return /*#__PURE__*/_createElement(FormItem, _objectSpread(_objectSpread({}, item), {}, {
125
+ key: item.name,
126
+ className: classNames(styles.item, item.className, _defineProperty({}, styles.unFill, item.width !== undefined)),
127
+ label: undefined,
128
+ labelWidth: undefined
129
+ }));
130
+ })), ((beforeButtonGroup === null || beforeButtonGroup === void 0 ? void 0 : beforeButtonGroup.length) || (affterButtonGroup === null || affterButtonGroup === void 0 ? void 0 : affterButtonGroup.length) || permitted) && /*#__PURE__*/_jsxs(ButtonGroup, {
131
+ beforeButtonGroup: beforeButtonGroup,
132
+ affterButtonGroup: affterButtonGroup,
133
+ expandButton: /*#__PURE__*/_jsx(ExpandButton, {
134
+ expand: expand,
135
+ toggleExpand: toggleExpand,
136
+ advancedFilters: true,
137
+ showExpandButton: showExpandButton,
138
+ showAllSearchItems: showAllSearchItems || !!(moreSearchItems !== null && moreSearchItems !== void 0 && moreSearchItems.length)
139
+ }),
140
+ permitted: permitted,
141
+ ref: buttonGroupRef,
142
+ children: [currentSearchItems.length > 0 && /*#__PURE__*/_jsx(SearchButtons, {
143
+ onSearch: onSearchClick,
144
+ onReset: onResetClick,
145
+ searchDisabled: searchDisabled,
146
+ searchText: searchText,
147
+ resetText: resetText
148
+ }), setFilter && /*#__PURE__*/_jsx(FilterDropdown, {
149
+ searchItems: processedSearchItems,
150
+ originalSearchItems: searchItems,
151
+ setSearchItems: setSearchItems,
152
+ onFilterChange: onFilterChange
153
+ })]
154
+ })]
155
+ })
156
+ })
157
+ }), permitted && setExpand && /*#__PURE__*/_jsx(AdvancedFiltersDrawer, {
158
+ expand: expand,
159
+ setExpand: setExpand,
160
+ searchItems: processedSearchItems,
161
+ form: form,
162
+ getLabelWidth: getLabelWidth,
163
+ minLabelWidth: minLabelWidth,
164
+ onSearchClick: onSearchClick,
165
+ onResetClick: onResetClick,
166
+ advancedFiltersProps: advancedFiltersProps
167
+ })]
168
+ });
169
+ };
170
+ export default SearchAdvanced;
@@ -0,0 +1,3 @@
1
+ // SearchAdvanced 组件的独立样式
2
+ // 目前复用父级 Search 组件的样式,如需自定义可在此处添加
3
+
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface CollapseToggleProps {
3
+ collapse: boolean;
4
+ onToggle: () => void;
5
+ }
6
+ export declare const CollapseToggle: React.FC<CollapseToggleProps>;
7
+ export {};
@@ -0,0 +1,26 @@
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 _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; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ 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); }
5
+ import React from "react";
6
+ import Icon from "../../../../Icon";
7
+ import classNames from "classnames";
8
+ import styles from "../../index.module.less";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export var CollapseToggle = function CollapseToggle(_ref) {
11
+ var collapse = _ref.collapse,
12
+ onToggle = _ref.onToggle;
13
+ return /*#__PURE__*/_jsx("div", {
14
+ className: styles.collapseExpand,
15
+ children: /*#__PURE__*/_jsx("span", {
16
+ onClick: onToggle,
17
+ children: /*#__PURE__*/_jsx(Icon, {
18
+ icon: "mingcute:up-line",
19
+ className: classNames(styles.collapseExpandIcon, _defineProperty({}, styles.collapsed, collapse)),
20
+ style: collapse ? {
21
+ transform: "rotate(180deg)"
22
+ } : undefined
23
+ })
24
+ })
25
+ });
26
+ };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { ElementItem, SearchCardOption } from "..";
3
+ interface ChildrenItemsProps {
4
+ parentItem: ElementItem;
5
+ option: SearchCardOption;
6
+ value: Record<string, unknown>;
7
+ setValue: (data: Record<string, unknown>) => void;
8
+ }
9
+ export declare const ChildrenItems: React.FC<ChildrenItemsProps>;
10
+ export {};
@@ -0,0 +1,74 @@
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 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ import React, { useMemo, useCallback, memo } from "react";
14
+ import { array_is_includes, Equal } from "hsu-utils";
15
+ import classNames from "classnames";
16
+ import { updateRealValue } from "../../../_utils";
17
+ import styles from "../../../index.module.less";
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ export var ChildrenItems = /*#__PURE__*/memo(function (props) {
20
+ var _parentItem$children;
21
+ var parentItem = props.parentItem,
22
+ option = props.option,
23
+ value = props.value,
24
+ setValue = props.setValue;
25
+
26
+ // 子项的名称,默认使用父项的name加上Children后缀
27
+ var childrenName = useMemo(function () {
28
+ return "".concat(parentItem.name || option.name, "Children");
29
+ }, [parentItem.name, option.name]);
30
+
31
+ // 判断子项是否支持多选
32
+ var isChildrenMultiple = !!parentItem.childrenMultiple;
33
+
34
+ // 优化:缓存子项点击处理函数
35
+ var createChildClickHandler = useCallback(function (childItem) {
36
+ return function () {
37
+ if (isChildrenMultiple) {
38
+ // 多选模式:可以同时选择多个子项
39
+ var currentValue = value[childrenName] || [];
40
+ var newValues = array_is_includes(currentValue, [childItem.value]) ? currentValue.filter(function (v) {
41
+ return !Equal.ValEqual(v, childItem.value);
42
+ }) : [].concat(_toConsumableArray(currentValue), [childItem.value]);
43
+ var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, childrenName, newValues));
44
+
45
+ // 更新真实返回值
46
+ updateRealValue(value, option.name, newValue);
47
+ setValue(newValue);
48
+ } else {
49
+ // 单选模式:一次只能选一个子项
50
+ var _newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, childrenName, Equal.ValEqual(childItem.value, value[childrenName]) ? "" : childItem.value));
51
+
52
+ // 更新真实返回值
53
+ updateRealValue(value, option.name, _newValue);
54
+ setValue(_newValue);
55
+ }
56
+ };
57
+ }, [isChildrenMultiple, value, childrenName, option.name, setValue]);
58
+ if (!parentItem.children || parentItem.children.length === 0) {
59
+ return null;
60
+ }
61
+ return /*#__PURE__*/_jsx("div", {
62
+ className: styles.childrenItems,
63
+ children: (_parentItem$children = parentItem.children) === null || _parentItem$children === void 0 ? void 0 : _parentItem$children.map(function (childItem) {
64
+ // 判断子项是否被选中
65
+ var isChildSelected = isChildrenMultiple ? array_is_includes(value[childrenName] || [], [childItem.value]) : (value === null || value === void 0 ? void 0 : value[childrenName]) === childItem.value;
66
+ return /*#__PURE__*/_jsx("span", {
67
+ className: classNames(_defineProperty({}, styles.active, isChildSelected)),
68
+ onClick: createChildClickHandler(childItem),
69
+ children: childItem.label
70
+ }, String(childItem.value));
71
+ })
72
+ });
73
+ });
74
+ ChildrenItems.displayName = "ChildrenItems";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { ElementItem, SearchCardOption } from "..";
3
+ interface ItemProps {
4
+ item: ElementItem;
5
+ idx: number;
6
+ option: SearchCardOption;
7
+ value: Record<string, unknown>;
8
+ setValue: (data: Record<string, unknown>) => void;
9
+ }
10
+ export declare const Item: React.FC<ItemProps>;
11
+ export {};
@@ -0,0 +1,151 @@
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 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
10
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
+ import React, { useState, useMemo, useCallback, memo } from "react";
18
+ import { array_is_includes, Equal } from "hsu-utils";
19
+ import classNames from "classnames";
20
+ import { Tooltip } from "antd";
21
+ import Icon from "../../../../../Icon";
22
+ import { updateRealValue } from "../../../_utils";
23
+ import styles from "../../../index.module.less";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx } from "react/jsx-runtime";
26
+ export var Item = /*#__PURE__*/memo(function (props) {
27
+ var item = props.item,
28
+ idx = props.idx,
29
+ option = props.option,
30
+ value = props.value,
31
+ setValue = props.setValue;
32
+ var _useState = useState(undefined),
33
+ _useState2 = _slicedToArray(_useState, 2),
34
+ lastElementValue = _useState2[0],
35
+ setLastElementValue = _useState2[1];
36
+
37
+ // 优化:缓存激活状态计算
38
+ var isActive = useMemo(function () {
39
+ return option.multiple ? array_is_includes(value[option.name] || [], [item.value]) : (value === null || value === void 0 ? void 0 : value[option.name]) === item.value;
40
+ }, [option.multiple, option.name, value, item.value]);
41
+
42
+ // 优化:缓存点击处理函数
43
+ var handleClick = useCallback(function () {
44
+ try {
45
+ if (option.multiple) {
46
+ var currentValue = value[option.name] || [];
47
+ // 检查是否之前已选中
48
+ var wasSelected = array_is_includes(currentValue, [item.value]);
49
+ var newValues = wasSelected ? currentValue.filter(function (v) {
50
+ return !Equal.ValEqual(v, item.value);
51
+ }) : [].concat(_toConsumableArray(currentValue), [item.value]);
52
+
53
+ // 准备新的值对象
54
+ var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, option.name, newValues));
55
+
56
+ // 如果取消选中且有子项,清除子项的选择
57
+ var hasChildren = item.children && item.children.length > 0;
58
+ if (wasSelected && hasChildren) {
59
+ var childrenName = "".concat(item.name || option.name, "Children");
60
+ newValue[childrenName] = item.childrenMultiple ? [] : "";
61
+ }
62
+
63
+ // 更新真实返回值
64
+ updateRealValue(value, option.name, newValue);
65
+ setValue(newValue);
66
+ } else {
67
+ // 检查是否之前已选中
68
+ var _wasSelected = Equal.ValEqual(item.value, value[option.name]);
69
+
70
+ // 准备新的值对象
71
+ var _newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, option.name, _wasSelected ? "" : item.value));
72
+
73
+ // 清除所有子项的选择状态
74
+ if (!_wasSelected) {
75
+ var _option$items;
76
+ // 清除所有子项选择状态
77
+ (_option$items = option.items) === null || _option$items === void 0 || _option$items.forEach(function (parentItem) {
78
+ if (parentItem.children && parentItem.children.length > 0) {
79
+ var parentChildrenName = "".concat(parentItem.name || option.name, "Children");
80
+ _newValue[parentChildrenName] = parentItem.childrenMultiple ? [] : "";
81
+ }
82
+ });
83
+ }
84
+
85
+ // 更新真实返回值
86
+ updateRealValue(value, option.name, _newValue);
87
+ setValue(_newValue);
88
+ }
89
+ } catch (_unused) {
90
+ void 0;
91
+ }
92
+ }, [item, option, value, setValue]);
93
+ if (item !== null && item !== void 0 && item.element) {
94
+ var label = item.label,
95
+ name = item.name;
96
+ var element = item.element;
97
+ element = _objectSpread(_objectSpread({}, element), {}, {
98
+ props: _objectSpread(_objectSpread({}, element.props), {}, {
99
+ value: option.multiple ? array_is_includes(value[name !== null && name !== void 0 ? name : option.name] || [], [lastElementValue]) ? lastElementValue : undefined : Equal.ValEqual(lastElementValue, value[name !== null && name !== void 0 ? name : option.name]) ? value[name !== null && name !== void 0 ? name : option.name] : undefined,
100
+ onChange: function onChange(e) {
101
+ if (option.multiple) {
102
+ var currentValue = (value[name !== null && name !== void 0 ? name : option.name] || []).filter(function (v) {
103
+ return !Equal.ValEqual(v, lastElementValue);
104
+ });
105
+ var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, name !== null && name !== void 0 ? name : option.name, e ? [].concat(_toConsumableArray(currentValue), [e]) : currentValue));
106
+
107
+ // 更新真实返回值
108
+ updateRealValue(value, option.name, newValue);
109
+ setValue(newValue);
110
+ setLastElementValue(e);
111
+ } else {
112
+ var _newValue2 = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, name !== null && name !== void 0 ? name : option.name, e !== null && e !== void 0 ? e : ""));
113
+
114
+ // 更新真实返回值
115
+ updateRealValue(value, option.name, _newValue2);
116
+ setValue(_newValue2);
117
+ setLastElementValue(e);
118
+ }
119
+ }
120
+ })
121
+ });
122
+ return /*#__PURE__*/_jsxs("div", {
123
+ className: classNames(styles.item, styles.elementItem),
124
+ children: [!!label && /*#__PURE__*/_jsxs("span", {
125
+ className: styles.label,
126
+ children: [label, "\uFF1A"]
127
+ }), element, item.help && /*#__PURE__*/_jsx(Tooltip, {
128
+ title: item.help,
129
+ children: /*#__PURE__*/_jsx(Icon, {
130
+ icon: "material-symbols:help-outline",
131
+ className: styles.help
132
+ })
133
+ })]
134
+ }, idx);
135
+ }
136
+ if (!(item !== null && item !== void 0 && item.element)) {
137
+ return /*#__PURE__*/_jsxs("span", {
138
+ className: classNames(_defineProperty({}, styles.active, isActive)),
139
+ onClick: handleClick,
140
+ children: [item.label, item.help && /*#__PURE__*/_jsx(Tooltip, {
141
+ title: item.help,
142
+ children: /*#__PURE__*/_jsx(Icon, {
143
+ icon: "material-symbols:help-outline",
144
+ className: styles.help
145
+ })
146
+ })]
147
+ }, String(item.value));
148
+ }
149
+ return null;
150
+ });
151
+ Item.displayName = "Item";
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ export interface ElementItem {
3
+ element?: React.ReactElement;
4
+ label?: string;
5
+ value?: string | number | boolean;
6
+ name?: string;
7
+ children?: ElementItem[];
8
+ childrenMultiple?: boolean;
9
+ help?: string;
10
+ }
11
+ export interface SearchCardOption {
12
+ label?: string;
13
+ name: string;
14
+ items: ElementItem[];
15
+ hideAll?: boolean;
16
+ multiple?: boolean;
17
+ }
18
+ export interface Font {
19
+ family?: string;
20
+ size?: number;
21
+ weight?: string;
22
+ }
23
+ interface OptionRowProps {
24
+ option: SearchCardOption;
25
+ value: Record<string, unknown>;
26
+ setValue: (data: Record<string, unknown>) => void;
27
+ font?: Font;
28
+ padding?: number;
29
+ gap?: number;
30
+ legacyHasSelector?: boolean;
31
+ }
32
+ declare const OptionRow: React.FC<OptionRowProps>;
33
+ export default OptionRow;
@@ -0,0 +1,149 @@
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 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { useRef, useEffect, useState, useMemo, useCallback, memo } from "react";
14
+ import { array_is_includes } from "hsu-utils";
15
+ import classNames from "classnames";
16
+ import Icon from "../../../../Icon";
17
+ import { useSearchCardMoreOptions } from "../../_hooks";
18
+ import { Item } from "./Item";
19
+ import { ChildrenItems } from "./ChildrenItems";
20
+ import styles from "../../index.module.less";
21
+ import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ var OptionRow = /*#__PURE__*/memo(function (props) {
24
+ var _option$items3;
25
+ var option = props.option,
26
+ value = props.value,
27
+ setValue = props.setValue,
28
+ _props$font = props.font,
29
+ font = _props$font === void 0 ? {
30
+ family: "PingFangSC-Regular, PingFang SC",
31
+ size: 14,
32
+ weight: "400"
33
+ } : _props$font,
34
+ _props$padding = props.padding,
35
+ padding = _props$padding === void 0 ? 8 : _props$padding,
36
+ _props$gap = props.gap,
37
+ gap = _props$gap === void 0 ? 8 : _props$gap,
38
+ _props$legacyHasSelec = props.legacyHasSelector,
39
+ legacyHasSelector = _props$legacyHasSelec === void 0 ? false : _props$legacyHasSelec;
40
+ var optionRef = useRef(null);
41
+ var labelRef = useRef(null);
42
+ var _useState = useState(0),
43
+ _useState2 = _slicedToArray(_useState, 2),
44
+ labelWidth = _useState2[0],
45
+ setLabelWidth = _useState2[1];
46
+
47
+ // 测量标签宽度
48
+ useEffect(function () {
49
+ if (labelRef.current) {
50
+ var width = labelRef.current.offsetWidth;
51
+ setLabelWidth(width);
52
+ }
53
+ }, [option.label]);
54
+ var _useSearchCardMoreOpt = useSearchCardMoreOptions(optionRef, [option], font, padding, gap),
55
+ showMore = _useSearchCardMoreOpt.showMore,
56
+ setShowMore = _useSearchCardMoreOpt.setShowMore;
57
+
58
+ // 优化:缓存过滤后的子项
59
+ var filteredChildrenItems = useMemo(function () {
60
+ return option.items.filter(function (item) {
61
+ return (
62
+ // 过滤条件:1. 有子项 2. 父项被选中
63
+ item.children && item.children.length > 0 && (option.multiple ? array_is_includes(value[option.name] || [], [item.value]) : (value === null || value === void 0 ? void 0 : value[option.name]) === item.value)
64
+ );
65
+ });
66
+ }, [option.items, option.multiple, option.name, value]);
67
+
68
+ // 优化:缓存"全部"按钮点击处理函数
69
+ var handleAllClick = useCallback(function () {
70
+ var _option$items;
71
+ var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, option.name, ""));
72
+
73
+ // 清除所有子项的选择
74
+ (_option$items = option.items) === null || _option$items === void 0 || _option$items.forEach(function (parentItem) {
75
+ if (parentItem.children && parentItem.children.length > 0) {
76
+ var parentChildrenName = "".concat(parentItem.name || option.name, "Children");
77
+ newValue[parentChildrenName] = parentItem.childrenMultiple ? [] : "";
78
+ }
79
+ });
80
+
81
+ // 设置Real值为空
82
+ newValue["".concat(option.name, "Real")] = "";
83
+ setValue(newValue);
84
+ }, [value, option, setValue]);
85
+
86
+ // 优化:缓存"更多"按钮点击处理函数
87
+ var handleMoreClick = useCallback(function () {
88
+ var newShowMore = _objectSpread(_objectSpread({}, showMore), {}, _defineProperty({}, option.name, !showMore[option.name]));
89
+ setShowMore(newShowMore);
90
+ }, [showMore, option.name, setShowMore]);
91
+
92
+ // 优化:缓存"全部"按钮的激活状态
93
+ var isAllActive = useMemo(function () {
94
+ return option.multiple ? !(value[option.name] || []).length : !(value !== null && value !== void 0 && value[option.name]);
95
+ }, [option.multiple, option.name, value]);
96
+ var hasElementItem = useMemo(function () {
97
+ var _option$items2;
98
+ return (_option$items2 = option.items) === null || _option$items2 === void 0 ? void 0 : _option$items2.some(function (item) {
99
+ return !!item.element;
100
+ });
101
+ }, [option.items]);
102
+ return /*#__PURE__*/_jsxs("div", {
103
+ className: styles.optionContainer,
104
+ children: [/*#__PURE__*/_jsxs("div", {
105
+ className: classNames(styles.option, _defineProperty({}, styles.legacyHasElementItem, legacyHasSelector && hasElementItem)),
106
+ ref: optionRef,
107
+ children: [!!option.label && /*#__PURE__*/_jsxs("span", {
108
+ ref: labelRef,
109
+ children: [option.label, "\uFF1A"]
110
+ }), /*#__PURE__*/_jsxs("div", {
111
+ className: classNames(styles.optionItems, _defineProperty({}, styles.itemsCollapse, !showMore[option.name])),
112
+ children: [!option.hideAll && /*#__PURE__*/_jsx("span", {
113
+ className: classNames(_defineProperty({}, styles.active, isAllActive)),
114
+ onClick: handleAllClick,
115
+ children: "\u5168\u90E8"
116
+ }), (_option$items3 = option.items) === null || _option$items3 === void 0 ? void 0 : _option$items3.map(function (item, idx) {
117
+ return /*#__PURE__*/_jsx(Item, {
118
+ item: item,
119
+ idx: idx,
120
+ option: option,
121
+ value: value,
122
+ setValue: setValue
123
+ }, String(item.value));
124
+ })]
125
+ }), typeof showMore[option.name] === "boolean" && /*#__PURE__*/_jsxs("span", {
126
+ className: styles.more,
127
+ onClick: handleMoreClick,
128
+ children: ["\u66F4\u591A", /*#__PURE__*/_jsx(Icon, {
129
+ icon: "icon-park-solid:down-one"
130
+ })]
131
+ })]
132
+ }, option.name), filteredChildrenItems === null || filteredChildrenItems === void 0 ? void 0 : filteredChildrenItems.map(function (item, idx) {
133
+ return /*#__PURE__*/_jsx("div", {
134
+ className: styles.childrenRow,
135
+ style: {
136
+ marginLeft: labelWidth + 4
137
+ },
138
+ children: /*#__PURE__*/_jsx(ChildrenItems, {
139
+ parentItem: item,
140
+ option: option,
141
+ value: value,
142
+ setValue: setValue
143
+ })
144
+ }, "".concat(String(item.value), "-children-").concat(idx));
145
+ })]
146
+ });
147
+ });
148
+ OptionRow.displayName = "OptionRow";
149
+ export default OptionRow;