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,140 @@
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
@@ -0,0 +1 @@
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,QAAQ,EAAC,MAAM,MAAM,CAAC;AACxE,OAAO,oBAAoB,CAAA;AAC3B,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,KAAK,MAAM,UAAU,CAAA;AAE5B,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;AAyB/B,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAgD;IAA/F;;QAMI,UAAK,GAAC;YACF,WAAW,EAAC,KAAK;YACjB,mBAAmB,EAAC,KAAK;YACzB,wBAAwB,EAAC,KAAK;YAC9B,oBAAoB,EAAC,KAAK;YAC1B,QAAQ,EAAC,SAAS;YAClB,WAAW,EAAC,CAAC;YACb,SAAS,EAAC,EAAE;YACZ,UAAU,EAAC,KAAK;YAChB,OAAO,EAAC,CAAC;YACT,YAAY,EAAC,OAAO;YACpB,YAAY,EAAC,EAAE;SAClB,CAAA;QAMD,kBAAa,GAAC,CAAC,CAAC,EAAC,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC;gBACV,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;gBAC1B,WAAW,EAAC,CAAC;gBACb,SAAS,EAAC,EAAE;aACf,CAAC,CAAC;QACP,CAAC,CAAA;QAED,YAAO,GAAC,SAAS,CAAC;QAElB,gBAAW,GAAC,GAAE,EAAE;YACZ,MAAM,EAAC,QAAQ,EAAC,WAAW,EAAC,KAAK,EAAE,GAAC,IAAI,CAAC,KAAK,CAAA;YAC9C,MAAM,EAAE,WAAW,EAAC,SAAS,EAAC,UAAU,EAAE,GAAC,IAAI,CAAC,KAAK,CAAA;YACrD,KAAK,CA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,EACN,KAAK,EAAE,SAAS,EAChB,WAAW,EAAC,0BAAM,EAClB,QAAQ,EAAE,CAAC,EAAE,EAAC,EAAE,CAAA,IAAI,CAAC,QAAQ,CAAC,EAAC,SAAS,EAAC,EAAE,EAAC,CAAC,EAC7C,QAAQ,EAAE,mBAAmB,GAAG;oBACpC,oBAAC,OAAO,OAAG,CACT,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"}
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,44 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,167 @@
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
@@ -0,0 +1 @@
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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;4BACjB,gBAAgB,CAAC,CAAC;gCACf,oBAAC,UAAU,IACP,SAAS,EAAC,aAAa,EACvB,KAAK,EAAE,eAAe,EACtB,SAAS,EAAE,GAAG,EAAE;wCACZ,QAAQ,EAAE,CAAA;oCACd,CAAC,EACD,MAAM,EAAC,cAAI,EACX,UAAU,EAAC,cAAI,EACf,MAAM,EAAE,QAAQ;oCAEhB,oBAAC,MAAM,IAAC,MAAM,QAAC,QAAQ,EAAE,oBAAoB,+BAAe,CACnD;gCACb,CAAC,CAAC,EAAE;4BACP,YAAY,EAAE;4BACd,UAAU,EAAE;4BACZ,YAAY,EAAE,CACX,CACJ,CACN,CACJ,CACH,CACA,CACd,CAAC;AACN,CAAC,CAAA;AACD,YAAY,CAAC,YAAY,GAAG;IACxB,iBAAiB,EAAE,EAAE;IACrB,OAAO,EAAE,IAAI;CAChB,CAAA;AACD,eAAe,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+
2
+ .pageHeader .ant-card-body{
3
+ padding:0px 24px 0px 24px;
4
+ }
@@ -0,0 +1,37 @@
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
@@ -0,0 +1 @@
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,k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