aldehyde 0.0.3 → 0.0.6

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 (501) hide show
  1. package/package.json +6 -6
  2. package/src/components/chart/antd/Chart.js +32 -0
  3. package/src/components/chart/antd/Chart10000.js +90 -0
  4. package/src/components/chart/antd/Max2DimLineChart.js +128 -0
  5. package/src/components/chart/antd/PieChart1.js +54 -0
  6. package/src/components/chart/antd/PieChart2.js +56 -0
  7. package/src/components/chart/antd/chart-utils.tsx +50 -0
  8. package/src/components/chart/antd/column-chart-sub.tsx +67 -0
  9. package/src/components/chart/antd/line-chart-sub.tsx +65 -0
  10. package/src/components/chart/antd/pie-chart-sub.tsx +54 -0
  11. package/src/components/chart/antd/statview-d2-chart.tsx +125 -0
  12. package/src/components/chart/statview-l2-chart.tsx +69 -0
  13. package/src/components/controls/action/index.css +9 -0
  14. package/src/components/controls/action/index.tsx +228 -0
  15. package/{lib/src/components/controls/action/utils.js → src/components/controls/action/utils.tsx} +53 -41
  16. package/src/components/controls/auto-complete/index.tsx +80 -0
  17. package/src/components/controls/cascader/index.js +97 -0
  18. package/src/components/controls/chemstruc/graph.tsx +150 -0
  19. package/src/components/controls/chemstruc/index.css +28 -0
  20. package/src/components/controls/collapse-card/index.css +9 -0
  21. package/src/components/controls/collapse-card/index.tsx +59 -0
  22. package/src/components/controls/color-picker/index.css +27 -0
  23. package/src/components/controls/color-picker/index.tsx +88 -0
  24. package/src/components/controls/cquery/cquick-button.tsx +117 -0
  25. package/src/components/controls/date-picker/index.tsx +141 -0
  26. package/src/components/controls/entity-select/entity-select.tsx +277 -0
  27. package/src/components/controls/entity-select/index.css +6 -0
  28. package/src/components/controls/entity-select/popover-entity-select.tsx +112 -0
  29. package/src/components/controls/entry-control.tsx +240 -0
  30. package/src/components/controls/enum-badge/index.tsx +28 -0
  31. package/src/components/controls/enum-tag/index.tsx +30 -0
  32. package/src/components/controls/file-view/drawer-file-view.tsx +69 -0
  33. package/src/components/controls/file-view/index.tsx +145 -0
  34. package/src/components/controls/html-editor/draft.tsx +161 -0
  35. package/src/components/controls/html-editor/tinymce.js +55 -0
  36. package/src/components/controls/input-number/index.tsx +101 -0
  37. package/src/components/controls/input-range/index.tsx +48 -0
  38. package/src/components/controls/password-setter/index.css +3 -0
  39. package/src/components/controls/password-setter/index.js +70 -0
  40. package/src/components/controls/progress/index.tsx +61 -0
  41. package/src/components/controls/relation-existion/index.css +4 -0
  42. package/src/components/controls/relation-existion/index.tsx +108 -0
  43. package/src/components/controls/rfield/index.css +4 -0
  44. package/src/components/controls/rfield/index.tsx +161 -0
  45. package/src/components/controls/signature/index.tsx +162 -0
  46. package/src/components/controls/steps/index.tsx +58 -0
  47. package/src/components/controls/text/ellipsis-text.tsx +70 -0
  48. package/src/components/controls/upload/index.tsx +122 -0
  49. package/src/components/controls/view-control.tsx +177 -0
  50. package/src/components/detail/button/cquery-button-bar.tsx +112 -0
  51. package/src/components/detail/button/index.css +43 -0
  52. package/src/components/detail/button/submit-button-bar.tsx +151 -0
  53. package/src/components/detail/dtmpl.css +53 -0
  54. package/src/components/detail/edit/dtmpl-edit.tsx +218 -0
  55. package/src/components/detail/edit/fields-edit-card.tsx +103 -0
  56. package/src/components/detail/edit/modal-dtmpl-edit.tsx +198 -0
  57. package/src/components/detail/edit/modal-row-edit.tsx +72 -0
  58. package/src/components/detail/edit/post-result/index.tsx +52 -0
  59. package/src/components/detail/edit/row-edit-card.tsx +125 -0
  60. package/src/components/detail/edit/row-editor.tsx +71 -0
  61. package/src/components/detail/rightbar/index.css +35 -0
  62. package/src/components/detail/rightbar/index.tsx +76 -0
  63. package/src/components/detail/view/act-dtmpl-view.tsx +155 -0
  64. package/src/components/detail/view/dtmpl-view.tsx +143 -0
  65. package/src/components/detail/view/field-view-group.tsx +73 -0
  66. package/src/components/detail/view/modal-dtmpl-view.tsx +56 -0
  67. package/src/components/detail/view/snapshot-timeline.tsx +130 -0
  68. package/src/components/exportor/export-frame.css +3 -0
  69. package/src/components/exportor/export-frame.tsx +194 -0
  70. package/src/components/exportor/index.tsx +60 -0
  71. package/src/components/form/criteria-form.tsx +241 -0
  72. package/src/components/form/dtmpl-form.css +4 -0
  73. package/src/components/form/dtmpl-form.tsx +272 -0
  74. package/src/components/form/field-group-form.tsx +75 -0
  75. package/src/components/form/fields-form.tsx +51 -0
  76. package/src/components/form/form-Item-group.tsx +99 -0
  77. package/src/components/form/index.css +13 -0
  78. package/src/components/import/excel-import.tsx +316 -0
  79. package/src/components/import/index.css +54 -0
  80. package/src/components/import/template-builder.js +474 -0
  81. package/src/components/import/template.css +51 -0
  82. package/src/components/layout/MainPage.tsx +230 -0
  83. package/src/components/layout/footer/index.css +6 -0
  84. package/src/components/layout/footer/index.js +17 -0
  85. package/src/components/layout/header/index.css +86 -0
  86. package/src/components/layout/header/index.tsx +58 -0
  87. package/src/components/layout/menu/block.tsx +88 -0
  88. package/src/components/layout/menu/l2menu-message-bar.tsx +118 -0
  89. package/src/components/layout/menu/l2menu-quick-bar.tsx +132 -0
  90. package/src/components/layout/menu/menu-2layers.tsx +92 -0
  91. package/src/components/layout/menu/menu-render.tsx +49 -0
  92. package/src/components/layout/menu/reset-password.tsx +185 -0
  93. package/src/components/layout/menu/user-bar.tsx +97 -0
  94. package/src/components/layout/menu/userinfo-bar.tsx +70 -0
  95. package/src/components/layout/sidebar/index.css +26 -0
  96. package/src/components/layout/sidebar/index.tsx +38 -0
  97. package/src/components/login.js +137 -0
  98. package/src/components/module/dtmpl-page.tsx +70 -0
  99. package/src/components/module/ltmpl-page.tsx +181 -0
  100. package/src/components/routable/dtmpl-route.tsx +96 -0
  101. package/src/components/routable/import-route.tsx +28 -0
  102. package/src/components/routable/ltmpl-route.tsx +158 -0
  103. package/src/components/table/act-table.tsx +635 -0
  104. package/src/components/table/column/column-selector.tsx +79 -0
  105. package/src/components/table/column/index.css +14 -0
  106. package/src/components/table/index.css +45 -0
  107. package/src/components/table/l2-act-table.tsx +85 -0
  108. package/src/components/table/modal-select-table.tsx +248 -0
  109. package/src/components/table/pagination.css +15 -0
  110. package/src/components/table/pagination.tsx +72 -0
  111. package/src/components/table/query-table.tsx +331 -0
  112. package/src/components/table/relation-table.tsx +600 -0
  113. package/src/components/table/select-table.tsx +247 -0
  114. package/src/components/table/selected-rows-card.tsx +62 -0
  115. package/src/components/table/stat/restat.tsx +79 -0
  116. package/{lib/src/components/table/table-util.js → src/components/table/table-util.tsx} +15 -12
  117. package/{lib/src/components/tmpl/control-type-supportor.js → src/components/tmpl/control-type-supportor.tsx} +30 -18
  118. package/src/components/tmpl/hc-data-source.tsx +230 -0
  119. package/src/components/tmpl/hcservice-v3.tsx +624 -0
  120. package/{lib/src/components/tmpl/interface.d.ts → src/components/tmpl/interface.tsx} +147 -73
  121. package/src/components/tmpl/superagent.js +93 -0
  122. package/src/components/tmpl/tmpl-config-analysis.tsx +111 -0
  123. package/src/components/units/EncryptUtils.js +38 -0
  124. package/src/components/units/image.d.ts +8 -0
  125. package/{lib/src/components/units/index.js → src/components/units/index.tsx} +150 -149
  126. package/{dist/images/logo-06f6a5d8.png → src/components/units/logo.png} +0 -0
  127. package/src/components/units/storage.js +3 -0
  128. package/src/components/welcome/HCWelcome.js +232 -0
  129. package/src/components/welcome/index.css +13 -0
  130. package/src/components/welcome/logo.png +0 -0
  131. package/src/components/welcome/quick-entrance.tsx +77 -0
  132. package/src/components/welcome/workbench.tsx +76 -0
  133. package/src/index.tsx +5 -0
  134. package/src/style/common.css +79 -0
  135. package/src/style/coverstyle.css +49 -0
  136. package/src/style/transstyle.css +24 -0
  137. package/dist/aldehyde.js +0 -1
  138. package/dist/chemstruc-graph.js +0 -1
  139. package/dist/html-editor-draft.js +0 -1
  140. package/dist/index.html +0 -4
  141. package/dist/signature.js +0 -1
  142. package/lib/public/programConfig.json +0 -10
  143. package/lib/src/components/chart/antd/chart-utils.d.ts +0 -7
  144. package/lib/src/components/chart/antd/chart-utils.d.ts.map +0 -1
  145. package/lib/src/components/chart/antd/chart-utils.js +0 -46
  146. package/lib/src/components/chart/antd/chart-utils.js.map +0 -1
  147. package/lib/src/components/chart/antd/column-chart-sub.d.ts +0 -7
  148. package/lib/src/components/chart/antd/column-chart-sub.d.ts.map +0 -1
  149. package/lib/src/components/chart/antd/column-chart-sub.js +0 -50
  150. package/lib/src/components/chart/antd/column-chart-sub.js.map +0 -1
  151. package/lib/src/components/chart/antd/line-chart-sub.d.ts +0 -7
  152. package/lib/src/components/chart/antd/line-chart-sub.d.ts.map +0 -1
  153. package/lib/src/components/chart/antd/line-chart-sub.js +0 -49
  154. package/lib/src/components/chart/antd/line-chart-sub.js.map +0 -1
  155. package/lib/src/components/chart/antd/pie-chart-sub.d.ts +0 -7
  156. package/lib/src/components/chart/antd/pie-chart-sub.d.ts.map +0 -1
  157. package/lib/src/components/chart/antd/pie-chart-sub.js +0 -37
  158. package/lib/src/components/chart/antd/pie-chart-sub.js.map +0 -1
  159. package/lib/src/components/chart/antd/statview-d2-chart.d.ts +0 -17
  160. package/lib/src/components/chart/antd/statview-d2-chart.d.ts.map +0 -1
  161. package/lib/src/components/chart/antd/statview-d2-chart.js +0 -108
  162. package/lib/src/components/chart/antd/statview-d2-chart.js.map +0 -1
  163. package/lib/src/components/chart/statview-l2-chart.d.ts +0 -23
  164. package/lib/src/components/chart/statview-l2-chart.d.ts.map +0 -1
  165. package/lib/src/components/chart/statview-l2-chart.js +0 -64
  166. package/lib/src/components/chart/statview-l2-chart.js.map +0 -1
  167. package/lib/src/components/controls/action/index.d.ts +0 -47
  168. package/lib/src/components/controls/action/index.d.ts.map +0 -1
  169. package/lib/src/components/controls/action/index.js +0 -165
  170. package/lib/src/components/controls/action/index.js.map +0 -1
  171. package/lib/src/components/controls/action/utils.d.ts +0 -9
  172. package/lib/src/components/controls/action/utils.d.ts.map +0 -1
  173. package/lib/src/components/controls/action/utils.js.map +0 -1
  174. package/lib/src/components/controls/auto-complete/index.d.ts +0 -7
  175. package/lib/src/components/controls/auto-complete/index.d.ts.map +0 -1
  176. package/lib/src/components/controls/auto-complete/index.js +0 -53
  177. package/lib/src/components/controls/auto-complete/index.js.map +0 -1
  178. package/lib/src/components/controls/chemstruc/graph.d.ts +0 -31
  179. package/lib/src/components/controls/chemstruc/graph.d.ts.map +0 -1
  180. package/lib/src/components/controls/chemstruc/graph.js +0 -121
  181. package/lib/src/components/controls/chemstruc/graph.js.map +0 -1
  182. package/lib/src/components/controls/collapse-card/index.d.ts +0 -20
  183. package/lib/src/components/controls/collapse-card/index.d.ts.map +0 -1
  184. package/lib/src/components/controls/collapse-card/index.js +0 -63
  185. package/lib/src/components/controls/collapse-card/index.js.map +0 -1
  186. package/lib/src/components/controls/color-picker/index.d.ts +0 -19
  187. package/lib/src/components/controls/color-picker/index.d.ts.map +0 -1
  188. package/lib/src/components/controls/color-picker/index.js +0 -61
  189. package/lib/src/components/controls/color-picker/index.js.map +0 -1
  190. package/lib/src/components/controls/cquery/cquick-button.d.ts +0 -20
  191. package/lib/src/components/controls/cquery/cquick-button.d.ts.map +0 -1
  192. package/lib/src/components/controls/cquery/cquick-button.js +0 -67
  193. package/lib/src/components/controls/cquery/cquick-button.js.map +0 -1
  194. package/lib/src/components/controls/date-picker/index.d.ts +0 -7
  195. package/lib/src/components/controls/date-picker/index.d.ts.map +0 -1
  196. package/lib/src/components/controls/date-picker/index.js +0 -91
  197. package/lib/src/components/controls/date-picker/index.js.map +0 -1
  198. package/lib/src/components/controls/entity-select/entity-select.d.ts +0 -53
  199. package/lib/src/components/controls/entity-select/entity-select.d.ts.map +0 -1
  200. package/lib/src/components/controls/entity-select/entity-select.js +0 -227
  201. package/lib/src/components/controls/entity-select/entity-select.js.map +0 -1
  202. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts +0 -20
  203. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts.map +0 -1
  204. package/lib/src/components/controls/entity-select/popover-entity-select.js +0 -80
  205. package/lib/src/components/controls/entity-select/popover-entity-select.js.map +0 -1
  206. package/lib/src/components/controls/entry-control.d.ts +0 -11
  207. package/lib/src/components/controls/entry-control.d.ts.map +0 -1
  208. package/lib/src/components/controls/entry-control.js +0 -171
  209. package/lib/src/components/controls/entry-control.js.map +0 -1
  210. package/lib/src/components/controls/enum-badge/index.d.ts +0 -7
  211. package/lib/src/components/controls/enum-badge/index.d.ts.map +0 -1
  212. package/lib/src/components/controls/enum-badge/index.js +0 -14
  213. package/lib/src/components/controls/enum-badge/index.js.map +0 -1
  214. package/lib/src/components/controls/enum-tag/index.d.ts +0 -7
  215. package/lib/src/components/controls/enum-tag/index.d.ts.map +0 -1
  216. package/lib/src/components/controls/enum-tag/index.js +0 -18
  217. package/lib/src/components/controls/enum-tag/index.js.map +0 -1
  218. package/lib/src/components/controls/file-view/drawer-file-view.d.ts +0 -18
  219. package/lib/src/components/controls/file-view/drawer-file-view.d.ts.map +0 -1
  220. package/lib/src/components/controls/file-view/drawer-file-view.js +0 -51
  221. package/lib/src/components/controls/file-view/drawer-file-view.js.map +0 -1
  222. package/lib/src/components/controls/file-view/index.d.ts +0 -23
  223. package/lib/src/components/controls/file-view/index.d.ts.map +0 -1
  224. package/lib/src/components/controls/file-view/index.js +0 -130
  225. package/lib/src/components/controls/file-view/index.js.map +0 -1
  226. package/lib/src/components/controls/html-editor/draft.d.ts +0 -22
  227. package/lib/src/components/controls/html-editor/draft.d.ts.map +0 -1
  228. package/lib/src/components/controls/html-editor/draft.js +0 -122
  229. package/lib/src/components/controls/html-editor/draft.js.map +0 -1
  230. package/lib/src/components/controls/input-number/index.d.ts +0 -7
  231. package/lib/src/components/controls/input-number/index.d.ts.map +0 -1
  232. package/lib/src/components/controls/input-number/index.js +0 -67
  233. package/lib/src/components/controls/input-number/index.js.map +0 -1
  234. package/lib/src/components/controls/input-range/index.d.ts +0 -7
  235. package/lib/src/components/controls/input-range/index.d.ts.map +0 -1
  236. package/lib/src/components/controls/input-range/index.js +0 -28
  237. package/lib/src/components/controls/input-range/index.js.map +0 -1
  238. package/lib/src/components/controls/progress/index.d.ts +0 -7
  239. package/lib/src/components/controls/progress/index.d.ts.map +0 -1
  240. package/lib/src/components/controls/progress/index.js +0 -45
  241. package/lib/src/components/controls/progress/index.js.map +0 -1
  242. package/lib/src/components/controls/relation-existion/index.d.ts +0 -20
  243. package/lib/src/components/controls/relation-existion/index.d.ts.map +0 -1
  244. package/lib/src/components/controls/relation-existion/index.js +0 -75
  245. package/lib/src/components/controls/relation-existion/index.js.map +0 -1
  246. package/lib/src/components/controls/rfield/index.d.ts +0 -29
  247. package/lib/src/components/controls/rfield/index.d.ts.map +0 -1
  248. package/lib/src/components/controls/rfield/index.js +0 -130
  249. package/lib/src/components/controls/rfield/index.js.map +0 -1
  250. package/lib/src/components/controls/signature/index.d.ts +0 -31
  251. package/lib/src/components/controls/signature/index.d.ts.map +0 -1
  252. package/lib/src/components/controls/signature/index.js +0 -129
  253. package/lib/src/components/controls/signature/index.js.map +0 -1
  254. package/lib/src/components/controls/steps/index.d.ts +0 -7
  255. package/lib/src/components/controls/steps/index.d.ts.map +0 -1
  256. package/lib/src/components/controls/steps/index.js +0 -42
  257. package/lib/src/components/controls/steps/index.js.map +0 -1
  258. package/lib/src/components/controls/text/ellipsis-text.d.ts +0 -22
  259. package/lib/src/components/controls/text/ellipsis-text.d.ts.map +0 -1
  260. package/lib/src/components/controls/text/ellipsis-text.js +0 -46
  261. package/lib/src/components/controls/text/ellipsis-text.js.map +0 -1
  262. package/lib/src/components/controls/upload/index.d.ts +0 -15
  263. package/lib/src/components/controls/upload/index.d.ts.map +0 -1
  264. package/lib/src/components/controls/upload/index.js +0 -100
  265. package/lib/src/components/controls/upload/index.js.map +0 -1
  266. package/lib/src/components/controls/view-control.d.ts +0 -10
  267. package/lib/src/components/controls/view-control.d.ts.map +0 -1
  268. package/lib/src/components/controls/view-control.js +0 -150
  269. package/lib/src/components/controls/view-control.js.map +0 -1
  270. package/lib/src/components/detail/button/cquery-button-bar.d.ts +0 -16
  271. package/lib/src/components/detail/button/cquery-button-bar.d.ts.map +0 -1
  272. package/lib/src/components/detail/button/cquery-button-bar.js +0 -75
  273. package/lib/src/components/detail/button/cquery-button-bar.js.map +0 -1
  274. package/lib/src/components/detail/button/submit-button-bar.d.ts +0 -19
  275. package/lib/src/components/detail/button/submit-button-bar.d.ts.map +0 -1
  276. package/lib/src/components/detail/button/submit-button-bar.js +0 -99
  277. package/lib/src/components/detail/button/submit-button-bar.js.map +0 -1
  278. package/lib/src/components/detail/edit/dtmpl-edit.d.ts +0 -48
  279. package/lib/src/components/detail/edit/dtmpl-edit.d.ts.map +0 -1
  280. package/lib/src/components/detail/edit/dtmpl-edit.js +0 -190
  281. package/lib/src/components/detail/edit/dtmpl-edit.js.map +0 -1
  282. package/lib/src/components/detail/edit/fields-edit-card.d.ts +0 -39
  283. package/lib/src/components/detail/edit/fields-edit-card.d.ts.map +0 -1
  284. package/lib/src/components/detail/edit/fields-edit-card.js +0 -64
  285. package/lib/src/components/detail/edit/fields-edit-card.js.map +0 -1
  286. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts +0 -51
  287. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts.map +0 -1
  288. package/lib/src/components/detail/edit/modal-dtmpl-edit.js +0 -168
  289. package/lib/src/components/detail/edit/modal-dtmpl-edit.js.map +0 -1
  290. package/lib/src/components/detail/edit/modal-row-edit.d.ts +0 -31
  291. package/lib/src/components/detail/edit/modal-row-edit.d.ts.map +0 -1
  292. package/lib/src/components/detail/edit/modal-row-edit.js +0 -56
  293. package/lib/src/components/detail/edit/modal-row-edit.js.map +0 -1
  294. package/lib/src/components/detail/edit/post-result/index.d.ts +0 -17
  295. package/lib/src/components/detail/edit/post-result/index.d.ts.map +0 -1
  296. package/lib/src/components/detail/edit/post-result/index.js +0 -28
  297. package/lib/src/components/detail/edit/post-result/index.js.map +0 -1
  298. package/lib/src/components/detail/edit/row-edit-card.d.ts +0 -42
  299. package/lib/src/components/detail/edit/row-edit-card.d.ts.map +0 -1
  300. package/lib/src/components/detail/edit/row-edit-card.js +0 -84
  301. package/lib/src/components/detail/edit/row-edit-card.js.map +0 -1
  302. package/lib/src/components/detail/edit/row-editor.d.ts +0 -31
  303. package/lib/src/components/detail/edit/row-editor.d.ts.map +0 -1
  304. package/lib/src/components/detail/edit/row-editor.js +0 -55
  305. package/lib/src/components/detail/edit/row-editor.js.map +0 -1
  306. package/lib/src/components/detail/rightbar/index.d.ts +0 -20
  307. package/lib/src/components/detail/rightbar/index.d.ts.map +0 -1
  308. package/lib/src/components/detail/rightbar/index.js +0 -51
  309. package/lib/src/components/detail/rightbar/index.js.map +0 -1
  310. package/lib/src/components/detail/view/act-dtmpl-view.d.ts +0 -46
  311. package/lib/src/components/detail/view/act-dtmpl-view.d.ts.map +0 -1
  312. package/lib/src/components/detail/view/act-dtmpl-view.js +0 -110
  313. package/lib/src/components/detail/view/act-dtmpl-view.js.map +0 -1
  314. package/lib/src/components/detail/view/dtmpl-view.d.ts +0 -42
  315. package/lib/src/components/detail/view/dtmpl-view.d.ts.map +0 -1
  316. package/lib/src/components/detail/view/dtmpl-view.js +0 -111
  317. package/lib/src/components/detail/view/dtmpl-view.js.map +0 -1
  318. package/lib/src/components/detail/view/field-view-group.d.ts +0 -17
  319. package/lib/src/components/detail/view/field-view-group.d.ts.map +0 -1
  320. package/lib/src/components/detail/view/field-view-group.js +0 -51
  321. package/lib/src/components/detail/view/field-view-group.js.map +0 -1
  322. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts +0 -27
  323. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts.map +0 -1
  324. package/lib/src/components/detail/view/modal-dtmpl-view.js +0 -32
  325. package/lib/src/components/detail/view/modal-dtmpl-view.js.map +0 -1
  326. package/lib/src/components/detail/view/snapshot-timeline.d.ts +0 -32
  327. package/lib/src/components/detail/view/snapshot-timeline.d.ts.map +0 -1
  328. package/lib/src/components/detail/view/snapshot-timeline.js +0 -90
  329. package/lib/src/components/detail/view/snapshot-timeline.js.map +0 -1
  330. package/lib/src/components/exportor/export-frame.d.ts +0 -50
  331. package/lib/src/components/exportor/export-frame.d.ts.map +0 -1
  332. package/lib/src/components/exportor/export-frame.js +0 -140
  333. package/lib/src/components/exportor/export-frame.js.map +0 -1
  334. package/lib/src/components/exportor/index.d.ts +0 -16
  335. package/lib/src/components/exportor/index.d.ts.map +0 -1
  336. package/lib/src/components/exportor/index.js +0 -44
  337. package/lib/src/components/exportor/index.js.map +0 -1
  338. package/lib/src/components/form/criteria-form.d.ts +0 -19
  339. package/lib/src/components/form/criteria-form.d.ts.map +0 -1
  340. package/lib/src/components/form/criteria-form.js +0 -167
  341. package/lib/src/components/form/criteria-form.js.map +0 -1
  342. package/lib/src/components/form/dtmpl-form.d.ts +0 -37
  343. package/lib/src/components/form/dtmpl-form.d.ts.map +0 -1
  344. package/lib/src/components/form/dtmpl-form.js +0 -213
  345. package/lib/src/components/form/dtmpl-form.js.map +0 -1
  346. package/lib/src/components/form/field-group-form.d.ts +0 -21
  347. package/lib/src/components/form/field-group-form.d.ts.map +0 -1
  348. package/lib/src/components/form/field-group-form.js +0 -58
  349. package/lib/src/components/form/field-group-form.js.map +0 -1
  350. package/lib/src/components/form/fields-form.d.ts +0 -20
  351. package/lib/src/components/form/fields-form.d.ts.map +0 -1
  352. package/lib/src/components/form/fields-form.js +0 -39
  353. package/lib/src/components/form/fields-form.js.map +0 -1
  354. package/lib/src/components/form/form-Item-group.d.ts +0 -22
  355. package/lib/src/components/form/form-Item-group.d.ts.map +0 -1
  356. package/lib/src/components/form/form-Item-group.js +0 -60
  357. package/lib/src/components/form/form-Item-group.js.map +0 -1
  358. package/lib/src/components/import/excel-import.d.ts +0 -48
  359. package/lib/src/components/import/excel-import.d.ts.map +0 -1
  360. package/lib/src/components/import/excel-import.js +0 -234
  361. package/lib/src/components/import/excel-import.js.map +0 -1
  362. package/lib/src/components/layout/MainPage.d.ts +0 -32
  363. package/lib/src/components/layout/MainPage.d.ts.map +0 -1
  364. package/lib/src/components/layout/MainPage.js +0 -202
  365. package/lib/src/components/layout/MainPage.js.map +0 -1
  366. package/lib/src/components/layout/header/index.d.ts +0 -16
  367. package/lib/src/components/layout/header/index.d.ts.map +0 -1
  368. package/lib/src/components/layout/header/index.js +0 -37
  369. package/lib/src/components/layout/header/index.js.map +0 -1
  370. package/lib/src/components/layout/menu/block.d.ts +0 -9
  371. package/lib/src/components/layout/menu/block.d.ts.map +0 -1
  372. package/lib/src/components/layout/menu/block.js +0 -48
  373. package/lib/src/components/layout/menu/block.js.map +0 -1
  374. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts +0 -24
  375. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts.map +0 -1
  376. package/lib/src/components/layout/menu/l2menu-message-bar.js +0 -97
  377. package/lib/src/components/layout/menu/l2menu-message-bar.js.map +0 -1
  378. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts +0 -30
  379. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts.map +0 -1
  380. package/lib/src/components/layout/menu/l2menu-quick-bar.js +0 -94
  381. package/lib/src/components/layout/menu/l2menu-quick-bar.js.map +0 -1
  382. package/lib/src/components/layout/menu/menu-2layers.d.ts +0 -9
  383. package/lib/src/components/layout/menu/menu-2layers.d.ts.map +0 -1
  384. package/lib/src/components/layout/menu/menu-2layers.js +0 -63
  385. package/lib/src/components/layout/menu/menu-2layers.js.map +0 -1
  386. package/lib/src/components/layout/menu/menu-render.d.ts +0 -8
  387. package/lib/src/components/layout/menu/menu-render.d.ts.map +0 -1
  388. package/lib/src/components/layout/menu/menu-render.js +0 -44
  389. package/lib/src/components/layout/menu/menu-render.js.map +0 -1
  390. package/lib/src/components/layout/menu/reset-password.d.ts +0 -25
  391. package/lib/src/components/layout/menu/reset-password.d.ts.map +0 -1
  392. package/lib/src/components/layout/menu/reset-password.js +0 -113
  393. package/lib/src/components/layout/menu/reset-password.js.map +0 -1
  394. package/lib/src/components/layout/menu/user-bar.d.ts +0 -19
  395. package/lib/src/components/layout/menu/user-bar.d.ts.map +0 -1
  396. package/lib/src/components/layout/menu/user-bar.js +0 -61
  397. package/lib/src/components/layout/menu/user-bar.js.map +0 -1
  398. package/lib/src/components/layout/menu/userinfo-bar.d.ts +0 -18
  399. package/lib/src/components/layout/menu/userinfo-bar.d.ts.map +0 -1
  400. package/lib/src/components/layout/menu/userinfo-bar.js +0 -50
  401. package/lib/src/components/layout/menu/userinfo-bar.js.map +0 -1
  402. package/lib/src/components/layout/sidebar/index.d.ts +0 -12
  403. package/lib/src/components/layout/sidebar/index.d.ts.map +0 -1
  404. package/lib/src/components/layout/sidebar/index.js +0 -19
  405. package/lib/src/components/layout/sidebar/index.js.map +0 -1
  406. package/lib/src/components/module/dtmpl-page.d.ts +0 -19
  407. package/lib/src/components/module/dtmpl-page.d.ts.map +0 -1
  408. package/lib/src/components/module/dtmpl-page.js +0 -46
  409. package/lib/src/components/module/dtmpl-page.js.map +0 -1
  410. package/lib/src/components/module/ltmpl-page.d.ts +0 -34
  411. package/lib/src/components/module/ltmpl-page.d.ts.map +0 -1
  412. package/lib/src/components/module/ltmpl-page.js +0 -154
  413. package/lib/src/components/module/ltmpl-page.js.map +0 -1
  414. package/lib/src/components/routable/dtmpl-route.d.ts +0 -17
  415. package/lib/src/components/routable/dtmpl-route.d.ts.map +0 -1
  416. package/lib/src/components/routable/dtmpl-route.js +0 -77
  417. package/lib/src/components/routable/dtmpl-route.js.map +0 -1
  418. package/lib/src/components/routable/import-route.d.ts +0 -13
  419. package/lib/src/components/routable/import-route.d.ts.map +0 -1
  420. package/lib/src/components/routable/import-route.js +0 -29
  421. package/lib/src/components/routable/import-route.js.map +0 -1
  422. package/lib/src/components/routable/ltmpl-route.d.ts +0 -25
  423. package/lib/src/components/routable/ltmpl-route.d.ts.map +0 -1
  424. package/lib/src/components/routable/ltmpl-route.js +0 -145
  425. package/lib/src/components/routable/ltmpl-route.js.map +0 -1
  426. package/lib/src/components/table/act-table.d.ts +0 -76
  427. package/lib/src/components/table/act-table.d.ts.map +0 -1
  428. package/lib/src/components/table/act-table.js +0 -454
  429. package/lib/src/components/table/act-table.js.map +0 -1
  430. package/lib/src/components/table/column/column-selector.d.ts +0 -26
  431. package/lib/src/components/table/column/column-selector.d.ts.map +0 -1
  432. package/lib/src/components/table/column/column-selector.js +0 -59
  433. package/lib/src/components/table/column/column-selector.js.map +0 -1
  434. package/lib/src/components/table/l2-act-table.d.ts +0 -23
  435. package/lib/src/components/table/l2-act-table.d.ts.map +0 -1
  436. package/lib/src/components/table/l2-act-table.js +0 -80
  437. package/lib/src/components/table/l2-act-table.js.map +0 -1
  438. package/lib/src/components/table/modal-select-table.d.ts +0 -41
  439. package/lib/src/components/table/modal-select-table.d.ts.map +0 -1
  440. package/lib/src/components/table/modal-select-table.js +0 -208
  441. package/lib/src/components/table/modal-select-table.js.map +0 -1
  442. package/lib/src/components/table/pagination.d.ts +0 -17
  443. package/lib/src/components/table/pagination.d.ts.map +0 -1
  444. package/lib/src/components/table/pagination.js +0 -40
  445. package/lib/src/components/table/pagination.js.map +0 -1
  446. package/lib/src/components/table/query-table.d.ts +0 -65
  447. package/lib/src/components/table/query-table.d.ts.map +0 -1
  448. package/lib/src/components/table/query-table.js +0 -257
  449. package/lib/src/components/table/query-table.js.map +0 -1
  450. package/lib/src/components/table/relation-table.d.ts +0 -61
  451. package/lib/src/components/table/relation-table.d.ts.map +0 -1
  452. package/lib/src/components/table/relation-table.js +0 -444
  453. package/lib/src/components/table/relation-table.js.map +0 -1
  454. package/lib/src/components/table/select-table.d.ts +0 -40
  455. package/lib/src/components/table/select-table.d.ts.map +0 -1
  456. package/lib/src/components/table/select-table.js +0 -223
  457. package/lib/src/components/table/select-table.js.map +0 -1
  458. package/lib/src/components/table/selected-rows-card.d.ts +0 -16
  459. package/lib/src/components/table/selected-rows-card.d.ts.map +0 -1
  460. package/lib/src/components/table/selected-rows-card.js +0 -47
  461. package/lib/src/components/table/selected-rows-card.js.map +0 -1
  462. package/lib/src/components/table/stat/restat.d.ts +0 -26
  463. package/lib/src/components/table/stat/restat.d.ts.map +0 -1
  464. package/lib/src/components/table/stat/restat.js +0 -61
  465. package/lib/src/components/table/stat/restat.js.map +0 -1
  466. package/lib/src/components/table/table-util.d.ts +0 -5
  467. package/lib/src/components/table/table-util.d.ts.map +0 -1
  468. package/lib/src/components/table/table-util.js.map +0 -1
  469. package/lib/src/components/tmpl/control-type-supportor.d.ts +0 -9
  470. package/lib/src/components/tmpl/control-type-supportor.d.ts.map +0 -1
  471. package/lib/src/components/tmpl/control-type-supportor.js.map +0 -1
  472. package/lib/src/components/tmpl/hc-data-source.d.ts +0 -19
  473. package/lib/src/components/tmpl/hc-data-source.d.ts.map +0 -1
  474. package/lib/src/components/tmpl/hc-data-source.js +0 -230
  475. package/lib/src/components/tmpl/hc-data-source.js.map +0 -1
  476. package/lib/src/components/tmpl/hcservice-v3.d.ts +0 -53
  477. package/lib/src/components/tmpl/hcservice-v3.d.ts.map +0 -1
  478. package/lib/src/components/tmpl/hcservice-v3.js +0 -639
  479. package/lib/src/components/tmpl/hcservice-v3.js.map +0 -1
  480. package/lib/src/components/tmpl/interface.d.ts.map +0 -1
  481. package/lib/src/components/tmpl/interface.js +0 -4
  482. package/lib/src/components/tmpl/interface.js.map +0 -1
  483. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts +0 -7
  484. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts.map +0 -1
  485. package/lib/src/components/tmpl/tmpl-config-analysis.js +0 -106
  486. package/lib/src/components/tmpl/tmpl-config-analysis.js.map +0 -1
  487. package/lib/src/components/units/index.d.ts +0 -58
  488. package/lib/src/components/units/index.d.ts.map +0 -1
  489. package/lib/src/components/units/index.js.map +0 -1
  490. package/lib/src/components/welcome/quick-entrance.d.ts +0 -20
  491. package/lib/src/components/welcome/quick-entrance.d.ts.map +0 -1
  492. package/lib/src/components/welcome/quick-entrance.js +0 -79
  493. package/lib/src/components/welcome/quick-entrance.js.map +0 -1
  494. package/lib/src/components/welcome/workbench.d.ts +0 -20
  495. package/lib/src/components/welcome/workbench.d.ts.map +0 -1
  496. package/lib/src/components/welcome/workbench.js +0 -78
  497. package/lib/src/components/welcome/workbench.js.map +0 -1
  498. package/lib/src/index.d.ts +0 -4
  499. package/lib/src/index.d.ts.map +0 -1
  500. package/lib/src/index.js +0 -4
  501. package/lib/src/index.js.map +0 -1
@@ -1,90 +0,0 @@
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 { Button, Drawer, Timeline } from 'antd';
12
- import HcserviceV3 from "../../tmpl/hcservice-v3";
13
- import '../dtmpl.css';
14
- import Units from '../../units';
15
- import DtmplView from "./dtmpl-view";
16
- ;
17
- ;
18
- class SnapshotTimeline extends React.PureComponent {
19
- constructor() {
20
- super(...arguments);
21
- this.state = {
22
- list: undefined,
23
- loading: false,
24
- current: undefined,
25
- };
26
- this.loadData = () => __awaiter(this, void 0, void 0, function* () {
27
- const { sourceId, code, showSnapshot } = this.props;
28
- const { current } = this.state;
29
- if (code) {
30
- this.setState({
31
- loading: true,
32
- });
33
- const list = yield HcserviceV3.requestVersionList(sourceId, code);
34
- this.setState({
35
- list, current: !current && list.length > 0 ? list[0].code : current,
36
- loading: false,
37
- });
38
- }
39
- });
40
- this.onChange = (code) => {
41
- const { showSnapshot } = this.props;
42
- this.setState({
43
- current: code
44
- });
45
- showSnapshot(code);
46
- };
47
- this.detailHistory = () => {
48
- const { list, current } = this.state;
49
- let detailHistory;
50
- if (list.length > 0) {
51
- detailHistory = list.map((item, index) => {
52
- const isCurrentItem = (current ? item.code === current : false);
53
- const color = isCurrentItem ? "red" : "blue";
54
- return React.createElement(Timeline.Item, { color: color, key: index },
55
- Units.formateDate(item.time),
56
- React.createElement("br", null),
57
- `` + item.userName,
58
- isCurrentItem ? "" : React.createElement(Button, { style: { marginLeft: 10 }, type: "primary", size: "small", onClick: () => this.onChange(item.code) }, "\u67E5\u770B"));
59
- });
60
- return detailHistory;
61
- }
62
- };
63
- }
64
- componentDidMount() {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- });
67
- }
68
- componentDidUpdate(prevProps) {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- const { visible } = this.props;
71
- const { list } = this.state;
72
- if (visible && !list) {
73
- this.loadData();
74
- }
75
- });
76
- }
77
- render() {
78
- const { visible, onClose, dtmplConfig, sourceId, code } = this.props;
79
- const { list, current } = this.state;
80
- return (React.createElement(React.Fragment, null,
81
- React.createElement(Drawer, { title: "\u5FEB\u7167\u5217\u8868", closable: true, onClose: onClose, visible: visible, width: 350 }, list && list.length > 0 ? React.createElement(Timeline, { mode: "alternate" }, this.detailHistory()) : "暂无历史记录"),
82
- React.createElement(Drawer, { placement: 'left', title: "\u5FEB\u7167\u67E5\u770B", closable: true, mask: false, onClose: onClose, visible: visible, width: 'calc(100% - 380px)', style: {
83
- maxWidth: 1960,
84
- } },
85
- React.createElement(DtmplView, { showRightNav: false, dtmplConfig: dtmplConfig, sourceId: sourceId, code: code, versionId: current }))));
86
- }
87
- }
88
- SnapshotTimeline.defaultProps = {};
89
- export default SnapshotTimeline;
90
- //# sourceMappingURL=snapshot-timeline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshot-timeline.js","sourceRoot":"","sources":["../../../../../src/components/detail/view/snapshot-timeline.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAA;AAC7C,OAAO,WAA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D,MAAM;QACF,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAG,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACpE,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACnC,OAAO,CACH;YACI,oBAAC,MAAM,IACH,KAAK,EAAC,0BAAM,EACZ,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,GAAG,IAET,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,oBAAC,QAAQ,IAAC,IAAI,EAAC,WAAW,IAChD,IAAI,CAAC,aAAa,EAAE,CACd,CAAC,CAAC,CAAC,QAAQ,CACjB;YACT,oBAAC,MAAM,IACH,SAAS,EAAE,MAAM,EACjB,KAAK,EAAC,0BAAM,EACZ,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE;oBACH,QAAQ,EAAE,IAAI;iBACjB;gBAED,oBAAC,SAAS,IAAC,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAChE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,GAAc,CACnD,CACV,CACN,CAAC;IACN,CAAC;;AApGM,6BAAY,GAAG,EAAE,CAAA;AAwG5B,eAAe,gBAAgB,CAAC"}
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import './export-frame.css';
3
- import { PageInfo, QueryKey } from "../tmpl/interface";
4
- interface ExportFrameProps {
5
- defaultExportMode?: string;
6
- queryKey: QueryKey;
7
- currentPage?: PageInfo;
8
- title: string;
9
- }
10
- interface ExportFrameStat {
11
- interrupted: boolean;
12
- disabledPageNoInput: boolean;
13
- disabledCurrentPageRadio: boolean;
14
- disabledAllPageRadio: boolean;
15
- exportId: string;
16
- startPageNo: number;
17
- endPageNo: number;
18
- exportMode: string;
19
- percent: number;
20
- exportStatus: string;
21
- exportingMsg: string;
22
- }
23
- export default class ExportFrame extends React.PureComponent<ExportFrameProps, ExportFrameStat> {
24
- static defaultProps: {
25
- defaultExportMode: string;
26
- };
27
- state: {
28
- interrupted: boolean;
29
- disabledPageNoInput: boolean;
30
- disabledCurrentPageRadio: boolean;
31
- disabledAllPageRadio: boolean;
32
- exportId: any;
33
- startPageNo: number;
34
- endPageNo: number;
35
- exportMode: string;
36
- percent: number;
37
- exportStatus: string;
38
- exportingMsg: string;
39
- };
40
- componentWillUnmount(): void;
41
- onChangeRadio: (e: any) => void;
42
- timerID: any;
43
- handleStart: () => void;
44
- statusOut: (exportId: any) => void;
45
- download: () => void;
46
- handleCancel: () => void;
47
- render(): JSX.Element;
48
- }
49
- export {};
50
- //# sourceMappingURL=export-frame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-frame.d.ts","sourceRoot":"","sources":["../../../../src/components/exportor/export-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,oBAAoB,CAAA;AAG3B,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAIjE,UAAU,gBAAgB;IACtB,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAC,QAAQ,CAAC;IACtB,KAAK,EAAC,MAAM,CAAC;CAChB;AAED,UAAU,eAAe;IACrB,WAAW,EAAC,OAAO,CAAC;IACpB,mBAAmB,EAAC,OAAO,CAAC;IAC5B,wBAAwB,EAAC,OAAO,CAAC;IACjC,oBAAoB,EAAC,OAAO,CAAC;IAC7B,QAAQ,EAAC,MAAM,CAAC;IAChB,WAAW,EAAC,MAAM,CAAC;IACnB,SAAS,EAAC,MAAM,CAAC;IACjB,UAAU,EAAC,MAAM,CAAC;IAClB,OAAO,EAAC,MAAM,CAAC;IACf,YAAY,EAAC,MAAM,CAAC;IACpB,YAAY,EAAC,MAAM,CAAC;CACvB;AAGD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE5F,MAAM,CAAC,YAAY;;MAEjB;IAED,KAAK;;;;;;;;;;;;MAYJ;IAED,oBAAoB;IAIpB,aAAa,mBAMZ;IAED,OAAO,MAAW;IAElB,WAAW,aA8BV;IACD,SAAS,0BAkCR;IACD,QAAQ,aAKP;IAED,YAAY,aAKX;IAED,MAAM;CAgDT"}
@@ -1,140 +0,0 @@
1
- import React from 'react';
2
- import { Button, Radio, Divider, InputNumber, Progress } from 'antd';
3
- import './export-frame.css';
4
- import Super from "../tmpl/superagent";
5
- import Units from "../units";
6
- const RadioGroup = Radio.Group;
7
- export default class ExportFrame extends React.PureComponent {
8
- constructor() {
9
- super(...arguments);
10
- this.state = {
11
- interrupted: false,
12
- disabledPageNoInput: false,
13
- disabledCurrentPageRadio: false,
14
- disabledAllPageRadio: false,
15
- exportId: undefined,
16
- startPageNo: 1,
17
- endPageNo: 10,
18
- exportMode: 'all',
19
- percent: 0,
20
- exportStatus: 'ready',
21
- exportingMsg: '',
22
- };
23
- this.onChangeRadio = (e) => {
24
- this.setState({
25
- exportMode: e.target.value,
26
- startPageNo: 1,
27
- endPageNo: 10,
28
- });
29
- };
30
- this.timerID = undefined;
31
- this.handleStart = () => {
32
- const { queryKey, currentPage, title } = this.props;
33
- const { startPageNo, endPageNo, exportMode } = this.state;
34
- Super.super({
35
- url: `/v3/ltmp/data/exporter`,
36
- method: 'GET',
37
- query: {
38
- scope: exportMode,
39
- withDetail: false,
40
- queryKey: queryKey.key,
41
- startPageNo: exportMode == 'all' ? startPageNo : currentPage.pageNo,
42
- endPageNo: exportMode == 'all' ? endPageNo : currentPage.pageNo,
43
- },
44
- }).then((res) => {
45
- if (res.exportId) {
46
- this.setState({
47
- exportId: res.exportId,
48
- exportStatus: 'exporting'
49
- });
50
- this.statusOut(res.exportId);
51
- this.timerID = setInterval(() => this.statusOut(res.exportId), 1000);
52
- }
53
- else {
54
- this.setState({
55
- exportStatus: 'fail'
56
- });
57
- }
58
- });
59
- };
60
- this.statusOut = (exportId) => {
61
- const { exportStatus } = this.state;
62
- Super.super({
63
- url: `/v3/exporter/status`,
64
- query: {
65
- interrupted: exportStatus == 'stop',
66
- exportId
67
- },
68
- method: 'GET',
69
- }, "", "none").then((res) => {
70
- if (res.breaked) {
71
- this.setState({
72
- exportingMsg: '已终止',
73
- percent: 0,
74
- });
75
- }
76
- else {
77
- this.setState({
78
- exportingMsg: res.statusMsg,
79
- percent: Math.floor((res.current / res.totalCount) * 100),
80
- });
81
- }
82
- if (exportStatus == 'stop') {
83
- clearInterval(this.timerID);
84
- }
85
- if (res.completed === true) {
86
- clearInterval(this.timerID);
87
- this.setState({
88
- exportStatus: 'success',
89
- exportingMsg: res.statusMsg,
90
- percent: Math.floor((res.current / res.totalCount) * 100),
91
- });
92
- }
93
- });
94
- };
95
- this.download = () => {
96
- const { title } = this.props;
97
- const { exportId } = this.state;
98
- const hydrocarbonToken = Units.getLocalStorge("hydrocarbonToken");
99
- Units.downloadFile(Units.api() + `/v3/exporter/excel?exportId=${exportId}&@token=${hydrocarbonToken}`, title);
100
- };
101
- this.handleCancel = () => {
102
- this.setState({
103
- percent: 0,
104
- exportStatus: 'stop',
105
- });
106
- };
107
- }
108
- componentWillUnmount() {
109
- console.log("销毁");
110
- }
111
- render() {
112
- const { defaultExportMode, currentPage } = this.props;
113
- const { startPageNo, endPageNo, disabledPageNoInput, exportMode, exportStatus, percent, exportingMsg } = this.state;
114
- return (React.createElement("div", { style: { width: '400px' }, className: "exportFrame" },
115
- currentPage ? React.createElement(React.Fragment, null,
116
- React.createElement(RadioGroup, { onChange: this.onChangeRadio, value: exportMode, defaultValue: defaultExportMode },
117
- React.createElement(Radio, { value: 'current', disabled: exportStatus == 'exporting' }, "\u5BFC\u51FA\u5F53\u524D\u9875"),
118
- React.createElement(Radio, { value: 'all', disabled: exportStatus == 'exporting' }, "\u5BFC\u51FA\u6240\u6709")),
119
- React.createElement(Divider, null)) : "",
120
- exportMode == 'all' ?
121
- React.createElement("div", null,
122
- "\u9875\u53F7\uFF1A",
123
- React.createElement(InputNumber, { min: 1, value: startPageNo, placeholder: "\u5F00\u59CB\u9875\u53F7", onChange: (v1) => this.setState({ startPageNo: v1 }), disabled: disabledPageNoInput }),
124
- "-",
125
- React.createElement(InputNumber, { min: 1, value: endPageNo, placeholder: "\u7ED3\u675F\u9875\u53F7", onChange: (v2) => this.setState({ endPageNo: v2 }), disabled: disabledPageNoInput }),
126
- React.createElement(Divider, null)) : "",
127
- React.createElement("div", null,
128
- exportStatus == 'ready' ?
129
- React.createElement(Button, { type: "primary", onClick: this.handleStart }, "\u5F00\u59CB\u5BFC\u51FA") : exportStatus == 'exporting' ? React.createElement(Button, { onClick: this.handleCancel }, "\u53D6\u6D88\u5BFC\u51FA") :
130
- React.createElement(Button, { onClick: this.handleStart }, "\u91CD\u65B0\u5BFC\u51FA"),
131
- exportStatus == 'success' ? React.createElement(Button, { type: "primary", style: { marginLeft: 10 }, disabled: exportStatus != 'success', onClick: this.download }, "\u4E0B\u8F7D\u6587\u4EF6") : '',
132
- percent > 0 ?
133
- React.createElement(Progress, { percent: percent, size: "small", status: "active" }) : "",
134
- React.createElement("p", null, exportingMsg))));
135
- }
136
- }
137
- ExportFrame.defaultProps = {
138
- defaultExportMode: 'all'
139
- };
140
- //# sourceMappingURL=export-frame.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-frame.js","sourceRoot":"","sources":["../../../../src/components/exportor/export-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAU,Q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T,CAAA,CAAC,CAAA,EAAE;YACb;gBACK,YAAY,IAAE,OAAO,CAAA,CAAC;oBACnB,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAG,OAAO,EAAE,IAAI,CAAC,WAAW,+BAEzC,CAAA,CAAC,CAAC,YAAY,IAAE,WAAW,CAAA,CAAC,CAAA,oBAAC,MAAM,IAAE,OAAO,EAAE,IAAI,CAAC,YAAY,+BAAe,CAAA,CAAC;oBACpF,oBAAC,MAAM,IAAG,OAAO,EAAE,IAAI,CAAC,WAAW,+BAE1B;gBAEhB,YAAY,IAAE,SAAS,CAAA,CAAC,CAAA,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,EAAC,UAAU,EAAC,EAAE,EAAC,EACvC,QAAQ,EAAE,YAAY,IAAE,SAAS,EACjC,OAAO,EAAE,IAAI,CAAC,QAAQ,+BAC5C,CAAA,CAAC,CAAA,EAAE;gBAEX,OAAO,GAAC,CAAC,CAAA,CAAC;oBACP,oBAAC,QAAQ,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,GAAG,CAAA,CAAC,CAAA,EAAE;gBAElE,+BAAI,YAAY,CAAK,CACnB,CACJ,CACT,CAAA;IACL,CAAC;;AA/JK,wBAAY,GAAC;IACf,iBAAiB,EAAC,KAAK;CAC1B,CAAA"}
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.css';
3
- interface ExcelExportProps {
4
- sourceId: string;
5
- }
6
- interface ExcelExportStat {
7
- }
8
- export default class ExcelExport extends React.PureComponent<ExcelExportProps, ExcelExportStat> {
9
- state: {};
10
- timerId: any;
11
- componentDidMount(): Promise<void>;
12
- componentWillUnmount(): void;
13
- render(): JSX.Element;
14
- }
15
- export {};
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/exportor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,aAAa,CAAA;AAWpB,UAAU,gBAAgB;IACtB,QAAQ,EAAC,MAAM,CAAC;CACnB;AAED,UAAU,eAAe;CAExB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE3F,KAAK,KAEJ;IAED,OAAO,MAAW;IAEb,iBAAiB;IAUtB,oBAAoB;IAYpB,MAAM;CAKT"}
@@ -1,44 +0,0 @@
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 { Checkbox } from 'antd';
12
- import './index.css';
13
- import HCDataSource from "../tmpl/hc-data-source";
14
- const CheckboxGroup = Checkbox.Group;
15
- const logLevelList = ['INFO', 'SUC', 'ERROR', 'WARN'];
16
- let totalMSG = [];
17
- ;
18
- ;
19
- export default class ExcelExport extends React.PureComponent {
20
- constructor() {
21
- super(...arguments);
22
- this.state = {};
23
- this.timerId = undefined;
24
- }
25
- componentDidMount() {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const { sourceId } = this.props;
28
- let ltmplConfigRes = yield HCDataSource.requestLtmplConfig(sourceId);
29
- this.setState({
30
- ltmplConfig: ltmplConfigRes.ltmplConfig,
31
- });
32
- });
33
- }
34
- componentWillUnmount() {
35
- if (this.timerId) {
36
- clearInterval(this.timerId);
37
- }
38
- }
39
- render() {
40
- const {} = this.state;
41
- return React.createElement(React.Fragment, null);
42
- }
43
- }
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/exportor/index.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA0C,QAAQ,EAAoC,MAAM,MAAM,CAAA;AAIzG,OAAO,aAAa,CAAA;AAGpB,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC;AACrC,MAAM,YAAY,GAAc,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACjE,IAAI,QAAQ,GAAC,EAAE,CAAA;AAMd,CAAC;AAID,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAgD;IAA/F;;QAEI,UAAK,GAAG,EAEP,CAAA;QAED,YAAO,GAAC,SAAS,CAAC;IA6BtB,CAAC;IA3BQ,iBAAiB;;YACnB,MAAM,EAAC,QAAQ,EAAC,GAAC,IAAI,CAAC,KAAK,CAAC;YAE3B,IAAI,cAAc,GAAG,MAAM,YAAY,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAErE,IAAI,CAAC,QAAQ,CAAC;gBACV,WAAW,EAAC,cAAc,CAAC,WAAW;aACzC,CAAC,CAAA;QAEN,CAAC;KAAA;IACD,oBAAoB;QAChB,IAAG,IAAI,CAAC,OAAO,EAAC;YACZ,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;IACL,CAAC;IAQD,MAAM;QACF,MAAM,EAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QAEvB,OAAO,yCAAK,CAAA;IAChB,CAAC;CACJ"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { DtmplData, LtmplConfig, SelectConfig, SelectedRow } from "../tmpl/interface";
3
- export interface CriteriaFormProps {
4
- ltmplConfig: LtmplConfig | SelectConfig;
5
- data: object;
6
- selectedRows: SelectedRow[];
7
- selectedDatas?: DtmplData[];
8
- doSearch?: (data: object) => void;
9
- doDelete?: () => void;
10
- doAction?: (string: any, selectedRows: SelectedRow[], object: any) => void;
11
- doJump?: (jumpId: string) => void;
12
- doCQuery?: (cqueryId: string) => void;
13
- hiddenCriteriaIds?: string[];
14
- visible?: boolean;
15
- loading: boolean;
16
- }
17
- declare const CriteriaForm: React.FC<CriteriaFormProps>;
18
- export default CriteriaForm;
19
- //# sourceMappingURL=criteria-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"criteria-form.d.ts","sourceRoot":"","sources":["../../../../src/components/form/criteria-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAiB,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAQpG,MAAM,WAAW,iBAAiB;IAC9B,WAAW,EAAE,WAAW,GAAG,YAAY,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAC,SAAS,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,KAAA,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,MAAM,KAAA,KAAK,IAAI,CAAC;IACjE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiN7C,CAAA;AAKD,eAAe,YAAY,CAAC"}
@@ -1,167 +0,0 @@
1
- import React, { useEffect } from 'react';
2
- import { Button, Card, Col, Collapse, Form as AntdForm, Popconfirm, Row, Select, Space } from 'antd';
3
- import EntryControl from "../controls/entry-control";
4
- import Action from "../controls/action";
5
- import CquickButton from '../controls/cquery/cquick-button';
6
- const { Panel } = Collapse;
7
- const FormItem = AntdForm.Item;
8
- ;
9
- const CriteriaForm = (props) => {
10
- const { ltmplConfig, doSearch, doAction, doJump, doDelete, selectedRows, data, visible, loading, selectedDatas, doCQuery } = props;
11
- let [form] = AntdForm.useForm();
12
- // @ts-ignore
13
- let { buttons, actions, jumps, cQuerys, criterias, drillingParams, columns } = ltmplConfig;
14
- const initialValues = {};
15
- const searchSubmit = (data) => {
16
- if (doSearch) {
17
- doSearch(data);
18
- }
19
- };
20
- useEffect(() => {
21
- form.resetFields();
22
- });
23
- let showQueryButton = buttons.includes("query") && doSearch;
24
- let showDeleteButton = buttons.includes("delete") && doDelete;
25
- let deleteButtonDisabled = !(selectedRows && selectedRows.length > 0);
26
- const renderAction = () => {
27
- if (doAction && actions && actions.length > 0) {
28
- return actions.map((action) => {
29
- let disabled = true;
30
- if (selectedRows) {
31
- if (selectedRows.length > 0 && action.multible) {
32
- disabled = false;
33
- }
34
- else if (selectedRows.length == 1) {
35
- disabled = false;
36
- }
37
- }
38
- // return <Popconfirm key={action.id}
39
- // placement="leftBottom"
40
- // title={`确定要对选中数据执行【${action.title}】吗?`}
41
- // onConfirm={() => {
42
- // doAction(action.id)
43
- // }}
44
- // okText="确定"
45
- // cancelText="取消"
46
- // >
47
- // <Button type="primary" key={action.id}
48
- // disabled={disabled}>{action.title}</Button>
49
- // </Popconfirm>;
50
- return React.createElement(Action, { hiddenType: "disabled", key: action.id, disabled: disabled, data: selectedDatas, actionConfig: action, doAction: doAction, serial: 1 });
51
- });
52
- }
53
- };
54
- const renderJump = () => {
55
- if (doJump && jumps && jumps.length > 0) {
56
- return jumps.map((jump) => {
57
- let disabled = true;
58
- if (selectedRows) {
59
- if (selectedRows.length > 0 && jump.multible) {
60
- disabled = false;
61
- }
62
- else if (selectedRows.length == 1) {
63
- disabled = false;
64
- }
65
- }
66
- return React.createElement(Button, { key: jump.id, onClick: () => doJump(jump.id), disabled: disabled }, jump.title);
67
- });
68
- }
69
- };
70
- const renderCQuery = () => {
71
- if (doCQuery && cQuerys && cQuerys.length > 0) {
72
- return cQuerys.map((cquery) => {
73
- let disabled = true;
74
- if (selectedRows && selectedRows.length == 1) {
75
- disabled = false;
76
- }
77
- return React.createElement(CquickButton, { key: cquery.id,
78
- // onClick={() => doCQuery(cquery.id)}
79
- disabled: disabled, cQueryConfig: cquery, mainCode: !disabled ? selectedRows[0].code : undefined });
80
- });
81
- }
82
- };
83
- const hasDimension = () => {
84
- columns.forEach((item) => {
85
- if (item.statColType == 'dimension') {
86
- return true;
87
- }
88
- });
89
- return false;
90
- };
91
- const renderDrillDimension = () => {
92
- let drillingColIdsName = 'drillingColIds';
93
- let dimensionColIds = [];
94
- const options = [];
95
- columns.forEach((item) => {
96
- if (item.statColType == 'dimension') {
97
- options.push({ label: item.title, value: item.id });
98
- dimensionColIds.push(item.id);
99
- }
100
- });
101
- options.push({ label: '无', value: '5' });
102
- initialValues[drillingColIdsName] = data ? data[drillingColIdsName] ? data[drillingColIdsName] : dimensionColIds : dimensionColIds;
103
- let fieldValue = data ? data[drillingColIdsName] : dimensionColIds;
104
- let antdControlProps = {
105
- placeholder: "请选择维度", disabled: false, value: fieldValue, style: { minWidth: 220, width: '100%' }
106
- };
107
- return React.createElement(FormItem, { label: '维度', name: drillingColIdsName, key: drillingColIdsName, rules: [{
108
- required: true, message: `请选择维度,上钻到顶层请只选【无】`,
109
- }] },
110
- React.createElement(Select, Object.assign({ mode: "multiple" }, antdControlProps, { notFoundContent: "\u6682\u65E0\u9009\u9879", allowClear: true, showSearch: true, showArrow: true, options: options })));
111
- };
112
- const renderCriteria = (criterias) => {
113
- if (!criterias) {
114
- return;
115
- }
116
- const { hiddenCriteriaIds } = props;
117
- criterias.map((item) => {
118
- let formItemName = 'c_' + item.id;
119
- let fieldValue = data ? data[formItemName] : undefined;
120
- initialValues[formItemName] = fieldValue;
121
- });
122
- if (doSearch) {
123
- return criterias.map((item) => {
124
- let formItemName = 'c_' + item.id;
125
- let fieldValue = data ? data[formItemName] : undefined;
126
- if (!hiddenCriteriaIds.includes(item.id)) {
127
- return React.createElement(FormItem, { label: item.title, name: formItemName, key: item.id, tooltip: item.tip, rules: item.required ? [{
128
- required: true, message: `请选择${item.title}`,
129
- }] : undefined },
130
- React.createElement(EntryControl, { value: fieldValue, fieldConfig: item }));
131
- }
132
- });
133
- }
134
- };
135
- return (React.createElement(AntdForm, { form: form, name: "control-hooks", initialValues: initialValues, layout: "inline", onFinish: searchSubmit, style: { width: '100%' } },
136
- buttons.includes("drilling") && visible && (drillingParams.length > 0 || hasDimension()) ?
137
- React.createElement(Collapse, { style: { width: '100%' }, defaultActiveKey: ['1'] },
138
- React.createElement(Panel, { header: "\u8BBE\u7F6E-\u6570\u636E\u4E0A\u94BB", key: "1" },
139
- React.createElement(Row, null,
140
- React.createElement(Col, null,
141
- React.createElement(Space, { size: 'small', wrap: true },
142
- renderCriteria(drillingParams),
143
- renderDrillDimension()))))) : "",
144
- React.createElement(Card, { className: "hoverable", style: { display: visible ? "block" : "none", width: '100%' }, headStyle: { background: "#f2f4f5" }, loading: loading },
145
- React.createElement(Row, null,
146
- React.createElement(Col, null,
147
- React.createElement(Space, { size: 'small', wrap: true },
148
- renderCriteria(criterias),
149
- React.createElement(Space, { className: "btns" },
150
- showQueryButton ?
151
- React.createElement(Button, { type: "primary", htmlType: "submit" }, "\u67E5\u8BE2") : "",
152
- showDeleteButton ?
153
- React.createElement(Popconfirm, { placement: "rightBottom", title: '确定要【删除】选中数据吗?', onConfirm: () => {
154
- doDelete();
155
- }, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: "danger" },
156
- React.createElement(Button, { danger: true, disabled: deleteButtonDisabled }, "\u5220\u9664\u9009\u4E2D"))
157
- : "",
158
- renderAction(),
159
- renderJump(),
160
- renderCQuery())))))));
161
- };
162
- CriteriaForm.defaultProps = {
163
- hiddenCriteriaIds: [],
164
- visible: true,
165
- };
166
- export default CriteriaForm;
167
- //# sourceMappingURL=criteria-form.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"criteria-form.js","sourceRoot":"","sources":["../../../../src/components/form/criteria-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,IAAI,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAEnG,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,YAAY,MAAM,kCAAkC,CAAA;AAE3D,MAAM,EAAC,KAAK,EAAC,GAAG,QAAQ,CAAC;AACzB,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;AAe9B,CAAC;AAEF,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IAExD,MAAM,EAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAC,aAAa,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;IAC/H,IAAI,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;IAChC,aAAa;IACb,IAAI,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAC,GAAG,W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IAAI;CAChB,CAAA;AACD,eAAe,YAAY,CAAC"}
@@ -1,37 +0,0 @@
1
- import React, { RefObject } from 'react';
2
- import { DtmplBaseProps, DtmplConfig, DtmplData, FieldGroupConfig } from "../tmpl/interface";
3
- import { FormInstance } from "antd/lib/form/hooks/useForm";
4
- import './dtmpl-form.css';
5
- export interface DtmplFormProps extends DtmplBaseProps {
6
- parentId: string;
7
- dtmplConfig: DtmplConfig;
8
- dtmplData?: DtmplData;
9
- formRef: RefObject<FormInstance>;
10
- showConfirm: boolean;
11
- onFinish: (code: string) => void;
12
- onValuesChange?: () => void;
13
- }
14
- interface DtmplFormStat {
15
- loading: boolean;
16
- dtmplData: DtmplData;
17
- }
18
- export default class Form extends React.PureComponent<DtmplFormProps, DtmplFormStat> {
19
- fuseMode: boolean;
20
- premisestitle: string;
21
- state: {
22
- loading: boolean;
23
- dtmplData: any;
24
- };
25
- componentDidMount(): Promise<void>;
26
- componentDidUpdate(preProps: any): Promise<void>;
27
- loadData: () => Promise<void>;
28
- doRefresh: () => Promise<void>;
29
- onGroupChange: (fieldGroupConfig: FieldGroupConfig, selectdDatas: DtmplData[]) => void;
30
- changeFuseMode: (checked: any) => void;
31
- postForm: (result: any) => Promise<void>;
32
- onSubmit: (values: any) => Promise<void>;
33
- fieldGroupList: () => JSX.Element[];
34
- render(): JSX.Element;
35
- }
36
- export {};
37
- //# sourceMappingURL=dtmpl-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dtmpl-form.d.ts","sourceRoot":"","sources":["../../../../src/components/form/dtmpl-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAG3F,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAIzD,OAAO,kBAAkB,CAAC;AAG1B,MAAM,WAAW,cAAe,SAAQ,cAAc;IAClD,QAAQ,EAAC,MAAM,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAC,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAC,MAAM,KAAK,IAAI,CAAC;IAChC,cAAc,CAAC,EAAC,MAAI,IAAI,CAAC;CAC5B;AAED,UAAU,aAAa;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CAExB;AAID,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC;IAChF,QAAQ,EAAE,OAAO,CAAS;IAC1B,aAAa,EAAE,MAAM,CAAU;IAE/B,KAAK;;;MAIJ;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,QAAQ,KAAA;IAejC,QAAQ,sBA0BP;IAED,SAAS,sBAGR;IAED,aAAa,qBAAsB,gBAAgB,gBAAgB,SAAS,EAAE,UAS7E;IAGD,cAAc,yBAEb;IAED,QAAQ,iCAiBP;IAED,QAAQ,WAAkB,GAAG,mBA6C5B;IAGD,cAAc,sBAmCb;IAED,MAAM;CAyDT"}