aldehyde 0.0.2 → 0.0.3

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 (505) hide show
  1. package/dist/aldehyde.js +1 -1
  2. package/dist/chemstruc-graph.js +1 -1
  3. package/dist/html-editor-draft.js +1 -1
  4. package/dist/index.html +1 -1
  5. package/dist/signature.js +1 -1
  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 -150
  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 +27 -9
  372. package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +0 -29
  373. package/dist/css/main-2e6725ec1b56da516cee.css +0 -256
  374. package/src/components/chart/antd/Chart.js +0 -32
  375. package/src/components/chart/antd/Chart10000.js +0 -90
  376. package/src/components/chart/antd/Max2DimLineChart.js +0 -128
  377. package/src/components/chart/antd/PieChart1.js +0 -54
  378. package/src/components/chart/antd/PieChart2.js +0 -56
  379. package/src/components/chart/antd/chart-utils.tsx +0 -50
  380. package/src/components/chart/antd/column-chart-sub.tsx +0 -67
  381. package/src/components/chart/antd/line-chart-sub.tsx +0 -65
  382. package/src/components/chart/antd/pie-chart-sub.tsx +0 -54
  383. package/src/components/chart/antd/statview-d2-chart.tsx +0 -125
  384. package/src/components/chart/statview-l2-chart.tsx +0 -69
  385. package/src/components/controls/action/index.css +0 -9
  386. package/src/components/controls/action/index.tsx +0 -228
  387. package/src/components/controls/auto-complete/index.tsx +0 -80
  388. package/src/components/controls/cascader/index.js +0 -97
  389. package/src/components/controls/chemstruc/graph.tsx +0 -150
  390. package/src/components/controls/chemstruc/index.css +0 -28
  391. package/src/components/controls/collapse-card/index.css +0 -9
  392. package/src/components/controls/collapse-card/index.tsx +0 -59
  393. package/src/components/controls/color-picker/index.css +0 -27
  394. package/src/components/controls/color-picker/index.tsx +0 -88
  395. package/src/components/controls/cquery/cquick-button.tsx +0 -117
  396. package/src/components/controls/date-picker/index.tsx +0 -141
  397. package/src/components/controls/entity-select/entity-select.tsx +0 -277
  398. package/src/components/controls/entity-select/index.css +0 -6
  399. package/src/components/controls/entity-select/popover-entity-select.tsx +0 -112
  400. package/src/components/controls/entry-control.tsx +0 -240
  401. package/src/components/controls/enum-badge/index.tsx +0 -28
  402. package/src/components/controls/enum-tag/index.tsx +0 -30
  403. package/src/components/controls/file-view/drawer-file-view.tsx +0 -69
  404. package/src/components/controls/file-view/index.tsx +0 -145
  405. package/src/components/controls/html-editor/draft.tsx +0 -161
  406. package/src/components/controls/html-editor/tinymce.js +0 -55
  407. package/src/components/controls/input-number/index.tsx +0 -101
  408. package/src/components/controls/input-range/index.tsx +0 -48
  409. package/src/components/controls/password-setter/index.css +0 -3
  410. package/src/components/controls/password-setter/index.js +0 -70
  411. package/src/components/controls/progress/index.tsx +0 -61
  412. package/src/components/controls/relation-existion/index.css +0 -4
  413. package/src/components/controls/relation-existion/index.tsx +0 -108
  414. package/src/components/controls/rfield/index.css +0 -4
  415. package/src/components/controls/rfield/index.tsx +0 -161
  416. package/src/components/controls/signature/index.tsx +0 -162
  417. package/src/components/controls/steps/index.tsx +0 -58
  418. package/src/components/controls/text/ellipsis-text.tsx +0 -70
  419. package/src/components/controls/upload/index.tsx +0 -122
  420. package/src/components/controls/view-control.tsx +0 -177
  421. package/src/components/detail/button/cquery-button-bar.tsx +0 -112
  422. package/src/components/detail/button/index.css +0 -43
  423. package/src/components/detail/button/submit-button-bar.tsx +0 -151
  424. package/src/components/detail/dtmpl.css +0 -53
  425. package/src/components/detail/edit/dtmpl-edit.tsx +0 -218
  426. package/src/components/detail/edit/fields-edit-card.tsx +0 -103
  427. package/src/components/detail/edit/modal-dtmpl-edit.tsx +0 -198
  428. package/src/components/detail/edit/modal-row-edit.tsx +0 -72
  429. package/src/components/detail/edit/post-result/index.tsx +0 -52
  430. package/src/components/detail/edit/row-edit-card.tsx +0 -125
  431. package/src/components/detail/edit/row-editor.tsx +0 -71
  432. package/src/components/detail/rightbar/index.css +0 -35
  433. package/src/components/detail/rightbar/index.tsx +0 -76
  434. package/src/components/detail/view/act-dtmpl-view.tsx +0 -155
  435. package/src/components/detail/view/dtmpl-view.tsx +0 -143
  436. package/src/components/detail/view/field-view-group.tsx +0 -73
  437. package/src/components/detail/view/modal-dtmpl-view.tsx +0 -56
  438. package/src/components/detail/view/snapshot-timeline.tsx +0 -130
  439. package/src/components/exportor/export-frame.css +0 -3
  440. package/src/components/exportor/export-frame.tsx +0 -194
  441. package/src/components/exportor/index.tsx +0 -60
  442. package/src/components/form/criteria-form.tsx +0 -241
  443. package/src/components/form/dtmpl-form.css +0 -4
  444. package/src/components/form/dtmpl-form.tsx +0 -272
  445. package/src/components/form/field-group-form.tsx +0 -75
  446. package/src/components/form/fields-form.tsx +0 -51
  447. package/src/components/form/form-Item-group.tsx +0 -99
  448. package/src/components/form/index.css +0 -13
  449. package/src/components/import/excel-import.tsx +0 -316
  450. package/src/components/import/index.css +0 -54
  451. package/src/components/import/template-builder.js +0 -474
  452. package/src/components/import/template.css +0 -51
  453. package/src/components/layout/MainPage.tsx +0 -230
  454. package/src/components/layout/footer/index.css +0 -6
  455. package/src/components/layout/footer/index.js +0 -17
  456. package/src/components/layout/header/index.css +0 -86
  457. package/src/components/layout/header/index.tsx +0 -58
  458. package/src/components/layout/menu/block.tsx +0 -88
  459. package/src/components/layout/menu/l2menu-message-bar.tsx +0 -118
  460. package/src/components/layout/menu/l2menu-quick-bar.tsx +0 -132
  461. package/src/components/layout/menu/menu-2layers.tsx +0 -92
  462. package/src/components/layout/menu/menu-render.tsx +0 -49
  463. package/src/components/layout/menu/reset-password.tsx +0 -185
  464. package/src/components/layout/menu/user-bar.tsx +0 -97
  465. package/src/components/layout/menu/userinfo-bar.tsx +0 -70
  466. package/src/components/layout/sidebar/index.css +0 -26
  467. package/src/components/layout/sidebar/index.tsx +0 -38
  468. package/src/components/login.js +0 -137
  469. package/src/components/module/criteria-page.tsx +0 -175
  470. package/src/components/module/dtmpl-page.tsx +0 -70
  471. package/src/components/module/ltmpl-page.tsx +0 -181
  472. package/src/components/routable/dtmpl-route.tsx +0 -96
  473. package/src/components/routable/import-route.tsx +0 -28
  474. package/src/components/routable/ltmpl-route.tsx +0 -158
  475. package/src/components/table/act-table.tsx +0 -635
  476. package/src/components/table/column/column-selector.tsx +0 -79
  477. package/src/components/table/column/index.css +0 -14
  478. package/src/components/table/index.css +0 -45
  479. package/src/components/table/l2-act-table.tsx +0 -85
  480. package/src/components/table/modal-select-table.tsx +0 -248
  481. package/src/components/table/pagination.css +0 -15
  482. package/src/components/table/pagination.tsx +0 -72
  483. package/src/components/table/query-table.tsx +0 -331
  484. package/src/components/table/relation-table.tsx +0 -600
  485. package/src/components/table/select-table.tsx +0 -247
  486. package/src/components/table/selected-rows-card.tsx +0 -62
  487. package/src/components/table/stat/restat.tsx +0 -79
  488. package/src/components/tmpl/hc-data-source.tsx +0 -230
  489. package/src/components/tmpl/hcservice-v3.tsx +0 -624
  490. package/src/components/tmpl/superagent.js +0 -93
  491. package/src/components/tmpl/tmpl-config-analysis.tsx +0 -111
  492. package/src/components/units/EncryptUtils.js +0 -38
  493. package/src/components/units/image.d.ts +0 -8
  494. package/src/components/units/logo.png +0 -0
  495. package/src/components/units/storage.js +0 -3
  496. package/src/components/welcome/HCWelcome.js +0 -232
  497. package/src/components/welcome/index.css +0 -13
  498. package/src/components/welcome/logo.png +0 -0
  499. package/src/components/welcome/quick-entrance.tsx +0 -77
  500. package/src/components/welcome/workbench.tsx +0 -76
  501. package/src/index.js +0 -5
  502. package/src/style/common.css +0 -79
  503. package/src/style/coverstyle.css +0 -49
  504. package/src/style/transstyle.css +0 -24
  505. package/tsconfig.json +0 -106
@@ -0,0 +1,39 @@
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 { Form as AntdForm } from 'antd';
12
+ import './dtmpl-form.css';
13
+ import FormItemGroup from './form-Item-group';
14
+ ;
15
+ ;
16
+ export default class FieldsForm extends React.PureComponent {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.state = {};
20
+ }
21
+ componentDidMount() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ });
24
+ }
25
+ // onSubmit = (values: any) => {
26
+ // const {dtmplData, fields} = this.props;
27
+ // let data: DtmplData = {
28
+ // fieldMap: values,
29
+ // };
30
+ // this.props.onFinish(data);
31
+ // }
32
+ render() {
33
+ const { formRef, fields, value, onFinish, onValuesChange } = this.props;
34
+ return (React.createElement(React.Fragment, null,
35
+ React.createElement(AntdForm, { onValuesChange: onValuesChange, labelWrap: true, ref: formRef, name: "control-hooks", onFinish: onFinish },
36
+ React.createElement(FormItemGroup, { nameAttr: 'id', fields: fields, valueMap: value }))));
37
+ }
38
+ }
39
+ //# sourceMappingURL=fields-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields-form.js","sourceRoot":"","sources":["../../../../src/components/form/fields-form.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,EAAC,IAAI,IAAI,QAAQ,EAAC,MAAM,MAAM,CAAA;AAGrC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAS7C,CAAC;AAID,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,aAA8C;IAA5F;;QACI,UAAK,GAAG,EAAE,CAAA;IA2Bd,CAAC;IAzBS,iBAAiB;;QAEvB,CAAC;KAAA;IAED,gCAAgC;IAChC,8CAA8C;IAC9C,8BAA8B;IAC9B,4BAA4B;IAC5B,SAAS;IACT,iCAAiC;IACjC,IAAI;IAGJ,MAAM;QACF,MAAM,EAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,QAAQ,EAAC,cAAc,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACpE,OAAO,CACH;YACI,oBAAC,QAAQ,IAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,eAAe,EAAC,QAAQ,EAAE,QAAQ;gBAC5G,oBAAC,aAAa,IAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAC9B,QAAQ,EAAE,KAAK,GAAkB,CACzC,CACZ,CACN,CAAC;IACN,CAAC;CAEJ"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import 'moment/locale/zh-cn';
3
+ import { FieldConfig } from "../tmpl/interface";
4
+ export interface FieldGroupProps {
5
+ fields: FieldConfig[];
6
+ nameAttr?: string;
7
+ valueMap: object;
8
+ width?: number;
9
+ }
10
+ interface FieldGroupState {
11
+ fileList: any;
12
+ }
13
+ export default class FormItemGroup extends React.PureComponent<FieldGroupProps, FieldGroupState> {
14
+ static defaultProps: {
15
+ nameAttr: string;
16
+ };
17
+ constructor(props: any);
18
+ initFormList: () => JSX.Element;
19
+ render(): JSX.Element;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=form-Item-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-Item-group.d.ts","sourceRoot":"","sources":["../../../../src/components/form/form-Item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAC,WAAW,EAAmB,MAAM,mBAAmB,CAAC;AAQhE,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,eAAe;IACrB,QAAQ,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,eAAe,CAAC;IAE5F,MAAM,CAAC,YAAY;;MAElB;gBAEW,KAAK,KAAA;IAOjB,YAAY,oBAwDX;IAED,MAAM;CAKT"}
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { Col, Form, Row } from 'antd';
3
+ import 'moment/locale/zh-cn';
4
+ import EntryControl from "../controls/entry-control";
5
+ import Units from './../units';
6
+ const FormItem = Form.Item;
7
+ ;
8
+ ;
9
+ export default class FormItemGroup extends React.PureComponent {
10
+ constructor(props) {
11
+ super(props);
12
+ this.initFormList = () => {
13
+ const { fields, valueMap, nameAttr } = this.props;
14
+ const formItemList = [];
15
+ if (fields && fields.length > 0) {
16
+ fields.forEach((item, index) => {
17
+ const title = item.title;
18
+ let fieldValue = valueMap ? valueMap[item.id] : undefined;
19
+ //fieldValue 没有值时不能为null 要为 undefined。antd input所限制
20
+ fieldValue = (fieldValue || fieldValue == 0) ? fieldValue : item.defaultValue ? Units.configParamTrans(item.defaultValue) : undefined;
21
+ console.log("表单值:", valueMap[item.id], fieldValue);
22
+ const fieldKey = item.id + Math.random() * 100;
23
+ let formItem = null;
24
+ if (item.extControlType == 'hidden') {
25
+ formItem = React.createElement(FormItem, { hidden: true, initialValue: fieldValue, name: item[nameAttr], key: item.id },
26
+ React.createElement(EntryControl, { value: fieldValue, fieldConfig: item }));
27
+ }
28
+ else {
29
+ formItem = React.createElement(FormItem, { label: item.title, name: item[nameAttr], key: item.id, labelCol: item.colNum == 1 ? { span: 6 } : { span: 3 }, wrapperCol: item.colNum == 1 ? { span: 15 } : { span: 19 }, tooltip: item.tip, initialValue: fieldValue, style: { margin: 4 }, rules: item.required ? [{
30
+ required: true, message: `请选择${title}`,
31
+ }] : undefined },
32
+ React.createElement(EntryControl, { value: fieldValue, fieldConfig: item }));
33
+ }
34
+ formItemList.push(formItem);
35
+ });
36
+ }
37
+ const colList = [];
38
+ for (let i = 0; i < formItemList.length; i = i + 1) {
39
+ let colNum = fields[i].colNum;
40
+ if (fields[i].extControlType == 'hidden') {
41
+ colNum = 0;
42
+ }
43
+ let col = React.createElement(Col, { key: i, span: 12 * colNum }, formItemList[i]);
44
+ colList.push(col);
45
+ }
46
+ const row = React.createElement(Row, { gutter: [16, 8], key: 1 }, colList);
47
+ return row;
48
+ };
49
+ this.state = {
50
+ fileList: [],
51
+ };
52
+ }
53
+ render() {
54
+ return (this.initFormList());
55
+ }
56
+ }
57
+ FormItemGroup.defaultProps = {
58
+ nameAttr: 'id',
59
+ };
60
+ //# sourceMappingURL=form-Item-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-Item-group.js","sourceRoot":"","sources":["../../../../src/components/form/form-Item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,GAAG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;aACN;YAED,MAAM,OAAO,GAAG,EAAE,CAAC;YAEnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAChD,IAAI,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;gBAC9B,IAAG,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,IAAE,QAAQ,EAAC;oBAClC,MAAM,GAAC,CAAC,CAAC;iBACZ;gBACD,IAAI,GAAG,GAAG,oBAAC,GAAG,IAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,IACnC,YAAY,CAAC,CAAC,CAAC,CACd,CAAA;gBACN,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACrB;YAED,MAAM,GAAG,GACL,oBAAC,GAAG,IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IACvB,OAAO,CACN,CAAA;YACV,OAAO,GAAG,CAAC;QACf,CAAC,CAAA;QA7DG,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,EAAE;SACf,CAAA;IACL,CAAC;IA4DD,MAAM;QACF,OAAO,CACH,IAAI,CAAC,YAAY,EAAE,CACtB,CAAA;IACL,CAAC;;AAzEM,0BAAY,GAAC;IAChB,QAAQ,EAAC,IAAI;CAChB,CAAA"}
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import './index.css';
3
+ import { LtmplConfig } from "../tmpl/interface";
4
+ declare type LogLevel = 'INFO' | 'SUC' | 'ERROR' | 'WARN';
5
+ interface ExcelImportProps {
6
+ sourceId: string;
7
+ }
8
+ interface ExcelImportStat {
9
+ inputMaxMsgCount: number;
10
+ maxMsgCount: number;
11
+ percent: number;
12
+ statusMsg: string;
13
+ importStatus: string;
14
+ showLogLevelList: LogLevel[];
15
+ logSetterVisible: boolean;
16
+ logs: any[];
17
+ importFile: any;
18
+ logSerialId: string;
19
+ ltmplConfig: LtmplConfig;
20
+ }
21
+ export default class ExcelImport extends React.PureComponent<ExcelImportProps, ExcelImportStat> {
22
+ state: {
23
+ maxMsgCount: number;
24
+ inputMaxMsgCount: number;
25
+ importStatus: string;
26
+ importFile: any;
27
+ logs: any[];
28
+ percent: number;
29
+ statusMsg: any;
30
+ logSetterVisible: boolean;
31
+ showLogLevelList: LogLevel[];
32
+ logSerialId: any;
33
+ ltmplConfig: any;
34
+ };
35
+ timerId: any;
36
+ componentDidMount(): Promise<void>;
37
+ componentWillUnmount(): void;
38
+ handleUpload: () => void;
39
+ handleStopImport: () => void;
40
+ handleStatus: (importId: any) => void;
41
+ onChangeShowLogLevelList: (showLogLevelList: any) => void;
42
+ fresh: () => void;
43
+ handleLogSetter: () => void;
44
+ changeLogSetterVisible: (visible: any) => void;
45
+ render(): JSX.Element;
46
+ }
47
+ export {};
48
+ //# sourceMappingURL=excel-import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-import.d.ts","sourceRoot":"","sources":["../../../../src/components/import/excel-import.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,aAAa,CAAA;AACpB,OAAO,EAAC,WAAW,EAAmD,MAAM,mBAAmB,CAAC;AAOhG,aAAK,QAAQ,GAAG,MAAM,GAAE,KAAK,GAAC,OAAO,GAAC,MAAM,CAAC;AAG7C,UAAU,gBAAgB;IACtB,QAAQ,EAAC,MAAM,CAAC;CACnB;AAED,UAAU,eAAe;IACrB,gBAAgB,EAAC,MAAM,CAAC;IACxB,WAAW,EAAC,MAAM,CAAC;IACnB,OAAO,EAAC,MAAM,CAAC;IACf,SAAS,EAAC,MAAM,CAAC;IACjB,YAAY,EAAC,MAAM,CAAC;IACpB,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,EAAC,OAAO,CAAC;IACzB,IAAI,EAAC,GAAG,EAAE,CAAC;IACX,UAAU,EAAC,GAAG,CAAC;IACf,WAAW,EAAC,MAAM,CAAC;IACnB,WAAW,EAAC,WAAW,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE3F,KAAK;;;;;;;;;;;;MAYJ;IAED,OAAO,MAAW;IAEb,iBAAiB;IAUtB,oBAAoB;IAQpB,YAAY,aAyBP;IAEL,gBAAgB,aAIf;IAED,YAAY,0BAmDX;IACD,wBAAwB,kCAIvB;IAED,KAAK,aAYJ;IAED,eAAe,aAOd;IACD,sBAAsB,yBAElB;IAGJ,MAAM;CA+HT"}
@@ -0,0 +1,234 @@
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 { Card, Button, Upload, message, Progress, List, Checkbox, Row, Col, Popover, InputNumber } from 'antd';
12
+ import { ReloadOutlined, UploadOutlined, SettingOutlined } from '@ant-design/icons';
13
+ import Super from "../tmpl/superagent";
14
+ import Units from "../units";
15
+ import './index.css';
16
+ import HCDataSource from "../tmpl/hc-data-source";
17
+ const CheckboxGroup = Checkbox.Group;
18
+ const logLevelList = ['INFO', 'SUC', 'ERROR', 'WARN'];
19
+ let totalMSG = [];
20
+ ;
21
+ ;
22
+ export default class ExcelImport extends React.PureComponent {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.state = {
26
+ maxMsgCount: 100,
27
+ inputMaxMsgCount: 100,
28
+ importStatus: 'waitingFile',
29
+ importFile: undefined,
30
+ logs: [],
31
+ percent: 0,
32
+ statusMsg: undefined,
33
+ logSetterVisible: false,
34
+ showLogLevelList: [...logLevelList],
35
+ logSerialId: undefined,
36
+ ltmplConfig: undefined,
37
+ };
38
+ this.timerId = undefined;
39
+ this.handleUpload = () => {
40
+ const { sourceId } = this.props;
41
+ const { importFile } = this.state;
42
+ const formData = new FormData();
43
+ formData.append('file', importFile);
44
+ formData.append('sourceId', sourceId.toString());
45
+ Super.super({
46
+ url: `/v3/ltmpl/importer`,
47
+ method: 'POST',
48
+ data: formData,
49
+ }, "formdata").then((res) => {
50
+ //console.log(res)
51
+ if (res.status === "success") {
52
+ this.setState({
53
+ importStatus: 'importing',
54
+ });
55
+ this.timerId = setInterval(() => this.handleStatus(res.importId), 500);
56
+ }
57
+ else {
58
+ message.error('失败!');
59
+ this.setState({
60
+ importStatus: 'fail',
61
+ });
62
+ }
63
+ });
64
+ };
65
+ this.handleStopImport = () => {
66
+ this.setState({
67
+ importStatus: 'stop',
68
+ });
69
+ };
70
+ this.handleStatus = (importId) => {
71
+ const { maxMsgCount, importStatus } = this.state;
72
+ Super.super({
73
+ url: `/v3/importer/status`,
74
+ method: 'GET',
75
+ query: {
76
+ importId: importId,
77
+ msgIndex: 0,
78
+ maxMsgCount,
79
+ interrupted: importStatus == 'stop',
80
+ }
81
+ }, "", "none").then((res) => {
82
+ const MSG = [];
83
+ for (let item of res.messageSequence.messages) {
84
+ let color = "";
85
+ let logLevel = "";
86
+ let createTime = Units.formateDate(item.createTime);
87
+ if (item.type === "SUC") {
88
+ color = "green";
89
+ logLevel = '成功';
90
+ }
91
+ else if (item.type === "INFO") {
92
+ color = "black";
93
+ logLevel = '常规';
94
+ }
95
+ else if (item.type === "ERROR") {
96
+ color = "red";
97
+ logLevel = '错误';
98
+ }
99
+ else if (item.type === "WARN") {
100
+ color = "rgb(250, 225, 4)";
101
+ logLevel = '警告';
102
+ }
103
+ const msg = React.createElement("div", null,
104
+ React.createElement("p", null, createTime),
105
+ React.createElement("p", { style: { color: color } }, `【${logLevel}】` + item.text));
106
+ MSG.push({ level: item.type, msg });
107
+ }
108
+ this.setState({
109
+ statusMsg: res.message,
110
+ percent: Math.floor((res.current / res.totalCount) * 100),
111
+ logs: MSG,
112
+ });
113
+ if (res.completed === true) {
114
+ clearInterval(this.timerId);
115
+ message.success('导入完成!');
116
+ this.setState({
117
+ importStatus: 'success'
118
+ });
119
+ }
120
+ if (importStatus == 'stop') {
121
+ clearInterval(this.timerId);
122
+ }
123
+ });
124
+ };
125
+ this.onChangeShowLogLevelList = (showLogLevelList) => {
126
+ this.setState({
127
+ showLogLevelList,
128
+ });
129
+ };
130
+ this.fresh = () => {
131
+ // this.setState({
132
+ // fileList:[],
133
+ // uploading: false,
134
+ // statusMsg:"",
135
+ // begin:true,
136
+ // importAgain:"none",
137
+ // importbtn:"block",
138
+ // percent:0,
139
+ // messages:[]
140
+ // })
141
+ // message.success("刷新成功!")
142
+ };
143
+ this.handleLogSetter = () => {
144
+ const { inputMaxMsgCount } = this.state;
145
+ this.setState({
146
+ maxMsgCount: inputMaxMsgCount,
147
+ logSetterVisible: false,
148
+ });
149
+ message.success("设置成功!");
150
+ };
151
+ this.changeLogSetterVisible = visible => {
152
+ this.setState({ logSetterVisible: visible });
153
+ };
154
+ }
155
+ componentDidMount() {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ const { sourceId } = this.props;
158
+ let ltmplConfigRes = yield HCDataSource.requestLtmplConfig(sourceId);
159
+ this.setState({
160
+ ltmplConfig: ltmplConfigRes.ltmplConfig,
161
+ });
162
+ });
163
+ }
164
+ componentWillUnmount() {
165
+ if (this.timerId) {
166
+ clearInterval(this.timerId);
167
+ }
168
+ }
169
+ render() {
170
+ const { ltmplConfig, importFile, maxMsgCount, percent, importStatus, showLogLevelList, logSetterVisible, logs } = this.state;
171
+ let showLogs = [];
172
+ for (let log of logs) {
173
+ if (showLogLevelList.includes(log.level)) {
174
+ showLogs.push(log.msg);
175
+ }
176
+ }
177
+ const props = {
178
+ accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.ms-excel",
179
+ onChange: () => {
180
+ },
181
+ onRemove: (file) => {
182
+ this.setState({
183
+ importFile: undefined,
184
+ importStatus: 'waitingFile',
185
+ percent: 0,
186
+ });
187
+ },
188
+ beforeUpload: (file) => {
189
+ this.setState({
190
+ percent: 0,
191
+ importFile: file,
192
+ importStatus: 'fileSelected',
193
+ });
194
+ return false;
195
+ },
196
+ fileList: importFile ? [importFile] : undefined,
197
+ };
198
+ const content = (React.createElement("div", null,
199
+ React.createElement("label", null, "\u65E5\u5FD7\u6D88\u606F\u6570\u4E0A\u9650\uFF1A"),
200
+ React.createElement(InputNumber, { defaultValue: maxMsgCount, onChange: (value) => this.setState({ inputMaxMsgCount: value }) }),
201
+ React.createElement(Button, { type: "primary", style: { marginLeft: '10px' }, onClick: this.handleLogSetter }, "\u786E\u5B9A")));
202
+ return (React.createElement("div", { className: "importData" },
203
+ React.createElement("h3", null,
204
+ '导入 -> ',
205
+ ltmplConfig ? ltmplConfig.title : "",
206
+ React.createElement("p", { className: "fr" },
207
+ React.createElement(Button, { className: "hoverbig", title: "\u5237\u65B0", onClick: this.fresh },
208
+ React.createElement(ReloadOutlined, null)))),
209
+ React.createElement(Row, null,
210
+ React.createElement(Col, { span: 14, offset: 5 },
211
+ React.createElement(Card, { style: { minWidth: 600 } },
212
+ React.createElement(Upload, Object.assign({}, props),
213
+ React.createElement(Button, null,
214
+ React.createElement(UploadOutlined, null),
215
+ "\u9009\u62E9\u5BFC\u5165\u6587\u4EF6")),
216
+ React.createElement(Progress, { percent: percent, size: "small", status: "active" }),
217
+ React.createElement("div", { className: "importBtns" },
218
+ React.createElement(Button, { type: "primary", onClick: this.handleUpload, disabled: !(['fileSelected', 'stop'].includes(importStatus)), loading: importStatus == 'importing' }, importStatus == 'importing' ? '正在导入' : importStatus == 'stop' ? '重新导入' : '开始导入'),
219
+ React.createElement(Button, { onClick: this.handleStopImport, disabled: importStatus != 'importing' }, '停止导入')),
220
+ React.createElement(List, { header: React.createElement("div", { className: "listHeader" },
221
+ React.createElement("h4", null, "\u5BFC\u5165\u65E5\u5FD7"),
222
+ React.createElement("div", { className: "checks" },
223
+ React.createElement(CheckboxGroup, { value: showLogLevelList, onChange: this.onChangeShowLogLevelList },
224
+ React.createElement(Checkbox, { value: "INFO", className: "infoColor" }, "\u5E38\u89C4"),
225
+ React.createElement(Checkbox, { value: "SUC", className: "sucColor" }, "\u6210\u529F"),
226
+ React.createElement(Checkbox, { value: "ERROR", className: "errorColor" }, "\u9519\u8BEF"),
227
+ React.createElement(Checkbox, { value: "WARN", className: "warnColor" }, "\u8B66\u544A")),
228
+ React.createElement("div", { className: "btns" },
229
+ React.createElement(Popover, { content: content, title: "\u65E5\u5FD7\u8BBE\u7F6E", trigger: "click", placement: "top", visible: logSetterVisible, overlayStyle: { width: 350 }, onVisibleChange: this.changeLogSetterVisible },
230
+ React.createElement(Button, { title: "\u65E5\u5FD7\u8BBE\u7F6E", type: "primary", size: "small" },
231
+ React.createElement(SettingOutlined, null)))))), footer: React.createElement("div", null, importStatus), bordered: true, dataSource: showLogs, renderItem: item => (React.createElement(List.Item, null, item)), className: "importList" }))))));
232
+ }
233
+ }
234
+ //# sourceMappingURL=excel-import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-import.js","sourceRoot":"","sources":["../../../../src/components/import/excel-import.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,EAAO,OAAO,EAAC,WAAW,EAAE,MAAM,MAAM,CAAA;AACzG,OAAO,EAAc,cAAc,EAAmB,cAAc,EAAc,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC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CAAC;CACJ"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { BlockMenu } from "../tmpl/interface";
3
+ interface MainPageProps {
4
+ children: any;
5
+ match?: any;
6
+ }
7
+ interface MainPageState {
8
+ collapsed: boolean;
9
+ currentL2MenuId: string;
10
+ blocks: BlockMenu[];
11
+ currentBlockId?: string;
12
+ isImporter: boolean;
13
+ }
14
+ declare class MainPage extends React.PureComponent<MainPageProps, MainPageState> {
15
+ scrollbarRef: React.RefObject<unknown>;
16
+ state: {
17
+ collapsed: boolean;
18
+ blocks: any[];
19
+ currentL2MenuId: any;
20
+ currentBlockId: any;
21
+ isImporter: boolean;
22
+ };
23
+ componentDidMount(): Promise<void>;
24
+ componentDidUpdate(prevProps: any, prevState: any): Promise<void>;
25
+ findBlockTitle: (blockId: string) => string;
26
+ findBlockIdOfL2Menu: (leMenuId: string) => string;
27
+ findCurrentBlock: () => BlockMenu;
28
+ toggle: () => void;
29
+ render(): JSX.Element;
30
+ }
31
+ export default MainPage;
32
+ //# sourceMappingURL=MainPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainPage.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/MainPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAU5C,UAAU,aAAa;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;CACf;AAED,UAAU,aAAa;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAC,OAAO,CAAC;CACtB;AAED,cAAM,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IACpE,YAAY,2BAAqB;IACjC,KAAK;;;;;;MAMJ;IAEK,iBAAiB;IA8BjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAyC7C,cAAc,YAAa,MAAM,YAehC;IAED,mBAAmB,aAAc,MAAM,YAgBtC;IAED,gBAAgB,kBA4Bf;IAED,MAAM,aAIJ;IAEF,MAAM;CAiDT;AAED,eAAe,QAAQ,CAAC"}