aldehyde 0.0.1 → 0.0.4

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 (513) hide show
  1. package/dist/aldehyde.js +1 -2
  2. package/dist/chemstruc-graph.js +1 -1
  3. package/dist/html-editor-draft.js +1 -2
  4. package/dist/index.html +1 -1
  5. package/dist/signature.js +1 -2
  6. package/lib/public/programConfig.json +10 -0
  7. package/lib/src/components/chart/antd/chart-utils.d.ts +7 -0
  8. package/lib/src/components/chart/antd/chart-utils.d.ts.map +1 -0
  9. package/lib/src/components/chart/antd/chart-utils.js +46 -0
  10. package/lib/src/components/chart/antd/chart-utils.js.map +1 -0
  11. package/lib/src/components/chart/antd/column-chart-sub.d.ts +7 -0
  12. package/lib/src/components/chart/antd/column-chart-sub.d.ts.map +1 -0
  13. package/lib/src/components/chart/antd/column-chart-sub.js +50 -0
  14. package/lib/src/components/chart/antd/column-chart-sub.js.map +1 -0
  15. package/lib/src/components/chart/antd/line-chart-sub.d.ts +7 -0
  16. package/lib/src/components/chart/antd/line-chart-sub.d.ts.map +1 -0
  17. package/lib/src/components/chart/antd/line-chart-sub.js +49 -0
  18. package/lib/src/components/chart/antd/line-chart-sub.js.map +1 -0
  19. package/lib/src/components/chart/antd/pie-chart-sub.d.ts +7 -0
  20. package/lib/src/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
  21. package/lib/src/components/chart/antd/pie-chart-sub.js +37 -0
  22. package/lib/src/components/chart/antd/pie-chart-sub.js.map +1 -0
  23. package/lib/src/components/chart/antd/statview-d2-chart.d.ts +17 -0
  24. package/lib/src/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
  25. package/lib/src/components/chart/antd/statview-d2-chart.js +108 -0
  26. package/lib/src/components/chart/antd/statview-d2-chart.js.map +1 -0
  27. package/lib/src/components/chart/statview-l2-chart.d.ts +23 -0
  28. package/lib/src/components/chart/statview-l2-chart.d.ts.map +1 -0
  29. package/lib/src/components/chart/statview-l2-chart.js +64 -0
  30. package/lib/src/components/chart/statview-l2-chart.js.map +1 -0
  31. package/lib/src/components/controls/action/index.d.ts +47 -0
  32. package/lib/src/components/controls/action/index.d.ts.map +1 -0
  33. package/lib/src/components/controls/action/index.js +165 -0
  34. package/lib/src/components/controls/action/index.js.map +1 -0
  35. package/lib/src/components/controls/action/utils.d.ts +9 -0
  36. package/lib/src/components/controls/action/utils.d.ts.map +1 -0
  37. package/{src/components/controls/action/utils.tsx → lib/src/components/controls/action/utils.js} +41 -53
  38. package/lib/src/components/controls/action/utils.js.map +1 -0
  39. package/lib/src/components/controls/auto-complete/index.d.ts +7 -0
  40. package/lib/src/components/controls/auto-complete/index.d.ts.map +1 -0
  41. package/lib/src/components/controls/auto-complete/index.js +53 -0
  42. package/lib/src/components/controls/auto-complete/index.js.map +1 -0
  43. package/lib/src/components/controls/chemstruc/graph.d.ts +31 -0
  44. package/lib/src/components/controls/chemstruc/graph.d.ts.map +1 -0
  45. package/lib/src/components/controls/chemstruc/graph.js +121 -0
  46. package/lib/src/components/controls/chemstruc/graph.js.map +1 -0
  47. package/lib/src/components/controls/collapse-card/index.d.ts +20 -0
  48. package/lib/src/components/controls/collapse-card/index.d.ts.map +1 -0
  49. package/lib/src/components/controls/collapse-card/index.js +63 -0
  50. package/lib/src/components/controls/collapse-card/index.js.map +1 -0
  51. package/lib/src/components/controls/color-picker/index.d.ts +19 -0
  52. package/lib/src/components/controls/color-picker/index.d.ts.map +1 -0
  53. package/lib/src/components/controls/color-picker/index.js +61 -0
  54. package/lib/src/components/controls/color-picker/index.js.map +1 -0
  55. package/lib/src/components/controls/cquery/cquick-button.d.ts +20 -0
  56. package/lib/src/components/controls/cquery/cquick-button.d.ts.map +1 -0
  57. package/lib/src/components/controls/cquery/cquick-button.js +67 -0
  58. package/lib/src/components/controls/cquery/cquick-button.js.map +1 -0
  59. package/lib/src/components/controls/date-picker/index.d.ts +7 -0
  60. package/lib/src/components/controls/date-picker/index.d.ts.map +1 -0
  61. package/lib/src/components/controls/date-picker/index.js +91 -0
  62. package/lib/src/components/controls/date-picker/index.js.map +1 -0
  63. package/lib/src/components/controls/entity-select/entity-select.d.ts +53 -0
  64. package/lib/src/components/controls/entity-select/entity-select.d.ts.map +1 -0
  65. package/lib/src/components/controls/entity-select/entity-select.js +227 -0
  66. package/lib/src/components/controls/entity-select/entity-select.js.map +1 -0
  67. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts +20 -0
  68. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
  69. package/lib/src/components/controls/entity-select/popover-entity-select.js +80 -0
  70. package/lib/src/components/controls/entity-select/popover-entity-select.js.map +1 -0
  71. package/lib/src/components/controls/entry-control.d.ts +11 -0
  72. package/lib/src/components/controls/entry-control.d.ts.map +1 -0
  73. package/lib/src/components/controls/entry-control.js +171 -0
  74. package/lib/src/components/controls/entry-control.js.map +1 -0
  75. package/lib/src/components/controls/enum-badge/index.d.ts +7 -0
  76. package/lib/src/components/controls/enum-badge/index.d.ts.map +1 -0
  77. package/lib/src/components/controls/enum-badge/index.js +14 -0
  78. package/lib/src/components/controls/enum-badge/index.js.map +1 -0
  79. package/lib/src/components/controls/enum-tag/index.d.ts +7 -0
  80. package/lib/src/components/controls/enum-tag/index.d.ts.map +1 -0
  81. package/lib/src/components/controls/enum-tag/index.js +18 -0
  82. package/lib/src/components/controls/enum-tag/index.js.map +1 -0
  83. package/lib/src/components/controls/file-view/drawer-file-view.d.ts +18 -0
  84. package/lib/src/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
  85. package/lib/src/components/controls/file-view/drawer-file-view.js +51 -0
  86. package/lib/src/components/controls/file-view/drawer-file-view.js.map +1 -0
  87. package/lib/src/components/controls/file-view/index.d.ts +23 -0
  88. package/lib/src/components/controls/file-view/index.d.ts.map +1 -0
  89. package/lib/src/components/controls/file-view/index.js +130 -0
  90. package/lib/src/components/controls/file-view/index.js.map +1 -0
  91. package/lib/src/components/controls/html-editor/draft.d.ts +22 -0
  92. package/lib/src/components/controls/html-editor/draft.d.ts.map +1 -0
  93. package/lib/src/components/controls/html-editor/draft.js +122 -0
  94. package/lib/src/components/controls/html-editor/draft.js.map +1 -0
  95. package/lib/src/components/controls/input-number/index.d.ts +7 -0
  96. package/lib/src/components/controls/input-number/index.d.ts.map +1 -0
  97. package/lib/src/components/controls/input-number/index.js +67 -0
  98. package/lib/src/components/controls/input-number/index.js.map +1 -0
  99. package/lib/src/components/controls/input-range/index.d.ts +7 -0
  100. package/lib/src/components/controls/input-range/index.d.ts.map +1 -0
  101. package/lib/src/components/controls/input-range/index.js +28 -0
  102. package/lib/src/components/controls/input-range/index.js.map +1 -0
  103. package/lib/src/components/controls/progress/index.d.ts +7 -0
  104. package/lib/src/components/controls/progress/index.d.ts.map +1 -0
  105. package/lib/src/components/controls/progress/index.js +45 -0
  106. package/lib/src/components/controls/progress/index.js.map +1 -0
  107. package/lib/src/components/controls/relation-existion/index.d.ts +20 -0
  108. package/lib/src/components/controls/relation-existion/index.d.ts.map +1 -0
  109. package/lib/src/components/controls/relation-existion/index.js +75 -0
  110. package/lib/src/components/controls/relation-existion/index.js.map +1 -0
  111. package/lib/src/components/controls/rfield/index.d.ts +29 -0
  112. package/lib/src/components/controls/rfield/index.d.ts.map +1 -0
  113. package/lib/src/components/controls/rfield/index.js +130 -0
  114. package/lib/src/components/controls/rfield/index.js.map +1 -0
  115. package/lib/src/components/controls/signature/index.d.ts +31 -0
  116. package/lib/src/components/controls/signature/index.d.ts.map +1 -0
  117. package/lib/src/components/controls/signature/index.js +129 -0
  118. package/lib/src/components/controls/signature/index.js.map +1 -0
  119. package/lib/src/components/controls/steps/index.d.ts +7 -0
  120. package/lib/src/components/controls/steps/index.d.ts.map +1 -0
  121. package/lib/src/components/controls/steps/index.js +42 -0
  122. package/lib/src/components/controls/steps/index.js.map +1 -0
  123. package/lib/src/components/controls/text/ellipsis-text.d.ts +22 -0
  124. package/lib/src/components/controls/text/ellipsis-text.d.ts.map +1 -0
  125. package/lib/src/components/controls/text/ellipsis-text.js +46 -0
  126. package/lib/src/components/controls/text/ellipsis-text.js.map +1 -0
  127. package/lib/src/components/controls/upload/index.d.ts +15 -0
  128. package/lib/src/components/controls/upload/index.d.ts.map +1 -0
  129. package/lib/src/components/controls/upload/index.js +100 -0
  130. package/lib/src/components/controls/upload/index.js.map +1 -0
  131. package/lib/src/components/controls/view-control.d.ts +10 -0
  132. package/lib/src/components/controls/view-control.d.ts.map +1 -0
  133. package/lib/src/components/controls/view-control.js +150 -0
  134. package/lib/src/components/controls/view-control.js.map +1 -0
  135. package/lib/src/components/detail/button/cquery-button-bar.d.ts +16 -0
  136. package/lib/src/components/detail/button/cquery-button-bar.d.ts.map +1 -0
  137. package/lib/src/components/detail/button/cquery-button-bar.js +75 -0
  138. package/lib/src/components/detail/button/cquery-button-bar.js.map +1 -0
  139. package/lib/src/components/detail/button/submit-button-bar.d.ts +19 -0
  140. package/lib/src/components/detail/button/submit-button-bar.d.ts.map +1 -0
  141. package/lib/src/components/detail/button/submit-button-bar.js +99 -0
  142. package/lib/src/components/detail/button/submit-button-bar.js.map +1 -0
  143. package/lib/src/components/detail/edit/dtmpl-edit.d.ts +48 -0
  144. package/lib/src/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
  145. package/lib/src/components/detail/edit/dtmpl-edit.js +190 -0
  146. package/lib/src/components/detail/edit/dtmpl-edit.js.map +1 -0
  147. package/lib/src/components/detail/edit/fields-edit-card.d.ts +39 -0
  148. package/lib/src/components/detail/edit/fields-edit-card.d.ts.map +1 -0
  149. package/lib/src/components/detail/edit/fields-edit-card.js +64 -0
  150. package/lib/src/components/detail/edit/fields-edit-card.js.map +1 -0
  151. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
  152. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
  153. package/lib/src/components/detail/edit/modal-dtmpl-edit.js +168 -0
  154. package/lib/src/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
  155. package/lib/src/components/detail/edit/modal-row-edit.d.ts +31 -0
  156. package/lib/src/components/detail/edit/modal-row-edit.d.ts.map +1 -0
  157. package/lib/src/components/detail/edit/modal-row-edit.js +56 -0
  158. package/lib/src/components/detail/edit/modal-row-edit.js.map +1 -0
  159. package/lib/src/components/detail/edit/post-result/index.d.ts +17 -0
  160. package/lib/src/components/detail/edit/post-result/index.d.ts.map +1 -0
  161. package/lib/src/components/detail/edit/post-result/index.js +28 -0
  162. package/lib/src/components/detail/edit/post-result/index.js.map +1 -0
  163. package/lib/src/components/detail/edit/row-edit-card.d.ts +42 -0
  164. package/lib/src/components/detail/edit/row-edit-card.d.ts.map +1 -0
  165. package/lib/src/components/detail/edit/row-edit-card.js +84 -0
  166. package/lib/src/components/detail/edit/row-edit-card.js.map +1 -0
  167. package/lib/src/components/detail/edit/row-editor.d.ts +31 -0
  168. package/lib/src/components/detail/edit/row-editor.d.ts.map +1 -0
  169. package/lib/src/components/detail/edit/row-editor.js +55 -0
  170. package/lib/src/components/detail/edit/row-editor.js.map +1 -0
  171. package/lib/src/components/detail/rightbar/index.d.ts +20 -0
  172. package/lib/src/components/detail/rightbar/index.d.ts.map +1 -0
  173. package/lib/src/components/detail/rightbar/index.js +51 -0
  174. package/lib/src/components/detail/rightbar/index.js.map +1 -0
  175. package/lib/src/components/detail/view/act-dtmpl-view.d.ts +46 -0
  176. package/lib/src/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
  177. package/lib/src/components/detail/view/act-dtmpl-view.js +110 -0
  178. package/lib/src/components/detail/view/act-dtmpl-view.js.map +1 -0
  179. package/lib/src/components/detail/view/dtmpl-view.d.ts +42 -0
  180. package/lib/src/components/detail/view/dtmpl-view.d.ts.map +1 -0
  181. package/lib/src/components/detail/view/dtmpl-view.js +111 -0
  182. package/lib/src/components/detail/view/dtmpl-view.js.map +1 -0
  183. package/lib/src/components/detail/view/field-view-group.d.ts +17 -0
  184. package/lib/src/components/detail/view/field-view-group.d.ts.map +1 -0
  185. package/lib/src/components/detail/view/field-view-group.js +51 -0
  186. package/lib/src/components/detail/view/field-view-group.js.map +1 -0
  187. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts +27 -0
  188. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
  189. package/lib/src/components/detail/view/modal-dtmpl-view.js +32 -0
  190. package/lib/src/components/detail/view/modal-dtmpl-view.js.map +1 -0
  191. package/lib/src/components/detail/view/snapshot-timeline.d.ts +32 -0
  192. package/lib/src/components/detail/view/snapshot-timeline.d.ts.map +1 -0
  193. package/lib/src/components/detail/view/snapshot-timeline.js +90 -0
  194. package/lib/src/components/detail/view/snapshot-timeline.js.map +1 -0
  195. package/lib/src/components/exportor/export-frame.d.ts +50 -0
  196. package/lib/src/components/exportor/export-frame.d.ts.map +1 -0
  197. package/lib/src/components/exportor/export-frame.js +140 -0
  198. package/lib/src/components/exportor/export-frame.js.map +1 -0
  199. package/lib/src/components/exportor/index.d.ts +16 -0
  200. package/lib/src/components/exportor/index.d.ts.map +1 -0
  201. package/lib/src/components/exportor/index.js +44 -0
  202. package/lib/src/components/exportor/index.js.map +1 -0
  203. package/lib/src/components/form/criteria-form.d.ts +19 -0
  204. package/lib/src/components/form/criteria-form.d.ts.map +1 -0
  205. package/lib/src/components/form/criteria-form.js +167 -0
  206. package/lib/src/components/form/criteria-form.js.map +1 -0
  207. package/lib/src/components/form/dtmpl-form.d.ts +37 -0
  208. package/lib/src/components/form/dtmpl-form.d.ts.map +1 -0
  209. package/lib/src/components/form/dtmpl-form.js +213 -0
  210. package/lib/src/components/form/dtmpl-form.js.map +1 -0
  211. package/lib/src/components/form/field-group-form.d.ts +21 -0
  212. package/lib/src/components/form/field-group-form.d.ts.map +1 -0
  213. package/lib/src/components/form/field-group-form.js +58 -0
  214. package/lib/src/components/form/field-group-form.js.map +1 -0
  215. package/lib/src/components/form/fields-form.d.ts +20 -0
  216. package/lib/src/components/form/fields-form.d.ts.map +1 -0
  217. package/lib/src/components/form/fields-form.js +39 -0
  218. package/lib/src/components/form/fields-form.js.map +1 -0
  219. package/lib/src/components/form/form-Item-group.d.ts +22 -0
  220. package/lib/src/components/form/form-Item-group.d.ts.map +1 -0
  221. package/lib/src/components/form/form-Item-group.js +60 -0
  222. package/lib/src/components/form/form-Item-group.js.map +1 -0
  223. package/lib/src/components/import/excel-import.d.ts +48 -0
  224. package/lib/src/components/import/excel-import.d.ts.map +1 -0
  225. package/lib/src/components/import/excel-import.js +234 -0
  226. package/lib/src/components/import/excel-import.js.map +1 -0
  227. package/lib/src/components/layout/MainPage.d.ts +32 -0
  228. package/lib/src/components/layout/MainPage.d.ts.map +1 -0
  229. package/lib/src/components/layout/MainPage.js +202 -0
  230. package/lib/src/components/layout/MainPage.js.map +1 -0
  231. package/lib/src/components/layout/header/index.d.ts +16 -0
  232. package/lib/src/components/layout/header/index.d.ts.map +1 -0
  233. package/lib/src/components/layout/header/index.js +37 -0
  234. package/lib/src/components/layout/header/index.js.map +1 -0
  235. package/lib/src/components/layout/menu/block.d.ts +9 -0
  236. package/lib/src/components/layout/menu/block.d.ts.map +1 -0
  237. package/lib/src/components/layout/menu/block.js +48 -0
  238. package/lib/src/components/layout/menu/block.js.map +1 -0
  239. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts +24 -0
  240. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
  241. package/lib/src/components/layout/menu/l2menu-message-bar.js +97 -0
  242. package/lib/src/components/layout/menu/l2menu-message-bar.js.map +1 -0
  243. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
  244. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
  245. package/lib/src/components/layout/menu/l2menu-quick-bar.js +94 -0
  246. package/lib/src/components/layout/menu/l2menu-quick-bar.js.map +1 -0
  247. package/lib/src/components/layout/menu/menu-2layers.d.ts +9 -0
  248. package/lib/src/components/layout/menu/menu-2layers.d.ts.map +1 -0
  249. package/lib/src/components/layout/menu/menu-2layers.js +63 -0
  250. package/lib/src/components/layout/menu/menu-2layers.js.map +1 -0
  251. package/lib/src/components/layout/menu/menu-render.d.ts +8 -0
  252. package/lib/src/components/layout/menu/menu-render.d.ts.map +1 -0
  253. package/lib/src/components/layout/menu/menu-render.js +44 -0
  254. package/lib/src/components/layout/menu/menu-render.js.map +1 -0
  255. package/lib/src/components/layout/menu/reset-password.d.ts +25 -0
  256. package/lib/src/components/layout/menu/reset-password.d.ts.map +1 -0
  257. package/lib/src/components/layout/menu/reset-password.js +113 -0
  258. package/lib/src/components/layout/menu/reset-password.js.map +1 -0
  259. package/lib/src/components/layout/menu/user-bar.d.ts +19 -0
  260. package/lib/src/components/layout/menu/user-bar.d.ts.map +1 -0
  261. package/lib/src/components/layout/menu/user-bar.js +61 -0
  262. package/lib/src/components/layout/menu/user-bar.js.map +1 -0
  263. package/lib/src/components/layout/menu/userinfo-bar.d.ts +18 -0
  264. package/lib/src/components/layout/menu/userinfo-bar.d.ts.map +1 -0
  265. package/lib/src/components/layout/menu/userinfo-bar.js +50 -0
  266. package/lib/src/components/layout/menu/userinfo-bar.js.map +1 -0
  267. package/lib/src/components/layout/sidebar/index.d.ts +12 -0
  268. package/lib/src/components/layout/sidebar/index.d.ts.map +1 -0
  269. package/lib/src/components/layout/sidebar/index.js +19 -0
  270. package/lib/src/components/layout/sidebar/index.js.map +1 -0
  271. package/lib/src/components/module/dtmpl-page.d.ts +19 -0
  272. package/lib/src/components/module/dtmpl-page.d.ts.map +1 -0
  273. package/lib/src/components/module/dtmpl-page.js +46 -0
  274. package/lib/src/components/module/dtmpl-page.js.map +1 -0
  275. package/lib/src/components/module/ltmpl-page.d.ts +34 -0
  276. package/lib/src/components/module/ltmpl-page.d.ts.map +1 -0
  277. package/lib/src/components/module/ltmpl-page.js +154 -0
  278. package/lib/src/components/module/ltmpl-page.js.map +1 -0
  279. package/lib/src/components/routable/dtmpl-route.d.ts +17 -0
  280. package/lib/src/components/routable/dtmpl-route.d.ts.map +1 -0
  281. package/lib/src/components/routable/dtmpl-route.js +77 -0
  282. package/lib/src/components/routable/dtmpl-route.js.map +1 -0
  283. package/lib/src/components/routable/import-route.d.ts +13 -0
  284. package/lib/src/components/routable/import-route.d.ts.map +1 -0
  285. package/lib/src/components/routable/import-route.js +29 -0
  286. package/lib/src/components/routable/import-route.js.map +1 -0
  287. package/lib/src/components/routable/ltmpl-route.d.ts +25 -0
  288. package/lib/src/components/routable/ltmpl-route.d.ts.map +1 -0
  289. package/lib/src/components/routable/ltmpl-route.js +145 -0
  290. package/lib/src/components/routable/ltmpl-route.js.map +1 -0
  291. package/lib/src/components/table/act-table.d.ts +76 -0
  292. package/lib/src/components/table/act-table.d.ts.map +1 -0
  293. package/lib/src/components/table/act-table.js +454 -0
  294. package/lib/src/components/table/act-table.js.map +1 -0
  295. package/lib/src/components/table/column/column-selector.d.ts +26 -0
  296. package/lib/src/components/table/column/column-selector.d.ts.map +1 -0
  297. package/lib/src/components/table/column/column-selector.js +59 -0
  298. package/lib/src/components/table/column/column-selector.js.map +1 -0
  299. package/lib/src/components/table/l2-act-table.d.ts +23 -0
  300. package/lib/src/components/table/l2-act-table.d.ts.map +1 -0
  301. package/lib/src/components/table/l2-act-table.js +80 -0
  302. package/lib/src/components/table/l2-act-table.js.map +1 -0
  303. package/lib/src/components/table/modal-select-table.d.ts +41 -0
  304. package/lib/src/components/table/modal-select-table.d.ts.map +1 -0
  305. package/lib/src/components/table/modal-select-table.js +208 -0
  306. package/lib/src/components/table/modal-select-table.js.map +1 -0
  307. package/lib/src/components/table/pagination.d.ts +17 -0
  308. package/lib/src/components/table/pagination.d.ts.map +1 -0
  309. package/lib/src/components/table/pagination.js +40 -0
  310. package/lib/src/components/table/pagination.js.map +1 -0
  311. package/lib/src/components/table/query-table.d.ts +65 -0
  312. package/lib/src/components/table/query-table.d.ts.map +1 -0
  313. package/lib/src/components/table/query-table.js +257 -0
  314. package/lib/src/components/table/query-table.js.map +1 -0
  315. package/lib/src/components/table/relation-table.d.ts +61 -0
  316. package/lib/src/components/table/relation-table.d.ts.map +1 -0
  317. package/lib/src/components/table/relation-table.js +444 -0
  318. package/lib/src/components/table/relation-table.js.map +1 -0
  319. package/lib/src/components/table/select-table.d.ts +40 -0
  320. package/lib/src/components/table/select-table.d.ts.map +1 -0
  321. package/lib/src/components/table/select-table.js +223 -0
  322. package/lib/src/components/table/select-table.js.map +1 -0
  323. package/lib/src/components/table/selected-rows-card.d.ts +16 -0
  324. package/lib/src/components/table/selected-rows-card.d.ts.map +1 -0
  325. package/lib/src/components/table/selected-rows-card.js +47 -0
  326. package/lib/src/components/table/selected-rows-card.js.map +1 -0
  327. package/lib/src/components/table/stat/restat.d.ts +26 -0
  328. package/lib/src/components/table/stat/restat.d.ts.map +1 -0
  329. package/lib/src/components/table/stat/restat.js +61 -0
  330. package/lib/src/components/table/stat/restat.js.map +1 -0
  331. package/lib/src/components/table/table-util.d.ts +5 -0
  332. package/lib/src/components/table/table-util.d.ts.map +1 -0
  333. package/{src/components/table/table-util.tsx → lib/src/components/table/table-util.js} +12 -15
  334. package/lib/src/components/table/table-util.js.map +1 -0
  335. package/lib/src/components/tmpl/control-type-supportor.d.ts +9 -0
  336. package/lib/src/components/tmpl/control-type-supportor.d.ts.map +1 -0
  337. package/{src/components/tmpl/control-type-supportor.tsx → lib/src/components/tmpl/control-type-supportor.js} +18 -30
  338. package/lib/src/components/tmpl/control-type-supportor.js.map +1 -0
  339. package/lib/src/components/tmpl/hc-data-source.d.ts +19 -0
  340. package/lib/src/components/tmpl/hc-data-source.d.ts.map +1 -0
  341. package/lib/src/components/tmpl/hc-data-source.js +230 -0
  342. package/lib/src/components/tmpl/hc-data-source.js.map +1 -0
  343. package/lib/src/components/tmpl/hcservice-v3.d.ts +53 -0
  344. package/lib/src/components/tmpl/hcservice-v3.d.ts.map +1 -0
  345. package/lib/src/components/tmpl/hcservice-v3.js +639 -0
  346. package/lib/src/components/tmpl/hcservice-v3.js.map +1 -0
  347. package/{src/components/tmpl/interface.tsx → lib/src/components/tmpl/interface.d.ts} +73 -147
  348. package/lib/src/components/tmpl/interface.d.ts.map +1 -0
  349. package/lib/src/components/tmpl/interface.js +4 -0
  350. package/lib/src/components/tmpl/interface.js.map +1 -0
  351. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts +7 -0
  352. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
  353. package/lib/src/components/tmpl/tmpl-config-analysis.js +106 -0
  354. package/lib/src/components/tmpl/tmpl-config-analysis.js.map +1 -0
  355. package/lib/src/components/units/index.d.ts +58 -0
  356. package/lib/src/components/units/index.d.ts.map +1 -0
  357. package/{src/components/units/index.tsx → lib/src/components/units/index.js} +149 -160
  358. package/lib/src/components/units/index.js.map +1 -0
  359. package/lib/src/components/welcome/quick-entrance.d.ts +20 -0
  360. package/lib/src/components/welcome/quick-entrance.d.ts.map +1 -0
  361. package/lib/src/components/welcome/quick-entrance.js +79 -0
  362. package/lib/src/components/welcome/quick-entrance.js.map +1 -0
  363. package/lib/src/components/welcome/workbench.d.ts +20 -0
  364. package/lib/src/components/welcome/workbench.d.ts.map +1 -0
  365. package/lib/src/components/welcome/workbench.js +78 -0
  366. package/lib/src/components/welcome/workbench.js.map +1 -0
  367. package/lib/src/index.d.ts +4 -0
  368. package/lib/src/index.d.ts.map +1 -0
  369. package/lib/src/index.js +4 -0
  370. package/lib/src/index.js.map +1 -0
  371. package/package.json +41 -11
  372. package/dist/163.js +0 -2
  373. package/dist/163.js.LICENSE.txt +0 -43
  374. package/dist/41.js +0 -1
  375. package/dist/aldehyde.js.LICENSE.txt +0 -122
  376. package/dist/css/163-24392163d3c7b54ea806.css +0 -11
  377. package/dist/css/290-5e8e152675ab7d201c00.css +0 -886
  378. package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +0 -29
  379. package/dist/css/main-2e6725ec1b56da516cee.css +0 -256
  380. package/dist/html-editor-draft.js.LICENSE.txt +0 -5
  381. package/dist/signature.js.LICENSE.txt +0 -17
  382. package/src/components/chart/antd/Chart.js +0 -32
  383. package/src/components/chart/antd/Chart10000.js +0 -90
  384. package/src/components/chart/antd/Max2DimLineChart.js +0 -128
  385. package/src/components/chart/antd/PieChart1.js +0 -54
  386. package/src/components/chart/antd/PieChart2.js +0 -56
  387. package/src/components/chart/antd/chart-utils.tsx +0 -50
  388. package/src/components/chart/antd/column-chart-sub.tsx +0 -67
  389. package/src/components/chart/antd/line-chart-sub.tsx +0 -65
  390. package/src/components/chart/antd/pie-chart-sub.tsx +0 -54
  391. package/src/components/chart/antd/statview-d2-chart.tsx +0 -125
  392. package/src/components/chart/statview-l2-chart.tsx +0 -69
  393. package/src/components/controls/action/index.css +0 -9
  394. package/src/components/controls/action/index.tsx +0 -228
  395. package/src/components/controls/auto-complete/index.tsx +0 -80
  396. package/src/components/controls/cascader/index.js +0 -97
  397. package/src/components/controls/chemstruc/graph.tsx +0 -150
  398. package/src/components/controls/chemstruc/index.css +0 -28
  399. package/src/components/controls/collapse-card/index.css +0 -9
  400. package/src/components/controls/collapse-card/index.tsx +0 -59
  401. package/src/components/controls/color-picker/index.css +0 -27
  402. package/src/components/controls/color-picker/index.tsx +0 -88
  403. package/src/components/controls/cquery/cquick-button.tsx +0 -117
  404. package/src/components/controls/date-picker/index.tsx +0 -141
  405. package/src/components/controls/entity-select/entity-select.tsx +0 -277
  406. package/src/components/controls/entity-select/index.css +0 -6
  407. package/src/components/controls/entity-select/popover-entity-select.tsx +0 -112
  408. package/src/components/controls/entry-control.tsx +0 -240
  409. package/src/components/controls/enum-badge/index.tsx +0 -28
  410. package/src/components/controls/enum-tag/index.tsx +0 -30
  411. package/src/components/controls/file-view/drawer-file-view.tsx +0 -69
  412. package/src/components/controls/file-view/index.tsx +0 -145
  413. package/src/components/controls/html-editor/draft.tsx +0 -161
  414. package/src/components/controls/html-editor/tinymce.js +0 -55
  415. package/src/components/controls/input-number/index.tsx +0 -101
  416. package/src/components/controls/input-range/index.tsx +0 -48
  417. package/src/components/controls/password-setter/index.css +0 -3
  418. package/src/components/controls/password-setter/index.js +0 -70
  419. package/src/components/controls/progress/index.tsx +0 -61
  420. package/src/components/controls/relation-existion/index.css +0 -4
  421. package/src/components/controls/relation-existion/index.tsx +0 -108
  422. package/src/components/controls/rfield/index.css +0 -4
  423. package/src/components/controls/rfield/index.tsx +0 -161
  424. package/src/components/controls/signature/index.tsx +0 -162
  425. package/src/components/controls/steps/index.tsx +0 -58
  426. package/src/components/controls/text/ellipsis-text.tsx +0 -70
  427. package/src/components/controls/upload/index.tsx +0 -122
  428. package/src/components/controls/view-control.tsx +0 -177
  429. package/src/components/detail/button/cquery-button-bar.tsx +0 -112
  430. package/src/components/detail/button/index.css +0 -43
  431. package/src/components/detail/button/submit-button-bar.tsx +0 -151
  432. package/src/components/detail/dtmpl.css +0 -53
  433. package/src/components/detail/edit/dtmpl-edit.tsx +0 -218
  434. package/src/components/detail/edit/fields-edit-card.tsx +0 -103
  435. package/src/components/detail/edit/modal-dtmpl-edit.tsx +0 -198
  436. package/src/components/detail/edit/modal-row-edit.tsx +0 -72
  437. package/src/components/detail/edit/post-result/index.tsx +0 -52
  438. package/src/components/detail/edit/row-edit-card.tsx +0 -125
  439. package/src/components/detail/edit/row-editor.tsx +0 -71
  440. package/src/components/detail/rightbar/index.css +0 -35
  441. package/src/components/detail/rightbar/index.tsx +0 -76
  442. package/src/components/detail/view/act-dtmpl-view.tsx +0 -155
  443. package/src/components/detail/view/dtmpl-view.tsx +0 -143
  444. package/src/components/detail/view/field-view-group.tsx +0 -73
  445. package/src/components/detail/view/modal-dtmpl-view.tsx +0 -56
  446. package/src/components/detail/view/snapshot-timeline.tsx +0 -130
  447. package/src/components/exportor/export-frame.css +0 -3
  448. package/src/components/exportor/export-frame.tsx +0 -194
  449. package/src/components/exportor/index.tsx +0 -60
  450. package/src/components/form/criteria-form.tsx +0 -241
  451. package/src/components/form/dtmpl-form.css +0 -4
  452. package/src/components/form/dtmpl-form.tsx +0 -272
  453. package/src/components/form/field-group-form.tsx +0 -75
  454. package/src/components/form/fields-form.tsx +0 -51
  455. package/src/components/form/form-Item-group.tsx +0 -99
  456. package/src/components/form/index.css +0 -13
  457. package/src/components/import/excel-import.tsx +0 -316
  458. package/src/components/import/index.css +0 -54
  459. package/src/components/import/template-builder.js +0 -474
  460. package/src/components/import/template.css +0 -51
  461. package/src/components/layout/MainPage.tsx +0 -230
  462. package/src/components/layout/footer/index.css +0 -6
  463. package/src/components/layout/footer/index.js +0 -17
  464. package/src/components/layout/header/index.css +0 -86
  465. package/src/components/layout/header/index.tsx +0 -58
  466. package/src/components/layout/menu/block.tsx +0 -88
  467. package/src/components/layout/menu/l2menu-message-bar.tsx +0 -118
  468. package/src/components/layout/menu/l2menu-quick-bar.tsx +0 -132
  469. package/src/components/layout/menu/menu-2layers.tsx +0 -92
  470. package/src/components/layout/menu/menu-render.tsx +0 -49
  471. package/src/components/layout/menu/reset-password.tsx +0 -185
  472. package/src/components/layout/menu/user-bar.tsx +0 -97
  473. package/src/components/layout/menu/userinfo-bar.tsx +0 -70
  474. package/src/components/layout/sidebar/index.css +0 -26
  475. package/src/components/layout/sidebar/index.tsx +0 -38
  476. package/src/components/login.js +0 -137
  477. package/src/components/module/criteria-page.tsx +0 -175
  478. package/src/components/module/dtmpl-page.tsx +0 -70
  479. package/src/components/module/ltmpl-page.tsx +0 -181
  480. package/src/components/routable/dtmpl-route.tsx +0 -96
  481. package/src/components/routable/import-route.tsx +0 -28
  482. package/src/components/routable/ltmpl-route.tsx +0 -158
  483. package/src/components/table/act-table.tsx +0 -635
  484. package/src/components/table/column/column-selector.tsx +0 -79
  485. package/src/components/table/column/index.css +0 -14
  486. package/src/components/table/index.css +0 -45
  487. package/src/components/table/l2-act-table.tsx +0 -85
  488. package/src/components/table/modal-select-table.tsx +0 -248
  489. package/src/components/table/pagination.css +0 -15
  490. package/src/components/table/pagination.tsx +0 -72
  491. package/src/components/table/query-table.tsx +0 -331
  492. package/src/components/table/relation-table.tsx +0 -600
  493. package/src/components/table/select-table.tsx +0 -247
  494. package/src/components/table/selected-rows-card.tsx +0 -62
  495. package/src/components/table/stat/restat.tsx +0 -79
  496. package/src/components/tmpl/hc-data-source.tsx +0 -230
  497. package/src/components/tmpl/hcservice-v3.tsx +0 -624
  498. package/src/components/tmpl/superagent.js +0 -93
  499. package/src/components/tmpl/tmpl-config-analysis.tsx +0 -111
  500. package/src/components/units/EncryptUtils.js +0 -38
  501. package/src/components/units/image.d.ts +0 -8
  502. package/src/components/units/logo.png +0 -0
  503. package/src/components/units/storage.js +0 -3
  504. package/src/components/welcome/HCWelcome.js +0 -232
  505. package/src/components/welcome/index.css +0 -13
  506. package/src/components/welcome/logo.png +0 -0
  507. package/src/components/welcome/quick-entrance.tsx +0 -77
  508. package/src/components/welcome/workbench.tsx +0 -76
  509. package/src/index.js +0 -4
  510. package/src/style/common.css +0 -79
  511. package/src/style/coverstyle.css +0 -49
  512. package/src/style/transstyle.css +0 -24
  513. package/tsconfig.json +0 -106
package/dist/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><title></title><link rel="icon" href="favicon.ico" type="image/x-icon"/><script defer="defer" src="aldehyde.js"></script><link href="css/main-2e6725ec1b56da516cee.css" rel="stylesheet"></head><body><script>document.title=window.localStorage['programName']?window.localStorage['programName']:'HYDROCARBON';
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><title></title><link rel="icon" href="favicon.ico" type="image/x-icon"/><script defer="defer" src="aldehyde.js"></script></head><body><script>document.title=window.localStorage['programName']?window.localStorage['programName']:'HYDROCARBON';
2
2
  window.addEventListener('beforeunload',e=>{
3
3
  window.scrollTo(0);
4
4
  })</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="ajax-loading" id="ajaxLoading" style="display: none;"><div class="overlay"></div></div></body></html>
package/dist/signature.js CHANGED
@@ -1,2 +1 @@
1
- /*! For license information please see signature.js.LICENSE.txt */
2
- (self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[958],{10404:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return M}});var i=n(84322),o=n.n(i),r=n(59755),a=n(90237),s=n(65337),c=n(95225),h=n(39576),l=n(61378),u=n(69905),d=n(15274),f=n(67294),p=n(62462),v=n(71577),m=n(50146),_=n(75443),y=n(71230),g=n(15746),x=n(58877),w=n.n(x),b=n(1413),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z"}}]},name:"highlight",theme:"outlined"},C=n(41390),E=function(t,e){return f.createElement(C.Z,(0,b.Z)((0,b.Z)({},t),{},{ref:e,icon:P}))};E.displayName="HighlightOutlined";var k=f.forwardRef(E),D=n(39935);var M=function(t){(0,h.Z)(x,t);var e,n,i=(e=x,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,i=(0,u.Z)(e);if(n){var o=(0,u.Z)(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return(0,l.Z)(this,t)});function x(){var t;(0,a.Z)(this,x);for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return t=i.call.apply(i,[this].concat(n)),(0,d.Z)((0,c.Z)(t),"state",{modalVisible:!1,molFileLoaded:!1,molFile:void 0,trimmedDataURL:void 0}),(0,d.Z)((0,c.Z)(t),"signCanvas",void 0),(0,d.Z)((0,c.Z)(t),"loadData",(0,r.Z)(o().mark((function e(){var n,i,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.props.value)){e.next=13;break}if(1!=(i=JSON.parse(n)).valid){e.next=10;break}if(!/^image\/png;base64/.test(i.base.type)){e.next=8;break}return e.next=7,D.Z.loadFileTxt(i.base.path);case 7:r=e.sent;case 8:e.next=11;break;case 10:r="new"==i.valid?i.body:void 0;case 11:console.log("file:",r),t.setState({trimmedDataURL:r});case 13:case"end":return e.stop()}}),e)})))),(0,d.Z)((0,c.Z)(t),"saveMolfile",(0,r.Z)(o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.signCanvas.getTrimmedCanvas().toDataURL("image/png"),console.log("DataURL value:",n),t.triggerChange(n),t.setState({modalVisible:!1,trimmedDataURL:n});case 4:case"end":return e.stop()}}),e)})))),(0,d.Z)((0,c.Z)(t),"triggerChange",(function(e){var n=t.props.onChange;n&&n(JSON.stringify({valid:"new",body:e,suffix:"image/png;base64",fileName:"signature.png"}))})),(0,d.Z)((0,c.Z)(t),"showView",(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.signCanvas.clear(),t.signCanvas.fromDataURL(t.state.trimmedDataURL),t.setState({modalVisible:!0});case 3:case"end":return e.stop()}}),e)})))),(0,d.Z)((0,c.Z)(t),"onCancel",(function(){t.setState({modalVisible:!1})})),(0,d.Z)((0,c.Z)(t),"onClear",(function(){t.signCanvas.clear()})),t}return(0,s.Z)(x,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"render",value:function(){var t=this,e=this.props,n=e.id,i=e.disabled,o=e.viewOrEdit,r=(e.value,this.state),a=(r.molFile,r.trimmedDataURL);return f.createElement("span",{id:n},a?f.createElement(p.Z,{width:90,src:a,preview:{src:a}}):"","edit"==o?f.createElement(v.Z,{onClick:this.showView},f.createElement(k,null),"编 辑"):"",f.createElement(m.Z,{closable:!1,visible:this.state.modalVisible,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:900,onCancel:function(){t.onCancel()},footer:i?[f.createElement(v.Z,{key:1,onClick:function(){t.onCancel()}},"取消")]:[f.createElement(v.Z,{key:1,onClick:function(){t.onClear()}},"清除"),f.createElement(_.Z,{key:2,placement:"top",title:"确定要取消本次编辑的数据吗?",onConfirm:this.onCancel,okText:"确定",cancelText:"取消"},f.createElement(v.Z,null,"取消")),f.createElement(v.Z,{key:3,onClick:function(){t.saveMolfile()},type:"primary"},"确定")],bodyStyle:{width:"900px"}},f.createElement(y.Z,{style:{height:"430px",border:"1px solid #00f",maxWidth:"860px",maxHeight:"calc(100vw - 80px)"}},f.createElement(g.Z,{key:1,span:24,style:{height:"400px"}},f.createElement(w(),{ref:function(e){t.signCanvas=e},penColor:"#000",canvasProps:{width:860,height:400,className:"sigCanvas"}})))))}}]),x}(f.PureComponent);(0,d.Z)(M,"defaultProps",{viewOrEdit:"view"})},58877:function(t,e,n){var i,o,r,a;t.exports=(i=n(45697),o=n(67294),r=n(21518),a=n(41400),function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=i(n(1)),l=n(2),u=i(l),d=i(n(3)),f=i(n(4)),p=function(t){function e(){var t,n,i;r(this,e);for(var s=arguments.length,c=Array(s),h=0;h<s;h++)c[h]=arguments[h];return n=i=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),i._sigPad=null,i._excludeOurProps=function(){var t=i.props;return t.canvasProps,t.clearOnResize,o(t,["canvasProps","clearOnResize"])},i.getCanvas=function(){return i._canvas},i.getTrimmedCanvas=function(){var t=document.createElement("canvas");return t.width=i._canvas.width,t.height=i._canvas.height,t.getContext("2d").drawImage(i._canvas,0,0),(0,f.default)(t)},i.getSignaturePad=function(){return i._sigPad},i._checkClearOnResize=function(){i.props.clearOnResize&&i._resizeCanvas()},i._resizeCanvas=function(){var t=i.props.canvasProps||{},e=t.width,n=t.height;if(!e||!n){var o=i._canvas,r=Math.max(window.devicePixelRatio||1,1);e||(o.width=o.offsetWidth*r),n||(o.height=o.offsetHeight*r),o.getContext("2d").scale(r,r),i.clear()}},i.on=function(){return window.addEventListener("resize",i._checkClearOnResize),i._sigPad.on()},i.off=function(){return window.removeEventListener("resize",i._checkClearOnResize),i._sigPad.off()},i.clear=function(){return i._sigPad.clear()},i.isEmpty=function(){return i._sigPad.isEmpty()},i.fromDataURL=function(t,e){return i._sigPad.fromDataURL(t,e)},i.toDataURL=function(t,e){return i._sigPad.toDataURL(t,e)},i.fromData=function(t){return i._sigPad.fromData(t)},i.toData=function(){return i._sigPad.toData()},a(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),c(e,[{key:"componentDidMount",value:function(){this._sigPad=new d.default(this._canvas,this._excludeOurProps()),this._resizeCanvas(),this.on()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"componentDidUpdate",value:function(){Object.assign(this._sigPad,this._excludeOurProps())}},{key:"render",value:function(){var t=this,e=this.props.canvasProps;return u.default.createElement("canvas",s({ref:function(e){t._canvas=e}},e))}}]),e}(l.Component);p.propTypes={velocityFilterWeight:h.default.number,minWidth:h.default.number,maxWidth:h.default.number,minDistance:h.default.number,dotSize:h.default.oneOfType([h.default.number,h.default.func]),penColor:h.default.string,throttle:h.default.number,onEnd:h.default.func,onBegin:h.default.func,canvasProps:h.default.object,clearOnResize:h.default.bool},p.defaultProps={clearOnResize:!0},e.default=p},function(t,e){t.exports=i},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=a}]))},41400:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,i){return function(t,e,n,i){return{red:i[4*(n*e+t)],green:i[4*(n*e+t)+1],blue:i[4*(n*e+t)+2],alpha:i[4*(n*e+t)+3]}}(t,e,n,i).alpha}function i(t,e,i,o){for(var r=t?1:-1,a=t?0:i-1;t?a<i:a>-1;a+=r)for(var s=0;s<e;s++)if(n(s,a,e,o))return a;return null}function o(t,e,i,o){for(var r=t?1:-1,a=t?0:e-1;t?a<e:a>-1;a+=r)for(var s=0;s<i;s++)if(n(a,s,e,o))return a;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,r=t.height,a=e.getImageData(0,0,n,r).data,s=i(!0,n,r,a),c=i(!1,n,r,a),h=o(!0,n,r,a),l=o(!1,n,r,a)-h+1,u=c-s+1,d=e.getImageData(h,s,l,u);return t.width=l,t.height=u,e.clearRect(0,0,l,u),e.putImageData(d,0,0),t}}])},21518:function(t,e,n){"use strict";function i(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function o(t,e,n,i){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=i}function r(t,e){var n=this,i=e||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this.throttle?this._strokeMoveUpdate=function(t,e,n){var i,o,r,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,r=t.apply(i,o),a||(i=o=null)};return function(){var h=Date.now();s||!1!==n.leading||(s=h);var l=e-(h-s);return i=this,o=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=h,r=t.apply(i,o),a||(i=o=null)):a||!1===n.trailing||(a=setTimeout(c,l)),r}}(r.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=r.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}n.r(e),i.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},i.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},i.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},o.prototype.length=function(){for(var t=0,e=void 0,n=void 0,i=0;i<=10;i+=1){var o=i/10,r=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var s=r-e,c=a-n;t+=Math.sqrt(s*s+c*c)}e=r,n=a}return t},o.prototype._point=function(t,e,n,i,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*i*(1-t)*t*t+o*t*t*t},r.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},r.prototype.fromDataURL=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,o=n.ratio||window.devicePixelRatio||1,r=n.width||this._canvas.width/o,a=n.height||this._canvas.height/o;this._reset(),i.src=t,i.onload=function(){e._ctx.drawImage(i,0,0,r,a)},this._isEmpty=!1},r.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)return this._toSVG();for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(e=this._canvas).toDataURL.apply(e,[t].concat(i))},r.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},r.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},r.prototype.isEmpty=function(){return this._isEmpty},r.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},r.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,i=this._createPoint(e,n),o=this._data[this._data.length-1],r=o&&o[o.length-1],a=r&&i.distanceTo(r)<this.minDistance;if(!r||!a){var s=this._addPoint(i),c=s.curve,h=s.widths;c&&h&&this._drawCurve(c,h.start,h.end),this._data[this._data.length-1].push({x:i.x,y:i.y,time:i.time,color:this.penColor})}},r.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&n&&this._drawDot(n),n){var i=this._data[this._data.length-1],o=i[i.length-1];n.equals(o)||i.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(t)},r.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},r.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},r.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},r.prototype._createPoint=function(t,e,n){var o=this._canvas.getBoundingClientRect();return new i(t-o.left,e-o.top,n||(new Date).getTime())},r.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,i=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,r=new o(e[1],n,i,e[2]),a=this._calculateCurveWidths(r);return e.shift(),{curve:r,widths:a}}return{}},r.prototype._calculateCurveControlPoints=function(t,e,n){var o=t.x-e.x,r=t.y-e.y,a=e.x-n.x,s=e.y-n.y,c=(t.x+e.x)/2,h=(t.y+e.y)/2,l=(e.x+n.x)/2,u=(e.y+n.y)/2,d=Math.sqrt(o*o+r*r),f=Math.sqrt(a*a+s*s),p=f/(d+f),v=l+(c-l)*p,m=u+(h-u)*p,_=e.x-v,y=e.y-m;return{c1:new i(c+_,h+y),c2:new i(l+_,u+y)}},r.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,i={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(o);return i.start=this._lastWidth,i.end=r,this._lastVelocity=o,this._lastWidth=r,i},r.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},r.prototype._drawPoint=function(t,e,n){var i=this._ctx;i.moveTo(t,e),i.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},r.prototype._drawCurve=function(t,e,n){var i=this._ctx,o=n-e,r=Math.floor(t.length());i.beginPath();for(var a=0;a<r;a+=1){var s=a/r,c=s*s,h=c*s,l=1-s,u=l*l,d=u*l,f=d*t.startPoint.x;f+=3*u*s*t.control1.x,f+=3*l*c*t.control2.x,f+=h*t.endPoint.x;var p=d*t.startPoint.y;p+=3*u*s*t.control1.y,p+=3*l*c*t.control2.y,p+=h*t.endPoint.y;var v=e+h*o;this._drawPoint(f,p,v)}i.closePath(),i.fill()},r.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},r.prototype._fromData=function(t,e,n){for(var o=0;o<t.length;o+=1){var r=t[o];if(r.length>1)for(var a=0;a<r.length;a+=1){var s=r[a],c=new i(s.x,s.y,s.time),h=s.color;if(0===a)this.penColor=h,this._reset(),this._addPoint(c);else if(a!==r.length-1){var l=this._addPoint(c),u=l.curve,d=l.widths;u&&d&&e(u,d,h)}}else this._reset(),n(r[0])}},r.prototype._toSVG=function(){var t=this,e=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),o=n.width/i,r=n.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(e,(function(t,e,n){var i=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var o="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);i.setAttribute("d",o),i.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}}),(function(e){var n=document.createElement("circle"),i="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",i),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+r+'" width="'+o+'" height="'+r+'">',c=a.innerHTML;if(void 0===c){var h=document.createElement("dummy"),l=a.childNodes;h.innerHTML="";for(var u=0;u<l.length;u+=1)h.appendChild(l[u].cloneNode(!0));c=h.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},r.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,(function(t,n){return e._drawCurve(t,n.start,n.end)}),(function(t){return e._drawDot(t)})),this._data=t},r.prototype.toData=function(){return this._data},e.default=r}}]);
1
+ "use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[958],{4863:function(e,t,n){n.r(t),n.d(t,{default:function(){return V}}),n(1129);var a=n(6418),i=n.n(a),r=(n(1090),n(7050)),o=n.n(r),l=(n(3688),n(8518)),c=n.n(l),s=(n(79),n(2120)),u=n.n(s),f=(n(2980),n(3800)),d=n.n(f),p=(n(3319),n(8070)),m=n.n(p),v=n(4322),h=n.n(v),g=n(9755),y=n(237),C=n(5337),Z=n(5225),w=n(9576),x=n(1378),k=n(9905),b=n(5274),E=n(6689),R=n.n(E),D=n(8784),L=n.n(D),U=n(7066),S=n(4720);var V=function(e){(0,w.Z)(r,e);var t,n,a=(t=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=(0,k.Z)(t);if(n){var i=(0,k.Z)(this).constructor;e=Reflect.construct(a,arguments,i)}else e=a.apply(this,arguments);return(0,x.Z)(this,e)});function r(){var e;(0,y.Z)(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e=a.call.apply(a,[this].concat(n)),(0,b.Z)((0,Z.Z)(e),"state",{modalVisible:!1,molFileLoaded:!1,molFile:void 0,trimmedDataURL:void 0}),(0,b.Z)((0,Z.Z)(e),"signCanvas",void 0),(0,b.Z)((0,Z.Z)(e),"loadData",(0,g.Z)(h().mark((function t(){var n,a,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.props.value)){t.next=13;break}if(1!=(a=JSON.parse(n)).valid){t.next=10;break}if(!/^image\/png;base64/.test(a.base.type)){t.next=8;break}return t.next=7,S.Z.loadFileTxt(a.base.path);case 7:i=t.sent;case 8:t.next=11;break;case 10:i="new"==a.valid?a.body:void 0;case 11:console.log("file:",i),e.setState({trimmedDataURL:i});case 13:case"end":return t.stop()}}),t)})))),(0,b.Z)((0,Z.Z)(e),"saveMolfile",(0,g.Z)(h().mark((function t(){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.signCanvas.getTrimmedCanvas().toDataURL("image/png"),console.log("DataURL value:",n),e.triggerChange(n),e.setState({modalVisible:!1,trimmedDataURL:n});case 4:case"end":return t.stop()}}),t)})))),(0,b.Z)((0,Z.Z)(e),"triggerChange",(function(t){var n=e.props.onChange;n&&n(JSON.stringify({valid:"new",body:t,suffix:"image/png;base64",fileName:"signature.png"}))})),(0,b.Z)((0,Z.Z)(e),"showView",(0,g.Z)(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.signCanvas.clear(),e.signCanvas.fromDataURL(e.state.trimmedDataURL),e.setState({modalVisible:!0});case 3:case"end":return t.stop()}}),t)})))),(0,b.Z)((0,Z.Z)(e),"onCancel",(function(){e.setState({modalVisible:!1})})),(0,b.Z)((0,Z.Z)(e),"onClear",(function(){e.signCanvas.clear()})),e}return(0,C.Z)(r,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,a=t.disabled,r=t.viewOrEdit,l=(t.value,this.state),s=(l.molFile,l.trimmedDataURL);return R().createElement("span",{id:n},s?R().createElement(m(),{width:90,src:s,preview:{src:s}}):"","edit"==r?R().createElement(d(),{onClick:this.showView},R().createElement(U.HighlightOutlined,null),"编 辑"):"",R().createElement(i(),{closable:!1,visible:this.state.modalVisible,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:900,onCancel:function(){e.onCancel()},footer:a?[R().createElement(d(),{key:1,onClick:function(){e.onCancel()}},"取消")]:[R().createElement(d(),{key:1,onClick:function(){e.onClear()}},"清除"),R().createElement(u(),{key:2,placement:"top",title:"确定要取消本次编辑的数据吗?",onConfirm:this.onCancel,okText:"确定",cancelText:"取消"},R().createElement(d(),null,"取消")),R().createElement(d(),{key:3,onClick:function(){e.saveMolfile()},type:"primary"},"确定")],bodyStyle:{width:"900px"}},R().createElement(o(),{style:{height:"430px",border:"1px solid #00f",maxWidth:"860px",maxHeight:"calc(100vw - 80px)"}},R().createElement(c(),{key:1,span:24,style:{height:"400px"}},R().createElement(L(),{ref:function(t){e.signCanvas=t},penColor:"#000",canvasProps:{width:860,height:400,className:"sigCanvas"}})))))}}]),r}(R().PureComponent);(0,b.Z)(V,"defaultProps",{viewOrEdit:"view"})}}]);
@@ -0,0 +1,10 @@
1
+ {
2
+ "hydrocarbonServer1": "http://localhost:99/hydrocarbon",
3
+ "hydrocarbonServer": "http://localhost:98/hydrogen",
4
+ "hydrocarbonServer1": "http://121.196.184.205:208/hydrogen",
5
+ "programName_NavLeft": "HYDROCARBON",
6
+ "programName": "旷识企业应用",
7
+ "programName_sub": "CARBON",
8
+ "programName_Logo": "logo.png",
9
+ "programCode": "labroom001"
10
+ }
@@ -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,E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C,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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A;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/antd/pie-chart-sub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,MAAM,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAK1B,CAAC;AAEF,MAAM,QAAQ,GAA4B,CAAC,KAAK,EAAE,EAAE;IAEhD,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,EAAE,CAAA;SAC9B;IACL,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG;QACX,aAAa,EAAE,CAAC;QAChB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC/B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC/B,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,sBAAsB;SAClC;QACD,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;KAC3E,CAAC;IAEF,OAAO;QACH,oBAAC,KAAK,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAE,QAAQ,EAAG,KAAK,EAAE,EAAC,KAAK,EAAC,MAAM,EAAC;YAC9D,oBAAC,KAAK;gBACN,gCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,WAAW,EAAE,EAAE,EAAC,mBAE7D;gBACT,6BAAK,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,EAAC,IAAI,KAAK,CAAC,SAAS,GAAC,GAAG,GAAC,KAAK,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 @@
1
+ {"version":3,"file":"statview-d2-chart.js","sourceRoot":"","sources":["../../../../../src/components/chart/antd/statview-d2-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AAOtC,CAAC;AAID,CAAC;AAEF,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAAwD;IAA5F;;QAEI,aAAQ,GAAG,GAAG,EAAE;YACZ,MAAM,EAAC,UAAU,EAAE,WAAW,EAAC,YAAY,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC1D,IAAI,KAAK,CAAC;YAEV,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAC,YAAY,CAAC,CAAA;YAC/C,IAAI,QAAQ,GAAG,SAAS,EAAE,SAAS,GAAG,SAAS,EAAE,UAAU,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,CAAC;YAC7E,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBAChC,IAAG,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAC;oBAC/C,IAAI,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE;wBAC3B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;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,CAAC,GAAG,CAAC,UAAU,GAAG;oBACnC,OAAO,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,GAAC,GAAG,CAAC,MAAM,CAAC,UAAU;wBACjE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC;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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;CACJ;AAED,eAAe,eAAe,CAAC"}
@@ -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