aldehyde 0.0.8 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/lib/components/chart/antd/chart-utils.d.ts +7 -0
  2. package/lib/components/chart/antd/chart-utils.d.ts.map +1 -0
  3. package/lib/components/chart/antd/chart-utils.js +46 -0
  4. package/lib/components/chart/antd/chart-utils.js.map +1 -0
  5. package/lib/components/chart/antd/column-chart-sub.d.ts +7 -0
  6. package/lib/components/chart/antd/column-chart-sub.d.ts.map +1 -0
  7. package/lib/components/chart/antd/column-chart-sub.js +50 -0
  8. package/lib/components/chart/antd/column-chart-sub.js.map +1 -0
  9. package/lib/components/chart/antd/line-chart-sub.d.ts +7 -0
  10. package/lib/components/chart/antd/line-chart-sub.d.ts.map +1 -0
  11. package/lib/components/chart/antd/line-chart-sub.js +49 -0
  12. package/lib/components/chart/antd/line-chart-sub.js.map +1 -0
  13. package/lib/components/chart/antd/pie-chart-sub.d.ts +7 -0
  14. package/lib/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
  15. package/lib/components/chart/antd/pie-chart-sub.js +37 -0
  16. package/lib/components/chart/antd/pie-chart-sub.js.map +1 -0
  17. package/lib/components/chart/antd/statview-d2-chart.d.ts +17 -0
  18. package/lib/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
  19. package/lib/components/chart/antd/statview-d2-chart.js +108 -0
  20. package/lib/components/chart/antd/statview-d2-chart.js.map +1 -0
  21. package/lib/components/chart/statview-l2-chart.d.ts +23 -0
  22. package/lib/components/chart/statview-l2-chart.d.ts.map +1 -0
  23. package/lib/components/chart/statview-l2-chart.js +64 -0
  24. package/lib/components/chart/statview-l2-chart.js.map +1 -0
  25. package/lib/components/controls/action/index.css +9 -0
  26. package/lib/components/controls/action/index.d.ts +47 -0
  27. package/lib/components/controls/action/index.d.ts.map +1 -0
  28. package/lib/components/controls/action/index.js +165 -0
  29. package/lib/components/controls/action/index.js.map +1 -0
  30. package/lib/components/controls/action/utils.d.ts +9 -0
  31. package/lib/components/controls/action/utils.d.ts.map +1 -0
  32. package/lib/components/controls/action/utils.js +110 -0
  33. package/lib/components/controls/action/utils.js.map +1 -0
  34. package/lib/components/controls/auto-complete/index.d.ts +7 -0
  35. package/lib/components/controls/auto-complete/index.d.ts.map +1 -0
  36. package/lib/components/controls/auto-complete/index.js +53 -0
  37. package/lib/components/controls/auto-complete/index.js.map +1 -0
  38. package/lib/components/controls/chemstruc/graph.d.ts +31 -0
  39. package/lib/components/controls/chemstruc/graph.d.ts.map +1 -0
  40. package/lib/components/controls/chemstruc/graph.js +121 -0
  41. package/lib/components/controls/chemstruc/graph.js.map +1 -0
  42. package/lib/components/controls/chemstruc/index.css +28 -0
  43. package/lib/components/controls/collapse-card/index.css +9 -0
  44. package/lib/components/controls/collapse-card/index.d.ts +20 -0
  45. package/lib/components/controls/collapse-card/index.d.ts.map +1 -0
  46. package/lib/components/controls/collapse-card/index.js +63 -0
  47. package/lib/components/controls/collapse-card/index.js.map +1 -0
  48. package/lib/components/controls/color-picker/index.css +27 -0
  49. package/lib/components/controls/color-picker/index.d.ts +19 -0
  50. package/lib/components/controls/color-picker/index.d.ts.map +1 -0
  51. package/lib/components/controls/color-picker/index.js +61 -0
  52. package/lib/components/controls/color-picker/index.js.map +1 -0
  53. package/lib/components/controls/cquery/cquick-button.d.ts +20 -0
  54. package/lib/components/controls/cquery/cquick-button.d.ts.map +1 -0
  55. package/lib/components/controls/cquery/cquick-button.js +67 -0
  56. package/lib/components/controls/cquery/cquick-button.js.map +1 -0
  57. package/lib/components/controls/date-picker/index.d.ts +7 -0
  58. package/lib/components/controls/date-picker/index.d.ts.map +1 -0
  59. package/lib/components/controls/date-picker/index.js +91 -0
  60. package/lib/components/controls/date-picker/index.js.map +1 -0
  61. package/lib/components/controls/entity-select/entity-select.d.ts +53 -0
  62. package/lib/components/controls/entity-select/entity-select.d.ts.map +1 -0
  63. package/lib/components/controls/entity-select/entity-select.js +227 -0
  64. package/lib/components/controls/entity-select/entity-select.js.map +1 -0
  65. package/lib/components/controls/entity-select/index.css +6 -0
  66. package/lib/components/controls/entity-select/popover-entity-select.d.ts +20 -0
  67. package/lib/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
  68. package/lib/components/controls/entity-select/popover-entity-select.js +80 -0
  69. package/lib/components/controls/entity-select/popover-entity-select.js.map +1 -0
  70. package/lib/components/controls/entry-control.d.ts +11 -0
  71. package/lib/components/controls/entry-control.d.ts.map +1 -0
  72. package/lib/components/controls/entry-control.js +171 -0
  73. package/lib/components/controls/entry-control.js.map +1 -0
  74. package/lib/components/controls/enum-badge/index.d.ts +7 -0
  75. package/lib/components/controls/enum-badge/index.d.ts.map +1 -0
  76. package/lib/components/controls/enum-badge/index.js +14 -0
  77. package/lib/components/controls/enum-badge/index.js.map +1 -0
  78. package/lib/components/controls/enum-tag/index.d.ts +7 -0
  79. package/lib/components/controls/enum-tag/index.d.ts.map +1 -0
  80. package/lib/components/controls/enum-tag/index.js +18 -0
  81. package/lib/components/controls/enum-tag/index.js.map +1 -0
  82. package/lib/components/controls/file-view/drawer-file-view.d.ts +18 -0
  83. package/lib/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
  84. package/lib/components/controls/file-view/drawer-file-view.js +51 -0
  85. package/lib/components/controls/file-view/drawer-file-view.js.map +1 -0
  86. package/lib/components/controls/file-view/index.d.ts +23 -0
  87. package/lib/components/controls/file-view/index.d.ts.map +1 -0
  88. package/lib/components/controls/file-view/index.js +130 -0
  89. package/lib/components/controls/file-view/index.js.map +1 -0
  90. package/lib/components/controls/html-editor/draft.d.ts +22 -0
  91. package/lib/components/controls/html-editor/draft.d.ts.map +1 -0
  92. package/lib/components/controls/html-editor/draft.js +122 -0
  93. package/lib/components/controls/html-editor/draft.js.map +1 -0
  94. package/lib/components/controls/input-number/index.d.ts +7 -0
  95. package/lib/components/controls/input-number/index.d.ts.map +1 -0
  96. package/lib/components/controls/input-number/index.js +67 -0
  97. package/lib/components/controls/input-number/index.js.map +1 -0
  98. package/lib/components/controls/input-range/index.d.ts +7 -0
  99. package/lib/components/controls/input-range/index.d.ts.map +1 -0
  100. package/lib/components/controls/input-range/index.js +28 -0
  101. package/lib/components/controls/input-range/index.js.map +1 -0
  102. package/lib/components/controls/password-setter/index.css +3 -0
  103. package/lib/components/controls/progress/index.d.ts +7 -0
  104. package/lib/components/controls/progress/index.d.ts.map +1 -0
  105. package/lib/components/controls/progress/index.js +45 -0
  106. package/lib/components/controls/progress/index.js.map +1 -0
  107. package/lib/components/controls/relation-existion/index.css +4 -0
  108. package/lib/components/controls/relation-existion/index.d.ts +20 -0
  109. package/lib/components/controls/relation-existion/index.d.ts.map +1 -0
  110. package/lib/components/controls/relation-existion/index.js +75 -0
  111. package/lib/components/controls/relation-existion/index.js.map +1 -0
  112. package/lib/components/controls/rfield/index.css +4 -0
  113. package/lib/components/controls/rfield/index.d.ts +29 -0
  114. package/lib/components/controls/rfield/index.d.ts.map +1 -0
  115. package/lib/components/controls/rfield/index.js +130 -0
  116. package/lib/components/controls/rfield/index.js.map +1 -0
  117. package/lib/components/controls/signature/index.d.ts +31 -0
  118. package/lib/components/controls/signature/index.d.ts.map +1 -0
  119. package/lib/components/controls/signature/index.js +129 -0
  120. package/lib/components/controls/signature/index.js.map +1 -0
  121. package/lib/components/controls/steps/index.d.ts +7 -0
  122. package/lib/components/controls/steps/index.d.ts.map +1 -0
  123. package/lib/components/controls/steps/index.js +42 -0
  124. package/lib/components/controls/steps/index.js.map +1 -0
  125. package/lib/components/controls/text/ellipsis-text.d.ts +22 -0
  126. package/lib/components/controls/text/ellipsis-text.d.ts.map +1 -0
  127. package/lib/components/controls/text/ellipsis-text.js +46 -0
  128. package/lib/components/controls/text/ellipsis-text.js.map +1 -0
  129. package/lib/components/controls/upload/index.d.ts +15 -0
  130. package/lib/components/controls/upload/index.d.ts.map +1 -0
  131. package/lib/components/controls/upload/index.js +100 -0
  132. package/lib/components/controls/upload/index.js.map +1 -0
  133. package/lib/components/controls/view-control.d.ts +10 -0
  134. package/lib/components/controls/view-control.d.ts.map +1 -0
  135. package/lib/components/controls/view-control.js +150 -0
  136. package/lib/components/controls/view-control.js.map +1 -0
  137. package/lib/components/detail/button/cquery-button-bar.d.ts +16 -0
  138. package/lib/components/detail/button/cquery-button-bar.d.ts.map +1 -0
  139. package/lib/components/detail/button/cquery-button-bar.js +75 -0
  140. package/lib/components/detail/button/cquery-button-bar.js.map +1 -0
  141. package/lib/components/detail/button/index.css +43 -0
  142. package/lib/components/detail/button/submit-button-bar.d.ts +19 -0
  143. package/lib/components/detail/button/submit-button-bar.d.ts.map +1 -0
  144. package/lib/components/detail/button/submit-button-bar.js +99 -0
  145. package/lib/components/detail/button/submit-button-bar.js.map +1 -0
  146. package/lib/components/detail/dtmpl.css +53 -0
  147. package/lib/components/detail/edit/dtmpl-edit.d.ts +48 -0
  148. package/lib/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
  149. package/lib/components/detail/edit/dtmpl-edit.js +190 -0
  150. package/lib/components/detail/edit/dtmpl-edit.js.map +1 -0
  151. package/lib/components/detail/edit/fields-edit-card.d.ts +39 -0
  152. package/lib/components/detail/edit/fields-edit-card.d.ts.map +1 -0
  153. package/lib/components/detail/edit/fields-edit-card.js +64 -0
  154. package/lib/components/detail/edit/fields-edit-card.js.map +1 -0
  155. package/lib/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
  156. package/lib/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
  157. package/lib/components/detail/edit/modal-dtmpl-edit.js +168 -0
  158. package/lib/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
  159. package/lib/components/detail/edit/modal-row-edit.d.ts +31 -0
  160. package/lib/components/detail/edit/modal-row-edit.d.ts.map +1 -0
  161. package/lib/components/detail/edit/modal-row-edit.js +56 -0
  162. package/lib/components/detail/edit/modal-row-edit.js.map +1 -0
  163. package/lib/components/detail/edit/post-result/index.d.ts +17 -0
  164. package/lib/components/detail/edit/post-result/index.d.ts.map +1 -0
  165. package/lib/components/detail/edit/post-result/index.js +28 -0
  166. package/lib/components/detail/edit/post-result/index.js.map +1 -0
  167. package/lib/components/detail/edit/row-edit-card.d.ts +42 -0
  168. package/lib/components/detail/edit/row-edit-card.d.ts.map +1 -0
  169. package/lib/components/detail/edit/row-edit-card.js +84 -0
  170. package/lib/components/detail/edit/row-edit-card.js.map +1 -0
  171. package/lib/components/detail/edit/row-editor.d.ts +31 -0
  172. package/lib/components/detail/edit/row-editor.d.ts.map +1 -0
  173. package/lib/components/detail/edit/row-editor.js +55 -0
  174. package/lib/components/detail/edit/row-editor.js.map +1 -0
  175. package/lib/components/detail/rightbar/index.css +35 -0
  176. package/lib/components/detail/rightbar/index.d.ts +20 -0
  177. package/lib/components/detail/rightbar/index.d.ts.map +1 -0
  178. package/lib/components/detail/rightbar/index.js +51 -0
  179. package/lib/components/detail/rightbar/index.js.map +1 -0
  180. package/lib/components/detail/view/act-dtmpl-view.d.ts +46 -0
  181. package/lib/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
  182. package/lib/components/detail/view/act-dtmpl-view.js +110 -0
  183. package/lib/components/detail/view/act-dtmpl-view.js.map +1 -0
  184. package/lib/components/detail/view/dtmpl-view.d.ts +42 -0
  185. package/lib/components/detail/view/dtmpl-view.d.ts.map +1 -0
  186. package/lib/components/detail/view/dtmpl-view.js +111 -0
  187. package/lib/components/detail/view/dtmpl-view.js.map +1 -0
  188. package/lib/components/detail/view/field-view-group.d.ts +17 -0
  189. package/lib/components/detail/view/field-view-group.d.ts.map +1 -0
  190. package/lib/components/detail/view/field-view-group.js +51 -0
  191. package/lib/components/detail/view/field-view-group.js.map +1 -0
  192. package/lib/components/detail/view/modal-dtmpl-view.d.ts +27 -0
  193. package/lib/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
  194. package/lib/components/detail/view/modal-dtmpl-view.js +32 -0
  195. package/lib/components/detail/view/modal-dtmpl-view.js.map +1 -0
  196. package/lib/components/detail/view/snapshot-timeline.d.ts +32 -0
  197. package/lib/components/detail/view/snapshot-timeline.d.ts.map +1 -0
  198. package/lib/components/detail/view/snapshot-timeline.js +90 -0
  199. package/lib/components/detail/view/snapshot-timeline.js.map +1 -0
  200. package/lib/components/exportor/export-frame.css +3 -0
  201. package/lib/components/exportor/export-frame.d.ts +50 -0
  202. package/lib/components/exportor/export-frame.d.ts.map +1 -0
  203. package/lib/components/exportor/export-frame.js +140 -0
  204. package/lib/components/exportor/export-frame.js.map +1 -0
  205. package/lib/components/exportor/index.d.ts +16 -0
  206. package/lib/components/exportor/index.d.ts.map +1 -0
  207. package/lib/components/exportor/index.js +44 -0
  208. package/lib/components/exportor/index.js.map +1 -0
  209. package/lib/components/form/criteria-form.d.ts +19 -0
  210. package/lib/components/form/criteria-form.d.ts.map +1 -0
  211. package/lib/components/form/criteria-form.js +167 -0
  212. package/lib/components/form/criteria-form.js.map +1 -0
  213. package/lib/components/form/dtmpl-form.css +4 -0
  214. package/lib/components/form/dtmpl-form.d.ts +37 -0
  215. package/lib/components/form/dtmpl-form.d.ts.map +1 -0
  216. package/lib/components/form/dtmpl-form.js +213 -0
  217. package/lib/components/form/dtmpl-form.js.map +1 -0
  218. package/lib/components/form/field-group-form.d.ts +21 -0
  219. package/lib/components/form/field-group-form.d.ts.map +1 -0
  220. package/lib/components/form/field-group-form.js +58 -0
  221. package/lib/components/form/field-group-form.js.map +1 -0
  222. package/lib/components/form/fields-form.d.ts +20 -0
  223. package/lib/components/form/fields-form.d.ts.map +1 -0
  224. package/lib/components/form/fields-form.js +39 -0
  225. package/lib/components/form/fields-form.js.map +1 -0
  226. package/lib/components/form/form-Item-group.d.ts +22 -0
  227. package/lib/components/form/form-Item-group.d.ts.map +1 -0
  228. package/lib/components/form/form-Item-group.js +60 -0
  229. package/lib/components/form/form-Item-group.js.map +1 -0
  230. package/lib/components/form/index.css +13 -0
  231. package/lib/components/import/excel-import.d.ts +48 -0
  232. package/lib/components/import/excel-import.d.ts.map +1 -0
  233. package/lib/components/import/excel-import.js +234 -0
  234. package/lib/components/import/excel-import.js.map +1 -0
  235. package/lib/components/import/index.css +54 -0
  236. package/lib/components/import/template.css +51 -0
  237. package/lib/components/layout/MainPage.d.ts +32 -0
  238. package/lib/components/layout/MainPage.d.ts.map +1 -0
  239. package/lib/components/layout/MainPage.js +202 -0
  240. package/lib/components/layout/MainPage.js.map +1 -0
  241. package/lib/components/layout/footer/index.css +6 -0
  242. package/lib/components/layout/header/index.css +86 -0
  243. package/lib/components/layout/header/index.d.ts +16 -0
  244. package/lib/components/layout/header/index.d.ts.map +1 -0
  245. package/lib/components/layout/header/index.js +37 -0
  246. package/lib/components/layout/header/index.js.map +1 -0
  247. package/lib/components/layout/menu/block.d.ts +9 -0
  248. package/lib/components/layout/menu/block.d.ts.map +1 -0
  249. package/lib/components/layout/menu/block.js +48 -0
  250. package/lib/components/layout/menu/block.js.map +1 -0
  251. package/lib/components/layout/menu/l2menu-message-bar.d.ts +24 -0
  252. package/lib/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
  253. package/lib/components/layout/menu/l2menu-message-bar.js +97 -0
  254. package/lib/components/layout/menu/l2menu-message-bar.js.map +1 -0
  255. package/lib/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
  256. package/lib/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
  257. package/lib/components/layout/menu/l2menu-quick-bar.js +94 -0
  258. package/lib/components/layout/menu/l2menu-quick-bar.js.map +1 -0
  259. package/lib/components/layout/menu/menu-2layers.d.ts +9 -0
  260. package/lib/components/layout/menu/menu-2layers.d.ts.map +1 -0
  261. package/lib/components/layout/menu/menu-2layers.js +63 -0
  262. package/lib/components/layout/menu/menu-2layers.js.map +1 -0
  263. package/lib/components/layout/menu/menu-render.d.ts +8 -0
  264. package/lib/components/layout/menu/menu-render.d.ts.map +1 -0
  265. package/lib/components/layout/menu/menu-render.js +44 -0
  266. package/lib/components/layout/menu/menu-render.js.map +1 -0
  267. package/lib/components/layout/menu/reset-password.d.ts +25 -0
  268. package/lib/components/layout/menu/reset-password.d.ts.map +1 -0
  269. package/lib/components/layout/menu/reset-password.js +113 -0
  270. package/lib/components/layout/menu/reset-password.js.map +1 -0
  271. package/lib/components/layout/menu/user-bar.d.ts +19 -0
  272. package/lib/components/layout/menu/user-bar.d.ts.map +1 -0
  273. package/lib/components/layout/menu/user-bar.js +61 -0
  274. package/lib/components/layout/menu/user-bar.js.map +1 -0
  275. package/lib/components/layout/menu/userinfo-bar.d.ts +18 -0
  276. package/lib/components/layout/menu/userinfo-bar.d.ts.map +1 -0
  277. package/lib/components/layout/menu/userinfo-bar.js +50 -0
  278. package/lib/components/layout/menu/userinfo-bar.js.map +1 -0
  279. package/lib/components/layout/sidebar/index.css +26 -0
  280. package/lib/components/layout/sidebar/index.d.ts +12 -0
  281. package/lib/components/layout/sidebar/index.d.ts.map +1 -0
  282. package/lib/components/layout/sidebar/index.js +19 -0
  283. package/lib/components/layout/sidebar/index.js.map +1 -0
  284. package/lib/components/module/dtmpl-page.d.ts +19 -0
  285. package/lib/components/module/dtmpl-page.d.ts.map +1 -0
  286. package/lib/components/module/dtmpl-page.js +46 -0
  287. package/lib/components/module/dtmpl-page.js.map +1 -0
  288. package/lib/components/module/ltmpl-page.d.ts +34 -0
  289. package/lib/components/module/ltmpl-page.d.ts.map +1 -0
  290. package/lib/components/module/ltmpl-page.js +154 -0
  291. package/lib/components/module/ltmpl-page.js.map +1 -0
  292. package/lib/components/routable/dtmpl-route.d.ts +17 -0
  293. package/lib/components/routable/dtmpl-route.d.ts.map +1 -0
  294. package/lib/components/routable/dtmpl-route.js +77 -0
  295. package/lib/components/routable/dtmpl-route.js.map +1 -0
  296. package/lib/components/routable/import-route.d.ts +13 -0
  297. package/lib/components/routable/import-route.d.ts.map +1 -0
  298. package/lib/components/routable/import-route.js +29 -0
  299. package/lib/components/routable/import-route.js.map +1 -0
  300. package/lib/components/routable/ltmpl-route.d.ts +25 -0
  301. package/lib/components/routable/ltmpl-route.d.ts.map +1 -0
  302. package/lib/components/routable/ltmpl-route.js +145 -0
  303. package/lib/components/routable/ltmpl-route.js.map +1 -0
  304. package/lib/components/table/act-table.d.ts +76 -0
  305. package/lib/components/table/act-table.d.ts.map +1 -0
  306. package/lib/components/table/act-table.js +454 -0
  307. package/lib/components/table/act-table.js.map +1 -0
  308. package/lib/components/table/column/column-selector.d.ts +26 -0
  309. package/lib/components/table/column/column-selector.d.ts.map +1 -0
  310. package/lib/components/table/column/column-selector.js +59 -0
  311. package/lib/components/table/column/column-selector.js.map +1 -0
  312. package/lib/components/table/column/index.css +14 -0
  313. package/lib/components/table/index.css +45 -0
  314. package/lib/components/table/l2-act-table.d.ts +23 -0
  315. package/lib/components/table/l2-act-table.d.ts.map +1 -0
  316. package/lib/components/table/l2-act-table.js +80 -0
  317. package/lib/components/table/l2-act-table.js.map +1 -0
  318. package/lib/components/table/modal-select-table.d.ts +41 -0
  319. package/lib/components/table/modal-select-table.d.ts.map +1 -0
  320. package/lib/components/table/modal-select-table.js +208 -0
  321. package/lib/components/table/modal-select-table.js.map +1 -0
  322. package/lib/components/table/pagination.css +15 -0
  323. package/lib/components/table/pagination.d.ts +17 -0
  324. package/lib/components/table/pagination.d.ts.map +1 -0
  325. package/lib/components/table/pagination.js +40 -0
  326. package/lib/components/table/pagination.js.map +1 -0
  327. package/lib/components/table/query-table.d.ts +65 -0
  328. package/lib/components/table/query-table.d.ts.map +1 -0
  329. package/lib/components/table/query-table.js +257 -0
  330. package/lib/components/table/query-table.js.map +1 -0
  331. package/lib/components/table/relation-table.d.ts +61 -0
  332. package/lib/components/table/relation-table.d.ts.map +1 -0
  333. package/lib/components/table/relation-table.js +444 -0
  334. package/lib/components/table/relation-table.js.map +1 -0
  335. package/lib/components/table/select-table.d.ts +40 -0
  336. package/lib/components/table/select-table.d.ts.map +1 -0
  337. package/lib/components/table/select-table.js +223 -0
  338. package/lib/components/table/select-table.js.map +1 -0
  339. package/lib/components/table/selected-rows-card.d.ts +16 -0
  340. package/lib/components/table/selected-rows-card.d.ts.map +1 -0
  341. package/lib/components/table/selected-rows-card.js +47 -0
  342. package/lib/components/table/selected-rows-card.js.map +1 -0
  343. package/lib/components/table/stat/restat.d.ts +26 -0
  344. package/lib/components/table/stat/restat.d.ts.map +1 -0
  345. package/lib/components/table/stat/restat.js +61 -0
  346. package/lib/components/table/stat/restat.js.map +1 -0
  347. package/lib/components/table/table-util.d.ts +5 -0
  348. package/lib/components/table/table-util.d.ts.map +1 -0
  349. package/lib/components/table/table-util.js +30 -0
  350. package/lib/components/table/table-util.js.map +1 -0
  351. package/lib/components/tmpl/control-type-supportor.d.ts +9 -0
  352. package/lib/components/tmpl/control-type-supportor.d.ts.map +1 -0
  353. package/lib/components/tmpl/control-type-supportor.js +85 -0
  354. package/lib/components/tmpl/control-type-supportor.js.map +1 -0
  355. package/lib/components/tmpl/hc-data-source.d.ts +19 -0
  356. package/lib/components/tmpl/hc-data-source.d.ts.map +1 -0
  357. package/lib/components/tmpl/hc-data-source.js +230 -0
  358. package/lib/components/tmpl/hc-data-source.js.map +1 -0
  359. package/lib/components/tmpl/hcservice-v3.d.ts +53 -0
  360. package/lib/components/tmpl/hcservice-v3.d.ts.map +1 -0
  361. package/lib/components/tmpl/hcservice-v3.js +639 -0
  362. package/lib/components/tmpl/hcservice-v3.js.map +1 -0
  363. package/lib/components/tmpl/interface.d.ts +234 -0
  364. package/lib/components/tmpl/interface.d.ts.map +1 -0
  365. package/lib/components/tmpl/interface.js +4 -0
  366. package/lib/components/tmpl/interface.js.map +1 -0
  367. package/lib/components/tmpl/tmpl-config-analysis.d.ts +7 -0
  368. package/lib/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
  369. package/lib/components/tmpl/tmpl-config-analysis.js +106 -0
  370. package/lib/components/tmpl/tmpl-config-analysis.js.map +1 -0
  371. package/lib/components/units/index.d.ts +58 -0
  372. package/lib/components/units/index.d.ts.map +1 -0
  373. package/lib/components/units/index.js +525 -0
  374. package/lib/components/units/index.js.map +1 -0
  375. package/lib/components/welcome/index.css +13 -0
  376. package/lib/components/welcome/quick-entrance.d.ts +20 -0
  377. package/lib/components/welcome/quick-entrance.d.ts.map +1 -0
  378. package/lib/components/welcome/quick-entrance.js +79 -0
  379. package/lib/components/welcome/quick-entrance.js.map +1 -0
  380. package/lib/components/welcome/workbench.d.ts +20 -0
  381. package/lib/components/welcome/workbench.d.ts.map +1 -0
  382. package/lib/components/welcome/workbench.js +78 -0
  383. package/lib/components/welcome/workbench.js.map +1 -0
  384. package/lib/index.d.ts +4 -0
  385. package/lib/index.d.ts.map +1 -0
  386. package/lib/index.js +4 -0
  387. package/lib/index.js.map +1 -0
  388. package/lib/style/common.css +79 -0
  389. package/lib/style/coverstyle.css +49 -0
  390. package/lib/style/transstyle.css +24 -0
  391. package/package.json +10 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"act-dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/act-dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,MAAM,CAAA;AAG1C,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAChF,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,aAAa,CAAA;AAK9B,CAAC;AAUD,CAAC;AAEF,MAAM,YAAa,SAAQ,KAAK,CAAC,aAAkD;IAAnF;;QAMI,UAAK,GAAG;YACJ,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,SAAS;YACtB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,MAAM;YACrB,MAAM,EAAE;gBACJ,QAAQ,EAA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gB,OAAE,CACd,CAAU,CAAC,CAAC,CAAC,EAAE;wBAChC,oBAAC,MAAM,IACH,SAAS,EAAC,UAAU,EACpB,KAAK,EAAC,cAAI,EACV,OAAO,EAAE,IAAI,CAAC,SAAS;4BAC1B,oBAAC,cAAc,OAAE,CAAS;wBAC3B,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,eAAe,EACnE,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EACjD,OAAO,EAAE,eAAe,GAAqB,CAC7D,CACL,CACF;YACP,oBAAC,SAAS,IAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,qBAAqB,EACnG,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAC5C,IAAI,EAAE,IAAI,GAAc,CACjC,CACT,CAAC;IACN,CAAC;;AA1HM,yBAAY,GAAG;IAClB,YAAY,EAAE,IAAI;IAClB,qBAAqB,EAAE,EAAE;CAC5B,CAAA;AA2HL,eAAe,YAAY,CAAC"}
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
3
+ import '../dtmpl.css';
4
+ export interface DtmplViewProps extends DtmplBaseProps {
5
+ versionId?: number;
6
+ dtmplConfig: DtmplConfig;
7
+ refreshCode?: string;
8
+ }
9
+ export interface DtmplViewStat {
10
+ id?: string;
11
+ loading: boolean;
12
+ dtmplData: DtmplData;
13
+ premisesTitle: string;
14
+ layout: object;
15
+ }
16
+ declare class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
17
+ static defaultProps: {
18
+ showRightNav: boolean;
19
+ };
20
+ state: {
21
+ loading: boolean;
22
+ id: string;
23
+ snapshotVisible: boolean;
24
+ dtmplData: any;
25
+ premisesTitle: string;
26
+ layout: {
27
+ labelCol: {
28
+ span: number;
29
+ };
30
+ wrapperCol: {
31
+ span: number;
32
+ };
33
+ };
34
+ };
35
+ componentDidMount(): Promise<void>;
36
+ componentDidUpdate(prevProps: any): Promise<void>;
37
+ loadData: () => Promise<void>;
38
+ fieldGroupList: () => JSX.Element[];
39
+ render(): JSX.Element;
40
+ }
41
+ export default DtmplView;
42
+ //# sourceMappingURL=dtmpl-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAmB,MAAM,sBAAsB,CAAC;AAK9F,OAAO,cAAc,CAAC;AAMtB,MAAM,WAAW,cAAe,SAAQ,cAAc;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAC,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAC,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,cAAM,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC;IACtE,MAAM,CAAC,YAAY;;MAElB;IAED,KAAK;;;;;;;;;;;;;;MAUJ;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IAQlC,QAAQ,sBAWP;IAED,cAAc,sBAqCb;IAED,MAAM;CA8BT;AAGD,eAAe,SAAS,CAAC"}
@@ -0,0 +1,111 @@
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 RelationTable from "../../table/relation-table";
12
+ import FieldViewGroup from './field-view-group';
13
+ import HcserviceV3 from "../../tmpl/hcservice-v3";
14
+ import RightBar from "../rightbar";
15
+ import '../dtmpl.css';
16
+ import Units from '../../units';
17
+ import CollapseCard from "../../controls/collapse-card";
18
+ import CqueryButtonBar from "../button/cquery-button-bar";
19
+ ;
20
+ ;
21
+ class DtmplView extends React.PureComponent {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.state = {
25
+ loading: true,
26
+ id: 'dtmplView' + Units.getRandomNum(6),
27
+ snapshotVisible: false,
28
+ dtmplData: undefined,
29
+ premisesTitle: "默认字段",
30
+ layout: {
31
+ labelCol: { span: 8 },
32
+ wrapperCol: { span: 16 },
33
+ },
34
+ };
35
+ this.loadData = () => __awaiter(this, void 0, void 0, function* () {
36
+ const { sourceId, code, versionId } = this.props;
37
+ if (code) {
38
+ this.setState({
39
+ loading: true,
40
+ });
41
+ const dtmplData = yield HcserviceV3.requestDtmplData(sourceId, code, versionId);
42
+ this.setState({
43
+ dtmplData, loading: false,
44
+ });
45
+ }
46
+ });
47
+ this.fieldGroupList = () => {
48
+ const { dtmplConfig } = this.props;
49
+ const { dtmplData, loading, id } = this.state;
50
+ let groups = [];
51
+ if (dtmplConfig) {
52
+ groups = dtmplConfig.groups;
53
+ }
54
+ return groups.map((item) => {
55
+ if (item.type == 'relation') { //关系
56
+ if (item.fields) {
57
+ let data = undefined;
58
+ if (dtmplData) {
59
+ data = dtmplData.arrayMap[item.id];
60
+ }
61
+ // console.log("dtmplData", dtmplData );
62
+ // console.log("dtmplData data", data );
63
+ // console.log("initCollapsed", dtmplData && (!data || data.length<=0));
64
+ return React.createElement(RelationTable, { initCollapse: dtmplData && (!data || data.length <= 0), loading: loading, parentId: id, key: item.id, fieldGroupConfig: item, value: data, viewOrEdit: "view" });
65
+ }
66
+ }
67
+ else { //字段组
68
+ return React.createElement(CollapseCard, { title: item.title, key: item.id, id: id + item.id, className: "hoverable", headStyle: { background: "#f2f4f5" }, loading: loading },
69
+ React.createElement(FieldViewGroup, { fields: item.fields, valueMap: dtmplData ? dtmplData.fieldMap : undefined, width: 220 }));
70
+ }
71
+ });
72
+ };
73
+ }
74
+ componentDidMount() {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ yield this.loadData();
77
+ });
78
+ }
79
+ componentDidUpdate(prevProps) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const { sourceId, code, versionId, refreshCode } = this.props;
82
+ const { code: preCode, versionId: preVersionId, refreshCode: preRefreshCode } = prevProps;
83
+ if (code != preCode || (versionId && versionId != prevProps.versionId) || (refreshCode && refreshCode != preRefreshCode)) {
84
+ yield this.loadData();
85
+ }
86
+ });
87
+ }
88
+ render() {
89
+ const { showRightNav, rightBarPositionRight, code, sourceId, dtmplConfig } = this.props;
90
+ const { premisesTitle, loading, dtmplData, layout, snapshotVisible, id } = this.state;
91
+ const premises = dtmplConfig ? dtmplConfig.premises : undefined;
92
+ return (React.createElement("div", null,
93
+ this.fieldGroupList(),
94
+ premises && premises.length > 0 ?
95
+ React.createElement(CollapseCard
96
+ // title={<Button type="text"><HolderOutlined />{premisesTitle}</Button>}
97
+ , {
98
+ // title={<Button type="text"><HolderOutlined />{premisesTitle}</Button>}
99
+ title: premisesTitle, key: premisesTitle, id: id + premises[0].id, className: "hoverable", headStyle: { background: "#f2f4f5" }, loading: loading },
100
+ React.createElement(FieldViewGroup, { fields: premises }))
101
+ : "",
102
+ showRightNav ?
103
+ React.createElement(RightBar, { parentId: id, positionRight: rightBarPositionRight, dtmplConfig: dtmplConfig }) : "",
104
+ React.createElement(CqueryButtonBar, { dtmplConfig: dtmplConfig, mainCode: code })));
105
+ }
106
+ }
107
+ DtmplView.defaultProps = {
108
+ showRightNav: true,
109
+ };
110
+ export default DtmplView;
111
+ //# sourceMappingURL=dtmpl-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/dtmpl-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAMzD,CAAC;AAQD,CAAC;AAEF,MAAM,SAAU,SAAQ,KAAK,CAAC,aAA4C;IAA1E;;QAKI,UAAK,GAAG;YACJ,OAAO,EAAE,IAAI;YACb,EAAE,EAAC,WAAW,GAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;YACpC,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,MAAM;YACrB,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC;gBACnB,UAAU,EAAE,EAAC,IAAI,EAAE,EAAE,EAAC;aACzB;SACJ,CAAA;QAcD,aAAQ,GAAG,GAAS,EAAE;YAClB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAChD,IAAI,IAAI,EAAE;gBACN,IAAI,CAAC,QAAQ,CAAC;oBACV,OAAO,EAAE,IAAI;iBAChB,CAAC,CAAA;gBACF,MAAM,SAAS,GAAG,M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,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAEhE,OAAO,CACH;YACK,IAAI,CAAC,cAAc,EAAE;YACrB,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC9B,oBAAC,YAAY;gBACT,yEAAyE;;oBAAzE,yEAAyE;oBACzE,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,EAAE,GAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EACrB,SAAS,EAAC,WAAW,EACrB,SAAS,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC,EAClC,OAAO,EAAE,OAAO;oBAEhB,oBAAC,cAAc,IACX,MAAM,EAAE,QAAQ,GAAG,CACZ;gBACf,CAAC,CAAC,EAAE;YAEP,YAAY,CAAC,CAAC;gBACX,oBAAC,QAAQ,IAAC,QAAQ,EAAE,EAAE,EAAE,aAAa,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE;YAElG,oBAAC,eAAe,IAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAoB,CAC5E,CACT,CAAC;IACN,CAAC;;AA7GM,sBAAY,GAAG;IAClB,YAAY,EAAE,IAAI;CACrB,CAAA;AA+GL,eAAe,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { FieldConfig } from "../../tmpl/interface";
3
+ interface FieldViewGroupProps {
4
+ fields: FieldConfig[];
5
+ valueMap?: object;
6
+ width?: number;
7
+ }
8
+ interface FieldViewGroupState {
9
+ fileList: any;
10
+ }
11
+ export default class FieldViewGroup extends React.PureComponent<FieldViewGroupProps, FieldViewGroupState> {
12
+ constructor(props: any);
13
+ initViewList: () => any[];
14
+ render(): JSX.Element;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=field-view-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-view-group.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/field-view-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,WAAW,EAAmB,MAAM,sBAAsB,CAAC;AAInE,UAAU,mBAAmB;IACzB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,mBAAmB;IACzB,QAAQ,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;gBAEzF,KAAK,KAAA;IAOjB,YAAY,cAsCX;IAED,MAAM;CAOT"}
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import { Descriptions } from 'antd';
3
+ import ViewControl from './../../controls/view-control';
4
+ ;
5
+ ;
6
+ export default class FieldViewGroup extends React.PureComponent {
7
+ constructor(props) {
8
+ super(props);
9
+ this.initViewList = () => {
10
+ const { fields, valueMap } = this.props;
11
+ const formItemList = [];
12
+ if (fields.length > 0) {
13
+ fields.forEach((item, index) => {
14
+ const title = item.title;
15
+ let fieldValue = valueMap ? valueMap[item.id] : undefined;
16
+ //fieldValue 没有值时不能为null 要为 undefined。antd input所限制
17
+ fieldValue = fieldValue ? fieldValue : item.defaultValue ? item.defaultValue : undefined;
18
+ const fieldKey = item.id + Math.random() * 100;
19
+ if (item.extControlType != 'hidden') {
20
+ const formItem = React.createElement(Descriptions.Item, { label: item.title, span: item.colNum, key: index, className: 'labelcss' },
21
+ React.createElement(ViewControl, { holderType: 'descriptions', value: fieldValue, fieldConfig: item }));
22
+ formItemList.push(formItem);
23
+ }
24
+ });
25
+ }
26
+ return formItemList;
27
+ // const colList = [];
28
+ //
29
+ // for (let i = 0; i < formItemList.length; i = i + 1) {
30
+ // let colNum = fields[i].colNum;
31
+ // let col = <Col span={12 * colNum}>
32
+ // {formItemList[i]}
33
+ // </Col>
34
+ // colList.push(col);
35
+ // }
36
+ //
37
+ // const row =
38
+ // <Row gutter={[16, 8]} key={1}>
39
+ // {colList}
40
+ // </Row>
41
+ //return row;
42
+ };
43
+ this.state = {
44
+ fileList: [],
45
+ };
46
+ }
47
+ render() {
48
+ return (React.createElement(Descriptions, { column: 2 }, this.initViewList()));
49
+ }
50
+ }
51
+ //# sourceMappingURL=field-view-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-view-group.js","sourceRoot":"","sources":["../../../../src/components/detail/view/field-view-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAS,YAAY,EAAC,MAAM,MAAM,CAAC;AAE1C,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAOvD,CAAC;AAID,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAErG,YAAY,KAAK;QACb,KAAK,CAAC,KAAK,CAAC,CAAC;QAMjB,iBAAY,GAAG,GAAG,EAAE;YAChB,MAAM,EAAC,MAAM,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;YACrC,MAAM,YAAY,GAAG,EAAE,CAAC;YAExB,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBACnB,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;oBAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACzB,IAAI,UAAU,GAAG,QAAQ,CAAA,CAAC,CAAA,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA,CAAC,CAAA,SAAS,CAAC;oBACtD,mDAAmD;oBACnD,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;oBACzF,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;oBAE/C,IAAG,IAAI,CAAC,cAAc,IAAE,QAAQ,EAAC;wBAC7B,MAAM,QAAQ,GAAG,oBAAC,YAAY,CAAC,IAAI,IAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAChD,SAAS,EAAC,UAAU;4BAErD,oBAAC,WAAW,IAAC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,GAAG,CAChE,CAAA;wBACpB,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;qBAC/B;gBACL,CAAC,CAAC,CAAC;aACN;YACD,OAAO,YAAY,CAAC;YACpB,sBAAsB;YACtB,EAAE;YACF,wDAAwD;YACxD,qCAAqC;YACrC,yCAAyC;YACzC,4BAA4B;YAC5B,aAAa;YACb,yBAAyB;YACzB,IAAI;YACJ,EAAE;YACF,cAAc;YACd,qCAAqC;YACrC,oBAAoB;YACpB,aAAa;YACb,aAAa;QACjB,CAAC,CAAA;QA3CG,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,EAAE;SACf,CAAA;IACL,CAAC;IA0CD,MAAM;QACF,OAAO,CACH,oBAAC,YAAY,IAAC,MAAM,EAAE,CAAC,IAClB,IAAI,CAAC,YAAY,EAAE,CACT,CAClB,CAAA;IACL,CAAC;CACJ"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { ModalProps as AntdModalProps } from 'antd';
3
+ import { ActDtmplViewProps } from "./act-dtmpl-view";
4
+ interface ModalDtmplViewProps extends AntdModalProps, ActDtmplViewProps {
5
+ height: any;
6
+ }
7
+ interface ModalDtmplViewState {
8
+ }
9
+ export default class ModalDtmplView extends React.PureComponent<ModalDtmplViewProps, ModalDtmplViewState> {
10
+ static defaultProps: {
11
+ showConfirm: boolean;
12
+ height: number;
13
+ forceRender: boolean;
14
+ style: {
15
+ maxWidth: string;
16
+ maxHeight: string;
17
+ };
18
+ cancelText: string;
19
+ form: typeof import("antd/lib/form/Form").useForm;
20
+ };
21
+ static state: {
22
+ viewOrEdit: string;
23
+ };
24
+ render(): JSX.Element;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=modal-dtmpl-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-dtmpl-view.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/modal-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,UAAU,IAAI,cAAc,EAAa,MAAM,MAAM,CAAA;AAEpE,OAAqB,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEjE,UAAU,mBAAoB,SAAQ,cAAc,EAAE,iBAAiB;IACnE,MAAM,EAAC,GAAG,CAAC;CACd;AAED,UAAU,mBAAmB;CAE5B;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAErG,MAAM,CAAC,YAAY;;;;;;;;;;MAQlB;IACD,MAAM,CAAC,KAAK;;MAEX;IAOD,MAAM;CAsBT"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { Modal, Form, Button } from 'antd';
3
+ import ActDtmplView from "./act-dtmpl-view";
4
+ export default class ModalDtmplView extends React.PureComponent {
5
+ // onCancel=()=>{
6
+ //
7
+ // }
8
+ render() {
9
+ // console.log('antdModalProps:',this.antdModalProps);
10
+ const { height, onOk, onCancel, code, style, sourceId, visible } = this.props;
11
+ console.log('antdModalProps code :', code);
12
+ //const {code} = this.state;
13
+ return React.createElement(Modal, { visible: visible, title: "查看",
14
+ // style={style}
15
+ width: '1250px', centered: true, bodyStyle: { height: height, overflow: 'auto' }, onCancel: onCancel, footer: [
16
+ React.createElement(Button, { key: "back", onClick: onCancel }, "\u53D6 \u6D88")
17
+ ] }, code ? React.createElement(ActDtmplView, { rightBarPositionRight: 30, sourceId: sourceId, code: code }) : "");
18
+ }
19
+ }
20
+ ModalDtmplView.defaultProps = {
21
+ showConfirm: true,
22
+ height: 500,
23
+ //antd modal
24
+ forceRender: true,
25
+ style: { maxWidth: 'calc(100vw - 60px)', maxHeight: 'calc(100vh - 50px)' },
26
+ cancelText: "取消",
27
+ form: Form.useForm,
28
+ };
29
+ ModalDtmplView.state = {
30
+ viewOrEdit: 'view',
31
+ };
32
+ //# sourceMappingURL=modal-dtmpl-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-dtmpl-view.js","sourceRoot":"","sources":["../../../../src/components/detail/view/modal-dtmpl-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,KAAK,EAA+B,IAAI,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpE,OAAO,YAAiC,MAAM,kBAAkB,CAAC;AAUjE,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAgBrG,iBAAiB;IACjB,EAAE;IACF,IAAI;IAEJ,MAAM;QACF,sDAAsD;QACtD,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAA;QACrE,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAC,IAAI,CAAC,CAAC;QAC1C,4BAA4B;QAC5B,OAAO,oBAAC,KAAK,IACT,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,IAAI;YACX,gBAAgB;YAChB,KAAK,EAAE,QAAQ,EACf,QAAQ,QACR,SAAS,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC,EAC7C,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE;gBACJ,oBAAC,MAAM,IAAC,GAAG,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,oBAE5B;aAAC,IAEb,IAAI,CAAA,CAAC,CAAA,oBAAC,YAAY,IAAC,qBAAqB,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAG,IAAI,EAAE,IAAI,GAAI,CAAA,CAAC,CAAA,EAAE,CACjF,CAAA;IACZ,CAAC;;AAtCM,2BAAY,GAAG;IAClB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAC,GAAG;IACV,YAAY;IACZ,WAAW,EAAC,IAAI;IAChB,KAAK,EAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAC;IACvE,UAAU,EAAC,IAAI;IACf,IAAI,EAAC,IAAI,CAAC,OAAO;CACpB,CAAA;AACM,oBAAK,GAAC;IACT,UAAU,EAAC,MAAM;CACpB,CAAA"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import '../dtmpl.css';
3
+ import { DtmplConfig } from "../../tmpl/interface";
4
+ export interface SnapshotTimelineProps {
5
+ sourceId: string;
6
+ code: string;
7
+ showSnapshot?: (id: number) => void;
8
+ onClose: () => void;
9
+ visible: boolean;
10
+ dtmplConfig: DtmplConfig;
11
+ }
12
+ export interface SnapshotTimelineStat {
13
+ list: any[];
14
+ loading: boolean;
15
+ current?: number;
16
+ }
17
+ declare class SnapshotTimeline extends React.PureComponent<SnapshotTimelineProps, SnapshotTimelineStat> {
18
+ static defaultProps: {};
19
+ state: {
20
+ list: any;
21
+ loading: boolean;
22
+ current: any;
23
+ };
24
+ componentDidMount(): Promise<void>;
25
+ componentDidUpdate(prevProps: any): Promise<void>;
26
+ loadData: () => Promise<void>;
27
+ onChange: (code: number) => void;
28
+ detailHistory: () => any;
29
+ render(): JSX.Element;
30
+ }
31
+ export default SnapshotTimeline;
32
+ //# sourceMappingURL=snapshot-timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-timeline.d.ts","sourceRoot":"","sources":["../../../../src/components/detail/view/snapshot-timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,WAAW,EAAa,MAAM,sBAAsB,CAAC;AAI7D,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAM,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;IAC3F,MAAM,CAAC,YAAY,KAAK;IAExB,KAAK;;;;MAIJ;IAEK,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,KAAA;IAQlC,QAAQ,sBAaP;IAED,QAAQ,SAAU,MAAM,UAMvB;IAED,aAAa,YAsBZ;IAED,MAAM;CAkCT;AAGD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,90 @@
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
@@ -0,0 +1 @@
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,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AASpC,CAAC;AAMD,CAAC;AAEF,MAAM,gBAAiB,SAAQ,KAAK,CAAC,aAA0D;IAA/F;;QAGI,UAAK,GAAG;YACJ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,SAAS;SACrB,CAAA;QAcD,aAAQ,GAAG,GAAS,EAAE;YAClB,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAClD,MAAM,EA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AAI,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"}
@@ -0,0 +1,3 @@
1
+ .exportFrame .ant-divider-horizontal{
2
+ margin:12px 0;
3
+ }
@@ -0,0 +1,50 @@
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
@@ -0,0 +1 @@
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"}