aldehyde 0.0.10 → 0.0.11

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 (390) hide show
  1. package/lib/components/chart/antd/chart-utils.d.ts +7 -0
  2. package/lib/components/chart/antd/chart-utils.d.ts.map +1 -0
  3. package/lib/components/chart/antd/chart-utils.js +46 -0
  4. package/lib/components/chart/antd/chart-utils.js.map +1 -0
  5. package/lib/components/chart/antd/column-chart-sub.d.ts +7 -0
  6. package/lib/components/chart/antd/column-chart-sub.d.ts.map +1 -0
  7. package/lib/components/chart/antd/column-chart-sub.js +50 -0
  8. package/lib/components/chart/antd/column-chart-sub.js.map +1 -0
  9. package/lib/components/chart/antd/line-chart-sub.d.ts +7 -0
  10. package/lib/components/chart/antd/line-chart-sub.d.ts.map +1 -0
  11. package/lib/components/chart/antd/line-chart-sub.js +49 -0
  12. package/lib/components/chart/antd/line-chart-sub.js.map +1 -0
  13. package/lib/components/chart/antd/pie-chart-sub.d.ts +7 -0
  14. package/lib/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
  15. package/lib/components/chart/antd/pie-chart-sub.js +37 -0
  16. package/lib/components/chart/antd/pie-chart-sub.js.map +1 -0
  17. package/lib/components/chart/antd/statview-d2-chart.d.ts +17 -0
  18. package/lib/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
  19. package/lib/components/chart/antd/statview-d2-chart.js +108 -0
  20. package/lib/components/chart/antd/statview-d2-chart.js.map +1 -0
  21. package/lib/components/chart/statview-l2-chart.d.ts +23 -0
  22. package/lib/components/chart/statview-l2-chart.d.ts.map +1 -0
  23. package/lib/components/chart/statview-l2-chart.js +64 -0
  24. package/lib/components/chart/statview-l2-chart.js.map +1 -0
  25. package/lib/components/controls/action/index.css +9 -0
  26. package/lib/components/controls/action/index.d.ts +47 -0
  27. package/lib/components/controls/action/index.d.ts.map +1 -0
  28. package/lib/components/controls/action/index.js +165 -0
  29. package/lib/components/controls/action/index.js.map +1 -0
  30. package/lib/components/controls/action/utils.d.ts +9 -0
  31. package/lib/components/controls/action/utils.d.ts.map +1 -0
  32. package/lib/components/controls/action/utils.js +110 -0
  33. package/lib/components/controls/action/utils.js.map +1 -0
  34. package/lib/components/controls/auto-complete/index.d.ts +7 -0
  35. package/lib/components/controls/auto-complete/index.d.ts.map +1 -0
  36. package/lib/components/controls/auto-complete/index.js +53 -0
  37. package/lib/components/controls/auto-complete/index.js.map +1 -0
  38. package/lib/components/controls/chemstruc/graph.d.ts +31 -0
  39. package/lib/components/controls/chemstruc/graph.d.ts.map +1 -0
  40. package/lib/components/controls/chemstruc/graph.js +121 -0
  41. package/lib/components/controls/chemstruc/graph.js.map +1 -0
  42. package/lib/components/controls/chemstruc/index.css +28 -0
  43. package/lib/components/controls/collapse-card/index.css +9 -0
  44. package/lib/components/controls/collapse-card/index.d.ts +20 -0
  45. package/lib/components/controls/collapse-card/index.d.ts.map +1 -0
  46. package/lib/components/controls/collapse-card/index.js +63 -0
  47. package/lib/components/controls/collapse-card/index.js.map +1 -0
  48. package/lib/components/controls/color-picker/index.css +27 -0
  49. package/lib/components/controls/color-picker/index.d.ts +19 -0
  50. package/lib/components/controls/color-picker/index.d.ts.map +1 -0
  51. package/lib/components/controls/color-picker/index.js +61 -0
  52. package/lib/components/controls/color-picker/index.js.map +1 -0
  53. package/lib/components/controls/cquery/cquick-button.d.ts +20 -0
  54. package/lib/components/controls/cquery/cquick-button.d.ts.map +1 -0
  55. package/lib/components/controls/cquery/cquick-button.js +67 -0
  56. package/lib/components/controls/cquery/cquick-button.js.map +1 -0
  57. package/lib/components/controls/date-picker/index.d.ts +7 -0
  58. package/lib/components/controls/date-picker/index.d.ts.map +1 -0
  59. package/lib/components/controls/date-picker/index.js +91 -0
  60. package/lib/components/controls/date-picker/index.js.map +1 -0
  61. package/lib/components/controls/entity-select/entity-select.d.ts +53 -0
  62. package/lib/components/controls/entity-select/entity-select.d.ts.map +1 -0
  63. package/lib/components/controls/entity-select/entity-select.js +227 -0
  64. package/lib/components/controls/entity-select/entity-select.js.map +1 -0
  65. package/lib/components/controls/entity-select/index.css +6 -0
  66. package/lib/components/controls/entity-select/popover-entity-select.d.ts +20 -0
  67. package/lib/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
  68. package/lib/components/controls/entity-select/popover-entity-select.js +80 -0
  69. package/lib/components/controls/entity-select/popover-entity-select.js.map +1 -0
  70. package/lib/components/controls/entry-control.d.ts +11 -0
  71. package/lib/components/controls/entry-control.d.ts.map +1 -0
  72. package/lib/components/controls/entry-control.js +171 -0
  73. package/lib/components/controls/entry-control.js.map +1 -0
  74. package/lib/components/controls/enum-badge/index.d.ts +7 -0
  75. package/lib/components/controls/enum-badge/index.d.ts.map +1 -0
  76. package/lib/components/controls/enum-badge/index.js +14 -0
  77. package/lib/components/controls/enum-badge/index.js.map +1 -0
  78. package/lib/components/controls/enum-tag/index.d.ts +7 -0
  79. package/lib/components/controls/enum-tag/index.d.ts.map +1 -0
  80. package/lib/components/controls/enum-tag/index.js +18 -0
  81. package/lib/components/controls/enum-tag/index.js.map +1 -0
  82. package/lib/components/controls/file-view/drawer-file-view.d.ts +18 -0
  83. package/lib/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
  84. package/lib/components/controls/file-view/drawer-file-view.js +51 -0
  85. package/lib/components/controls/file-view/drawer-file-view.js.map +1 -0
  86. package/lib/components/controls/file-view/index.d.ts +23 -0
  87. package/lib/components/controls/file-view/index.d.ts.map +1 -0
  88. package/lib/components/controls/file-view/index.js +130 -0
  89. package/lib/components/controls/file-view/index.js.map +1 -0
  90. package/lib/components/controls/html-editor/draft.d.ts +22 -0
  91. package/lib/components/controls/html-editor/draft.d.ts.map +1 -0
  92. package/lib/components/controls/html-editor/draft.js +122 -0
  93. package/lib/components/controls/html-editor/draft.js.map +1 -0
  94. package/lib/components/controls/input-number/index.d.ts +7 -0
  95. package/lib/components/controls/input-number/index.d.ts.map +1 -0
  96. package/lib/components/controls/input-number/index.js +67 -0
  97. package/lib/components/controls/input-number/index.js.map +1 -0
  98. package/lib/components/controls/input-range/index.d.ts +7 -0
  99. package/lib/components/controls/input-range/index.d.ts.map +1 -0
  100. package/lib/components/controls/input-range/index.js +28 -0
  101. package/lib/components/controls/input-range/index.js.map +1 -0
  102. package/lib/components/controls/password-setter/index.css +3 -0
  103. package/lib/components/controls/progress/index.d.ts +7 -0
  104. package/lib/components/controls/progress/index.d.ts.map +1 -0
  105. package/lib/components/controls/progress/index.js +45 -0
  106. package/lib/components/controls/progress/index.js.map +1 -0
  107. package/lib/components/controls/relation-existion/index.css +4 -0
  108. package/lib/components/controls/relation-existion/index.d.ts +20 -0
  109. package/lib/components/controls/relation-existion/index.d.ts.map +1 -0
  110. package/lib/components/controls/relation-existion/index.js +75 -0
  111. package/lib/components/controls/relation-existion/index.js.map +1 -0
  112. package/lib/components/controls/rfield/index.css +4 -0
  113. package/lib/components/controls/rfield/index.d.ts +29 -0
  114. package/lib/components/controls/rfield/index.d.ts.map +1 -0
  115. package/lib/components/controls/rfield/index.js +130 -0
  116. package/lib/components/controls/rfield/index.js.map +1 -0
  117. package/lib/components/controls/signature/index.d.ts +31 -0
  118. package/lib/components/controls/signature/index.d.ts.map +1 -0
  119. package/lib/components/controls/signature/index.js +129 -0
  120. package/lib/components/controls/signature/index.js.map +1 -0
  121. package/lib/components/controls/steps/index.d.ts +7 -0
  122. package/lib/components/controls/steps/index.d.ts.map +1 -0
  123. package/lib/components/controls/steps/index.js +42 -0
  124. package/lib/components/controls/steps/index.js.map +1 -0
  125. package/lib/components/controls/text/ellipsis-text.d.ts +22 -0
  126. package/lib/components/controls/text/ellipsis-text.d.ts.map +1 -0
  127. package/lib/components/controls/text/ellipsis-text.js +46 -0
  128. package/lib/components/controls/text/ellipsis-text.js.map +1 -0
  129. package/lib/components/controls/upload/index.d.ts +15 -0
  130. package/lib/components/controls/upload/index.d.ts.map +1 -0
  131. package/lib/components/controls/upload/index.js +100 -0
  132. package/lib/components/controls/upload/index.js.map +1 -0
  133. package/lib/components/controls/view-control.d.ts +10 -0
  134. package/lib/components/controls/view-control.d.ts.map +1 -0
  135. package/lib/components/controls/view-control.js +150 -0
  136. package/lib/components/controls/view-control.js.map +1 -0
  137. package/lib/components/detail/button/cquery-button-bar.d.ts +16 -0
  138. package/lib/components/detail/button/cquery-button-bar.d.ts.map +1 -0
  139. package/lib/components/detail/button/cquery-button-bar.js +75 -0
  140. package/lib/components/detail/button/cquery-button-bar.js.map +1 -0
  141. package/lib/components/detail/button/index.css +43 -0
  142. package/lib/components/detail/button/submit-button-bar.d.ts +19 -0
  143. package/lib/components/detail/button/submit-button-bar.d.ts.map +1 -0
  144. package/lib/components/detail/button/submit-button-bar.js +99 -0
  145. package/lib/components/detail/button/submit-button-bar.js.map +1 -0
  146. package/lib/components/detail/dtmpl.css +53 -0
  147. package/lib/components/detail/edit/dtmpl-edit.d.ts +48 -0
  148. package/lib/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
  149. package/lib/components/detail/edit/dtmpl-edit.js +190 -0
  150. package/lib/components/detail/edit/dtmpl-edit.js.map +1 -0
  151. package/lib/components/detail/edit/fields-edit-card.d.ts +39 -0
  152. package/lib/components/detail/edit/fields-edit-card.d.ts.map +1 -0
  153. package/lib/components/detail/edit/fields-edit-card.js +64 -0
  154. package/lib/components/detail/edit/fields-edit-card.js.map +1 -0
  155. package/lib/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
  156. package/lib/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
  157. package/lib/components/detail/edit/modal-dtmpl-edit.js +168 -0
  158. package/lib/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
  159. package/lib/components/detail/edit/modal-row-edit.d.ts +31 -0
  160. package/lib/components/detail/edit/modal-row-edit.d.ts.map +1 -0
  161. package/lib/components/detail/edit/modal-row-edit.js +56 -0
  162. package/lib/components/detail/edit/modal-row-edit.js.map +1 -0
  163. package/lib/components/detail/edit/post-result/index.d.ts +17 -0
  164. package/lib/components/detail/edit/post-result/index.d.ts.map +1 -0
  165. package/lib/components/detail/edit/post-result/index.js +28 -0
  166. package/lib/components/detail/edit/post-result/index.js.map +1 -0
  167. package/lib/components/detail/edit/row-edit-card.d.ts +42 -0
  168. package/lib/components/detail/edit/row-edit-card.d.ts.map +1 -0
  169. package/lib/components/detail/edit/row-edit-card.js +84 -0
  170. package/lib/components/detail/edit/row-edit-card.js.map +1 -0
  171. package/lib/components/detail/edit/row-editor.d.ts +31 -0
  172. package/lib/components/detail/edit/row-editor.d.ts.map +1 -0
  173. package/lib/components/detail/edit/row-editor.js +55 -0
  174. package/lib/components/detail/edit/row-editor.js.map +1 -0
  175. package/lib/components/detail/rightbar/index.css +35 -0
  176. package/lib/components/detail/rightbar/index.d.ts +20 -0
  177. package/lib/components/detail/rightbar/index.d.ts.map +1 -0
  178. package/lib/components/detail/rightbar/index.js +51 -0
  179. package/lib/components/detail/rightbar/index.js.map +1 -0
  180. package/lib/components/detail/view/act-dtmpl-view.d.ts +46 -0
  181. package/lib/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
  182. package/lib/components/detail/view/act-dtmpl-view.js +110 -0
  183. package/lib/components/detail/view/act-dtmpl-view.js.map +1 -0
  184. package/lib/components/detail/view/dtmpl-view.d.ts +42 -0
  185. package/lib/components/detail/view/dtmpl-view.d.ts.map +1 -0
  186. package/lib/components/detail/view/dtmpl-view.js +111 -0
  187. package/lib/components/detail/view/dtmpl-view.js.map +1 -0
  188. package/lib/components/detail/view/field-view-group.d.ts +17 -0
  189. package/lib/components/detail/view/field-view-group.d.ts.map +1 -0
  190. package/lib/components/detail/view/field-view-group.js +51 -0
  191. package/lib/components/detail/view/field-view-group.js.map +1 -0
  192. package/lib/components/detail/view/modal-dtmpl-view.d.ts +27 -0
  193. package/lib/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
  194. package/lib/components/detail/view/modal-dtmpl-view.js +32 -0
  195. package/lib/components/detail/view/modal-dtmpl-view.js.map +1 -0
  196. package/lib/components/detail/view/snapshot-timeline.d.ts +32 -0
  197. package/lib/components/detail/view/snapshot-timeline.d.ts.map +1 -0
  198. package/lib/components/detail/view/snapshot-timeline.js +90 -0
  199. package/lib/components/detail/view/snapshot-timeline.js.map +1 -0
  200. package/lib/components/exportor/export-frame.css +3 -0
  201. package/lib/components/exportor/export-frame.d.ts +50 -0
  202. package/lib/components/exportor/export-frame.d.ts.map +1 -0
  203. package/lib/components/exportor/export-frame.js +140 -0
  204. package/lib/components/exportor/export-frame.js.map +1 -0
  205. package/lib/components/exportor/index.d.ts +16 -0
  206. package/lib/components/exportor/index.d.ts.map +1 -0
  207. package/lib/components/exportor/index.js +44 -0
  208. package/lib/components/exportor/index.js.map +1 -0
  209. package/lib/components/form/criteria-form.d.ts +19 -0
  210. package/lib/components/form/criteria-form.d.ts.map +1 -0
  211. package/lib/components/form/criteria-form.js +167 -0
  212. package/lib/components/form/criteria-form.js.map +1 -0
  213. package/lib/components/form/dtmpl-form.css +4 -0
  214. package/lib/components/form/dtmpl-form.d.ts +37 -0
  215. package/lib/components/form/dtmpl-form.d.ts.map +1 -0
  216. package/lib/components/form/dtmpl-form.js +213 -0
  217. package/lib/components/form/dtmpl-form.js.map +1 -0
  218. package/lib/components/form/field-group-form.d.ts +21 -0
  219. package/lib/components/form/field-group-form.d.ts.map +1 -0
  220. package/lib/components/form/field-group-form.js +58 -0
  221. package/lib/components/form/field-group-form.js.map +1 -0
  222. package/lib/components/form/fields-form.d.ts +20 -0
  223. package/lib/components/form/fields-form.d.ts.map +1 -0
  224. package/lib/components/form/fields-form.js +39 -0
  225. package/lib/components/form/fields-form.js.map +1 -0
  226. package/lib/components/form/form-Item-group.d.ts +22 -0
  227. package/lib/components/form/form-Item-group.d.ts.map +1 -0
  228. package/lib/components/form/form-Item-group.js +60 -0
  229. package/lib/components/form/form-Item-group.js.map +1 -0
  230. package/lib/components/form/index.css +13 -0
  231. package/lib/components/import/excel-import.d.ts +48 -0
  232. package/lib/components/import/excel-import.d.ts.map +1 -0
  233. package/lib/components/import/excel-import.js +234 -0
  234. package/lib/components/import/excel-import.js.map +1 -0
  235. package/lib/components/import/index.css +54 -0
  236. package/lib/components/import/template.css +51 -0
  237. package/lib/components/layout/MainPage.d.ts +32 -0
  238. package/lib/components/layout/MainPage.d.ts.map +1 -0
  239. package/lib/components/layout/MainPage.js +202 -0
  240. package/lib/components/layout/MainPage.js.map +1 -0
  241. package/lib/components/layout/footer/index.css +6 -0
  242. package/lib/components/layout/header/index.css +86 -0
  243. package/lib/components/layout/header/index.d.ts +16 -0
  244. package/lib/components/layout/header/index.d.ts.map +1 -0
  245. package/lib/components/layout/header/index.js +37 -0
  246. package/lib/components/layout/header/index.js.map +1 -0
  247. package/lib/components/layout/menu/block.d.ts +9 -0
  248. package/lib/components/layout/menu/block.d.ts.map +1 -0
  249. package/lib/components/layout/menu/block.js +48 -0
  250. package/lib/components/layout/menu/block.js.map +1 -0
  251. package/lib/components/layout/menu/l2menu-message-bar.d.ts +24 -0
  252. package/lib/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
  253. package/lib/components/layout/menu/l2menu-message-bar.js +97 -0
  254. package/lib/components/layout/menu/l2menu-message-bar.js.map +1 -0
  255. package/lib/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
  256. package/lib/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
  257. package/lib/components/layout/menu/l2menu-quick-bar.js +94 -0
  258. package/lib/components/layout/menu/l2menu-quick-bar.js.map +1 -0
  259. package/lib/components/layout/menu/menu-2layers.d.ts +9 -0
  260. package/lib/components/layout/menu/menu-2layers.d.ts.map +1 -0
  261. package/lib/components/layout/menu/menu-2layers.js +63 -0
  262. package/lib/components/layout/menu/menu-2layers.js.map +1 -0
  263. package/lib/components/layout/menu/menu-render.d.ts +8 -0
  264. package/lib/components/layout/menu/menu-render.d.ts.map +1 -0
  265. package/lib/components/layout/menu/menu-render.js +44 -0
  266. package/lib/components/layout/menu/menu-render.js.map +1 -0
  267. package/lib/components/layout/menu/reset-password.d.ts +25 -0
  268. package/lib/components/layout/menu/reset-password.d.ts.map +1 -0
  269. package/lib/components/layout/menu/reset-password.js +113 -0
  270. package/lib/components/layout/menu/reset-password.js.map +1 -0
  271. package/lib/components/layout/menu/user-bar.d.ts +19 -0
  272. package/lib/components/layout/menu/user-bar.d.ts.map +1 -0
  273. package/lib/components/layout/menu/user-bar.js +61 -0
  274. package/lib/components/layout/menu/user-bar.js.map +1 -0
  275. package/lib/components/layout/menu/userinfo-bar.d.ts +18 -0
  276. package/lib/components/layout/menu/userinfo-bar.d.ts.map +1 -0
  277. package/lib/components/layout/menu/userinfo-bar.js +50 -0
  278. package/lib/components/layout/menu/userinfo-bar.js.map +1 -0
  279. package/lib/components/layout/sidebar/index.css +26 -0
  280. package/lib/components/layout/sidebar/index.d.ts +12 -0
  281. package/lib/components/layout/sidebar/index.d.ts.map +1 -0
  282. package/lib/components/layout/sidebar/index.js +19 -0
  283. package/lib/components/layout/sidebar/index.js.map +1 -0
  284. package/lib/components/module/dtmpl-page.d.ts +19 -0
  285. package/lib/components/module/dtmpl-page.d.ts.map +1 -0
  286. package/lib/components/module/dtmpl-page.js +46 -0
  287. package/lib/components/module/dtmpl-page.js.map +1 -0
  288. package/lib/components/module/ltmpl-page.d.ts +34 -0
  289. package/lib/components/module/ltmpl-page.d.ts.map +1 -0
  290. package/lib/components/module/ltmpl-page.js +154 -0
  291. package/lib/components/module/ltmpl-page.js.map +1 -0
  292. package/lib/components/routable/dtmpl-route.d.ts +17 -0
  293. package/lib/components/routable/dtmpl-route.d.ts.map +1 -0
  294. package/lib/components/routable/dtmpl-route.js +77 -0
  295. package/lib/components/routable/dtmpl-route.js.map +1 -0
  296. package/lib/components/routable/import-route.d.ts +13 -0
  297. package/lib/components/routable/import-route.d.ts.map +1 -0
  298. package/lib/components/routable/import-route.js +29 -0
  299. package/lib/components/routable/import-route.js.map +1 -0
  300. package/lib/components/routable/ltmpl-route.d.ts +25 -0
  301. package/lib/components/routable/ltmpl-route.d.ts.map +1 -0
  302. package/lib/components/routable/ltmpl-route.js +145 -0
  303. package/lib/components/routable/ltmpl-route.js.map +1 -0
  304. package/lib/components/table/act-table.d.ts +76 -0
  305. package/lib/components/table/act-table.d.ts.map +1 -0
  306. package/lib/components/table/act-table.js +454 -0
  307. package/lib/components/table/act-table.js.map +1 -0
  308. package/lib/components/table/column/column-selector.d.ts +26 -0
  309. package/lib/components/table/column/column-selector.d.ts.map +1 -0
  310. package/lib/components/table/column/column-selector.js +59 -0
  311. package/lib/components/table/column/column-selector.js.map +1 -0
  312. package/lib/components/table/column/index.css +14 -0
  313. package/lib/components/table/index.css +45 -0
  314. package/lib/components/table/l2-act-table.d.ts +23 -0
  315. package/lib/components/table/l2-act-table.d.ts.map +1 -0
  316. package/lib/components/table/l2-act-table.js +80 -0
  317. package/lib/components/table/l2-act-table.js.map +1 -0
  318. package/lib/components/table/modal-select-table.d.ts +41 -0
  319. package/lib/components/table/modal-select-table.d.ts.map +1 -0
  320. package/lib/components/table/modal-select-table.js +208 -0
  321. package/lib/components/table/modal-select-table.js.map +1 -0
  322. package/lib/components/table/pagination.css +15 -0
  323. package/lib/components/table/pagination.d.ts +17 -0
  324. package/lib/components/table/pagination.d.ts.map +1 -0
  325. package/lib/components/table/pagination.js +40 -0
  326. package/lib/components/table/pagination.js.map +1 -0
  327. package/lib/components/table/query-table.d.ts +65 -0
  328. package/lib/components/table/query-table.d.ts.map +1 -0
  329. package/lib/components/table/query-table.js +257 -0
  330. package/lib/components/table/query-table.js.map +1 -0
  331. package/lib/components/table/relation-table.d.ts +61 -0
  332. package/lib/components/table/relation-table.d.ts.map +1 -0
  333. package/lib/components/table/relation-table.js +444 -0
  334. package/lib/components/table/relation-table.js.map +1 -0
  335. package/lib/components/table/select-table.d.ts +40 -0
  336. package/lib/components/table/select-table.d.ts.map +1 -0
  337. package/lib/components/table/select-table.js +223 -0
  338. package/lib/components/table/select-table.js.map +1 -0
  339. package/lib/components/table/selected-rows-card.d.ts +16 -0
  340. package/lib/components/table/selected-rows-card.d.ts.map +1 -0
  341. package/lib/components/table/selected-rows-card.js +47 -0
  342. package/lib/components/table/selected-rows-card.js.map +1 -0
  343. package/lib/components/table/stat/restat.d.ts +26 -0
  344. package/lib/components/table/stat/restat.d.ts.map +1 -0
  345. package/lib/components/table/stat/restat.js +61 -0
  346. package/lib/components/table/stat/restat.js.map +1 -0
  347. package/lib/components/table/table-util.d.ts +5 -0
  348. package/lib/components/table/table-util.d.ts.map +1 -0
  349. package/lib/components/table/table-util.js +30 -0
  350. package/lib/components/table/table-util.js.map +1 -0
  351. package/lib/components/tmpl/control-type-supportor.d.ts +9 -0
  352. package/lib/components/tmpl/control-type-supportor.d.ts.map +1 -0
  353. package/lib/components/tmpl/control-type-supportor.js +85 -0
  354. package/lib/components/tmpl/control-type-supportor.js.map +1 -0
  355. package/lib/components/tmpl/hc-data-source.d.ts +19 -0
  356. package/lib/components/tmpl/hc-data-source.d.ts.map +1 -0
  357. package/lib/components/tmpl/hc-data-source.js +230 -0
  358. package/lib/components/tmpl/hc-data-source.js.map +1 -0
  359. package/lib/components/tmpl/hcservice-v3.d.ts +53 -0
  360. package/lib/components/tmpl/hcservice-v3.d.ts.map +1 -0
  361. package/lib/components/tmpl/hcservice-v3.js +639 -0
  362. package/lib/components/tmpl/hcservice-v3.js.map +1 -0
  363. package/lib/components/tmpl/interface.d.ts +234 -0
  364. package/lib/components/tmpl/interface.d.ts.map +1 -0
  365. package/lib/components/tmpl/interface.js +4 -0
  366. package/lib/components/tmpl/interface.js.map +1 -0
  367. package/lib/components/tmpl/tmpl-config-analysis.d.ts +7 -0
  368. package/lib/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
  369. package/lib/components/tmpl/tmpl-config-analysis.js +106 -0
  370. package/lib/components/tmpl/tmpl-config-analysis.js.map +1 -0
  371. package/lib/components/units/index.d.ts +58 -0
  372. package/lib/components/units/index.d.ts.map +1 -0
  373. package/lib/components/units/index.js +525 -0
  374. package/lib/components/units/index.js.map +1 -0
  375. package/lib/components/welcome/index.css +13 -0
  376. package/lib/components/welcome/quick-entrance.d.ts +20 -0
  377. package/lib/components/welcome/quick-entrance.d.ts.map +1 -0
  378. package/lib/components/welcome/quick-entrance.js +79 -0
  379. package/lib/components/welcome/quick-entrance.js.map +1 -0
  380. package/lib/components/welcome/workbench.d.ts +20 -0
  381. package/lib/components/welcome/workbench.d.ts.map +1 -0
  382. package/lib/components/welcome/workbench.js +78 -0
  383. package/lib/components/welcome/workbench.js.map +1 -0
  384. package/lib/index.d.ts +4 -0
  385. package/lib/index.d.ts.map +1 -0
  386. package/lib/index.js.map +1 -0
  387. package/lib/style/common.css +79 -0
  388. package/lib/style/coverstyle.css +49 -0
  389. package/lib/style/transstyle.css +24 -0
  390. package/package.json +3 -2
@@ -0,0 +1,7 @@
1
+ import { DtmplData, LtmplConfig } from "../../tmpl/interface";
2
+ declare const _default: {
3
+ transValueFloat(ltmpl: LtmplConfig, data: DtmplData[]): any[];
4
+ transValueFloatGroupByDim(ltmpl: LtmplConfig, data: DtmplData[], dimension: any): Map<any, any>;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=chart-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/antd/chart-utils.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;;2BAIlC,WAAW,QAAM,SAAS,EAAE;qCAqBlB,WAAW,QAAM,SAAS,EAAE;;AAtBhE,wBA6CC"}
@@ -0,0 +1,46 @@
1
+ export default {
2
+ transValueFloat(ltmpl, data) {
3
+ let data_ = [];
4
+ let cols = ltmpl.columns;
5
+ if (data) {
6
+ data.map(function (val) {
7
+ let value = {};
8
+ Object.keys(val.fieldMap).forEach((key) => {
9
+ cols.forEach((col) => {
10
+ if (col.id == key) {
11
+ let v1 = parseFloat(val.fieldMap[key]);
12
+ value[col.title] = isNaN(v1) ? val.fieldMap[key] : v1;
13
+ return;
14
+ }
15
+ });
16
+ });
17
+ data_.push(value);
18
+ });
19
+ }
20
+ console.log("chartData:", data_);
21
+ return data_;
22
+ },
23
+ transValueFloatGroupByDim(ltmpl, data, dimension) {
24
+ let dimKey = dimension.id;
25
+ //先分类
26
+ let map1 = new Map();
27
+ if (data) {
28
+ data.map(function (val) {
29
+ let v1 = val.fieldMap[dimKey];
30
+ if (v1) {
31
+ if (!map1.has(v1)) {
32
+ map1.set(v1, []);
33
+ }
34
+ map1.get(v1).push(val);
35
+ }
36
+ });
37
+ }
38
+ let map2 = new Map();
39
+ //再转换
40
+ for (let [key, value] of map1) {
41
+ map2.set(key, this.transValueFloat(ltmpl, value));
42
+ }
43
+ return map2;
44
+ },
45
+ };
46
+ //# sourceMappingURL=chart-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-utils.js","sourceRoot":"","sources":["../../../../src/components/chart/antd/chart-utils.tsx"],"names":[],"mappings":"AAIA,eAAe;IACX,eAAe,CAAC,KAAiB,EAAC,IAAgB;QAC9C,IAAI,KAAK,GAAC,EAAE,CAAC;QACb,IAAI,IAAI,GAAE,KAAK,CAAC,OAAO,CAAC;QACxB,IAAG,IAAI,EAAC;YACJ,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG;gBAClB,IAAI,KAAK,GAAC,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAC,EAAE;oBACrC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAC,EAAE;wBAChB,IAAG,GAAG,CAAC,EAAE,IAAE,GAAG,EAAC;4BACX,IAAI,EAAE,GAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;4BACrC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAC,KAAK,CAAC,EAAE,CAAC,CAAA,CAAC,CAAA,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA,CAAC,CAAA,EAAE,CAAC;4BAChD,OAAO;yBACV;oBACL,CAAC,CAAC,CAAA;gBACN,CAAC,CAAC,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,CAAC,CAAA;SACL;QACD,OAAO,CAAC,GAAG,CAAC,YAAY,EAAC,KAAK,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,yBAAyB,CAAC,KAAiB,EAAC,IAAgB,EAAC,SAAS;QAElE,IAAI,MAAM,GAAC,SAAS,CAAC,EAAE,CAAC;QACxB,KAAK;QACL,IAAI,IAAI,GAAC,IAAI,GAAG,EAAE,CAAC;QACnB,IAAG,IAAI,EAAC;YACJ,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG;gBAClB,IAAI,EAAE,GAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAC5B,IAAG,EAAE,EAAC;oBACF,IAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAC;wBACb,IAAI,CAAC,GAAG,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;qBACnB;oBACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBAC1B;YACL,CAAC,CAAC,CAAA;SACL;QACD,IAAI,IAAI,GAAC,IAAI,GAAG,EAAE,CAAC;QACnB,KAAK;QACL,KAAI,IAAI,CAAC,GAAG,EAAC,KAAK,CAAC,IAAI,IAAI,EAAC;YACxB,IAAI,CAAC,GAAG,CAAC,GAAG,EAAC,IAAI,CAAC,eAAe,CAAC,KAAK,EAAC,KAAK,CAAC,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { SubChartProps } from "../../tmpl/interface";
3
+ interface ColumnChartProps extends SubChartProps {
4
+ }
5
+ declare const ColumnChart: React.FC<ColumnChartProps>;
6
+ export default ColumnChart;
7
+ //# sourceMappingURL=column-chart-sub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-chart-sub.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/antd/column-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,UAAU,gBAAiB,SAAQ,aAAa;CAE/C;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqD3C,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,50 @@
1
+ import React, { useRef } from "react";
2
+ import { Column } from '@ant-design/charts';
3
+ import { Space } from 'antd';
4
+ ;
5
+ const ColumnChart = (paras) => {
6
+ // const ref = React.createRef<Plot<ColumnOptions>>();
7
+ const ref = useRef();
8
+ const downloadImage = () => {
9
+ if (ref.current) {
10
+ // @ts-ignore
11
+ ref.current.downloadImage();
12
+ }
13
+ };
14
+ const config = {
15
+ data: paras.data,
16
+ height: 400,
17
+ xField: paras.config.xField,
18
+ yField: paras.config.yField,
19
+ point: {
20
+ size: 5,
21
+ shape: 'diamond',
22
+ },
23
+ xAxis: {
24
+ title: {
25
+ text: paras.config.xAxisTitle,
26
+ style: { fontSize: 14 },
27
+ },
28
+ },
29
+ yAxis: {
30
+ title: {
31
+ text: paras.config.yAxisTitle,
32
+ style: { fontSize: 14 },
33
+ },
34
+ },
35
+ label: {
36
+ style: {
37
+ fill: '#aaa',
38
+ },
39
+ },
40
+ };
41
+ return React.createElement("div", null,
42
+ React.createElement(Space, { direction: "vertical", size: 'middle', style: { width: '100%' } },
43
+ React.createElement("button", { type: "button", onClick: downloadImage, style: { marginRight: 24 } }, "\u5BFC\u51FA"),
44
+ React.createElement(Column, Object.assign({}, config, { onReady: (plot) => {
45
+ // @ts-ignore
46
+ ref.current = plot;
47
+ } }))));
48
+ };
49
+ export default ColumnChart;
50
+ //# sourceMappingURL=column-chart-sub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-chart-sub.js","sourceRoot":"","sources":["../../../../src/components/chart/antd/column-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAG,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAO,oBAAoB,CAAC;AAE3C,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAK1B,CAAC;AAEF,MAAM,WAAW,GAA+B,CAAC,KAAK,EAAE,EAAE;IAEtD,sDAAsD;IACtD,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAG,GAAG,CAAC,OAAO,EAAC;YACX,aAAa;YACb,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAA;SAC9B;IACL,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG;QACX,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3B,KAAK,EAAE;YACH,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,SAAS;SACnB;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,EAAC,QAAQ,EAAE,EAAE,EAAC;aACxB;SACJ;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,EAAC,QAAQ,EAAE,EAAE,EAAC;aACxB;SACJ;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,MAAM;aACf;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,oBAAC,KAAK,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC;YAC9D,gCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,WAAW,EAAE,EAAE,EAAC,mBAE7D;YACT,oBAAC,MAAM,oBAAM,MAAM,IAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBACnC,aAAa;oBACb,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;gBACvB,CAAC,IAAG,CACA,CAEN,CAAA;AAEV,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { SubChartProps } from "../../tmpl/interface";
3
+ interface LineChartProps extends SubChartProps {
4
+ }
5
+ declare const LineChart: React.FC<LineChartProps>;
6
+ export default LineChart;
7
+ //# sourceMappingURL=line-chart-sub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-chart-sub.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/antd/line-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,UAAU,cAAe,SAAQ,aAAa;CAE7C;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoDvC,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,49 @@
1
+ import React, { useRef } from "react";
2
+ import { Line } from '@ant-design/charts';
3
+ import { Space } from 'antd';
4
+ ;
5
+ const LineChart = (paras) => {
6
+ const ref = useRef();
7
+ const downloadImage = () => {
8
+ if (ref.current) {
9
+ // @ts-ignore
10
+ ref.current.downloadImage(paras.config.xAxisTitle + "_" + paras.config.yAxisTitle);
11
+ }
12
+ };
13
+ const config = {
14
+ data: paras.data,
15
+ height: 400,
16
+ xField: paras.config.xField,
17
+ yField: paras.config.yField,
18
+ point: {
19
+ size: 5,
20
+ shape: 'diamond',
21
+ },
22
+ xAxis: {
23
+ title: {
24
+ text: paras.config.xAxisTitle,
25
+ style: { fontSize: 14 },
26
+ },
27
+ },
28
+ yAxis: {
29
+ title: {
30
+ text: paras.config.yAxisTitle,
31
+ style: { fontSize: 14 },
32
+ },
33
+ },
34
+ label: {
35
+ style: {
36
+ fill: '#aaa',
37
+ },
38
+ },
39
+ };
40
+ return React.createElement("div", null,
41
+ React.createElement(Space, { direction: "vertical", size: 'middle', style: { width: '100%' } },
42
+ React.createElement("button", { type: "button", onClick: downloadImage, style: { marginRight: 24 } }, "\u5BFC\u51FA"),
43
+ React.createElement(Line, Object.assign({}, config, { onReady: (plot) => {
44
+ // @ts-ignore
45
+ ref.current = plot;
46
+ } }))));
47
+ };
48
+ export default LineChart;
49
+ //# sourceMappingURL=line-chart-sub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-chart-sub.js","sourceRoot":"","sources":["../../../../src/components/chart/antd/line-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,MAAM,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAK1B,CAAC;AAEF,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE;IAElD,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,GAAG,CAAC,OAAO,EAAE;YACb,aAAa;YACb,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,GAAC,GAAG,GAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;SACjF;IACL,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG;QACX,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3B,KAAK,EAAE;YACH,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,SAAS;SACnB;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;aAC1B;SACJ;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;aAC1B;SACJ;QACD,KAAK,EAAE;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,MAAM;aACf;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,oBAAC,KAAK,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAE,QAAQ,EAAG,KAAK,EAAE,EAAC,KAAK,EAAC,MAAM,EAAC;YAC9D,gCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,WAAW,EAAE,EAAE,EAAC,mBAE7D;YACT,oBAAC,IAAI,oBAAM,MAAM,IAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBACjC,aAAa;oBACb,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;gBACvB,CAAC,IAAG,CACA,CAEN,CAAA;AAEV,CAAC,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { SubChartProps } from "../../tmpl/interface";
3
+ interface PieChartProps extends SubChartProps {
4
+ }
5
+ declare const PieChart: React.FC<PieChartProps>;
6
+ export default PieChart;
7
+ //# sourceMappingURL=pie-chart-sub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pie-chart-sub.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/antd/pie-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,UAAU,aAAc,SAAQ,aAAa;CAE5C;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyCrC,CAAA;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,37 @@
1
+ import React, { useRef } from "react";
2
+ import { Pie } from '@ant-design/charts';
3
+ import { Space } from 'antd';
4
+ ;
5
+ const PieChart = (paras) => {
6
+ const ref = useRef();
7
+ const downloadImage = () => {
8
+ if (ref.current) {
9
+ // @ts-ignore
10
+ ref.current.downloadImage();
11
+ }
12
+ };
13
+ const config = {
14
+ appendPadding: 4,
15
+ data: paras.data,
16
+ angleField: paras.config.yField,
17
+ colorField: paras.config.xField,
18
+ radius: 0.75,
19
+ label: {
20
+ type: 'spider',
21
+ labelHeight: 28,
22
+ content: '{name}\n{percentage}',
23
+ },
24
+ interactions: [{ type: 'element-selected' }, { type: 'element-active' }],
25
+ };
26
+ return React.createElement("div", null,
27
+ React.createElement(Space, { direction: "vertical", size: 'middle', style: { width: '100%' } },
28
+ React.createElement(Space, null,
29
+ React.createElement("button", { type: "button", onClick: downloadImage, style: { marginRight: 24 } }, "\u5BFC\u51FA"),
30
+ React.createElement("div", { style: { fontSize: '16px' } }, paras.groupName + "-" + paras.config.xField + "-" + paras.config.yField)),
31
+ React.createElement(Pie, Object.assign({}, config, { onReady: (plot) => {
32
+ // @ts-ignore
33
+ ref.current = plot;
34
+ } }))));
35
+ };
36
+ export default PieChart;
37
+ //# sourceMappingURL=pie-chart-sub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pie-chart-sub.js","sourceRoot":"","sources":["../../../../src/components/chart/ant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K,CAAC,MAAM,CAAC,MAAM,GAAC,GAAG,GAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAO,CAC/F;YACR,oBAAC,GAAG,oBAAM,MAAM,IAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChC,aAAa;oBACb,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;gBACvB,CAAC,IAAG,CACA,CAEN,CAAA;AAEV,CAAC,CAAA;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ChartType, DtmplData, LtmplConfig } from "../../tmpl/interface";
3
+ interface StatView2DChartProps {
4
+ ltmplConfig: LtmplConfig;
5
+ dataSource: DtmplData[];
6
+ hiddenColIds?: string[];
7
+ }
8
+ interface StatView2DChartStat {
9
+ }
10
+ declare class StatviewD2Chart extends React.PureComponent<StatView2DChartProps, StatView2DChartStat> {
11
+ initData: () => any;
12
+ get2DimChart: (lineData: any) => any[];
13
+ getChart1: (refL2ChartType: ChartType[], val: any) => JSX.Element;
14
+ render(): JSX.Element;
15
+ }
16
+ export default StatviewD2Chart;
17
+ //# sourceMappingURL=statview-d2-chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statview-d2-chart.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/antd/statview-d2-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEvE,UAAU,oBAAoB;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,YAAY,CAAC,EAAC,MAAM,EAAE,CAAC;CAC1B;AAED,UAAU,mBAAmB;CAE5B;AAED,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;IAExF,QAAQ,YAoDP;IAED,YAAY,2BAeX;IAED,SAAS,mBAAmB,SAAS,EAAE,2BAStC;IAED,MAAM;CAoBT;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,108 @@
1
+ import React from 'react';
2
+ import LineChart from './line-chart-sub';
3
+ import ColumnChart from './column-chart-sub';
4
+ import PieChart from './pie-chart-sub';
5
+ import { Col, Divider, Row } from "antd";
6
+ import chartUtils from "./chart-utils";
7
+ ;
8
+ ;
9
+ class StatviewD2Chart extends React.PureComponent {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.initData = () => {
13
+ const { dataSource, ltmplConfig, hiddenColIds } = this.props;
14
+ let data_;
15
+ console.log("chart hiddenColIds:", hiddenColIds);
16
+ let firstDim = undefined, secondDim = undefined, dimensions = [], facts = [];
17
+ ltmplConfig.columns.forEach((col) => {
18
+ if (!hiddenColIds || !hiddenColIds.includes(col.id)) {
19
+ if ("fact" == col.statColType) {
20
+ facts.push(col);
21
+ }
22
+ else if ("dimension" == col.statColType) {
23
+ dimensions.push(col);
24
+ }
25
+ }
26
+ });
27
+ let lineData;
28
+ if (dimensions.length > 1) {
29
+ firstDim = dimensions[0];
30
+ secondDim = dimensions[1];
31
+ data_ = chartUtils.transValueFloatGroupByDim(ltmplConfig, dataSource, firstDim);
32
+ lineData = new Map();
33
+ for (let [key, data1] of data_) {
34
+ lineData.set(key, []);
35
+ facts.forEach((fact) => {
36
+ let obj1 = {};
37
+ obj1['data'] = data1;
38
+ obj1['config'] = {
39
+ xAxisTitle: key,
40
+ yAxisTitle: fact.title,
41
+ xField: secondDim.title,
42
+ yField: fact.title
43
+ };
44
+ lineData.get(key).push(obj1);
45
+ });
46
+ }
47
+ }
48
+ else if (dimensions.length == 1) {
49
+ lineData = [];
50
+ secondDim = dimensions[0];
51
+ data_ = chartUtils.transValueFloat(ltmplConfig, dataSource);
52
+ facts.forEach((fact) => {
53
+ let obj1 = {};
54
+ obj1['data'] = data_;
55
+ obj1['config'] = {
56
+ xAxisTitle: secondDim.title,
57
+ yAxisTitle: fact.title,
58
+ xField: secondDim.title,
59
+ yField: fact.title
60
+ };
61
+ lineData.push(obj1);
62
+ });
63
+ }
64
+ return lineData;
65
+ };
66
+ this.get2DimChart = (lineData) => {
67
+ let { ltmplConfig } = this.props;
68
+ let refL2ChartType = ltmplConfig.chartType;
69
+ let list = [];
70
+ let that = this;
71
+ for (let [key, obj] of lineData) {
72
+ obj.map(function (val) {
73
+ list.push(React.createElement(Col, { span: 12, key: val.config.yAxisTitle + val.config.xAxisTitle },
74
+ that.getChart1(refL2ChartType, val),
75
+ React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff", }, plain: true })));
76
+ });
77
+ }
78
+ return list;
79
+ };
80
+ this.getChart1 = (refL2ChartType, val) => {
81
+ return refL2ChartType.includes('line') ?
82
+ React.createElement(LineChart, { data: val.data, config: val.config })
83
+ : refL2ChartType.includes('column') ?
84
+ React.createElement(ColumnChart, { data: val.data, config: val.config })
85
+ :
86
+ refL2ChartType.includes('pie') ?
87
+ React.createElement(PieChart, { data: val.data, config: val.config }) :
88
+ React.createElement("div", null, "\u6682\u4E0D\u652F\u6301\u7684\u56FE\u5F62");
89
+ };
90
+ }
91
+ render() {
92
+ const { dataSource, ltmplConfig } = this.props;
93
+ let lineData = this.initData();
94
+ console.log("lineData:", lineData);
95
+ let refL2ChartType = ltmplConfig.chartType;
96
+ let that = this;
97
+ return (React.createElement("div", null,
98
+ React.createElement(Row, { style: { padding: '8px 0' }, gutter: [32, { xs: 8, sm: 16, md: 24, lg: 32 }] }, lineData instanceof Map ?
99
+ that.get2DimChart(lineData)
100
+ : lineData ? lineData.map(function (val) {
101
+ return React.createElement(Col, { span: 12, key: val.config.yAxisTitle + val.config.xAxisTitle },
102
+ that.getChart1(refL2ChartType, val),
103
+ React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff", }, plain: true }));
104
+ }) : "")));
105
+ }
106
+ }
107
+ export default StatviewD2Chart;
108
+ //# sourceMappingURL=statview-d2-chart.js.map
@@ -0,0 +1 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C;wBACpC,oBAAC,OAAO,IAAC,MAAM,QAAC,KAAK,EAAE,EAAC,cAAc,EAAE,SAAS,GAAE,EAAE,KAAK,SAAW,CACnE,CAAA;gBACV,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAET,CACJ,CAAC,CAAC;IACZ,CAAC;CACJ;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { DtmplData, LtmplConfig } from "../tmpl/interface";
3
+ interface StatViewL2ChartProps {
4
+ queryKey: string;
5
+ ltmplConfig: LtmplConfig;
6
+ hiddenColIds?: string[];
7
+ hiddenRowCodes?: string[];
8
+ }
9
+ interface StatViewL2ChartStat {
10
+ dataSource: DtmplData[];
11
+ }
12
+ declare class StatViewL2Chart extends React.PureComponent<StatViewL2ChartProps, StatViewL2ChartStat> {
13
+ state: {
14
+ dataSource: any;
15
+ };
16
+ loadData: () => Promise<void>;
17
+ componentDidMount(): Promise<void>;
18
+ componentDidUpdate(prevProps: any): Promise<void>;
19
+ getDataSource: () => any[];
20
+ render(): "" | JSX.Element;
21
+ }
22
+ export default StatViewL2Chart;
23
+ //# sourceMappingURL=statview-l2-chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statview-l2-chart.d.ts","sourceRoot":"","sources":["../../../src/components/chart/statview-l2-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,SAAS,EAAE,WAAW,EAAY,MAAM,mBAAmB,CAAC;AAIpE,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAC,WAAW,CAAC;IACxB,YAAY,CAAC,EAAC,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAC,MAAM,EAAE,CAAC;CAC5B;AAED,UAAU,mBAAmB;IACzB,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B;AAGD,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;IACxF,KAAK;;MAEJ;IAED,QAAQ,sBAQP;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IASlC,aAAa,cAUZ;IAED,MAAM;CAST;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,64 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import React from 'react';
11
+ import HcserviceV3 from "../tmpl/hcservice-v3";
12
+ import StatView2DChartProps from './antd/statview-d2-chart';
13
+ ;
14
+ ;
15
+ class StatViewL2Chart extends React.PureComponent {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.state = {
19
+ dataSource: undefined,
20
+ };
21
+ this.loadData = () => __awaiter(this, void 0, void 0, function* () {
22
+ const { queryKey } = this.props;
23
+ if (queryKey) {
24
+ let queryData = yield HcserviceV3.requestQueryData(queryKey, { pageNo: 1, pageSize: 10000 });
25
+ this.setState({
26
+ dataSource: queryData.entities,
27
+ });
28
+ }
29
+ });
30
+ this.getDataSource = () => {
31
+ let { hiddenRowCodes } = this.props;
32
+ let { dataSource } = this.state;
33
+ let ds = [];
34
+ for (let d of dataSource) {
35
+ if (!hiddenRowCodes || !hiddenRowCodes.includes(d.code)) {
36
+ ds.push(d);
37
+ }
38
+ }
39
+ return ds;
40
+ };
41
+ }
42
+ componentDidMount() {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ this.loadData();
45
+ });
46
+ }
47
+ componentDidUpdate(prevProps) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ const { queryKey } = this.props;
50
+ let { queryKey: preQueryKey } = prevProps;
51
+ if (queryKey && queryKey != preQueryKey) {
52
+ this.loadData();
53
+ }
54
+ });
55
+ }
56
+ render() {
57
+ let { dataSource } = this.state;
58
+ let { ltmplConfig, hiddenColIds } = this.props;
59
+ return (ltmplConfig && dataSource ?
60
+ React.createElement(StatView2DChartProps, { hiddenColIds: hiddenColIds, dataSource: this.getDataSource(), ltmplConfig: ltmplConfig }) : "");
61
+ }
62
+ }
63
+ export default StatViewL2Chart;
64
+ //# sourceMappingURL=statview-l2-chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statview-l2-chart.js","sourceRoot":"","sources":["../../../src/components/chart/statview-l2-chart.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,0BAA0B,CAAA;AAO1D,CAAC;AAID,CAAC;AAGF,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAAwD;IAA5F;;QACI,UAAK,GAAG;YACJ,UAAU,EAAE,SAAS;SACxB,CAAA;QAED,aAAQ,GAAG,GAAS,EAAE;YAClB,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC9B,IAAG,QAAQ,EAAE;gBACT,IAAI,SAAS,GAAc,MAAM,WAAW,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAC;gBACtG,IAAI,CAAC,QAAQ,CAAC;oBACV,UAAU,EAAE,SAAS,CAAC,QAAQ;iBACjC,CAAC,CAAA;aACL;QACL,CAAC,CAAA,CAAA;QAeD,kBAAa,GAAC,GAAE,EAAE;YACd,IAAI,EAAC,cAAc,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAClC,IAAI,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC9B,IAAI,EAAE,GAAC,EAAE,CAAC;YACV,KAAI,IAAI,CAAC,IAAI,UAAU,EAAC;gBACpB,IAAG,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAC;oBACnD,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBACd;aACJ;YACD,OAAO,EAAE,CAAC;QACd,CAAC,CAAA;IAWL,CAAC;IAlCS,iBAAiB;;YACnB,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpB,CAAC;KAAA;IAEK,kBAAkB,CAAC,SAAS;;YAC9B,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC9B,IAAI,EAAC,QAAQ,EAAE,WAAW,EAAC,GAAG,SAAS,CAAC;YAExC,IAAI,QAAQ,IAAI,QAAQ,IAAE,WAAW,EAAE;gBACnC,IAAI,CAAC,QAAQ,EAAE,CAAC;aACnB;QACL,CAAC;KAAA;IAcD,MAAM;QACF,IAAI,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,EAAC,WAAW,EAAC,YAAY,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5C,OAAO,CACH,WAAW,IAAI,UAAU,CAAC,CAAC;YACvB,oBAAC,oBAAoB,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE,EACxE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAChD,CAAC;IACP,CAAC;CACJ;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+
2
+ .collapse .ant-card-body {
3
+ padding:0px
4
+ }
5
+
6
+ .ant-card-head-title button{
7
+ font-size: 16px;
8
+ padding:0px;
9
+ }
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import { RefObject } from 'react';
3
+ import './index.css';
4
+ import { ActionConfig, DtmplData } from "../../tmpl/interface";
5
+ import { FormInstance } from "antd/lib/form/hooks/useForm";
6
+ import { SizeType } from "antd/lib/config-provider/SizeContext";
7
+ export declare type ActionButtonType = 'primary-block' | 'dashed' | 'primary';
8
+ export declare type ActionButtonHiddenType = 'hidden' | 'disabled';
9
+ interface ActionProps {
10
+ disabled?: boolean;
11
+ actionConfig: ActionConfig;
12
+ data?: DtmplData[] | object[];
13
+ formRef?: RefObject<FormInstance>;
14
+ doAction: (string: any, Array: any, object: any) => void;
15
+ serial?: number;
16
+ buttonType?: ActionButtonType;
17
+ hiddenType?: ActionButtonHiddenType;
18
+ buttonSize?: SizeType;
19
+ }
20
+ interface ActionState {
21
+ popoverVisible: boolean;
22
+ }
23
+ export default class Action extends React.PureComponent<ActionProps, ActionState> {
24
+ static defaultProps: {
25
+ buttonType: string;
26
+ hiddenType: string;
27
+ buttonSize: any;
28
+ };
29
+ state: {
30
+ popoverVisible: boolean;
31
+ };
32
+ componentDidMount(): void;
33
+ componentDidUpdate(prevProps: any): void;
34
+ isShow: () => boolean;
35
+ getValue: () => {};
36
+ onOk: (value: object) => void;
37
+ onCancel: () => void;
38
+ onValuesChange: (value: object) => void;
39
+ getButtonType: () => "primary" | "dashed";
40
+ blockButton: () => boolean;
41
+ formButton: () => JSX.Element;
42
+ getCodes: () => any[];
43
+ withoutFormButton: () => JSX.Element;
44
+ render(): JSX.Element;
45
+ }
46
+ export {};
47
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/action/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAE/B,OAAO,aAAa,CAAA;AACpB,OAAO,EAAC,YAAY,EAAc,SAAS,EAAC,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAC,YAAY,E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