antd-management-fast-framework 1.1.64 → 1.1.65

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 (556) hide show
  1. package/es/customComponents/AMap/UIPoiPicker.d.ts +7 -0
  2. package/es/customComponents/AMap/UIPoiPicker.js +78 -0
  3. package/es/customComponents/AMap/UIPositionPicker.d.ts +7 -0
  4. package/es/customComponents/AMap/UIPositionPicker.js +87 -0
  5. package/es/customComponents/ActiveChart/index.d.ts +8 -0
  6. package/es/customComponents/ActiveChart/index.js +168 -0
  7. package/{src → es}/customComponents/ActiveChart/index.less +0 -0
  8. package/es/customComponents/AnimalBox/FadeBox/index.d.ts +13 -0
  9. package/es/customComponents/AnimalBox/FadeBox/index.js +82 -0
  10. package/{src → es}/customComponents/AnimalBox/FadeBox/index.less +0 -0
  11. package/es/customComponents/AnimalBox/QueueBox/index.d.ts +14 -0
  12. package/es/customComponents/AnimalBox/QueueBox/index.js +117 -0
  13. package/{src → es}/customComponents/AnimalBox/QueueBox/index.less +0 -0
  14. package/es/customComponents/ArticleListContent/index.d.ts +10 -0
  15. package/es/customComponents/ArticleListContent/index.js +46 -0
  16. package/{src → es}/customComponents/ArticleListContent/index.less +0 -0
  17. package/es/customComponents/Authorized/Authorized.d.ts +6 -0
  18. package/es/customComponents/Authorized/Authorized.js +33 -0
  19. package/es/customComponents/Authorized/AuthorizedRoute.d.ts +8 -0
  20. package/es/customComponents/Authorized/AuthorizedRoute.js +50 -0
  21. package/es/customComponents/Authorized/CheckPermissions.d.ts +11 -0
  22. package/es/customComponents/Authorized/CheckPermissions.js +106 -0
  23. package/es/customComponents/Authorized/PromiseRender.d.ts +7 -0
  24. package/es/customComponents/Authorized/PromiseRender.js +159 -0
  25. package/es/customComponents/Authorized/Secured.d.ts +18 -0
  26. package/{src/customComponents/Authorized/Secured.jsx → es/customComponents/Authorized/Secured.js} +41 -22
  27. package/es/customComponents/Authorized/index.d.ts +2 -0
  28. package/es/customComponents/Authorized/index.js +22 -0
  29. package/es/customComponents/Authorized/renderAuthorize.d.ts +3 -0
  30. package/es/customComponents/Authorized/renderAuthorize.js +37 -0
  31. package/es/customComponents/AvatarList/index.d.ts +17 -0
  32. package/es/customComponents/AvatarList/index.js +99 -0
  33. package/{src → es}/customComponents/AvatarList/index.less +0 -0
  34. package/es/customComponents/AvatarList/index.test.d.ts +1 -0
  35. package/es/customComponents/Canvas/Bubbly/index.d.ts +20 -0
  36. package/es/customComponents/Canvas/Bubbly/index.js +178 -0
  37. package/es/customComponents/Canvas/Core/index.d.ts +24 -0
  38. package/es/customComponents/Canvas/Core/index.js +163 -0
  39. package/es/customComponents/Canvas/RadarScanning/index.d.ts +20 -0
  40. package/es/customComponents/Canvas/RadarScanning/index.js +247 -0
  41. package/{src → es}/customComponents/Canvas/Ribbon.7z +0 -0
  42. package/es/customComponents/Canvas/Spirit/index.d.ts +19 -0
  43. package/es/customComponents/Canvas/Spirit/index.js +115 -0
  44. package/es/customComponents/Canvas/index.d.ts +12 -0
  45. package/es/customComponents/Canvas/index.js +27 -0
  46. package/es/customComponents/CenterBox/index.d.ts +6 -0
  47. package/es/customComponents/CenterBox/index.js +70 -0
  48. package/es/customComponents/Charts/Bar/index.d.ts +6 -0
  49. package/es/customComponents/Charts/Bar/index.js +129 -0
  50. package/es/customComponents/Charts/ChartCard/index.d.ts +7 -0
  51. package/es/customComponents/Charts/ChartCard/index.js +167 -0
  52. package/{src → es}/customComponents/Charts/ChartCard/index.less +0 -0
  53. package/es/customComponents/Charts/Field/index.d.ts +6 -0
  54. package/es/customComponents/Charts/Field/index.js +37 -0
  55. package/{src → es}/customComponents/Charts/Field/index.less +0 -0
  56. package/es/customComponents/Charts/Gauge/index.d.ts +2 -0
  57. package/es/customComponents/Charts/Gauge/index.js +185 -0
  58. package/es/customComponents/Charts/MiniArea/index.d.ts +2 -0
  59. package/es/customComponents/Charts/MiniArea/index.js +107 -0
  60. package/es/customComponents/Charts/MiniBar/index.d.ts +2 -0
  61. package/es/customComponents/Charts/MiniBar/index.js +62 -0
  62. package/es/customComponents/Charts/MiniProgress/index.d.ts +8 -0
  63. package/es/customComponents/Charts/MiniProgress/index.js +55 -0
  64. package/{src → es}/customComponents/Charts/MiniProgress/index.less +0 -0
  65. package/es/customComponents/Charts/Pie/index.d.ts +8 -0
  66. package/es/customComponents/Charts/Pie/index.js +195 -0
  67. package/{src → es}/customComponents/Charts/Pie/index.less +0 -0
  68. package/es/customComponents/Charts/TagCloud/index.d.ts +14 -0
  69. package/es/customComponents/Charts/TagCloud/index.js +279 -0
  70. package/{src → es}/customComponents/Charts/TagCloud/index.less +0 -0
  71. package/es/customComponents/Charts/TimelineChart/index.d.ts +2 -0
  72. package/es/customComponents/Charts/TimelineChart/index.js +173 -0
  73. package/{src → es}/customComponents/Charts/TimelineChart/index.less +0 -0
  74. package/es/customComponents/Charts/WaterWave/index.d.ts +11 -0
  75. package/es/customComponents/Charts/WaterWave/index.js +319 -0
  76. package/{src → es}/customComponents/Charts/WaterWave/index.less +0 -0
  77. package/es/customComponents/Charts/autoHeight.d.ts +8 -0
  78. package/es/customComponents/Charts/autoHeight.js +123 -0
  79. package/es/customComponents/Charts/bizcharts.d.ts +2 -0
  80. package/es/customComponents/Charts/bizcharts.js +17 -0
  81. package/es/customComponents/Charts/index.d.ts +27 -0
  82. package/es/customComponents/Charts/index.js +119 -0
  83. package/{src → es}/customComponents/Charts/index.less +0 -0
  84. package/es/customComponents/ColorText/index.d.ts +18 -0
  85. package/es/customComponents/ColorText/index.js +127 -0
  86. package/es/customComponents/Countdown/index.d.ts +12 -0
  87. package/es/customComponents/Countdown/index.js +158 -0
  88. package/{src → es}/customComponents/Countdown/index.less +0 -0
  89. package/es/customComponents/DataPreviewDrawer/index.d.ts +13 -0
  90. package/es/customComponents/DataPreviewDrawer/index.js +176 -0
  91. package/{src → es}/customComponents/DataPreviewDrawer/index.less +0 -0
  92. package/es/customComponents/DecorateAvatar/index.d.ts +33 -0
  93. package/es/customComponents/DecorateAvatar/index.js +198 -0
  94. package/es/customComponents/DisplayCopyData/index.d.ts +9 -0
  95. package/es/customComponents/DisplayCopyData/index.js +88 -0
  96. package/es/customComponents/EditableItem/index.d.ts +7 -0
  97. package/es/customComponents/EditableItem/index.js +121 -0
  98. package/{src → es}/customComponents/EditableItem/index.less +0 -0
  99. package/es/customComponents/EditableLinkGroup/index.d.ts +22 -0
  100. package/es/customComponents/EditableLinkGroup/index.js +99 -0
  101. package/{src → es}/customComponents/EditableLinkGroup/index.less +0 -0
  102. package/es/customComponents/Ellipsis/index.d.ts +19 -0
  103. package/es/customComponents/Ellipsis/index.js +380 -0
  104. package/{src → es}/customComponents/Ellipsis/index.less +0 -0
  105. package/es/customComponents/Ellipsis/index.test.d.ts +1 -0
  106. package/es/customComponents/EllipsisCustom/index.d.ts +19 -0
  107. package/es/customComponents/EllipsisCustom/index.js +355 -0
  108. package/{src → es}/customComponents/EllipsisCustom/index.less +0 -0
  109. package/es/customComponents/EverySpace/index.d.ts +15 -0
  110. package/es/customComponents/EverySpace/index.js +105 -0
  111. package/es/customComponents/Exception/index.d.ts +6 -0
  112. package/es/customComponents/Exception/index.js +121 -0
  113. package/{src → es}/customComponents/Exception/index.less +0 -0
  114. package/es/customComponents/Exception/typeConfig.d.ts +18 -0
  115. package/{src → es}/customComponents/Exception/typeConfig.js +13 -7
  116. package/es/customComponents/FigureRange/index.d.ts +126 -0
  117. package/es/customComponents/FigureRange/index.js +335 -0
  118. package/{src → es}/customComponents/FigureRange/index.less +0 -0
  119. package/es/customComponents/FileBase64Upload/index.d.ts +22 -0
  120. package/es/customComponents/FileBase64Upload/index.js +205 -0
  121. package/es/customComponents/FlexBox/index.d.ts +22 -0
  122. package/es/customComponents/FlexBox/index.js +152 -0
  123. package/es/customComponents/FlexText/index.d.ts +17 -0
  124. package/es/customComponents/FlexText/index.js +96 -0
  125. package/{src → es}/customComponents/FlexText/index.less +0 -0
  126. package/es/customComponents/FooterToolbar/index.d.ts +10 -0
  127. package/es/customComponents/FooterToolbar/index.js +132 -0
  128. package/{src → es}/customComponents/FooterToolbar/index.less +0 -0
  129. package/es/customComponents/FromDisplayItem/index.d.ts +13 -0
  130. package/es/customComponents/FromDisplayItem/index.js +73 -0
  131. package/{src → es}/customComponents/FromDisplayItem/index.less +0 -0
  132. package/es/customComponents/FunctionComponent/index.d.ts +345 -0
  133. package/es/customComponents/FunctionComponent/index.js +2414 -0
  134. package/{src → es}/customComponents/FunctionComponent/index.less +0 -0
  135. package/es/customComponents/FunctionSupplement/Whether/index.d.ts +46 -0
  136. package/es/customComponents/FunctionSupplement/Whether/index.js +181 -0
  137. package/es/customComponents/GlobalFooter/index.d.ts +6 -0
  138. package/es/customComponents/GlobalFooter/index.js +39 -0
  139. package/{src → es}/customComponents/GlobalFooter/index.less +0 -0
  140. package/es/customComponents/HelpBox/index.d.ts +16 -0
  141. package/es/customComponents/HelpBox/index.js +166 -0
  142. package/{src → es}/customComponents/HelpBox/index.less +0 -0
  143. package/es/customComponents/HelpCard/index.d.ts +17 -0
  144. package/es/customComponents/HelpCard/index.js +91 -0
  145. package/es/customComponents/HtmlBox/index.d.ts +11 -0
  146. package/es/customComponents/HtmlBox/index.js +98 -0
  147. package/{src → es}/customComponents/HtmlBox/index.less +0 -0
  148. package/es/customComponents/IconInfo/index.d.ts +27 -0
  149. package/es/customComponents/IconInfo/index.js +281 -0
  150. package/{src → es}/customComponents/IconInfo/index.less +0 -0
  151. package/es/customComponents/ImageBox/index.d.ts +39 -0
  152. package/es/customComponents/ImageBox/index.js +376 -0
  153. package/{src → es}/customComponents/ImageBox/index.less +0 -0
  154. package/es/customComponents/ImageContentPreview/index.d.ts +13 -0
  155. package/es/customComponents/ImageContentPreview/index.js +173 -0
  156. package/{src → es}/customComponents/ImageContentPreview/index.less +0 -0
  157. package/es/customComponents/ImageUpload/index.d.ts +33 -0
  158. package/es/customComponents/ImageUpload/index.js +367 -0
  159. package/{src → es}/customComponents/ImageUpload/index.less +0 -0
  160. package/es/customComponents/Login/LoginItem.d.ts +2 -0
  161. package/es/customComponents/Login/LoginItem.js +237 -0
  162. package/es/customComponents/Login/LoginSubmit.d.ts +5 -0
  163. package/es/customComponents/Login/LoginSubmit.js +48 -0
  164. package/es/customComponents/Login/LoginTab.d.ts +5 -0
  165. package/es/customComponents/Login/LoginTab.js +100 -0
  166. package/es/customComponents/Login/index.d.ts +38 -0
  167. package/es/customComponents/Login/index.js +222 -0
  168. package/{src → es}/customComponents/Login/index.less +0 -0
  169. package/es/customComponents/Login/loginContext.d.ts +2 -0
  170. package/es/customComponents/Login/loginContext.js +12 -0
  171. package/es/customComponents/Login/map.d.ts +71 -0
  172. package/es/customComponents/Login/map.js +76 -0
  173. package/es/customComponents/MobileContainor/index.d.ts +6 -0
  174. package/es/customComponents/MobileContainor/index.js +77 -0
  175. package/{src → es}/customComponents/MobileContainor/index.less +0 -0
  176. package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +10 -0
  177. package/es/customComponents/NoticeIconCustom/NoticeList.js +83 -0
  178. package/{src → es}/customComponents/NoticeIconCustom/NoticeList.less +0 -0
  179. package/es/customComponents/NoticeIconCustom/index.d.ts +24 -0
  180. package/es/customComponents/NoticeIconCustom/index.js +201 -0
  181. package/{src → es}/customComponents/NoticeIconCustom/index.less +0 -0
  182. package/es/customComponents/NumberInfo/index.d.ts +12 -0
  183. package/es/customComponents/NumberInfo/index.js +60 -0
  184. package/{src → es}/customComponents/NumberInfo/index.less +0 -0
  185. package/es/customComponents/PercentageBox/index.d.ts +11 -0
  186. package/es/customComponents/PercentageBox/index.js +70 -0
  187. package/es/customComponents/PriceBox/index.d.ts +17 -0
  188. package/es/customComponents/PriceBox/index.js +115 -0
  189. package/es/customComponents/Result/index.d.ts +9 -0
  190. package/es/customComponents/Result/index.js +57 -0
  191. package/{src → es}/customComponents/Result/index.less +0 -0
  192. package/es/customComponents/StandardFormRow/index.d.ts +9 -0
  193. package/es/customComponents/StandardFormRow/index.js +47 -0
  194. package/{src → es}/customComponents/StandardFormRow/index.less +0 -0
  195. package/es/customComponents/StandardTable/index.d.ts +12 -0
  196. package/es/customComponents/StandardTable/index.js +217 -0
  197. package/{src → es}/customComponents/StandardTable/index.less +0 -0
  198. package/es/customComponents/StandardTableCustom/index.d.ts +17 -0
  199. package/es/customComponents/StandardTableCustom/index.js +236 -0
  200. package/{src → es}/customComponents/StandardTableCustom/index.less +0 -0
  201. package/es/customComponents/StatusBar/index.d.ts +12 -0
  202. package/es/customComponents/StatusBar/index.js +128 -0
  203. package/es/customComponents/TagSelect/index.d.ts +29 -0
  204. package/es/customComponents/TagSelect/index.js +226 -0
  205. package/{src → es}/customComponents/TagSelect/index.less +0 -0
  206. package/es/customComponents/TimeLineCustom/index.d.ts +32 -0
  207. package/es/customComponents/TimeLineCustom/index.js +263 -0
  208. package/{src → es}/customComponents/TimeLineCustom/index.less +0 -0
  209. package/es/customComponents/Trend/index.d.ts +10 -0
  210. package/es/customComponents/Trend/index.js +49 -0
  211. package/{src → es}/customComponents/Trend/index.less +0 -0
  212. package/es/customComponents/VerticalBox/index.d.ts +14 -0
  213. package/es/customComponents/VerticalBox/index.js +138 -0
  214. package/{src → es}/customComponents/VerticalBox/index.less +0 -0
  215. package/es/customComponents/VideoUpload/index.d.ts +30 -0
  216. package/es/customComponents/VideoUpload/index.js +472 -0
  217. package/es/customComponents/_utils/pathTools.d.ts +1 -0
  218. package/es/customComponents/_utils/pathTools.js +15 -0
  219. package/es/customComponents/_utils/pathTools.test.d.ts +1 -0
  220. package/es/customComponents/index.d.ts +7 -0
  221. package/{src → es}/customComponents/index.js +9 -2
  222. package/es/framework/AuthorizationWrapper/index.d.ts +9 -0
  223. package/es/framework/AuthorizationWrapper/index.js +120 -0
  224. package/es/framework/Base/index.d.ts +15 -0
  225. package/es/framework/Base/index.js +135 -0
  226. package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +15 -0
  227. package/es/framework/ButtonExtension/SelectButton/Base/index.js +116 -0
  228. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +19 -0
  229. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +177 -0
  230. package/es/framework/Common/index.d.ts +138 -0
  231. package/es/framework/Common/index.js +1809 -0
  232. package/{src → es}/framework/Common/index.less +0 -0
  233. package/es/framework/Core/index.d.ts +9 -0
  234. package/es/framework/Core/index.js +79 -0
  235. package/es/framework/CustomBase/index.d.ts +6 -0
  236. package/es/framework/CustomBase/index.js +77 -0
  237. package/es/framework/CustomWrapper/Supplement/index.d.ts +10 -0
  238. package/es/framework/CustomWrapper/Supplement/index.js +64 -0
  239. package/es/framework/CustomWrapper/SupplementCore/index.d.ts +4 -0
  240. package/es/framework/CustomWrapper/SupplementCore/index.js +112 -0
  241. package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +4 -0
  242. package/es/framework/CustomWrapper/SupplementWrapper/index.js +58 -0
  243. package/es/framework/DataDrawer/Base/index.d.ts +54 -0
  244. package/es/framework/DataDrawer/Base/index.js +385 -0
  245. package/{src → es}/framework/DataDrawer/Base/index.less +0 -0
  246. package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +5 -0
  247. package/es/framework/DataDrawer/BaseAddDrawer/index.js +102 -0
  248. package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +4 -0
  249. package/es/framework/DataDrawer/BaseLoadDrawer/index.js +81 -0
  250. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +5 -0
  251. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +86 -0
  252. package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +5 -0
  253. package/es/framework/DataDrawer/BaseSaveDrawer/index.js +85 -0
  254. package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +4 -0
  255. package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +83 -0
  256. package/es/framework/DataForm/BaseAddForm/index.d.ts +34 -0
  257. package/es/framework/DataForm/BaseAddForm/index.js +274 -0
  258. package/es/framework/DataForm/BaseUpdateForm/index.d.ts +10 -0
  259. package/es/framework/DataForm/BaseUpdateForm/index.js +189 -0
  260. package/{src → es}/framework/DataForm/BaseUpdateForm/index.less +0 -0
  261. package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +4 -0
  262. package/es/framework/DataForm/BaseUpdateFormTab/index.js +62 -0
  263. package/{src → es}/framework/DataForm/BaseUpdateFormTab/index.less +0 -0
  264. package/es/framework/DataListView/Base/index.d.ts +141 -0
  265. package/es/framework/DataListView/Base/index.js +1391 -0
  266. package/{src → es}/framework/DataListView/Base/index.less +0 -0
  267. package/es/framework/DataListView/BatchAction/index.d.ts +21 -0
  268. package/es/framework/DataListView/BatchAction/index.js +97 -0
  269. package/{src → es}/framework/DataListView/BatchAction/index.less +0 -0
  270. package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +8 -0
  271. package/es/framework/DataListView/ColumnSetting/DndItem.js +155 -0
  272. package/es/framework/DataListView/ColumnSetting/index.d.ts +3 -0
  273. package/es/framework/DataListView/ColumnSetting/index.js +366 -0
  274. package/{src → es}/framework/DataListView/ColumnSetting/index.less +0 -0
  275. package/es/framework/DataListView/DensityAction/index.d.ts +6 -0
  276. package/es/framework/DataListView/DensityAction/index.js +112 -0
  277. package/es/framework/DataModal/Base/index.d.ts +67 -0
  278. package/es/framework/DataModal/Base/index.js +292 -0
  279. package/{src → es}/framework/DataModal/Base/index.less +0 -0
  280. package/es/framework/DataModal/BaseAddModal/index.d.ts +4 -0
  281. package/es/framework/DataModal/BaseAddModal/index.js +70 -0
  282. package/es/framework/DataModal/BaseLoadModal/index.d.ts +4 -0
  283. package/es/framework/DataModal/BaseLoadModal/index.js +81 -0
  284. package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +10 -0
  285. package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +135 -0
  286. package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -0
  287. package/es/framework/DataModal/BaseSelectModal/index.js +69 -0
  288. package/es/framework/DataModal/BaseUpdateModal/index.d.ts +4 -0
  289. package/es/framework/DataModal/BaseUpdateModal/index.js +45 -0
  290. package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +10 -0
  291. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +164 -0
  292. package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +4 -0
  293. package/es/framework/DataMultiPageView/InnerMultiPage/index.js +58 -0
  294. package/{src → es}/framework/DataMultiPageView/InnerMultiPage/index.less +0 -0
  295. package/es/framework/DataMultiPageView/MultiPage/index.d.ts +24 -0
  296. package/es/framework/DataMultiPageView/MultiPage/index.js +480 -0
  297. package/{src → es}/framework/DataMultiPageView/MultiPage/index.less +0 -0
  298. package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +32 -0
  299. package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +535 -0
  300. package/{src → es}/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -0
  301. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +11 -0
  302. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +121 -0
  303. package/es/framework/DataOperation/Base/index.d.ts +76 -0
  304. package/es/framework/DataOperation/Base/index.js +369 -0
  305. package/es/framework/DataOperation/BaseView/index.d.ts +11 -0
  306. package/es/framework/DataOperation/BaseView/index.js +74 -0
  307. package/es/framework/DataOperation/BaseWindow/index.d.ts +53 -0
  308. package/es/framework/DataOperation/BaseWindow/index.js +342 -0
  309. package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +5 -0
  310. package/es/framework/DataSinglePageView/InnerSinglePage/index.js +58 -0
  311. package/{src → es}/framework/DataSinglePageView/InnerSinglePage/index.less +0 -0
  312. package/es/framework/DataSinglePageView/SinglePage/index.d.ts +13 -0
  313. package/es/framework/DataSinglePageView/SinglePage/index.js +282 -0
  314. package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +25 -0
  315. package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +454 -0
  316. package/{src → es}/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -0
  317. package/es/framework/DataSingleView/DataCore/index.d.ts +29 -0
  318. package/es/framework/DataSingleView/DataCore/index.js +269 -0
  319. package/{src → es}/framework/DataSingleView/DataCore/index.less +0 -0
  320. package/es/framework/DataSingleView/DataLoad/index.d.ts +52 -0
  321. package/es/framework/DataSingleView/DataLoad/index.js +169 -0
  322. package/es/framework/DataTabContainer/index.d.ts +46 -0
  323. package/es/framework/DataTabContainer/index.js +315 -0
  324. package/{src → es}/framework/DataTabContainer/index.less +0 -0
  325. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +24 -0
  326. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +184 -0
  327. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.d.ts +20 -0
  328. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +191 -0
  329. package/es/framework/Wrapper/index.d.ts +4 -0
  330. package/es/framework/Wrapper/index.js +58 -0
  331. package/es/framework/index.d.ts +7 -0
  332. package/{src → es}/framework/index.js +9 -2
  333. package/es/index.d.ts +1 -0
  334. package/es/index.js +8 -0
  335. package/es/utils/Authorized.d.ts +4 -0
  336. package/es/utils/Authorized.js +49 -0
  337. package/es/utils/Yuan.d.ts +10 -0
  338. package/es/utils/Yuan.js +92 -0
  339. package/es/utils/actionAssist.d.ts +39 -0
  340. package/es/utils/actionAssist.js +286 -0
  341. package/es/utils/authority.d.ts +4 -0
  342. package/es/utils/authority.js +89 -0
  343. package/es/utils/constants.d.ts +324 -0
  344. package/{src → es}/utils/constants.js +137 -115
  345. package/es/utils/defaultSettingsSpecial.d.ts +33 -0
  346. package/es/utils/defaultSettingsSpecial.js +276 -0
  347. package/es/utils/globalModel.d.ts +17 -0
  348. package/es/utils/globalModel.js +40 -0
  349. package/es/utils/globalStorageAssist.d.ts +74 -0
  350. package/es/utils/globalStorageAssist.js +210 -0
  351. package/es/utils/proLayoutCollection.d.ts +11 -0
  352. package/es/utils/proLayoutCollection.js +37 -0
  353. package/es/utils/request.d.ts +5 -0
  354. package/es/utils/request.js +202 -0
  355. package/es/utils/requestAssistor.d.ts +63 -0
  356. package/es/utils/requestAssistor.js +538 -0
  357. package/es/utils/tools.d.ts +724 -0
  358. package/es/utils/tools.js +2106 -0
  359. package/es/utils/utils.d.ts +5 -0
  360. package/es/utils/utils.js +70 -0
  361. package/{src → es}/utils/utils.less +0 -0
  362. package/es/utils/utils.test.d.ts +1 -0
  363. package/es/utils/virtualRequest.d.ts +50 -0
  364. package/es/utils/virtualRequest.js +325 -0
  365. package/lib/customComponents/FileBase64Upload/index.js +3 -1
  366. package/lib/customComponents/ImageUpload/index.js +3 -1
  367. package/lib/customComponents/VideoUpload/index.js +3 -1
  368. package/lib/utils/constants.d.ts +3 -0
  369. package/lib/utils/constants.js +4 -1
  370. package/lib/utils/defaultSettingsSpecial.d.ts +3 -0
  371. package/lib/utils/defaultSettingsSpecial.js +30 -0
  372. package/lib/utils/tools.d.ts +3 -0
  373. package/package.json +14 -10
  374. package/src/customComponents/AMap/UIPoiPicker.js +0 -32
  375. package/src/customComponents/AMap/UIPositionPicker.js +0 -42
  376. package/src/customComponents/ActiveChart/index.jsx +0 -106
  377. package/src/customComponents/AnimalBox/FadeBox/index.jsx +0 -26
  378. package/src/customComponents/AnimalBox/QueueBox/index.jsx +0 -72
  379. package/src/customComponents/ArticleListContent/index.jsx +0 -22
  380. package/src/customComponents/Authorized/Authorized.jsx +0 -22
  381. package/src/customComponents/Authorized/AuthorizedRoute.jsx +0 -35
  382. package/src/customComponents/Authorized/CheckPermissions.jsx +0 -80
  383. package/src/customComponents/Authorized/PromiseRender.jsx +0 -79
  384. package/src/customComponents/Authorized/index.jsx +0 -9
  385. package/src/customComponents/Authorized/renderAuthorize.js +0 -27
  386. package/src/customComponents/AvatarList/demo/maxLength.md +0 -46
  387. package/src/customComponents/AvatarList/demo/simple.md +0 -30
  388. package/src/customComponents/AvatarList/index.en-US.md +0 -24
  389. package/src/customComponents/AvatarList/index.jsx +0 -69
  390. package/src/customComponents/AvatarList/index.test.js +0 -31
  391. package/src/customComponents/AvatarList/index.zh-CN.md +0 -25
  392. package/src/customComponents/Canvas/Bubbly/index.jsx +0 -117
  393. package/src/customComponents/Canvas/Core/index.jsx +0 -120
  394. package/src/customComponents/Canvas/RadarScanning/index.jsx +0 -188
  395. package/src/customComponents/Canvas/Spirit/index.jsx +0 -75
  396. package/src/customComponents/Canvas/index.jsx +0 -13
  397. package/src/customComponents/CenterBox/index.jsx +0 -24
  398. package/src/customComponents/Charts/Bar/index.jsx +0 -67
  399. package/src/customComponents/Charts/ChartCard/index.jsx +0 -112
  400. package/src/customComponents/Charts/Field/index.jsx +0 -11
  401. package/src/customComponents/Charts/Gauge/index.jsx +0 -184
  402. package/src/customComponents/Charts/MiniArea/index.jsx +0 -99
  403. package/src/customComponents/Charts/MiniBar/index.jsx +0 -49
  404. package/src/customComponents/Charts/MiniProgress/index.jsx +0 -45
  405. package/src/customComponents/Charts/Pie/index.jsx +0 -129
  406. package/src/customComponents/Charts/TagCloud/index.jsx +0 -200
  407. package/src/customComponents/Charts/TimelineChart/index.jsx +0 -151
  408. package/src/customComponents/Charts/WaterWave/index.jsx +0 -258
  409. package/src/customComponents/Charts/autoHeight.jsx +0 -71
  410. package/src/customComponents/Charts/bizcharts.jsx +0 -3
  411. package/src/customComponents/Charts/index.jsx +0 -44
  412. package/src/customComponents/ColorText/index.jsx +0 -73
  413. package/src/customComponents/Countdown/demo/simple.md +0 -25
  414. package/src/customComponents/Countdown/index.en-US.md +0 -15
  415. package/src/customComponents/Countdown/index.jsx +0 -122
  416. package/src/customComponents/Countdown/index.zh-CN.md +0 -16
  417. package/src/customComponents/DataPreviewDrawer/index.jsx +0 -139
  418. package/src/customComponents/DecorateAvatar/index.jsx +0 -149
  419. package/src/customComponents/DisplayCopyData/index.js +0 -50
  420. package/src/customComponents/EditableItem/index.jsx +0 -56
  421. package/src/customComponents/EditableLinkGroup/index.jsx +0 -52
  422. package/src/customComponents/Ellipsis/demo/line.md +0 -40
  423. package/src/customComponents/Ellipsis/demo/number.md +0 -32
  424. package/src/customComponents/Ellipsis/index.en-US.md +0 -16
  425. package/src/customComponents/Ellipsis/index.jsx +0 -286
  426. package/src/customComponents/Ellipsis/index.test.js +0 -13
  427. package/src/customComponents/Ellipsis/index.zh-CN.md +0 -17
  428. package/src/customComponents/EllipsisCustom/index.jsx +0 -293
  429. package/src/customComponents/EverySpace/index.jsx +0 -64
  430. package/src/customComponents/Exception/demo/403.md +0 -27
  431. package/src/customComponents/Exception/demo/404.md +0 -20
  432. package/src/customComponents/Exception/demo/500.md +0 -20
  433. package/src/customComponents/Exception/index.en-US.md +0 -20
  434. package/src/customComponents/Exception/index.jsx +0 -53
  435. package/src/customComponents/Exception/index.zh-CN.md +0 -21
  436. package/src/customComponents/FigureRange/index.jsx +0 -290
  437. package/src/customComponents/FileBase64Upload/index.jsx +0 -139
  438. package/src/customComponents/FlexBox/index.jsx +0 -104
  439. package/src/customComponents/FlexText/index.jsx +0 -59
  440. package/src/customComponents/FooterToolbar/demo/basic.md +0 -45
  441. package/src/customComponents/FooterToolbar/index.en-US.md +0 -18
  442. package/src/customComponents/FooterToolbar/index.jsx +0 -51
  443. package/src/customComponents/FooterToolbar/index.zh-CN.md +0 -19
  444. package/src/customComponents/FromDisplayItem/index.jsx +0 -23
  445. package/src/customComponents/FunctionComponent/index.jsx +0 -2613
  446. package/src/customComponents/FunctionSupplement/Whether/index.jsx +0 -139
  447. package/src/customComponents/GlobalFooter/index.jsx +0 -29
  448. package/src/customComponents/GlobalFooter/index.md +0 -17
  449. package/src/customComponents/HelpBox/index.jsx +0 -146
  450. package/src/customComponents/HelpCard/index.jsx +0 -48
  451. package/src/customComponents/HtmlBox/index.jsx +0 -36
  452. package/src/customComponents/IconInfo/index.jsx +0 -302
  453. package/src/customComponents/ImageBox/index.jsx +0 -402
  454. package/src/customComponents/ImageContentPreview/index.jsx +0 -146
  455. package/src/customComponents/ImageUpload/index.jsx +0 -342
  456. package/src/customComponents/Login/LoginItem.js +0 -144
  457. package/src/customComponents/Login/LoginSubmit.js +0 -23
  458. package/src/customComponents/Login/LoginTab.js +0 -41
  459. package/src/customComponents/Login/demo/basic.md +0 -142
  460. package/src/customComponents/Login/index.en-US.md +0 -49
  461. package/src/customComponents/Login/index.jsx +0 -138
  462. package/src/customComponents/Login/index.zh-CN.md +0 -50
  463. package/src/customComponents/Login/loginContext.js +0 -4
  464. package/src/customComponents/Login/map.js +0 -71
  465. package/src/customComponents/MobileContainor/index.jsx +0 -29
  466. package/src/customComponents/NoticeIconCustom/NoticeList.js +0 -78
  467. package/src/customComponents/NoticeIconCustom/demo/basic.md +0 -12
  468. package/src/customComponents/NoticeIconCustom/demo/popover.md +0 -202
  469. package/src/customComponents/NoticeIconCustom/index.jsx +0 -117
  470. package/src/customComponents/NumberInfo/demo/basic.md +0 -31
  471. package/src/customComponents/NumberInfo/index.en-US.md +0 -19
  472. package/src/customComponents/NumberInfo/index.jsx +0 -59
  473. package/src/customComponents/NumberInfo/index.zh-CN.md +0 -20
  474. package/src/customComponents/PercentageBox/index.jsx +0 -23
  475. package/src/customComponents/PriceBox/index.jsx +0 -73
  476. package/src/customComponents/Result/index.jsx +0 -30
  477. package/src/customComponents/Result/index.md +0 -20
  478. package/src/customComponents/StandardFormRow/index.jsx +0 -24
  479. package/src/customComponents/StandardTable/index.jsx +0 -126
  480. package/src/customComponents/StandardTableCustom/index.jsx +0 -156
  481. package/src/customComponents/StatusBar/index.jsx +0 -74
  482. package/src/customComponents/TagSelect/demo/controlled.md +0 -54
  483. package/src/customComponents/TagSelect/demo/expandable.md +0 -32
  484. package/src/customComponents/TagSelect/demo/simple.md +0 -26
  485. package/src/customComponents/TagSelect/index.jsx +0 -141
  486. package/src/customComponents/TagSelect/index.md +0 -29
  487. package/src/customComponents/TimeLineCustom/index.jsx +0 -225
  488. package/src/customComponents/Trend/demo/basic.md +0 -20
  489. package/src/customComponents/Trend/demo/reverse.md +0 -22
  490. package/src/customComponents/Trend/index.jsx +0 -35
  491. package/src/customComponents/Trend/index.md +0 -22
  492. package/src/customComponents/VerticalBox/index.jsx +0 -81
  493. package/src/customComponents/VideoUpload/index.jsx +0 -424
  494. package/src/customComponents/_utils/pathTools.js +0 -7
  495. package/src/customComponents/_utils/pathTools.test.js +0 -20
  496. package/src/framework/AuthorizationWrapper/index.jsx +0 -68
  497. package/src/framework/Base/index.jsx +0 -93
  498. package/src/framework/ButtonExtension/SelectButton/Base/index.jsx +0 -67
  499. package/src/framework/ButtonExtension/SelectButton/InteractiveBase/index.jsx +0 -130
  500. package/src/framework/Common/index.jsx +0 -2235
  501. package/src/framework/Core/index.jsx +0 -34
  502. package/src/framework/CustomBase/index.jsx +0 -33
  503. package/src/framework/CustomWrapper/Supplement/index.jsx +0 -17
  504. package/src/framework/CustomWrapper/SupplementCore/index.jsx +0 -65
  505. package/src/framework/CustomWrapper/SupplementWrapper/index.jsx +0 -11
  506. package/src/framework/DataDrawer/Base/index.jsx +0 -314
  507. package/src/framework/DataDrawer/BaseAddDrawer/index.jsx +0 -50
  508. package/src/framework/DataDrawer/BaseLoadDrawer/index.jsx +0 -20
  509. package/src/framework/DataDrawer/BaseNeedlessLoadDrawer/index.jsx +0 -37
  510. package/src/framework/DataDrawer/BaseSaveDrawer/index.jsx +0 -35
  511. package/src/framework/DataDrawer/BaseUpdateDrawer/index.jsx +0 -33
  512. package/src/framework/DataForm/BaseAddForm/index.jsx +0 -231
  513. package/src/framework/DataForm/BaseUpdateForm/index.jsx +0 -145
  514. package/src/framework/DataForm/BaseUpdateFormTab/index.jsx +0 -18
  515. package/src/framework/DataListView/Base/index.jsx +0 -1583
  516. package/src/framework/DataListView/BatchAction/index.jsx +0 -78
  517. package/src/framework/DataListView/ColumnSetting/DndItem.jsx +0 -105
  518. package/src/framework/DataListView/ColumnSetting/index.jsx +0 -346
  519. package/src/framework/DataListView/DensityAction/index.jsx +0 -46
  520. package/src/framework/DataModal/Base/index.jsx +0 -238
  521. package/src/framework/DataModal/BaseAddModal/index.jsx +0 -17
  522. package/src/framework/DataModal/BaseLoadModal/index.jsx +0 -30
  523. package/src/framework/DataModal/BaseNeedlessLoadModal/index.jsx +0 -83
  524. package/src/framework/DataModal/BaseSelectModal/index.jsx +0 -28
  525. package/src/framework/DataModal/BaseUpdateModal/index.jsx +0 -5
  526. package/src/framework/DataModal/BaseUpdateTransferModal/index.jsx +0 -103
  527. package/src/framework/DataMultiPageView/InnerMultiPage/index.jsx +0 -18
  528. package/src/framework/DataMultiPageView/MultiPage/index.jsx +0 -461
  529. package/src/framework/DataMultiPageView/MultiPageDrawer/index.jsx +0 -549
  530. package/src/framework/DataMultiPageView/MultiPageSelectDrawer/index.jsx +0 -50
  531. package/src/framework/DataOperation/Base/index.jsx +0 -323
  532. package/src/framework/DataOperation/BaseView/index.jsx +0 -26
  533. package/src/framework/DataOperation/BaseWindow/index.jsx +0 -291
  534. package/src/framework/DataSinglePageView/InnerSinglePage/index.jsx +0 -18
  535. package/src/framework/DataSinglePageView/SinglePage/index.jsx +0 -245
  536. package/src/framework/DataSinglePageView/SinglePageDrawer/index.jsx +0 -474
  537. package/src/framework/DataSingleView/DataCore/index.jsx +0 -216
  538. package/src/framework/DataSingleView/DataLoad/index.jsx +0 -127
  539. package/src/framework/DataTabContainer/index.jsx +0 -304
  540. package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.jsx +0 -149
  541. package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.jsx +0 -140
  542. package/src/framework/Wrapper/index.jsx +0 -10
  543. package/src/utils/Authorized.js +0 -42
  544. package/src/utils/Yuan.js +0 -31
  545. package/src/utils/actionAssist.js +0 -231
  546. package/src/utils/authority.js +0 -85
  547. package/src/utils/defaultSettingsSpecial.js +0 -235
  548. package/src/utils/globalModel.js +0 -33
  549. package/src/utils/globalStorageAssist.js +0 -193
  550. package/src/utils/proLayoutCollection.js +0 -25
  551. package/src/utils/request.js +0 -160
  552. package/src/utils/requestAssistor.js +0 -485
  553. package/src/utils/tools.js +0 -1947
  554. package/src/utils/utils.js +0 -45
  555. package/src/utils/utils.test.js +0 -35
  556. package/src/utils/virtualRequest.js +0 -216
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ require("antd/es/row/style");
11
+
12
+ var _row = _interopRequireDefault(require("antd/es/row"));
13
+
14
+ require("antd/es/divider/style");
15
+
16
+ var _divider = _interopRequireDefault(require("antd/es/divider"));
17
+
18
+ require("antd/es/col/style");
19
+
20
+ var _col = _interopRequireDefault(require("antd/es/col"));
21
+
22
+ var _bizcharts = require("bizcharts");
23
+
24
+ var _react = _interopRequireWildcard(require("react"));
25
+
26
+ var _classnames = _interopRequireDefault(require("classnames"));
27
+
28
+ var _index = _interopRequireDefault(require("./index.less"));
29
+
30
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
+
32
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
+
34
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
+
36
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
+
38
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
39
+
40
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
41
+
42
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
+
44
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
+
46
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
47
+
48
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
49
+
50
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
51
+
52
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
53
+
54
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
55
+
56
+ var sliceNumber = 0.01; // 自定义 other 的图形,增加两条线
57
+
58
+ (0, _bizcharts.registerShape)('interval', 'sliceShape', {
59
+ draw: function draw(cfg, container) {
60
+ var points = cfg.points;
61
+ var path = [];
62
+ path.push(['M', points[0].x, points[0].y]);
63
+ path.push(['L', points[1].x, points[1].y - sliceNumber]);
64
+ path.push(['L', points[2].x, points[2].y - sliceNumber]);
65
+ path.push(['L', points[3].x, points[3].y]);
66
+ path.push('Z');
67
+ path = this.parsePath(path);
68
+ return container.addShape('path', {
69
+ attrs: {
70
+ fill: cfg.color,
71
+ path: path
72
+ }
73
+ });
74
+ }
75
+ });
76
+
77
+ var Pie = /*#__PURE__*/function (_Component) {
78
+ _inherits(Pie, _Component);
79
+
80
+ var _super = _createSuper(Pie);
81
+
82
+ function Pie() {
83
+ var _this;
84
+
85
+ _classCallCheck(this, Pie);
86
+
87
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
88
+ args[_key] = arguments[_key];
89
+ }
90
+
91
+ _this = _super.call.apply(_super, [this].concat(args));
92
+ _this.state = {};
93
+
94
+ _this.calculateTotal = function (d) {
95
+ var result = 0;
96
+ (d || []).map(function (o) {
97
+ result += o.y;
98
+ return o;
99
+ });
100
+ return result;
101
+ };
102
+
103
+ _this.handleLegendClick = function (item, i) {};
104
+
105
+ return _this;
106
+ }
107
+
108
+ _createClass(Pie, [{
109
+ key: "render",
110
+ value: function render() {
111
+ var _this2 = this;
112
+
113
+ var _this$props = this.props,
114
+ valueFormat = _this$props.valueFormat,
115
+ subTitle = _this$props.subTitle,
116
+ total = _this$props.total,
117
+ className = _this$props.className,
118
+ style = _this$props.style;
119
+ var pieClassName = (0, _classnames["default"])(_index["default"].pie, className, _index["default"].legendBlock);
120
+ var propsData = this.props.data;
121
+ var totalValue = this.calculateTotal(propsData);
122
+ return /*#__PURE__*/_react["default"].createElement("div", {
123
+ className: pieClassName
124
+ }, /*#__PURE__*/_react["default"].createElement(_row["default"], {
125
+ gutter: 24
126
+ }, /*#__PURE__*/_react["default"].createElement(_col["default"], {
127
+ lg: 12,
128
+ md: 12,
129
+ sm: 24,
130
+ xs: 24
131
+ }, /*#__PURE__*/_react["default"].createElement("div", {
132
+ className: _index["default"].chart,
133
+ style: style
134
+ }, /*#__PURE__*/_react["default"].createElement(_bizcharts.Chart, {
135
+ data: propsData || [],
136
+ autoFit: true
137
+ }, /*#__PURE__*/_react["default"].createElement(_bizcharts.Coordinate, {
138
+ type: "theta",
139
+ radius: 0.8,
140
+ innerRadius: 0.75
141
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Axis, {
142
+ visible: false
143
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Tooltip, {
144
+ showTitle: false
145
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Interval, {
146
+ adjust: "stack",
147
+ position: "y",
148
+ color: "x",
149
+ shape: "sliceShape"
150
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Interaction, {
151
+ type: "element-single-selected"
152
+ }))), (subTitle || total) && /*#__PURE__*/_react["default"].createElement("div", {
153
+ className: _index["default"].total
154
+ }, subTitle && /*#__PURE__*/_react["default"].createElement("h4", {
155
+ className: "pie-sub-title"
156
+ }, subTitle), total && /*#__PURE__*/_react["default"].createElement("div", {
157
+ className: "pie-stat"
158
+ }, typeof total === 'function' ? total() : total))), /*#__PURE__*/_react["default"].createElement(_col["default"], {
159
+ lg: 12,
160
+ md: 12,
161
+ sm: 24,
162
+ xs: 24
163
+ }, /*#__PURE__*/_react["default"].createElement("ul", {
164
+ className: _index["default"].legend,
165
+ style: style
166
+ }, (propsData || []).map(function (item, i) {
167
+ var key = "".concat(item.x, "_").concat(i);
168
+ return /*#__PURE__*/_react["default"].createElement("li", {
169
+ key: key,
170
+ onClick: function onClick() {
171
+ return _this2.handleLegendClick(item, i);
172
+ }
173
+ }, /*#__PURE__*/_react["default"].createElement("span", {
174
+ className: _index["default"].dot,
175
+ style: {
176
+ backgroundColor: !item.checked ? '#aaa' : item.color
177
+ }
178
+ }), /*#__PURE__*/_react["default"].createElement("span", {
179
+ className: _index["default"].legendTitle
180
+ }, item.x), /*#__PURE__*/_react["default"].createElement(_divider["default"], {
181
+ type: "vertical"
182
+ }), /*#__PURE__*/_react["default"].createElement("span", {
183
+ className: _index["default"].percent
184
+ }, "".concat(((totalValue || 0) > 0 ? (Number.isNaN(item.y / totalValue) ? 0 : item.y / totalValue) * 100 : 0).toFixed(2), "%")), /*#__PURE__*/_react["default"].createElement("span", {
185
+ className: _index["default"].value
186
+ }, valueFormat ? valueFormat(item.y) : item.y));
187
+ })))));
188
+ }
189
+ }]);
190
+
191
+ return Pie;
192
+ }(_react.Component);
193
+
194
+ var _default = Pie;
195
+ exports["default"] = _default;
@@ -0,0 +1,14 @@
1
+ export default TagCloud;
2
+ declare class TagCloud extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ constructor(props: any, context: any);
5
+ isUnmount: boolean;
6
+ requestRef: number;
7
+ root: undefined;
8
+ imageMask: undefined;
9
+ resize: () => void;
10
+ saveRootRef: (node: any) => void;
11
+ initTagCloud: () => void;
12
+ renderChart: import("lodash").DebouncedFunc<(nextProps: any) => void>;
13
+ }
14
+ import React from "react";
@@ -0,0 +1,279 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _bizcharts = require("bizcharts");
11
+
12
+ var _react = _interopRequireWildcard(require("react"));
13
+
14
+ var _dataSet = _interopRequireDefault(require("@antv/data-set"));
15
+
16
+ var _lodash = _interopRequireDefault(require("lodash.debounce"));
17
+
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ var _autoHeight = _interopRequireDefault(require("../autoHeight"));
21
+
22
+ var _index = _interopRequireDefault(require("./index.less"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ 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."); }
33
+
34
+ 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); }
35
+
36
+ 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; }
37
+
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
43
+
44
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
45
+
46
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
+
48
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
+
50
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
51
+
52
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
53
+
54
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
+
56
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
+
58
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
59
+
60
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
61
+
62
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
63
+
64
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
65
+
66
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
67
+
68
+ /* eslint no-underscore-dangle: 0 */
69
+
70
+ /* eslint no-param-reassign: 0 */
71
+ var imgUrl = 'https://gw.alipayobjects.com/zos/rmsportal/gWyeGLCdFFRavBGIDzWk.png';
72
+
73
+ var TagCloud = /*#__PURE__*/function (_Component) {
74
+ _inherits(TagCloud, _Component);
75
+
76
+ var _super = _createSuper(TagCloud);
77
+
78
+ function TagCloud() {
79
+ var _this;
80
+
81
+ _classCallCheck(this, TagCloud);
82
+
83
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
84
+ args[_key] = arguments[_key];
85
+ }
86
+
87
+ _this = _super.call.apply(_super, [this].concat(args));
88
+ _this.state = {
89
+ dv: null,
90
+ height: 0,
91
+ width: 0
92
+ };
93
+ _this.isUnmount = false;
94
+ _this.requestRef = 0;
95
+ _this.root = undefined;
96
+ _this.imageMask = undefined;
97
+
98
+ _this.resize = function () {
99
+ _this.requestRef = requestAnimationFrame(function () {
100
+ _this.renderChart(_this.props);
101
+ });
102
+ };
103
+
104
+ _this.saveRootRef = function (node) {
105
+ _this.root = node;
106
+ };
107
+
108
+ _this.initTagCloud = function () {
109
+ function getTextAttrs(cfg) {
110
+ return _objectSpread(_objectSpread({}, cfg.style), {}, {
111
+ fillOpacity: cfg.opacity,
112
+ fontSize: cfg.origin._origin.size,
113
+ rotate: cfg.origin._origin.rotate,
114
+ text: cfg.origin._origin.text,
115
+ textAlign: 'center',
116
+ fontFamily: cfg.origin._origin.font,
117
+ fill: cfg.color,
118
+ textBaseline: 'Alphabetic'
119
+ });
120
+ }
121
+
122
+ (0, _bizcharts.registerShape)('point', 'cloud', {
123
+ draw: function draw(cfg, container) {
124
+ var attrs = getTextAttrs(cfg);
125
+ return container.addShape('text', {
126
+ attrs: _objectSpread(_objectSpread({}, attrs), {}, {
127
+ x: cfg.x,
128
+ y: cfg.y
129
+ })
130
+ });
131
+ }
132
+ });
133
+ };
134
+
135
+ _this.renderChart = (0, _lodash["default"])(function (nextProps) {
136
+ // const colors = ['#1890FF', '#41D9C7', '#2FC25B', '#FACC14', '#9AE65C'];
137
+ var _ref = nextProps || _this.props,
138
+ data = _ref.data,
139
+ height = _ref.height;
140
+
141
+ if (data.length < 1 || !_this.root) {
142
+ return;
143
+ }
144
+
145
+ var h = height;
146
+ var w = _this.root.offsetWidth;
147
+
148
+ var onload = function onload() {
149
+ var dv = new _dataSet["default"].View().source(data);
150
+ var range = dv.range('value');
151
+
152
+ var _range = _slicedToArray(range, 2),
153
+ min = _range[0],
154
+ max = _range[1];
155
+
156
+ dv.transform({
157
+ type: 'tag-cloud',
158
+ fields: ['name', 'value'],
159
+ imageMask: _this.imageMask,
160
+ font: 'Verdana',
161
+ size: [w, h],
162
+ // 宽高设置最好根据 imageMask 做调整
163
+ padding: 0,
164
+ timeInterval: 5000,
165
+ // max execute time
166
+ rotate: function rotate() {
167
+ return 0;
168
+ },
169
+ fontSize: function fontSize(d) {
170
+ var size = Math.pow((d.value - min) / (max - min), 2);
171
+ return size * (17.5 - 5) + 5;
172
+ }
173
+ });
174
+
175
+ if (_this.isUnmount) {
176
+ return;
177
+ }
178
+
179
+ _this.setState({
180
+ dv: dv,
181
+ width: w,
182
+ height: h
183
+ });
184
+ };
185
+
186
+ if (!_this.imageMask) {
187
+ _this.imageMask = new Image();
188
+ _this.imageMask.crossOrigin = '';
189
+ _this.imageMask.src = imgUrl;
190
+ _this.imageMask.onload = onload;
191
+ } else {
192
+ onload();
193
+ }
194
+ }, 500);
195
+ return _this;
196
+ }
197
+
198
+ _createClass(TagCloud, [{
199
+ key: "componentDidMount",
200
+ value: function componentDidMount() {
201
+ var _this2 = this;
202
+
203
+ requestAnimationFrame(function () {
204
+ _this2.initTagCloud();
205
+
206
+ _this2.renderChart(_this2.props);
207
+ });
208
+ window.addEventListener('resize', this.resize, {
209
+ passive: true
210
+ });
211
+ }
212
+ }, {
213
+ key: "componentDidUpdate",
214
+ value: function componentDidUpdate(preProps) {
215
+ var data = this.props.data;
216
+
217
+ if (preProps && JSON.stringify(preProps.data) !== JSON.stringify(data)) {
218
+ this.renderChart(this.props);
219
+ }
220
+ }
221
+ }, {
222
+ key: "componentWillUnmount",
223
+ value: function componentWillUnmount() {
224
+ this.isUnmount = true;
225
+ window.cancelAnimationFrame(this.requestRef);
226
+ window.removeEventListener('resize', this.resize);
227
+ }
228
+ }, {
229
+ key: "render",
230
+ value: function render() {
231
+ var className = this.props.className;
232
+ var _this$state = this.state,
233
+ dv = _this$state.dv,
234
+ width = _this$state.width,
235
+ stateHeight = _this$state.height;
236
+ return /*#__PURE__*/_react["default"].createElement(_autoHeight["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
237
+ className: (0, _classnames["default"])(_index["default"].tagCloud, className),
238
+ style: {
239
+ width: '100%',
240
+ height: "100%"
241
+ },
242
+ ref: this.saveRootRef
243
+ }, dv && /*#__PURE__*/_react["default"].createElement(_bizcharts.Chart, {
244
+ width: width,
245
+ height: stateHeight,
246
+ data: dv,
247
+ padding: 0,
248
+ scale: {
249
+ x: {
250
+ nice: false
251
+ },
252
+ y: {
253
+ nice: false
254
+ }
255
+ }
256
+ }, /*#__PURE__*/_react["default"].createElement(_bizcharts.Tooltip, {
257
+ showTitle: false
258
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Coordinate, {
259
+ reflect: "y"
260
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Geom, {
261
+ type: "point",
262
+ position: "x*y",
263
+ color: "text",
264
+ shape: "cloud",
265
+ tooltip: ['text*value', function trans(text, value) {
266
+ return {
267
+ name: text,
268
+ value: value
269
+ };
270
+ }]
271
+ }))));
272
+ }
273
+ }]);
274
+
275
+ return TagCloud;
276
+ }(_react.Component);
277
+
278
+ var _default = TagCloud;
279
+ exports["default"] = _default;
@@ -0,0 +1,2 @@
1
+ export default TimelineChart;
2
+ declare function TimelineChart(props: any): JSX.Element;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _bizcharts = require("bizcharts");
9
+
10
+ var _dataSet = _interopRequireDefault(require("@antv/data-set"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _autoHeight = _interopRequireDefault(require("../autoHeight"));
15
+
16
+ var _index = _interopRequireDefault(require("./index.less"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
21
+
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
+
24
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+
26
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
27
+
28
+ 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."); }
29
+
30
+ 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); }
31
+
32
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
+
34
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
35
+
36
+ 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; }
37
+
38
+ var TimelineChart = function TimelineChart(props) {
39
+ var title = props.title,
40
+ _props$height = props.height,
41
+ height = _props$height === void 0 ? 400 : _props$height,
42
+ _props$padding = props.padding,
43
+ padding = _props$padding === void 0 ? [60, 20, 40, 40] : _props$padding,
44
+ _props$titleMap = props.titleMap,
45
+ titleMap = _props$titleMap === void 0 ? {
46
+ y1: 'y1',
47
+ y2: 'y2'
48
+ } : _props$titleMap,
49
+ _props$borderWidth = props.borderWidth,
50
+ borderWidth = _props$borderWidth === void 0 ? 2 : _props$borderWidth,
51
+ sourceData = props.data;
52
+ var data = Array.isArray(sourceData) ? sourceData : [{
53
+ x: 0,
54
+ y1: 0,
55
+ y2: 0
56
+ }];
57
+ data.sort(function (a, b) {
58
+ return a.x - b.x;
59
+ });
60
+ var max;
61
+
62
+ if (data[0] && data[0].y1 && data[0].y2) {
63
+ max = Math.max(_toConsumableArray(data).sort(function (a, b) {
64
+ return b.y1 - a.y1;
65
+ })[0].y1, _toConsumableArray(data).sort(function (a, b) {
66
+ return b.y2 - a.y2;
67
+ })[0].y2);
68
+ }
69
+
70
+ var ds = new _dataSet["default"]({
71
+ state: {
72
+ start: data[0].x,
73
+ end: data[data.length - 1].x
74
+ }
75
+ });
76
+ var dv = ds.createView();
77
+ dv.source(data).transform({
78
+ type: 'filter',
79
+ callback: function callback(obj) {
80
+ var date = obj.x;
81
+ return date <= ds.state.end && date >= ds.state.start;
82
+ }
83
+ }).transform({
84
+ type: 'map',
85
+ callback: function callback(row) {
86
+ var newRow = _objectSpread({}, row);
87
+
88
+ newRow[titleMap.y1] = row.y1;
89
+ newRow[titleMap.y2] = row.y2;
90
+ return newRow;
91
+ }
92
+ }).transform({
93
+ type: 'fold',
94
+ fields: [titleMap.y1, titleMap.y2],
95
+ // 展开字段集
96
+ key: 'key',
97
+ // key字段
98
+ value: 'value' // value字段
99
+
100
+ });
101
+ var timeScale = {
102
+ type: 'time',
103
+ tickInterval: 60 * 60 * 1000,
104
+ mask: 'HH:mm',
105
+ range: [0, 1]
106
+ };
107
+ var cols = {
108
+ x: timeScale,
109
+ value: {
110
+ max: max,
111
+ min: 0
112
+ }
113
+ };
114
+
115
+ var SliderGen = function SliderGen() {
116
+ return /*#__PURE__*/_react["default"].createElement(_bizcharts.Slider, {
117
+ padding: [0, padding[1] + 20, 0, padding[3]],
118
+ width: "auto",
119
+ height: 26,
120
+ xAxis: "x",
121
+ yAxis: "y1",
122
+ scales: {
123
+ x: timeScale
124
+ },
125
+ data: data,
126
+ start: ds.state.start,
127
+ end: ds.state.end,
128
+ backgroundChart: {
129
+ type: 'line'
130
+ },
131
+ onChange: function onChange(_ref) {
132
+ var startValue = _ref.startValue,
133
+ endValue = _ref.endValue;
134
+ ds.setState('start', startValue);
135
+ ds.setState('end', endValue);
136
+ }
137
+ });
138
+ };
139
+
140
+ return /*#__PURE__*/_react["default"].createElement(_autoHeight["default"], null, /*#__PURE__*/_react["default"].createElement("div", {
141
+ style: {
142
+ height: "100%"
143
+ }
144
+ }, /*#__PURE__*/_react["default"].createElement("div", {
145
+ className: _index["default"].timelineChart,
146
+ style: {
147
+ height: height + 30
148
+ }
149
+ }, /*#__PURE__*/_react["default"].createElement("div", null, title && /*#__PURE__*/_react["default"].createElement("h4", null, title), /*#__PURE__*/_react["default"].createElement(_bizcharts.Chart, {
150
+ height: height,
151
+ padding: padding,
152
+ data: dv,
153
+ scale: cols,
154
+ forceFit: true
155
+ }, /*#__PURE__*/_react["default"].createElement(_bizcharts.Axis, {
156
+ name: "x"
157
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Tooltip, null), /*#__PURE__*/_react["default"].createElement(_bizcharts.Legend, {
158
+ name: "key",
159
+ position: "top"
160
+ }), /*#__PURE__*/_react["default"].createElement(_bizcharts.Geom, {
161
+ type: "line",
162
+ position: "x*value",
163
+ size: borderWidth,
164
+ color: "key"
165
+ })), /*#__PURE__*/_react["default"].createElement("div", {
166
+ style: {
167
+ marginRight: -20
168
+ }
169
+ }, /*#__PURE__*/_react["default"].createElement(SliderGen, null))))));
170
+ };
171
+
172
+ var _default = TimelineChart;
173
+ exports["default"] = _default;