aldehyde 0.2.97 → 0.2.99

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 (389) hide show
  1. package/LICENSE +1 -1
  2. package/lib/controls/action/index.d.ts +16 -7
  3. package/lib/controls/action/index.d.ts.map +1 -1
  4. package/lib/controls/action/index.js +64 -48
  5. package/lib/controls/action/index.js.map +1 -1
  6. package/lib/controls/action/utils.d.ts +1 -1
  7. package/lib/controls/action/utils.d.ts.map +1 -1
  8. package/lib/controls/action/utils.js +6 -4
  9. package/lib/controls/action/utils.js.map +1 -1
  10. package/lib/controls/auto-complete/index.d.ts +1 -1
  11. package/lib/controls/auto-complete/index.d.ts.map +1 -1
  12. package/lib/controls/auto-complete/index.js +12 -6
  13. package/lib/controls/auto-complete/index.js.map +1 -1
  14. package/lib/controls/chemstruc/graph.d.ts +13 -4
  15. package/lib/controls/chemstruc/graph.d.ts.map +1 -1
  16. package/lib/controls/chemstruc/graph.js +40 -27
  17. package/lib/controls/chemstruc/graph.js.map +1 -1
  18. package/lib/controls/color-picker/index.d.ts +11 -2
  19. package/lib/controls/color-picker/index.d.ts.map +1 -1
  20. package/lib/controls/color-picker/index.js +23 -19
  21. package/lib/controls/color-picker/index.js.map +1 -1
  22. package/lib/controls/cquery/cquick-button.d.ts +11 -2
  23. package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
  24. package/lib/controls/cquery/cquick-button.js +30 -28
  25. package/lib/controls/cquery/cquick-button.js.map +1 -1
  26. package/lib/controls/entity-select/entity-select.d.ts +12 -3
  27. package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
  28. package/lib/controls/entity-select/entity-select.js +66 -64
  29. package/lib/controls/entity-select/entity-select.js.map +1 -1
  30. package/lib/controls/entity-select/lab-tree-select.d.ts +11 -2
  31. package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
  32. package/lib/controls/entity-select/lab-tree-select.js +26 -21
  33. package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
  34. package/lib/controls/entity-select/popover-entity-select.d.ts +11 -2
  35. package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
  36. package/lib/controls/entity-select/popover-entity-select.js +30 -26
  37. package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
  38. package/lib/controls/entry-control.d.ts +1 -1
  39. package/lib/controls/entry-control.d.ts.map +1 -1
  40. package/lib/controls/entry-control.js +152 -98
  41. package/lib/controls/entry-control.js.map +1 -1
  42. package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
  43. package/lib/controls/input-number/index.d.ts +1 -1
  44. package/lib/controls/input-number/index.d.ts.map +1 -1
  45. package/lib/controls/input-number/index.js +31 -23
  46. package/lib/controls/input-number/index.js.map +1 -1
  47. package/lib/controls/input-range/index.d.ts +1 -1
  48. package/lib/controls/input-range/index.d.ts.map +1 -1
  49. package/lib/controls/input-range/index.js +9 -8
  50. package/lib/controls/input-range/index.js.map +1 -1
  51. package/lib/controls/password-setter/index.d.ts +9 -3
  52. package/lib/controls/password-setter/index.d.ts.map +1 -1
  53. package/lib/controls/password-setter/index.js +22 -14
  54. package/lib/controls/password-setter/index.js.map +1 -1
  55. package/lib/controls/progress/index.d.ts +1 -1
  56. package/lib/controls/progress/index.d.ts.map +1 -1
  57. package/lib/controls/progress/index.js +13 -6
  58. package/lib/controls/progress/index.js.map +1 -1
  59. package/lib/controls/relation-existion/index.d.ts +11 -2
  60. package/lib/controls/relation-existion/index.d.ts.map +1 -1
  61. package/lib/controls/relation-existion/index.js +30 -18
  62. package/lib/controls/relation-existion/index.js.map +1 -1
  63. package/lib/controls/rfield/index.d.ts +11 -2
  64. package/lib/controls/rfield/index.d.ts.map +1 -1
  65. package/lib/controls/rfield/index.js +33 -35
  66. package/lib/controls/rfield/index.js.map +1 -1
  67. package/lib/controls/signature/index.d.ts +10 -1
  68. package/lib/controls/signature/index.d.ts.map +1 -1
  69. package/lib/controls/signature/index.js +56 -31
  70. package/lib/controls/signature/index.js.map +1 -1
  71. package/lib/controls/steps/index.d.ts +1 -1
  72. package/lib/controls/steps/index.d.ts.map +1 -1
  73. package/lib/controls/steps/index.js +8 -6
  74. package/lib/controls/steps/index.js.map +1 -1
  75. package/lib/controls/text/ellipsis-text.d.ts +9 -0
  76. package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
  77. package/lib/controls/text/ellipsis-text.js +13 -11
  78. package/lib/controls/text/ellipsis-text.js.map +1 -1
  79. package/lib/controls/upload/index.d.ts +10 -1
  80. package/lib/controls/upload/index.d.ts.map +1 -1
  81. package/lib/controls/upload/index.js +30 -21
  82. package/lib/controls/upload/index.js.map +1 -1
  83. package/lib/controls/view-control.d.ts +1 -1
  84. package/lib/controls/view-control.d.ts.map +1 -1
  85. package/lib/controls/view-control.js +118 -85
  86. package/lib/controls/view-control.js.map +1 -1
  87. package/lib/custom-page/def-custom-page.d.ts +5 -6
  88. package/lib/custom-page/def-custom-page.d.ts.map +1 -1
  89. package/lib/custom-page/def-custom-page.js +13 -12
  90. package/lib/custom-page/def-custom-page.js.map +1 -1
  91. package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +10 -1
  92. package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
  93. package/lib/custom-page/dtmpl-custom-edit-modal-page.js +19 -7
  94. package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
  95. package/lib/detail/button/bottom-submit-button-bar.d.ts +11 -2
  96. package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
  97. package/lib/detail/button/bottom-submit-button-bar.js +20 -12
  98. package/lib/detail/button/bottom-submit-button-bar.js.map +1 -1
  99. package/lib/detail/button/cquery-button-bar.d.ts +12 -3
  100. package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
  101. package/lib/detail/button/cquery-button-bar.js +22 -18
  102. package/lib/detail/button/cquery-button-bar.js.map +1 -1
  103. package/lib/detail/button/fix-right-submit-button-bar.d.ts +11 -2
  104. package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
  105. package/lib/detail/button/fix-right-submit-button-bar.js +28 -23
  106. package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
  107. package/lib/detail/edit/fields-edit-card.d.ts +11 -2
  108. package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
  109. package/lib/detail/edit/fields-edit-card.js +18 -19
  110. package/lib/detail/edit/fields-edit-card.js.map +1 -1
  111. package/lib/detail/edit/modal-row-edit.d.ts +11 -2
  112. package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
  113. package/lib/detail/edit/modal-row-edit.js +14 -11
  114. package/lib/detail/edit/modal-row-edit.js.map +1 -1
  115. package/lib/detail/edit/post-result/index.d.ts +1 -1
  116. package/lib/detail/edit/post-result/index.d.ts.map +1 -1
  117. package/lib/detail/edit/post-result/index.js +17 -12
  118. package/lib/detail/edit/post-result/index.js.map +1 -1
  119. package/lib/detail/edit/row-edit-card.d.ts +11 -2
  120. package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
  121. package/lib/detail/edit/row-edit-card.js +23 -23
  122. package/lib/detail/edit/row-edit-card.js.map +1 -1
  123. package/lib/detail/rightbar/index.d.ts +12 -3
  124. package/lib/detail/rightbar/index.d.ts.map +1 -1
  125. package/lib/detail/rightbar/index.js +16 -9
  126. package/lib/detail/rightbar/index.js.map +1 -1
  127. package/lib/detail/view/act-dtmpl-view.d.ts +11 -2
  128. package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
  129. package/lib/detail/view/act-dtmpl-view.js +26 -25
  130. package/lib/detail/view/act-dtmpl-view.js.map +1 -1
  131. package/lib/detail/view/dtmpl-view.d.ts +2 -2
  132. package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
  133. package/lib/detail/view/dtmpl-view.js +40 -40
  134. package/lib/detail/view/dtmpl-view.js.map +1 -1
  135. package/lib/detail/view/modal-dtmpl-view.d.ts +10 -1
  136. package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
  137. package/lib/detail/view/modal-dtmpl-view.js +11 -8
  138. package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
  139. package/lib/detail/view/snapshot-timeline.d.ts +11 -2
  140. package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
  141. package/lib/detail/view/snapshot-timeline.js +18 -16
  142. package/lib/detail/view/snapshot-timeline.js.map +1 -1
  143. package/lib/exportor/export-frame.d.ts +11 -2
  144. package/lib/exportor/export-frame.d.ts.map +1 -1
  145. package/lib/exportor/export-frame.js +41 -42
  146. package/lib/exportor/export-frame.js.map +1 -1
  147. package/lib/form/criteria-form.d.ts +2 -2
  148. package/lib/form/criteria-form.d.ts.map +1 -1
  149. package/lib/form/criteria-form.js +58 -45
  150. package/lib/form/criteria-form.js.map +1 -1
  151. package/lib/form/dtmpl-form.d.ts +11 -2
  152. package/lib/form/dtmpl-form.d.ts.map +1 -1
  153. package/lib/form/dtmpl-form.js +76 -61
  154. package/lib/form/dtmpl-form.js.map +1 -1
  155. package/lib/form/field-group-form.d.ts +12 -3
  156. package/lib/form/field-group-form.d.ts.map +1 -1
  157. package/lib/form/field-group-form.js +26 -18
  158. package/lib/form/field-group-form.js.map +1 -1
  159. package/lib/form/form-Item-group.d.ts +10 -1
  160. package/lib/form/form-Item-group.d.ts.map +1 -1
  161. package/lib/form/form-Item-group.js +43 -26
  162. package/lib/form/form-Item-group.js.map +1 -1
  163. package/lib/import/excel-import.d.ts +12 -3
  164. package/lib/import/excel-import.d.ts.map +1 -1
  165. package/lib/import/excel-import.js +69 -55
  166. package/lib/import/excel-import.js.map +1 -1
  167. package/lib/index.d.ts +42 -39
  168. package/lib/index.d.ts.map +1 -1
  169. package/lib/index.js +43 -39
  170. package/lib/index.js.map +1 -1
  171. package/lib/layout/MainPage.d.ts +1 -1
  172. package/lib/layout/MainPage.d.ts.map +1 -1
  173. package/lib/layout/MainPage.js +46 -36
  174. package/lib/layout/MainPage.js.map +1 -1
  175. package/lib/layout/footer/index.d.ts.map +1 -1
  176. package/lib/layout/header/index.d.ts +1 -1
  177. package/lib/layout/header/index.d.ts.map +1 -1
  178. package/lib/layout/header/index.js +16 -14
  179. package/lib/layout/header/index.js.map +1 -1
  180. package/lib/layout/menu/l2menu-quick-bar.d.ts +11 -2
  181. package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
  182. package/lib/layout/menu/l2menu-quick-bar.js +24 -19
  183. package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
  184. package/lib/layout/menu/reset-password.d.ts +12 -3
  185. package/lib/layout/menu/reset-password.d.ts.map +1 -1
  186. package/lib/layout/menu/reset-password.js +52 -36
  187. package/lib/layout/menu/reset-password.js.map +1 -1
  188. package/lib/layout/menu/user-bar.d.ts +12 -3
  189. package/lib/layout/menu/user-bar.d.ts.map +1 -1
  190. package/lib/layout/menu/user-bar.js +72 -42
  191. package/lib/layout/menu/user-bar.js.map +1 -1
  192. package/lib/layout/menu/userinfo-bar.d.ts +10 -1
  193. package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
  194. package/lib/layout/menu/userinfo-bar.js +11 -10
  195. package/lib/layout/menu/userinfo-bar.js.map +1 -1
  196. package/lib/layout/sidebar/index.css +15 -4
  197. package/lib/layout/sidebar/index.d.ts +2 -2
  198. package/lib/layout/sidebar/index.d.ts.map +1 -1
  199. package/lib/layout/sidebar/index.js +19 -13
  200. package/lib/layout/sidebar/index.js.map +1 -1
  201. package/lib/locale/LocaleButton.d.ts +4 -0
  202. package/lib/locale/LocaleButton.d.ts.map +1 -0
  203. package/lib/locale/LocaleButton.js +24 -0
  204. package/lib/locale/LocaleButton.js.map +1 -0
  205. package/lib/locale/LocaleProvider.d.ts +13 -0
  206. package/lib/locale/LocaleProvider.d.ts.map +1 -0
  207. package/lib/locale/LocaleProvider.js +135 -0
  208. package/lib/locale/LocaleProvider.js.map +1 -0
  209. package/lib/locale/langMp.d.ts +16 -0
  210. package/lib/locale/langMp.d.ts.map +1 -0
  211. package/lib/locale/langMp.js +29 -0
  212. package/lib/locale/langMp.js.map +1 -0
  213. package/lib/locale/translate.d.ts +3 -0
  214. package/lib/locale/translate.d.ts.map +1 -0
  215. package/lib/locale/translate.js +74 -0
  216. package/lib/locale/translate.js.map +1 -0
  217. package/lib/locale/useLocale.d.ts +14 -0
  218. package/lib/locale/useLocale.d.ts.map +1 -0
  219. package/lib/locale/useLocale.js +34 -0
  220. package/lib/locale/useLocale.js.map +1 -0
  221. package/lib/login/login.d.ts +13 -3
  222. package/lib/login/login.d.ts.map +1 -1
  223. package/lib/login/login.js +38 -25
  224. package/lib/login/login.js.map +1 -1
  225. package/lib/login/router-login.d.ts +2 -2
  226. package/lib/login/router-login.d.ts.map +1 -1
  227. package/lib/login/router-login.js +33 -19
  228. package/lib/login/router-login.js.map +1 -1
  229. package/lib/module/dtmpl-edit-card.d.ts +11 -2
  230. package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
  231. package/lib/module/dtmpl-edit-card.js +21 -13
  232. package/lib/module/dtmpl-edit-card.js.map +1 -1
  233. package/lib/module/dtmpl-edit-page.d.ts +12 -3
  234. package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
  235. package/lib/module/dtmpl-edit-page.js +42 -31
  236. package/lib/module/dtmpl-edit-page.js.map +1 -1
  237. package/lib/module/ltmpl-modal.d.ts +10 -1
  238. package/lib/module/ltmpl-modal.d.ts.map +1 -1
  239. package/lib/module/ltmpl-modal.js +15 -8
  240. package/lib/module/ltmpl-modal.js.map +1 -1
  241. package/lib/module/ltmpl-table.d.ts +11 -2
  242. package/lib/module/ltmpl-table.d.ts.map +1 -1
  243. package/lib/module/ltmpl-table.js +39 -39
  244. package/lib/module/ltmpl-table.js.map +1 -1
  245. package/lib/table/act-table.d.ts +12 -3
  246. package/lib/table/act-table.d.ts.map +1 -1
  247. package/lib/table/act-table.js +256 -205
  248. package/lib/table/act-table.js.map +1 -1
  249. package/lib/table/control-table-x-axis-wrapper.d.ts +5 -0
  250. package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -0
  251. package/lib/table/control-table-x-axis-wrapper.js +60 -0
  252. package/lib/table/control-table-x-axis-wrapper.js.map +1 -0
  253. package/lib/table/l2-act-table.d.ts +1 -1
  254. package/lib/table/pagination.d.ts +11 -2
  255. package/lib/table/pagination.d.ts.map +1 -1
  256. package/lib/table/pagination.js +13 -12
  257. package/lib/table/pagination.js.map +1 -1
  258. package/lib/table/query-table.d.ts.map +1 -1
  259. package/lib/table/query-table.js +2 -1
  260. package/lib/table/query-table.js.map +1 -1
  261. package/lib/table/relation-table.d.ts +13 -4
  262. package/lib/table/relation-table.d.ts.map +1 -1
  263. package/lib/table/relation-table.js +117 -108
  264. package/lib/table/relation-table.js.map +1 -1
  265. package/lib/table/selected-rows-card.d.ts +10 -1
  266. package/lib/table/selected-rows-card.d.ts.map +1 -1
  267. package/lib/table/selected-rows-card.js +10 -9
  268. package/lib/table/selected-rows-card.js.map +1 -1
  269. package/lib/table/stat/restat.d.ts +10 -1
  270. package/lib/table/stat/restat.d.ts.map +1 -1
  271. package/lib/table/stat/restat.js +10 -9
  272. package/lib/table/stat/restat.js.map +1 -1
  273. package/lib/tmpl/hc-data-source.d.ts.map +1 -1
  274. package/lib/tmpl/hc-data-source.js +21 -14
  275. package/lib/tmpl/hc-data-source.js.map +1 -1
  276. package/lib/tmpl/hcservice-v3.d.ts +2 -0
  277. package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
  278. package/lib/tmpl/hcservice-v3.js +127 -100
  279. package/lib/tmpl/hcservice-v3.js.map +1 -1
  280. package/lib/tmpl/model-struc-v3.d.ts.map +1 -1
  281. package/lib/tmpl/model-struc-v3.js +19 -18
  282. package/lib/tmpl/model-struc-v3.js.map +1 -1
  283. package/lib/tmpl/superagent.d.ts +2 -2
  284. package/lib/tmpl/superagent.d.ts.map +1 -1
  285. package/lib/tmpl/superagent.js +28 -23
  286. package/lib/tmpl/superagent.js.map +1 -1
  287. package/lib/tree/act-tree.d.ts +10 -1
  288. package/lib/tree/act-tree.d.ts.map +1 -1
  289. package/lib/tree/act-tree.js +26 -20
  290. package/lib/tree/act-tree.js.map +1 -1
  291. package/lib/tree/tmpl-tree.d.ts +11 -2
  292. package/lib/tree/tmpl-tree.d.ts.map +1 -1
  293. package/lib/tree/tmpl-tree.js +76 -58
  294. package/lib/tree/tmpl-tree.js.map +1 -1
  295. package/lib/units/index.d.ts.map +1 -1
  296. package/lib/welcome/HCWelcome.js +7 -23
  297. package/lib/welcome/HCWelcome.js.map +1 -1
  298. package/lib/welcome/HCWelcome1.d.ts +4 -0
  299. package/lib/welcome/HCWelcome1.d.ts.map +1 -0
  300. package/lib/welcome/HCWelcome1.js +192 -0
  301. package/lib/welcome/HCWelcome1.js.map +1 -0
  302. package/lib/welcome/quick-entrance.d.ts +12 -3
  303. package/lib/welcome/quick-entrance.d.ts.map +1 -1
  304. package/lib/welcome/quick-entrance.js +21 -17
  305. package/lib/welcome/quick-entrance.js.map +1 -1
  306. package/lib/welcome/workbench.d.ts +12 -3
  307. package/lib/welcome/workbench.d.ts.map +1 -1
  308. package/lib/welcome/workbench.js +23 -19
  309. package/lib/welcome/workbench.js.map +1 -1
  310. package/package.json +1 -1
  311. package/src/aldehyde/controls/action/index.tsx +328 -221
  312. package/src/aldehyde/controls/action/utils.tsx +6 -4
  313. package/src/aldehyde/controls/auto-complete/index.tsx +64 -60
  314. package/src/aldehyde/controls/chemstruc/graph.tsx +175 -139
  315. package/src/aldehyde/controls/color-picker/index.tsx +107 -78
  316. package/src/aldehyde/controls/cquery/cquick-button.tsx +129 -89
  317. package/src/aldehyde/controls/entity-select/entity-select.tsx +643 -521
  318. package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +140 -131
  319. package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +178 -133
  320. package/src/aldehyde/controls/entry-control.tsx +373 -248
  321. package/src/aldehyde/controls/input-number/index.tsx +131 -86
  322. package/src/aldehyde/controls/input-range/index.tsx +51 -40
  323. package/src/aldehyde/controls/password-setter/index.js +81 -63
  324. package/src/aldehyde/controls/progress/index.tsx +59 -46
  325. package/src/aldehyde/controls/relation-existion/index.tsx +125 -87
  326. package/src/aldehyde/controls/rfield/index.tsx +178 -151
  327. package/src/aldehyde/controls/signature/index.tsx +215 -151
  328. package/src/aldehyde/controls/steps/index.tsx +44 -42
  329. package/src/aldehyde/controls/text/ellipsis-text.tsx +79 -53
  330. package/src/aldehyde/controls/upload/index.tsx +125 -109
  331. package/src/aldehyde/controls/view-control.tsx +250 -188
  332. package/src/aldehyde/custom-page/def-custom-page.tsx +17 -0
  333. package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +75 -66
  334. package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +79 -43
  335. package/src/aldehyde/detail/button/cquery-button-bar.tsx +129 -98
  336. package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +161 -113
  337. package/src/aldehyde/detail/edit/fields-edit-card.tsx +124 -87
  338. package/src/aldehyde/detail/edit/modal-row-edit.tsx +81 -60
  339. package/src/aldehyde/detail/edit/post-result/index.tsx +80 -47
  340. package/src/aldehyde/detail/edit/row-edit-card.tsx +158 -107
  341. package/src/aldehyde/detail/rightbar/index.tsx +79 -63
  342. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +177 -124
  343. package/src/aldehyde/detail/view/dtmpl-view.tsx +284 -178
  344. package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +67 -54
  345. package/src/aldehyde/detail/view/snapshot-timeline.tsx +143 -110
  346. package/src/aldehyde/exportor/export-frame.tsx +258 -200
  347. package/src/aldehyde/form/criteria-form.tsx +309 -201
  348. package/src/aldehyde/form/dtmpl-form.tsx +460 -305
  349. package/src/aldehyde/form/field-group-form.tsx +87 -66
  350. package/src/aldehyde/form/form-Item-group.tsx +190 -132
  351. package/src/aldehyde/import/excel-import.tsx +414 -331
  352. package/src/aldehyde/index.tsx +90 -45
  353. package/src/aldehyde/layout/MainPage.tsx +280 -245
  354. package/src/aldehyde/layout/header/index.tsx +59 -53
  355. package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +137 -118
  356. package/src/aldehyde/layout/menu/reset-password.tsx +213 -162
  357. package/src/aldehyde/layout/menu/user-bar.tsx +216 -147
  358. package/src/aldehyde/layout/menu/userinfo-bar.tsx +58 -41
  359. package/src/aldehyde/layout/sidebar/index.css +15 -4
  360. package/src/aldehyde/layout/sidebar/index.tsx +66 -38
  361. package/src/aldehyde/locale/LocaleButton.tsx +31 -0
  362. package/src/aldehyde/locale/LocaleProvider.tsx +165 -0
  363. package/src/aldehyde/locale/langMp.ts +33 -0
  364. package/src/aldehyde/locale/translate.ts +78 -0
  365. package/src/aldehyde/locale/useLocale.ts +50 -0
  366. package/src/aldehyde/login/login.tsx +192 -141
  367. package/src/aldehyde/login/router-login.tsx +54 -21
  368. package/src/aldehyde/module/dtmpl-edit-card.tsx +225 -160
  369. package/src/aldehyde/module/dtmpl-edit-page.tsx +334 -212
  370. package/src/aldehyde/module/ltmpl-modal.tsx +57 -53
  371. package/src/aldehyde/module/ltmpl-table.tsx +329 -240
  372. package/src/aldehyde/table/act-table.tsx +1226 -794
  373. package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +52 -0
  374. package/src/aldehyde/table/pagination.tsx +66 -59
  375. package/src/aldehyde/table/query-table.tsx +2 -1
  376. package/src/aldehyde/table/relation-table.tsx +781 -571
  377. package/src/aldehyde/table/selected-rows-card.tsx +61 -48
  378. package/src/aldehyde/table/stat/restat.tsx +112 -69
  379. package/src/aldehyde/tmpl/hc-data-source.tsx +381 -296
  380. package/src/aldehyde/tmpl/hcservice-v3.tsx +991 -796
  381. package/src/aldehyde/tmpl/model-struc-v3.tsx +95 -91
  382. package/src/aldehyde/tmpl/superagent.js +148 -142
  383. package/src/aldehyde/tree/act-tree.tsx +206 -138
  384. package/src/aldehyde/tree/tmpl-tree.tsx +611 -353
  385. package/src/aldehyde/welcome/HCWelcome.js +78 -110
  386. package/src/aldehyde/welcome/HCWelcome1.js +260 -0
  387. package/src/aldehyde/welcome/quick-entrance.tsx +82 -71
  388. package/src/aldehyde/welcome/workbench.tsx +83 -68
  389. package/src/aldehyde/custom-page/def-custom-page.js +0 -18
@@ -7,32 +7,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import React from 'react';
11
- import { Button, Card, Checkbox, Col, Collapse, Divider, Popconfirm, Popover, Row, Space, Table, Tooltip } from 'antd';
12
- import { AlignCenterOutlined, AlignLeftOutlined, CopyOutlined, DeleteOutlined, DownloadOutlined, EditOutlined, EyeInvisibleOutlined, EyeOutlined, FormOutlined, FundOutlined, LineChartOutlined, MenuOutlined, PlusCircleOutlined, PlusOutlined, ReloadOutlined, RetweetOutlined, SearchOutlined, TableOutlined, UploadOutlined } from '@ant-design/icons';
10
+ import React from "react";
11
+ import { Button, Card, Checkbox, Col, Collapse, Divider, Popconfirm, Popover, Row, Space, Tooltip, } from "antd";
12
+ import { Table } from "./control-table-x-axis-wrapper";
13
+ import { AlignCenterOutlined, AlignLeftOutlined, CopyOutlined, DeleteOutlined, DownloadOutlined, EditOutlined, EyeInvisibleOutlined, EyeOutlined, FormOutlined, FundOutlined, LineChartOutlined, MenuOutlined, PlusCircleOutlined, PlusOutlined, ReloadOutlined, RetweetOutlined, SearchOutlined, TableOutlined, UploadOutlined, } from "@ant-design/icons";
13
14
  import "./index.css";
14
15
  import TableUnits from "./table-util";
15
- import SupportInputTypes from '../tmpl/control-type-supportor';
16
+ import SupportInputTypes from "../tmpl/control-type-supportor";
16
17
  import HcserviceV3 from "../tmpl/hcservice-v3";
17
- import QueryTable from './query-table';
18
+ import QueryTable from "./query-table";
18
19
  import CriteriaForm from "./../form/criteria-form";
19
20
  import ViewControl from "../controls/view-control";
20
21
  import Units from "../units";
21
- import ColumnSelector from './column/column-selector';
22
- import ExportFrame from '../exportor/export-frame';
23
- import { SortableHandle } from 'react-sortable-hoc';
22
+ import ColumnSelector from "./column/column-selector";
23
+ import ExportFrame from "../exportor/export-frame";
24
+ import { SortableHandle } from "react-sortable-hoc";
24
25
  import L2ActTable from "./l2-act-table";
25
- import Action from '../controls/action';
26
+ import Action from "../controls/action";
26
27
  import Restat from "./stat/restat";
27
- import ActionUtils from '../controls/action/utils';
28
+ import ActionUtils from "../controls/action/utils";
28
29
  import CquickButton from "../controls/cquery/cquick-button";
29
30
  import CollapseCard from "../controls/collapse-card";
30
31
  import ToolTipBar from "../detail/tooltipbar";
31
- const DragHandle = SortableHandle(() => React.createElement(MenuOutlined, { style: { cursor: 'grab', color: '#999' } }));
32
+ import { LocaleContext } from "../locale/LocaleProvider";
33
+ const DragHandle = SortableHandle(() => (React.createElement(MenuOutlined, { style: { cursor: "grab", color: "#999" } })));
32
34
  const { Panel } = Collapse;
33
- const defaultDisabledColIds = ['20000', '10000'];
34
- ;
35
- ;
35
+ const defaultDisabledColIds = ["20000", "10000"];
36
36
  class ActTable extends React.PureComponent {
37
37
  constructor() {
38
38
  super(...arguments);
@@ -53,7 +53,7 @@ class ActTable extends React.PureComponent {
53
53
  showL2Chart: false,
54
54
  };
55
55
  this.loadData = (hiddenColIds, hiddenRowCodes, sortedColConfigs) => __awaiter(this, void 0, void 0, function* () {
56
- const { sourceId, criteriaData, ltmplConfig, mainCode, level, pageNo, pageSize, serverKey } = this.props;
56
+ const { sourceId, criteriaData, ltmplConfig, mainCode, level, pageNo, pageSize, serverKey, } = this.props;
57
57
  if (!ltmplConfig) {
58
58
  return;
59
59
  }
@@ -62,14 +62,18 @@ class ActTable extends React.PureComponent {
62
62
  });
63
63
  let disabledColIds = [];
64
64
  let hiddenColIds_ = [...hiddenColIds];
65
- if (criteriaData && criteriaData['drillingColIds']) {
66
- let dColIds = [...criteriaData['drillingColIds']];
65
+ if (criteriaData && criteriaData["drillingColIds"]) {
66
+ let dColIds = [...criteriaData["drillingColIds"]];
67
67
  ltmplConfig.columns.forEach((item) => {
68
- if (item.statColType == 'dimension' && !dColIds.includes(item.id) && !hiddenColIds_.includes(item.id)) {
68
+ if (item.statColType == "dimension" &&
69
+ !dColIds.includes(item.id) &&
70
+ !hiddenColIds_.includes(item.id)) {
69
71
  hiddenColIds_.push(item.id);
70
72
  disabledColIds.push(item.id);
71
73
  }
72
- if (item.statColType == 'dimension' && !dColIds.includes(item.id) && !disabledColIds.includes(item.id)) {
74
+ if (item.statColType == "dimension" &&
75
+ !dColIds.includes(item.id) &&
76
+ !disabledColIds.includes(item.id)) {
73
77
  disabledColIds.push(item.id);
74
78
  }
75
79
  });
@@ -93,7 +97,7 @@ class ActTable extends React.PureComponent {
93
97
  /** 构建 dataSource **/
94
98
  //构建过滤条件
95
99
  let queryKey;
96
- if (level && level == 'l2') {
100
+ if (level && level == "l2") {
97
101
  queryKey = yield HcserviceV3.requestL2LtmplQueryKey(serverKey, sourceId, Object.assign(Object.assign(Object.assign({}, criteriaData), pageInfo), { mainCode }));
98
102
  }
99
103
  else {
@@ -109,11 +113,12 @@ class ActTable extends React.PureComponent {
109
113
  showL2Chart: false,
110
114
  selectedRows: [],
111
115
  selectedDatas: [],
112
- viewModels: (this.state.viewModels.length > 0 ? this.state.viewModels : ['table']),
116
+ viewModels: this.state.viewModels.length > 0 ? this.state.viewModels : ["table"],
113
117
  });
114
118
  });
115
119
  this.buildTableColumns = (ltmplConfig, hiddenColIds, hiddenRowCodes, sortedColConfigs) => {
116
- const { showView, doEdit, doRAction, customEditable, serverKey, readOnly, sourceId } = this.props;
120
+ const { showView, doEdit, doRAction, customEditable, serverKey, readOnly, sourceId, } = this.props;
121
+ const { translate } = this.context;
117
122
  const { buttons } = ltmplConfig;
118
123
  let tableColumns = [];
119
124
  let s = 0;
@@ -123,13 +128,13 @@ class ActTable extends React.PureComponent {
123
128
  if (!hiddenColIds || !hiddenColIds.includes(item.id)) {
124
129
  tableColumns.push(column);
125
130
  }
126
- column['title'] = item.title;
127
- column['dataIndex'] = item.id;
131
+ column["title"] = item.title;
132
+ column["dataIndex"] = item.id;
128
133
  // column['ellipsis']= true;
129
134
  s++;
130
135
  let itemType = SupportInputTypes.getSupportControlType(item);
131
- if (s < 10 && item.title != '操作' && item.title != '序号') {
132
- if (hiddenColIds.includes('10000')) {
136
+ if (s < 10 && item.title != "操作" && item.title != "序号") {
137
+ if (hiddenColIds.includes("10000")) {
133
138
  TableUnits.sort(column, itemType);
134
139
  }
135
140
  }
@@ -137,88 +142,100 @@ class ActTable extends React.PureComponent {
137
142
  //序号
138
143
  if (item.title === "序号") {
139
144
  //item.fixed='left';
140
- column['render'] = (text, record, index) => (React.createElement("label", null, index + 1));
141
- item['sorter'] = undefined;
145
+ column["render"] = (text, record, index) => React.createElement("label", null, index + 1);
146
+ item["sorter"] = undefined;
142
147
  }
143
- else if (item.id == '10000') {
144
- column['title'] = React.createElement(Tooltip, { title: '拖拽排序' }, item.title);
145
- column['width'] = 30;
146
- column['dataIndex'] = item.id;
147
- column['className'] = 'drag-visible';
148
- column['render'] = () => React.createElement(DragHandle, null);
148
+ else if (item.id == "10000") {
149
+ column["title"] = React.createElement(Tooltip, { title: "拖拽排序" }, item.title);
150
+ column["width"] = 30;
151
+ column["dataIndex"] = item.id;
152
+ column["className"] = "drag-visible";
153
+ column["render"] = () => React.createElement(DragHandle, null);
149
154
  }
150
- else if (item.id == '20000') { //隐藏
151
- column['align'] = 'center';
152
- column['width'] = 14;
153
- column['title'] = React.createElement(React.Fragment, null, hiddenRowCodes.length > 0 ?
154
- React.createElement(Tooltip, { title: '取消隐藏' },
155
- React.createElement(Button, { style: { marginRight: '0px' }, size: "small", shape: 'circle', icon: React.createElement(EyeOutlined, null), type: 'text', onClick: () => this.unHiden() })) : '');
156
- column['render'] = (text, record) => (React.createElement(Tooltip, { title: '隐藏' },
155
+ else if (item.id == "20000") {
156
+ //隐藏
157
+ column["align"] = "center";
158
+ column["width"] = 14;
159
+ column["title"] = (React.createElement(React.Fragment, null, hiddenRowCodes.length > 0 ? (React.createElement(Tooltip, { title: translate("${取消隐藏}") },
160
+ React.createElement(Button, { style: { marginRight: "0px" }, size: "small", shape: "circle", icon: React.createElement(EyeOutlined, null), type: "text", onClick: () => this.unHiden() }))) : ("")));
161
+ column["render"] = (text, record) => (React.createElement(Tooltip, { title: translate("${隐藏}") },
157
162
  " ",
158
- React.createElement(Button, { style: { marginRight: '0px' }, icon: React.createElement(EyeInvisibleOutlined, null), type: "dashed", size: "small", onClick: () => this.onHide(record.code) })));
163
+ React.createElement(Button, { style: { marginRight: "0px" }, icon: React.createElement(EyeInvisibleOutlined, null), type: "dashed", size: "small", onClick: () => this.onHide(record.code) })));
159
164
  }
160
165
  else if (item.title === "操作") {
161
- column['fixed'] = 'right';
162
- column['align'] = 'center';
163
- column['className'] = 'opsColumn';
164
- column['title'] = React.createElement(React.Fragment, null, "\u64CD \u4F5C");
165
- column['render'] = (text, record) => (React.createElement(Space, { size: [0, 4], wrap: true },
166
- buttons.includes('detail') && showView ?
167
- React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignLeftOutlined, null), onClick: () => showView(record.code) })
166
+ column["fixed"] = "right";
167
+ column["align"] = "center";
168
+ column["className"] = "opsColumn";
169
+ column["title"] = React.createElement(React.Fragment, null, translate("${操作}"));
170
+ column["render"] = (text, record) => (React.createElement(Space, { size: [0, 4], wrap: true },
171
+ buttons.includes("detail") && showView ? (React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignLeftOutlined, null), onClick: () => showView(record.code) })) : (""),
172
+ buttons.includes("customDetail") && showView ? (React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignCenterOutlined, null), onClick: () => showView(record.code, true) })) : (""),
173
+ buttons.includes("dtmplEdit") &&
174
+ doEdit &&
175
+ !readOnly &&
176
+ (!ltmplConfig.editAction ||
177
+ ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ? (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit(record.code, "update") })) : (""),
178
+ (buttons.includes("dtmplCustomEdit") || customEditable) &&
179
+ doEdit &&
180
+ !readOnly &&
181
+ (!ltmplConfig.editAction ||
182
+ ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ? (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(FormOutlined, null), onClick: () => doEdit(record.code, "update", true) })) : (""),
183
+ buttons.includes("copy") && doEdit && !readOnly ? (React.createElement(Tooltip, { title: translate("${复制}") },
184
+ React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(CopyOutlined, null), onClick: () => __awaiter(this, void 0, void 0, function* () {
185
+ //先复制
186
+ let toCustomPage = false;
187
+ if (buttons.includes("dtmplCustomEdit") || customEditable) {
188
+ toCustomPage = true;
189
+ }
190
+ let code = yield HcserviceV3.doCopy(serverKey, sourceId, record.code);
191
+ if (code) {
192
+ doEdit(code, "update", toCustomPage);
193
+ }
194
+ }) }))) : (""),
195
+ ltmplConfig.ractions && !readOnly
196
+ ? ltmplConfig.ractions.map((raction) => {
197
+ return (React.createElement(Button, { key: raction.id, size: "small", type: "dashed", onClick: () => doRAction(raction.id, record.code) }, raction.title));
198
+ })
168
199
  : "",
169
- buttons.includes('customDetail') && showView ?
170
- React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignCenterOutlined, null), onClick: () => showView(record.code, true) })
200
+ ltmplConfig.rowActions &&
201
+ !readOnly &&
202
+ ltmplConfig.rowActions.length > 0
203
+ ? ltmplConfig.rowActions.map((action) => {
204
+ return (React.createElement(Action, { serverKey: serverKey, iconType: "icon", key: action.id, data: [record], actionConfig: action, doAction: this.doRowAction, buttonSize: "small", serial: 1 }));
205
+ })
171
206
  : "",
172
- buttons.includes('dtmplEdit') && doEdit && !readOnly
173
- && (!ltmplConfig.editAction || ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ?
174
- React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit(record.code, 'update') }) : "",
175
- (buttons.includes('dtmplCustomEdit') || customEditable) && doEdit && !readOnly
176
- && (!ltmplConfig.editAction || ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ?
177
- React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(FormOutlined, null), onClick: () => doEdit(record.code, 'update', true) }) : "",
178
- buttons.includes('copy') && doEdit && !readOnly
179
- ?
180
- React.createElement(Tooltip, { title: '复制' },
181
- React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(CopyOutlined, null), onClick: () => __awaiter(this, void 0, void 0, function* () {
182
- //先复制
183
- let toCustomPage = false;
184
- if (buttons.includes('dtmplCustomEdit') || customEditable) {
185
- toCustomPage = true;
186
- }
187
- let code = yield HcserviceV3.doCopy(serverKey, sourceId, record.code);
188
- if (code) {
189
- doEdit(code, 'update', toCustomPage);
190
- }
191
- }) })) : "",
192
- ltmplConfig.ractions && !readOnly ? ltmplConfig.ractions.map((raction) => {
193
- return React.createElement(Button, { key: raction.id, size: "small", type: "dashed", onClick: () => doRAction(raction.id, record.code) }, raction.title);
194
- }) : "",
195
- ltmplConfig.rowActions && !readOnly && ltmplConfig.rowActions.length > 0 ?
196
- ltmplConfig.rowActions.map((action) => {
197
- return React.createElement(Action, { serverKey: serverKey, iconType: 'icon', key: action.id, data: [record], actionConfig: action, doAction: this.doRowAction, buttonSize: 'small', serial: 1 });
198
- }) : "",
199
- ltmplConfig.rowJumps && ltmplConfig.rowJumps.length > 0 && !readOnly ?
200
- ltmplConfig.rowJumps.map((jump) => {
201
- return React.createElement(Button, { key: jump.id, size: "small", type: "dashed", onClick: () => this.doRowJump(jump, record) }, jump.title);
202
- }) : "",
203
- ltmplConfig.rowCQuerys && ltmplConfig.rowCQuerys.length > 0 && !readOnly ?
204
- ltmplConfig.rowCQuerys.map((cquery) => {
207
+ ltmplConfig.rowJumps &&
208
+ ltmplConfig.rowJumps.length > 0 &&
209
+ !readOnly
210
+ ? ltmplConfig.rowJumps.map((jump) => {
211
+ return (React.createElement(Button, { key: jump.id, size: "small", type: "dashed", onClick: () => this.doRowJump(jump, record) }, jump.title));
212
+ })
213
+ : "",
214
+ ltmplConfig.rowCQuerys &&
215
+ ltmplConfig.rowCQuerys.length > 0 &&
216
+ !readOnly
217
+ ? ltmplConfig.rowCQuerys.map((cquery) => {
205
218
  // console.log("record record", record);
206
- return React.createElement(CquickButton, { serverKey: serverKey, key: cquery.id, size: "small", pageType: 'drawer',
219
+ return (React.createElement(CquickButton, { serverKey: serverKey, key: cquery.id, size: "small", pageType: "drawer",
207
220
  // onClick={() => doCQuery(cquery.id)}
208
- cQueryConfig: cquery, mainCode: cquery.mainCodeColId ? record[cquery.mainCodeColId] : record.code });
209
- }) : "",
210
- buttons.includes('singleDelete') && !readOnly && (!ltmplConfig.deleteAction || ActionUtils.isShow(ltmplConfig.deleteAction, [record], undefined)) ?
211
- React.createElement(Popconfirm, { placement: "rightBottom", title: '确定要【删除】此数据吗?', onConfirm: () => {
212
- this.doDeleteByCode(record.code);
213
- }, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", okType: "danger" },
214
- React.createElement(Button, { size: "small", type: "dashed", danger: true },
215
- React.createElement(DeleteOutlined, null)))
216
- : ""));
221
+ cQueryConfig: cquery, mainCode: cquery.mainCodeColId
222
+ ? record[cquery.mainCodeColId]
223
+ : record.code }));
224
+ })
225
+ : "",
226
+ buttons.includes("singleDelete") &&
227
+ !readOnly &&
228
+ (!ltmplConfig.deleteAction ||
229
+ ActionUtils.isShow(ltmplConfig.deleteAction, [record], undefined)) ? (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要[删除]此数据吗}?"), onConfirm: () => {
230
+ this.doDeleteByCode(record.code);
231
+ }, okText: translate("${确定}"), cancelText: translate("${取消}"), okType: "danger" },
232
+ React.createElement(Button, { size: "small", type: "dashed", danger: true },
233
+ React.createElement(DeleteOutlined, null)))) : ("")));
217
234
  }
218
235
  else {
219
- column['className'] = 'opsColumn';
220
- column['render'] = (text, record) => {
221
- return React.createElement(ViewControl, { serverKey: serverKey, fieldConfig: item, value: record[item.id], holderType: 'table' });
236
+ column["className"] = "opsColumn";
237
+ column["render"] = (text, record) => {
238
+ return (React.createElement(ViewControl, { serverKey: serverKey, fieldConfig: item, value: record[item.id], holderType: "table" }));
222
239
  };
223
240
  }
224
241
  });
@@ -226,7 +243,7 @@ class ActTable extends React.PureComponent {
226
243
  };
227
244
  this.handleShowChart = () => {
228
245
  this.setState({
229
- showL2Chart: !this.state.showL2Chart
246
+ showL2Chart: !this.state.showL2Chart,
230
247
  });
231
248
  };
232
249
  this.handleDataAnalysis = () => {
@@ -235,7 +252,7 @@ class ActTable extends React.PureComponent {
235
252
  });
236
253
  };
237
254
  this.unHiden = () => {
238
- const { ltmplConfig, } = this.props;
255
+ const { ltmplConfig } = this.props;
239
256
  const { hiddenColIds, sortedColConfigs } = this.state;
240
257
  this.setState({
241
258
  hiddenRowCodes: [],
@@ -243,7 +260,7 @@ class ActTable extends React.PureComponent {
243
260
  });
244
261
  };
245
262
  this.onHide = (code) => {
246
- const { ltmplConfig, } = this.props;
263
+ const { ltmplConfig } = this.props;
247
264
  const { hiddenRowCodes, hiddenColIds, sortedColConfigs } = this.state;
248
265
  let hiddenCodes = [...hiddenRowCodes, code];
249
266
  this.setState({
@@ -253,7 +270,7 @@ class ActTable extends React.PureComponent {
253
270
  };
254
271
  this.changeViewModel = (viewModels) => {
255
272
  this.setState({
256
- viewModels
273
+ viewModels,
257
274
  });
258
275
  };
259
276
  this.changeHiddenColumns = (hiddenColIds) => {
@@ -276,7 +293,8 @@ class ActTable extends React.PureComponent {
276
293
  loading: true,
277
294
  });
278
295
  let result = yield HcserviceV3.postActions(serverKey, actionId, selectedRows, params);
279
- if (result) { //重新加载数据
296
+ if (result) {
297
+ //重新加载数据
280
298
  this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
281
299
  }
282
300
  else {
@@ -290,12 +308,13 @@ class ActTable extends React.PureComponent {
290
308
  });
291
309
  this.doDelete = () => __awaiter(this, void 0, void 0, function* () {
292
310
  const { sourceId, serverKey } = this.props;
293
- const { selectedRows, hiddenColIds, hiddenRowCodes, sortedColConfigs } = this.state;
311
+ const { selectedRows, hiddenColIds, hiddenRowCodes, sortedColConfigs, } = this.state;
294
312
  this.setState({
295
313
  loading: true,
296
314
  });
297
315
  let result = yield HcserviceV3.deleteData(serverKey, sourceId, selectedRows);
298
- if (result) { //重新加载数据
316
+ if (result) {
317
+ //重新加载数据
299
318
  this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
300
319
  }
301
320
  else {
@@ -310,8 +329,11 @@ class ActTable extends React.PureComponent {
310
329
  this.setState({
311
330
  loading: true,
312
331
  });
313
- let result = yield HcserviceV3.deleteByCode(serverKey, sourceId, [code]);
314
- if (result) { //重新加载数据
332
+ let result = yield HcserviceV3.deleteByCode(serverKey, sourceId, [
333
+ code,
334
+ ]);
335
+ if (result) {
336
+ //重新加载数据
315
337
  this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
316
338
  }
317
339
  else {
@@ -320,8 +342,7 @@ class ActTable extends React.PureComponent {
320
342
  });
321
343
  }
322
344
  });
323
- this.doSelectedCQuery = (cqueryId) => __awaiter(this, void 0, void 0, function* () {
324
- });
345
+ this.doSelectedCQuery = (cqueryId) => __awaiter(this, void 0, void 0, function* () { });
325
346
  this.doJump = (jump, record_) => __awaiter(this, void 0, void 0, function* () {
326
347
  let record = record_.fieldMap ? record_.fieldMap : record_;
327
348
  let url = null;
@@ -330,10 +351,13 @@ class ActTable extends React.PureComponent {
330
351
  path = "/";
331
352
  }
332
353
  //是否以http开头
333
- if (path.indexOf('#') == 0 || url.indexOf('/#') == 0) {
354
+ if (path.indexOf("#") == 0 || url.indexOf("/#") == 0) {
334
355
  url = "";
335
356
  }
336
- else if ((path.indexOf('http://') == 0 || path.indexOf('HTTP://') == 0) || (path.indexOf('https://') == 0 || path.indexOf('HTTPS://') == 0)) {
357
+ else if (path.indexOf("http://") == 0 ||
358
+ path.indexOf("HTTP://") == 0 ||
359
+ path.indexOf("https://") == 0 ||
360
+ path.indexOf("HTTPS://") == 0) {
337
361
  url = path.split("//")[0] + "//";
338
362
  path = path.split("//")[1];
339
363
  }
@@ -349,7 +373,8 @@ class ActTable extends React.PureComponent {
349
373
  let pa = paths[i].substring(1);
350
374
  //根据参数名匹配参数
351
375
  for (let p of routeParamConfigs) {
352
- if (p && pa == p.title) { //赋值替换
376
+ if (p && pa == p.title) {
377
+ //赋值替换
353
378
  let v = record[p.id] ? record[p.id] : p.defaultValue;
354
379
  paths[i] = v;
355
380
  break;
@@ -374,7 +399,7 @@ class ActTable extends React.PureComponent {
374
399
  for (let i = 0; i < searchParamConfigs.length; i++) {
375
400
  let p = searchParamConfigs[i];
376
401
  let v = record[p.id] ? record[p.id] : p.defaultValue;
377
- if (!v && p.title == 'code') {
402
+ if (!v && p.title == "code") {
378
403
  v = record_.code;
379
404
  }
380
405
  searchs[initSearchLength + i] = p.title + "=" + v;
@@ -386,8 +411,10 @@ class ActTable extends React.PureComponent {
386
411
  }
387
412
  url = url + searchs.join("&");
388
413
  }
389
- if (url.indexOf('#') == 0 || url.indexOf('/#') == 0 || url.indexOf('//#') == 0) {
390
- window.location.hash = url.substring(url.indexOf('#') + 1);
414
+ if (url.indexOf("#") == 0 ||
415
+ url.indexOf("/#") == 0 ||
416
+ url.indexOf("//#") == 0) {
417
+ window.location.hash = url.substring(url.indexOf("#") + 1);
391
418
  }
392
419
  else {
393
420
  window.open(url);
@@ -417,81 +444,87 @@ class ActTable extends React.PureComponent {
417
444
  });
418
445
  };
419
446
  this.getAddTmplButton = (classifiedAddConfigs) => {
447
+ const { translate } = this.context;
420
448
  if (classifiedAddConfigs && classifiedAddConfigs.length < 1) {
421
- return "没有分类添加按钮";
449
+ return translate("${没有分类添加按钮}");
422
450
  }
423
451
  return classifiedAddConfigs.map((config) => {
424
- return React.createElement("p", null,
425
- React.createElement(Button, { size: 'small', type: 'text', onClick: () => this.props.doCreate(config.id, false) }, config.title));
452
+ return (React.createElement("p", null,
453
+ React.createElement(Button, { size: "small", type: "text", onClick: () => this.props.doCreate(config.id, false) }, config.title)));
426
454
  });
427
455
  };
428
456
  this.renderHeaderButtons = () => {
429
- let { hiddenColIds, queryKey, viewModels, sortedColConfigs, disabledColIds, showL2Chart, showL2ActTable } = this.state;
430
- const { ltmplConfig, sourceId, doCreate, doSearch, menuId, funcMode, customCreatable, serverKey, readOnly } = this.props;
457
+ let { hiddenColIds, queryKey, viewModels, sortedColConfigs, disabledColIds, showL2Chart, showL2ActTable, } = this.state;
458
+ const { ltmplConfig, sourceId, doCreate, doSearch, menuId, funcMode, customCreatable, serverKey, readOnly, } = this.props;
459
+ const { translate } = this.context;
431
460
  let { buttons } = ltmplConfig;
432
- return React.createElement(React.Fragment, null,
461
+ return (React.createElement(React.Fragment, null,
433
462
  React.createElement(Space, null,
434
- funcMode == "common" && this.criteriaFormUseful() ?
435
- React.createElement(Popover, { trigger: "click", content: this.renderCriteriaForm() },
463
+ funcMode == "common" && this.criteriaFormUseful() ? (React.createElement(Popover, { trigger: "click", content: this.renderCriteriaForm() },
464
+ React.createElement(Button, null,
465
+ React.createElement(SearchOutlined, null)))) : null,
466
+ buttons.includes("dtmplAdd") && doCreate && !readOnly ? (ltmplConfig.classifiedAddConfigs &&
467
+ ltmplConfig.classifiedAddConfigs.length > 0 ? (React.createElement(Popover, { arrow: false, content: this.getAddTmplButton(ltmplConfig.classifiedAddConfigs), placement: "bottomRight" },
468
+ React.createElement(Tooltip, null,
436
469
  React.createElement(Button, null,
437
- React.createElement(SearchOutlined, null)))
438
- : null,
439
- buttons.includes("dtmplAdd") && doCreate && !readOnly ?
440
- ltmplConfig.classifiedAddConfigs && ltmplConfig.classifiedAddConfigs.length > 0 ?
441
- React.createElement(Popover, { arrow: false, content: this.getAddTmplButton(ltmplConfig.classifiedAddConfigs), placement: "bottomRight" },
442
- React.createElement(Tooltip, null,
443
- React.createElement(Button, null,
444
- React.createElement(PlusOutlined, null))))
445
- : React.createElement(Tooltip, { title: '创建' },
446
- React.createElement(Button, { onClick: () => doCreate(null, false) },
447
- React.createElement(PlusOutlined, null)),
448
- " ") : '',
449
- (buttons.includes("dtmplCustomAdd") || customCreatable) && doCreate && !readOnly ?
450
- React.createElement(Tooltip, { title: '创建' },
451
- React.createElement(Button, { onClick: () => doCreate(null, true) },
452
- React.createElement(PlusCircleOutlined, null))) : '',
453
- buttons.includes("importLtmplExcel") && !readOnly ? React.createElement(Tooltip, { title: '导入' },
470
+ React.createElement(PlusOutlined, null))))) : (React.createElement(Tooltip, { title: translate("${创建}") },
471
+ React.createElement(Button, { onClick: () => doCreate(null, false) },
472
+ React.createElement(PlusOutlined, null)),
473
+ " "))) : (""),
474
+ (buttons.includes("dtmplCustomAdd") || customCreatable) &&
475
+ doCreate &&
476
+ !readOnly ? (React.createElement(Tooltip, { title: translate("${创建}") },
477
+ React.createElement(Button, { onClick: () => doCreate(null, true) },
478
+ React.createElement(PlusCircleOutlined, null)))) : (""),
479
+ buttons.includes("importLtmplExcel") && !readOnly ? (React.createElement(Tooltip, { title: translate("${导入}") },
454
480
  " ",
455
- React.createElement(Button, { href: `#/${sourceId}/importer?menuId=${menuId}`, target: '_blank' },
456
- React.createElement(UploadOutlined, null))) : '',
457
- buttons.includes("exportLtmplExcel") && !readOnly ? React.createElement(Popover, { content: React.createElement(ExportFrame //导出组件
458
- , { serverKey: serverKey, queryKey: queryKey, title: ltmplConfig.title }), title: "导出", placement: "bottomRight", trigger: "click" },
459
- React.createElement(Tooltip, { title: '导出' },
481
+ React.createElement(Button, { href: `#/${sourceId}/importer?menuId=${menuId}`, target: "_blank" },
482
+ React.createElement(UploadOutlined, null)))) : (""),
483
+ buttons.includes("exportLtmplExcel") && !readOnly ? (React.createElement(Popover, { content: React.createElement(ExportFrame //导出组件
484
+ , { serverKey: serverKey, queryKey: queryKey, title: ltmplConfig.title }), title: translate("${导出}"), placement: "bottomRight", trigger: "click" },
485
+ React.createElement(Tooltip, { title: translate("${导出}") },
460
486
  React.createElement(Button, { style: {
461
- display: buttons.includes("exportLtmplExcel") && !readOnly ? "inline" : "none",
462
- marginLeft: '5px'
487
+ display: buttons.includes("exportLtmplExcel") && !readOnly
488
+ ? "inline"
489
+ : "none",
490
+ marginLeft: "5px",
463
491
  } },
464
- React.createElement(DownloadOutlined, null)))) : "",
465
- buttons.includes("showChart") ? React.createElement(Tooltip, { title: showL2Chart ? '隐藏图表' : '展示图表' },
492
+ React.createElement(DownloadOutlined, null))))) : (""),
493
+ buttons.includes("showChart") ? (React.createElement(Tooltip, { title: showL2Chart
494
+ ? translate("${隐藏}${图表}")
495
+ : translate("${展示}${图表}") },
466
496
  React.createElement(Button, { onClick: this.handleShowChart },
467
- React.createElement(LineChartOutlined, null))) : "",
468
- buttons.includes("analysis") ? React.createElement(Tooltip, { title: showL2ActTable ? '隐藏数据分析' : '展示数据分析' },
497
+ React.createElement(LineChartOutlined, null)))) : (""),
498
+ buttons.includes("analysis") ? (React.createElement(Tooltip, { title: showL2ActTable
499
+ ? translate("${隐藏}${数据分析}")
500
+ : translate("${展示}${数据分析}") },
469
501
  React.createElement(Button, { onClick: this.handleDataAnalysis },
470
- React.createElement(FundOutlined, null))) : "",
471
- buttons.includes("reStat") && !readOnly ? React.createElement(Restat, { serverKey: serverKey, fields: ltmplConfig.reStatParams, sourceId: sourceId, onfinish: () => doSearch(null) }) : "",
502
+ React.createElement(FundOutlined, null)))) : (""),
503
+ buttons.includes("reStat") && !readOnly ? (React.createElement(Restat, { serverKey: serverKey, fields: ltmplConfig.reStatParams, sourceId: sourceId, onfinish: () => doSearch(null) })) : (""),
472
504
  React.createElement(Popover, { content: React.createElement(Checkbox.Group, { value: viewModels, onChange: this.changeViewModel },
473
- React.createElement(Row, { style: { width: '120px' } },
505
+ React.createElement(Row, { style: { width: "120px" } },
474
506
  React.createElement(Col, { span: 24 },
475
- React.createElement(Checkbox, { value: 'table' }, "\u8868\u683C")),
507
+ React.createElement(Checkbox, { value: "table" }, translate("${表格}"))),
476
508
  React.createElement(Col, { span: 24 },
477
- React.createElement(Checkbox, { value: 'verticalList' }, "\u7EB5\u5411\u5217\u8868")))), title: "\u89C6\u56FE", placement: "bottomRight", trigger: "click" },
478
- React.createElement(Tooltip, { title: '选择视图' },
509
+ React.createElement(Checkbox, { value: "verticalList" }, translate("纵向列表"))))), title: translate("${视图}"), placement: "bottomRight", trigger: "click" },
510
+ React.createElement(Tooltip, { title: translate("${选择视图}") },
479
511
  React.createElement(Button, null,
480
512
  React.createElement(RetweetOutlined, null)))),
481
- React.createElement(Popover, { content: React.createElement(ColumnSelector, { columns: sortedColConfigs, disabledColIds: disabledColIds, hiddenColIds: hiddenColIds, onChangeColSort: this.onChangeColSort, onChangeHiddenCols: this.changeHiddenColumns }), title: '排序和选择列', placement: "bottomRight", trigger: "click" },
482
- React.createElement(Tooltip, { title: '点击排序和选择列' },
513
+ React.createElement(Popover, { content: React.createElement(ColumnSelector, { columns: sortedColConfigs, disabledColIds: disabledColIds, hiddenColIds: hiddenColIds, onChangeColSort: this.onChangeColSort, onChangeHiddenCols: this.changeHiddenColumns }), title: translate("${排序和选择列}"), placement: "bottomRight", trigger: "click" },
514
+ React.createElement(Tooltip, { title: translate("${点击排序和选择列}") },
483
515
  React.createElement(Button, null,
484
516
  React.createElement(TableOutlined, null)))),
485
- doSearch ?
486
- React.createElement(Button, { className: "hoverbig", title: "\u5237\u65B0", onClick: () => {
487
- doSearch(null);
488
- } },
489
- React.createElement(ReloadOutlined, null)) : ""));
517
+ doSearch ? (React.createElement(Button, { className: "hoverbig", title: translate("${刷新}"), onClick: () => {
518
+ doSearch(null);
519
+ } },
520
+ React.createElement(ReloadOutlined, null))) : (""))));
490
521
  };
491
522
  this.criteriaFormUseful = () => {
492
523
  const { ltmplConfig } = this.props;
493
- let { buttons, criterias, } = ltmplConfig;
494
- if ((buttons.includes('query') && ((criterias && criterias.length > 0) || buttons.includes('drilling'))) ||
524
+ let { buttons, criterias } = ltmplConfig;
525
+ if ((buttons.includes("query") &&
526
+ ((criterias && criterias.length > 0) ||
527
+ buttons.includes("drilling"))) ||
495
528
  this.checkBoxUseful()) {
496
529
  return true;
497
530
  }
@@ -502,8 +535,9 @@ class ActTable extends React.PureComponent {
502
535
  this.checkBoxUseful = () => {
503
536
  const { ltmplConfig } = this.props;
504
537
  let { buttons, jumps, actions } = ltmplConfig;
505
- if (buttons.includes('batchDelete') ||
506
- (actions && actions.length > 0) || (jumps && jumps.length > 0)) {
538
+ if (buttons.includes("batchDelete") ||
539
+ (actions && actions.length > 0) ||
540
+ (jumps && jumps.length > 0)) {
507
541
  return true;
508
542
  }
509
543
  else {
@@ -513,20 +547,20 @@ class ActTable extends React.PureComponent {
513
547
  this.renderCriteriaForm = () => {
514
548
  let { loading, selectedRows, selectedDatas } = this.state;
515
549
  let { ltmplConfig, doSearch, criteriaData, serverKey } = this.props;
516
- return React.createElement(CriteriaForm, { serverKey: serverKey, loading: loading, selectedDatas: selectedDatas, selectedRows: selectedRows, ltmplConfig: ltmplConfig, data: criteriaData, doCQuery: this.doSelectedCQuery, doAction: this.doSelectedAction, doDelete: this.doDelete, doJump: this.doSelectedJump, doSearch: doSearch });
550
+ return (React.createElement(CriteriaForm, { serverKey: serverKey, loading: loading, selectedDatas: selectedDatas, selectedRows: selectedRows, ltmplConfig: ltmplConfig, data: criteriaData, doCQuery: this.doSelectedCQuery, doAction: this.doSelectedAction, doDelete: this.doDelete, doJump: this.doSelectedJump, doSearch: doSearch }));
517
551
  };
518
552
  this.renderContent = () => {
519
- let { queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable } = this.state;
520
- let { sourceId, ltmplConfig, funcMode, title, collapsible, pageSize, pageNo, onChangePage, serverKey } = this.props;
553
+ let { queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable, } = this.state;
554
+ let { sourceId, ltmplConfig, funcMode, title, collapsible, pageSize, pageNo, onChangePage, serverKey, } = this.props;
521
555
  if (!ltmplConfig || !sourceId) {
522
- return React.createElement(React.Fragment, null,
556
+ return (React.createElement(React.Fragment, null,
523
557
  React.createElement(Card, { loading: loading }),
524
- React.createElement(Table, { loading: loading }));
558
+ React.createElement(Table, { loading: loading })));
525
559
  }
526
560
  let tableColumns = this.buildTableColumns(ltmplConfig, hiddenColIds, hiddenRowCodes, sortedColConfigs);
527
561
  let { buttons } = ltmplConfig;
528
562
  let displayCriteriaCard = false;
529
- if (funcMode == 'simple' || funcMode == 'common') {
563
+ if (funcMode == "simple" || funcMode == "common") {
530
564
  displayCriteriaCard = false;
531
565
  }
532
566
  else if (this.criteriaFormUseful()) {
@@ -541,30 +575,35 @@ class ActTable extends React.PureComponent {
541
575
  }
542
576
  }
543
577
  return (React.createElement(React.Fragment, null,
544
- buttons.includes("analysis") && showL2ActTable ? React.createElement("div", null,
578
+ buttons.includes("analysis") && showL2ActTable ? (React.createElement("div", null,
545
579
  React.createElement(L2ActTable, { serverKey: serverKey, innerQueryKey: queryKey.key, sourceId: sourceId }),
546
- React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff", }, plain: true })) : "",
580
+ React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff" }, plain: true }))) : (""),
547
581
  React.createElement("div", { className: "actTable" },
548
- funcMode == 'complete' || funcMode == 'common' ?
549
- collapsible ? null :
550
- React.createElement("span", null,
551
- ltmplConfig.header ? React.createElement("div", { style: { padding: '6px' }, dangerouslySetInnerHTML: { __html: ltmplConfig.header } }) : null,
552
- React.createElement("h3", null,
553
- " ",
554
- title ? title : ltmplConfig.title,
555
- React.createElement("p", { className: "fr" }, this.renderHeaderButtons()))) : null,
556
- displayCriteriaCard ?
557
- this.renderCriteriaForm() : null,
558
- loading ? "" : React.createElement(QueryTable, { serverKey: serverKey, onChangePage: onChangePage, viewModels: viewModels, primaryColumn: ltmplConfig.primaryColumn, columnConfigs: columnConfigs, maxSelectedRows: this.checkBoxUseful() ? 10000 : -1, selectedRows: selectedRows, columns: tableColumns, hiddenRowCodes: hiddenRowCodes, pageInfo: { pageNo: pageNo ? pageNo : 1, pageSize: pageSize ? pageSize : ltmplConfig.defaultPageSize }, queryKey: queryKey, onChangeRowSelection: this.changeRowSelection }),
559
- ltmplConfig.footer ? React.createElement("div", { style: { padding: '6px' }, dangerouslySetInnerHTML: { __html: ltmplConfig.footer } }) : null)));
582
+ funcMode == "complete" || funcMode == "common" ? (collapsible ? null : (React.createElement("span", null,
583
+ ltmplConfig.header ? (React.createElement("div", { style: { padding: "6px" }, dangerouslySetInnerHTML: { __html: ltmplConfig.header } })) : null,
584
+ React.createElement("h3", null,
585
+ " ",
586
+ title ? title : ltmplConfig.title,
587
+ React.createElement("p", { className: "fr" }, this.renderHeaderButtons()))))) : null,
588
+ displayCriteriaCard ? this.renderCriteriaForm() : null,
589
+ loading ? ("") : (React.createElement(QueryTable, { serverKey: serverKey, onChangePage: onChangePage, viewModels: viewModels, primaryColumn: ltmplConfig.primaryColumn, columnConfigs: columnConfigs, maxSelectedRows: this.checkBoxUseful() ? 10000 : -1, selectedRows: selectedRows, columns: tableColumns, hiddenRowCodes: hiddenRowCodes, pageInfo: {
590
+ pageNo: pageNo ? pageNo : 1,
591
+ pageSize: pageSize ? pageSize : ltmplConfig.defaultPageSize,
592
+ }, queryKey: queryKey, onChangeRowSelection: this.changeRowSelection })),
593
+ ltmplConfig.footer ? (React.createElement("div", { style: { padding: "6px" }, dangerouslySetInnerHTML: { __html: ltmplConfig.footer } })) : null)));
560
594
  };
561
595
  }
562
596
  componentDidMount() {
563
597
  return __awaiter(this, void 0, void 0, function* () {
564
598
  const { ltmplConfig } = this.props;
599
+ const { translate } = this.context;
565
600
  let sortedColConfigs = undefined;
566
601
  if (ltmplConfig) {
567
- sortedColConfigs = [{ id: '10000', title: '排序' }, ...ltmplConfig.columns, { id: '20000', title: '隐藏' }];
602
+ sortedColConfigs = [
603
+ { id: "10000", title: translate("${排序}") },
604
+ ...ltmplConfig.columns,
605
+ { id: "20000", title: translate("${隐藏}") },
606
+ ];
568
607
  }
569
608
  this.loadData(defaultDisabledColIds, [], sortedColConfigs);
570
609
  });
@@ -572,21 +611,34 @@ class ActTable extends React.PureComponent {
572
611
  componentDidUpdate(prevProps) {
573
612
  return __awaiter(this, void 0, void 0, function* () {
574
613
  const { sourceId, criteriaData, ltmplConfig } = this.props;
575
- let { ltmplConfig: preLtmplConfig, criteriaData: preCriteriaData, sourceId: preSourceId } = prevProps;
614
+ const { translate } = this.context;
615
+ let { ltmplConfig: preLtmplConfig, criteriaData: preCriteriaData, sourceId: preSourceId, } = prevProps;
576
616
  let { hiddenColIds, sortedColConfigs } = this.state;
577
617
  if ((sourceId && preSourceId != sourceId) ||
578
- (ltmplConfig && (!preLtmplConfig || ltmplConfig.id != preLtmplConfig.id)) ||
579
- (Units.transQueryParamsToStr(criteriaData, false, ['pageSize', 'pageNo']) != Units.transQueryParamsToStr(preCriteriaData, false, ['pageSize', 'pageNo']))) {
618
+ (ltmplConfig &&
619
+ (!preLtmplConfig || ltmplConfig.id != preLtmplConfig.id)) ||
620
+ Units.transQueryParamsToStr(criteriaData, false, [
621
+ "pageSize",
622
+ "pageNo",
623
+ ]) !=
624
+ Units.transQueryParamsToStr(preCriteriaData, false, [
625
+ "pageSize",
626
+ "pageNo",
627
+ ])) {
580
628
  if (ltmplConfig.id == preLtmplConfig.id) {
581
629
  this.loadData(hiddenColIds, [], sortedColConfigs);
582
630
  }
583
631
  else {
584
632
  let sColConfigs = undefined;
585
633
  if (ltmplConfig) {
586
- sColConfigs = [{ id: '10000', title: '排序' }, ...ltmplConfig.columns, { id: '20000', title: '隐藏' }];
634
+ sColConfigs = [
635
+ { id: "10000", title: translate("${排序}") },
636
+ ...ltmplConfig.columns,
637
+ { id: "20000", title: translate("${隐藏}") },
638
+ ];
587
639
  }
588
640
  this.setState({
589
- viewModels: ['table'],
641
+ viewModels: ["table"],
590
642
  });
591
643
  this.loadData(defaultDisabledColIds, [], sColConfigs);
592
644
  }
@@ -595,26 +647,25 @@ class ActTable extends React.PureComponent {
595
647
  }
596
648
  render() {
597
649
  let { queryKey, loading } = this.state;
598
- let { sourceId, ltmplConfig, title, collapsible, initCollapse, tip } = this.props;
650
+ let { sourceId, ltmplConfig, title, collapsible, initCollapse, tip, } = this.props;
599
651
  if (!ltmplConfig || !sourceId) {
600
- return React.createElement(React.Fragment, null,
652
+ return (React.createElement(React.Fragment, null,
601
653
  React.createElement(Card, { loading: loading }),
602
- React.createElement(Table, { loading: loading }));
654
+ React.createElement(Table, { loading: loading })));
603
655
  }
604
- return React.createElement(React.Fragment, null,
656
+ return (React.createElement(React.Fragment, null,
605
657
  " ",
606
- collapsible ?
607
- React.createElement(CollapseCard, { initCollapse: initCollapse, title: React.createElement(React.Fragment, null,
608
- title ? title : ltmplConfig.title,
609
- React.createElement(ToolTipBar, { content: tip ? tip : ltmplConfig ? ltmplConfig.tip : null })), id: queryKey + ltmplConfig.id, className: `hoverable`, headStyle: { background: "#f2f4f5" }, loading: loading, bodyStyle: { padding: '6px' },
610
- //暂时注释掉,后续要支持配置。
611
- extra: this.renderHeaderButtons() }, this.renderContent()) :
612
- React.createElement(React.Fragment, null, this.renderContent()));
658
+ collapsible ? (React.createElement(CollapseCard, { initCollapse: initCollapse, title: React.createElement(React.Fragment, null,
659
+ title ? title : ltmplConfig.title,
660
+ React.createElement(ToolTipBar, { content: tip ? tip : ltmplConfig ? ltmplConfig.tip : null })), id: queryKey + ltmplConfig.id, className: `hoverable`, headStyle: { background: "#f2f4f5" }, loading: loading, bodyStyle: { padding: "6px" },
661
+ //暂时注释掉,后续要支持配置。
662
+ extra: this.renderHeaderButtons() }, this.renderContent())) : (React.createElement(React.Fragment, null, this.renderContent()))));
613
663
  }
614
664
  }
665
+ ActTable.contextType = LocaleContext;
615
666
  ActTable.defaultProps = {
616
667
  criteriaData: {},
617
- funcMode: 'complete',
668
+ funcMode: "complete",
618
669
  collapsible: false,
619
670
  initCollapse: false,
620
671
  readOnly: false,