aldehyde 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (505) hide show
  1. package/dist/aldehyde.js +1 -1
  2. package/dist/chemstruc-graph.js +1 -1
  3. package/dist/html-editor-draft.js +1 -1
  4. package/dist/index.html +1 -1
  5. package/dist/signature.js +1 -1
  6. package/lib/public/programConfig.json +10 -0
  7. package/lib/src/components/chart/antd/chart-utils.d.ts +7 -0
  8. package/lib/src/components/chart/antd/chart-utils.d.ts.map +1 -0
  9. package/lib/src/components/chart/antd/chart-utils.js +46 -0
  10. package/lib/src/components/chart/antd/chart-utils.js.map +1 -0
  11. package/lib/src/components/chart/antd/column-chart-sub.d.ts +7 -0
  12. package/lib/src/components/chart/antd/column-chart-sub.d.ts.map +1 -0
  13. package/lib/src/components/chart/antd/column-chart-sub.js +50 -0
  14. package/lib/src/components/chart/antd/column-chart-sub.js.map +1 -0
  15. package/lib/src/components/chart/antd/line-chart-sub.d.ts +7 -0
  16. package/lib/src/components/chart/antd/line-chart-sub.d.ts.map +1 -0
  17. package/lib/src/components/chart/antd/line-chart-sub.js +49 -0
  18. package/lib/src/components/chart/antd/line-chart-sub.js.map +1 -0
  19. package/lib/src/components/chart/antd/pie-chart-sub.d.ts +7 -0
  20. package/lib/src/components/chart/antd/pie-chart-sub.d.ts.map +1 -0
  21. package/lib/src/components/chart/antd/pie-chart-sub.js +37 -0
  22. package/lib/src/components/chart/antd/pie-chart-sub.js.map +1 -0
  23. package/lib/src/components/chart/antd/statview-d2-chart.d.ts +17 -0
  24. package/lib/src/components/chart/antd/statview-d2-chart.d.ts.map +1 -0
  25. package/lib/src/components/chart/antd/statview-d2-chart.js +108 -0
  26. package/lib/src/components/chart/antd/statview-d2-chart.js.map +1 -0
  27. package/lib/src/components/chart/statview-l2-chart.d.ts +23 -0
  28. package/lib/src/components/chart/statview-l2-chart.d.ts.map +1 -0
  29. package/lib/src/components/chart/statview-l2-chart.js +64 -0
  30. package/lib/src/components/chart/statview-l2-chart.js.map +1 -0
  31. package/lib/src/components/controls/action/index.d.ts +47 -0
  32. package/lib/src/components/controls/action/index.d.ts.map +1 -0
  33. package/lib/src/components/controls/action/index.js +165 -0
  34. package/lib/src/components/controls/action/index.js.map +1 -0
  35. package/lib/src/components/controls/action/utils.d.ts +9 -0
  36. package/lib/src/components/controls/action/utils.d.ts.map +1 -0
  37. package/{src/components/controls/action/utils.tsx → lib/src/components/controls/action/utils.js} +41 -53
  38. package/lib/src/components/controls/action/utils.js.map +1 -0
  39. package/lib/src/components/controls/auto-complete/index.d.ts +7 -0
  40. package/lib/src/components/controls/auto-complete/index.d.ts.map +1 -0
  41. package/lib/src/components/controls/auto-complete/index.js +53 -0
  42. package/lib/src/components/controls/auto-complete/index.js.map +1 -0
  43. package/lib/src/components/controls/chemstruc/graph.d.ts +31 -0
  44. package/lib/src/components/controls/chemstruc/graph.d.ts.map +1 -0
  45. package/lib/src/components/controls/chemstruc/graph.js +121 -0
  46. package/lib/src/components/controls/chemstruc/graph.js.map +1 -0
  47. package/lib/src/components/controls/collapse-card/index.d.ts +20 -0
  48. package/lib/src/components/controls/collapse-card/index.d.ts.map +1 -0
  49. package/lib/src/components/controls/collapse-card/index.js +63 -0
  50. package/lib/src/components/controls/collapse-card/index.js.map +1 -0
  51. package/lib/src/components/controls/color-picker/index.d.ts +19 -0
  52. package/lib/src/components/controls/color-picker/index.d.ts.map +1 -0
  53. package/lib/src/components/controls/color-picker/index.js +61 -0
  54. package/lib/src/components/controls/color-picker/index.js.map +1 -0
  55. package/lib/src/components/controls/cquery/cquick-button.d.ts +20 -0
  56. package/lib/src/components/controls/cquery/cquick-button.d.ts.map +1 -0
  57. package/lib/src/components/controls/cquery/cquick-button.js +67 -0
  58. package/lib/src/components/controls/cquery/cquick-button.js.map +1 -0
  59. package/lib/src/components/controls/date-picker/index.d.ts +7 -0
  60. package/lib/src/components/controls/date-picker/index.d.ts.map +1 -0
  61. package/lib/src/components/controls/date-picker/index.js +91 -0
  62. package/lib/src/components/controls/date-picker/index.js.map +1 -0
  63. package/lib/src/components/controls/entity-select/entity-select.d.ts +53 -0
  64. package/lib/src/components/controls/entity-select/entity-select.d.ts.map +1 -0
  65. package/lib/src/components/controls/entity-select/entity-select.js +227 -0
  66. package/lib/src/components/controls/entity-select/entity-select.js.map +1 -0
  67. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts +20 -0
  68. package/lib/src/components/controls/entity-select/popover-entity-select.d.ts.map +1 -0
  69. package/lib/src/components/controls/entity-select/popover-entity-select.js +80 -0
  70. package/lib/src/components/controls/entity-select/popover-entity-select.js.map +1 -0
  71. package/lib/src/components/controls/entry-control.d.ts +11 -0
  72. package/lib/src/components/controls/entry-control.d.ts.map +1 -0
  73. package/lib/src/components/controls/entry-control.js +171 -0
  74. package/lib/src/components/controls/entry-control.js.map +1 -0
  75. package/lib/src/components/controls/enum-badge/index.d.ts +7 -0
  76. package/lib/src/components/controls/enum-badge/index.d.ts.map +1 -0
  77. package/lib/src/components/controls/enum-badge/index.js +14 -0
  78. package/lib/src/components/controls/enum-badge/index.js.map +1 -0
  79. package/lib/src/components/controls/enum-tag/index.d.ts +7 -0
  80. package/lib/src/components/controls/enum-tag/index.d.ts.map +1 -0
  81. package/lib/src/components/controls/enum-tag/index.js +18 -0
  82. package/lib/src/components/controls/enum-tag/index.js.map +1 -0
  83. package/lib/src/components/controls/file-view/drawer-file-view.d.ts +18 -0
  84. package/lib/src/components/controls/file-view/drawer-file-view.d.ts.map +1 -0
  85. package/lib/src/components/controls/file-view/drawer-file-view.js +51 -0
  86. package/lib/src/components/controls/file-view/drawer-file-view.js.map +1 -0
  87. package/lib/src/components/controls/file-view/index.d.ts +23 -0
  88. package/lib/src/components/controls/file-view/index.d.ts.map +1 -0
  89. package/lib/src/components/controls/file-view/index.js +130 -0
  90. package/lib/src/components/controls/file-view/index.js.map +1 -0
  91. package/lib/src/components/controls/html-editor/draft.d.ts +22 -0
  92. package/lib/src/components/controls/html-editor/draft.d.ts.map +1 -0
  93. package/lib/src/components/controls/html-editor/draft.js +122 -0
  94. package/lib/src/components/controls/html-editor/draft.js.map +1 -0
  95. package/lib/src/components/controls/input-number/index.d.ts +7 -0
  96. package/lib/src/components/controls/input-number/index.d.ts.map +1 -0
  97. package/lib/src/components/controls/input-number/index.js +67 -0
  98. package/lib/src/components/controls/input-number/index.js.map +1 -0
  99. package/lib/src/components/controls/input-range/index.d.ts +7 -0
  100. package/lib/src/components/controls/input-range/index.d.ts.map +1 -0
  101. package/lib/src/components/controls/input-range/index.js +28 -0
  102. package/lib/src/components/controls/input-range/index.js.map +1 -0
  103. package/lib/src/components/controls/progress/index.d.ts +7 -0
  104. package/lib/src/components/controls/progress/index.d.ts.map +1 -0
  105. package/lib/src/components/controls/progress/index.js +45 -0
  106. package/lib/src/components/controls/progress/index.js.map +1 -0
  107. package/lib/src/components/controls/relation-existion/index.d.ts +20 -0
  108. package/lib/src/components/controls/relation-existion/index.d.ts.map +1 -0
  109. package/lib/src/components/controls/relation-existion/index.js +75 -0
  110. package/lib/src/components/controls/relation-existion/index.js.map +1 -0
  111. package/lib/src/components/controls/rfield/index.d.ts +29 -0
  112. package/lib/src/components/controls/rfield/index.d.ts.map +1 -0
  113. package/lib/src/components/controls/rfield/index.js +130 -0
  114. package/lib/src/components/controls/rfield/index.js.map +1 -0
  115. package/lib/src/components/controls/signature/index.d.ts +31 -0
  116. package/lib/src/components/controls/signature/index.d.ts.map +1 -0
  117. package/lib/src/components/controls/signature/index.js +129 -0
  118. package/lib/src/components/controls/signature/index.js.map +1 -0
  119. package/lib/src/components/controls/steps/index.d.ts +7 -0
  120. package/lib/src/components/controls/steps/index.d.ts.map +1 -0
  121. package/lib/src/components/controls/steps/index.js +42 -0
  122. package/lib/src/components/controls/steps/index.js.map +1 -0
  123. package/lib/src/components/controls/text/ellipsis-text.d.ts +22 -0
  124. package/lib/src/components/controls/text/ellipsis-text.d.ts.map +1 -0
  125. package/lib/src/components/controls/text/ellipsis-text.js +46 -0
  126. package/lib/src/components/controls/text/ellipsis-text.js.map +1 -0
  127. package/lib/src/components/controls/upload/index.d.ts +15 -0
  128. package/lib/src/components/controls/upload/index.d.ts.map +1 -0
  129. package/lib/src/components/controls/upload/index.js +100 -0
  130. package/lib/src/components/controls/upload/index.js.map +1 -0
  131. package/lib/src/components/controls/view-control.d.ts +10 -0
  132. package/lib/src/components/controls/view-control.d.ts.map +1 -0
  133. package/lib/src/components/controls/view-control.js +150 -0
  134. package/lib/src/components/controls/view-control.js.map +1 -0
  135. package/lib/src/components/detail/button/cquery-button-bar.d.ts +16 -0
  136. package/lib/src/components/detail/button/cquery-button-bar.d.ts.map +1 -0
  137. package/lib/src/components/detail/button/cquery-button-bar.js +75 -0
  138. package/lib/src/components/detail/button/cquery-button-bar.js.map +1 -0
  139. package/lib/src/components/detail/button/submit-button-bar.d.ts +19 -0
  140. package/lib/src/components/detail/button/submit-button-bar.d.ts.map +1 -0
  141. package/lib/src/components/detail/button/submit-button-bar.js +99 -0
  142. package/lib/src/components/detail/button/submit-button-bar.js.map +1 -0
  143. package/lib/src/components/detail/edit/dtmpl-edit.d.ts +48 -0
  144. package/lib/src/components/detail/edit/dtmpl-edit.d.ts.map +1 -0
  145. package/lib/src/components/detail/edit/dtmpl-edit.js +190 -0
  146. package/lib/src/components/detail/edit/dtmpl-edit.js.map +1 -0
  147. package/lib/src/components/detail/edit/fields-edit-card.d.ts +39 -0
  148. package/lib/src/components/detail/edit/fields-edit-card.d.ts.map +1 -0
  149. package/lib/src/components/detail/edit/fields-edit-card.js +64 -0
  150. package/lib/src/components/detail/edit/fields-edit-card.js.map +1 -0
  151. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts +51 -0
  152. package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts.map +1 -0
  153. package/lib/src/components/detail/edit/modal-dtmpl-edit.js +168 -0
  154. package/lib/src/components/detail/edit/modal-dtmpl-edit.js.map +1 -0
  155. package/lib/src/components/detail/edit/modal-row-edit.d.ts +31 -0
  156. package/lib/src/components/detail/edit/modal-row-edit.d.ts.map +1 -0
  157. package/lib/src/components/detail/edit/modal-row-edit.js +56 -0
  158. package/lib/src/components/detail/edit/modal-row-edit.js.map +1 -0
  159. package/lib/src/components/detail/edit/post-result/index.d.ts +17 -0
  160. package/lib/src/components/detail/edit/post-result/index.d.ts.map +1 -0
  161. package/lib/src/components/detail/edit/post-result/index.js +28 -0
  162. package/lib/src/components/detail/edit/post-result/index.js.map +1 -0
  163. package/lib/src/components/detail/edit/row-edit-card.d.ts +42 -0
  164. package/lib/src/components/detail/edit/row-edit-card.d.ts.map +1 -0
  165. package/lib/src/components/detail/edit/row-edit-card.js +84 -0
  166. package/lib/src/components/detail/edit/row-edit-card.js.map +1 -0
  167. package/lib/src/components/detail/edit/row-editor.d.ts +31 -0
  168. package/lib/src/components/detail/edit/row-editor.d.ts.map +1 -0
  169. package/lib/src/components/detail/edit/row-editor.js +55 -0
  170. package/lib/src/components/detail/edit/row-editor.js.map +1 -0
  171. package/lib/src/components/detail/rightbar/index.d.ts +20 -0
  172. package/lib/src/components/detail/rightbar/index.d.ts.map +1 -0
  173. package/lib/src/components/detail/rightbar/index.js +51 -0
  174. package/lib/src/components/detail/rightbar/index.js.map +1 -0
  175. package/lib/src/components/detail/view/act-dtmpl-view.d.ts +46 -0
  176. package/lib/src/components/detail/view/act-dtmpl-view.d.ts.map +1 -0
  177. package/lib/src/components/detail/view/act-dtmpl-view.js +110 -0
  178. package/lib/src/components/detail/view/act-dtmpl-view.js.map +1 -0
  179. package/lib/src/components/detail/view/dtmpl-view.d.ts +42 -0
  180. package/lib/src/components/detail/view/dtmpl-view.d.ts.map +1 -0
  181. package/lib/src/components/detail/view/dtmpl-view.js +111 -0
  182. package/lib/src/components/detail/view/dtmpl-view.js.map +1 -0
  183. package/lib/src/components/detail/view/field-view-group.d.ts +17 -0
  184. package/lib/src/components/detail/view/field-view-group.d.ts.map +1 -0
  185. package/lib/src/components/detail/view/field-view-group.js +51 -0
  186. package/lib/src/components/detail/view/field-view-group.js.map +1 -0
  187. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts +27 -0
  188. package/lib/src/components/detail/view/modal-dtmpl-view.d.ts.map +1 -0
  189. package/lib/src/components/detail/view/modal-dtmpl-view.js +32 -0
  190. package/lib/src/components/detail/view/modal-dtmpl-view.js.map +1 -0
  191. package/lib/src/components/detail/view/snapshot-timeline.d.ts +32 -0
  192. package/lib/src/components/detail/view/snapshot-timeline.d.ts.map +1 -0
  193. package/lib/src/components/detail/view/snapshot-timeline.js +90 -0
  194. package/lib/src/components/detail/view/snapshot-timeline.js.map +1 -0
  195. package/lib/src/components/exportor/export-frame.d.ts +50 -0
  196. package/lib/src/components/exportor/export-frame.d.ts.map +1 -0
  197. package/lib/src/components/exportor/export-frame.js +140 -0
  198. package/lib/src/components/exportor/export-frame.js.map +1 -0
  199. package/lib/src/components/exportor/index.d.ts +16 -0
  200. package/lib/src/components/exportor/index.d.ts.map +1 -0
  201. package/lib/src/components/exportor/index.js +44 -0
  202. package/lib/src/components/exportor/index.js.map +1 -0
  203. package/lib/src/components/form/criteria-form.d.ts +19 -0
  204. package/lib/src/components/form/criteria-form.d.ts.map +1 -0
  205. package/lib/src/components/form/criteria-form.js +167 -0
  206. package/lib/src/components/form/criteria-form.js.map +1 -0
  207. package/lib/src/components/form/dtmpl-form.d.ts +37 -0
  208. package/lib/src/components/form/dtmpl-form.d.ts.map +1 -0
  209. package/lib/src/components/form/dtmpl-form.js +213 -0
  210. package/lib/src/components/form/dtmpl-form.js.map +1 -0
  211. package/lib/src/components/form/field-group-form.d.ts +21 -0
  212. package/lib/src/components/form/field-group-form.d.ts.map +1 -0
  213. package/lib/src/components/form/field-group-form.js +58 -0
  214. package/lib/src/components/form/field-group-form.js.map +1 -0
  215. package/lib/src/components/form/fields-form.d.ts +20 -0
  216. package/lib/src/components/form/fields-form.d.ts.map +1 -0
  217. package/lib/src/components/form/fields-form.js +39 -0
  218. package/lib/src/components/form/fields-form.js.map +1 -0
  219. package/lib/src/components/form/form-Item-group.d.ts +22 -0
  220. package/lib/src/components/form/form-Item-group.d.ts.map +1 -0
  221. package/lib/src/components/form/form-Item-group.js +60 -0
  222. package/lib/src/components/form/form-Item-group.js.map +1 -0
  223. package/lib/src/components/import/excel-import.d.ts +48 -0
  224. package/lib/src/components/import/excel-import.d.ts.map +1 -0
  225. package/lib/src/components/import/excel-import.js +234 -0
  226. package/lib/src/components/import/excel-import.js.map +1 -0
  227. package/lib/src/components/layout/MainPage.d.ts +32 -0
  228. package/lib/src/components/layout/MainPage.d.ts.map +1 -0
  229. package/lib/src/components/layout/MainPage.js +202 -0
  230. package/lib/src/components/layout/MainPage.js.map +1 -0
  231. package/lib/src/components/layout/header/index.d.ts +16 -0
  232. package/lib/src/components/layout/header/index.d.ts.map +1 -0
  233. package/lib/src/components/layout/header/index.js +37 -0
  234. package/lib/src/components/layout/header/index.js.map +1 -0
  235. package/lib/src/components/layout/menu/block.d.ts +9 -0
  236. package/lib/src/components/layout/menu/block.d.ts.map +1 -0
  237. package/lib/src/components/layout/menu/block.js +48 -0
  238. package/lib/src/components/layout/menu/block.js.map +1 -0
  239. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts +24 -0
  240. package/lib/src/components/layout/menu/l2menu-message-bar.d.ts.map +1 -0
  241. package/lib/src/components/layout/menu/l2menu-message-bar.js +97 -0
  242. package/lib/src/components/layout/menu/l2menu-message-bar.js.map +1 -0
  243. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts +30 -0
  244. package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts.map +1 -0
  245. package/lib/src/components/layout/menu/l2menu-quick-bar.js +94 -0
  246. package/lib/src/components/layout/menu/l2menu-quick-bar.js.map +1 -0
  247. package/lib/src/components/layout/menu/menu-2layers.d.ts +9 -0
  248. package/lib/src/components/layout/menu/menu-2layers.d.ts.map +1 -0
  249. package/lib/src/components/layout/menu/menu-2layers.js +63 -0
  250. package/lib/src/components/layout/menu/menu-2layers.js.map +1 -0
  251. package/lib/src/components/layout/menu/menu-render.d.ts +8 -0
  252. package/lib/src/components/layout/menu/menu-render.d.ts.map +1 -0
  253. package/lib/src/components/layout/menu/menu-render.js +44 -0
  254. package/lib/src/components/layout/menu/menu-render.js.map +1 -0
  255. package/lib/src/components/layout/menu/reset-password.d.ts +25 -0
  256. package/lib/src/components/layout/menu/reset-password.d.ts.map +1 -0
  257. package/lib/src/components/layout/menu/reset-password.js +113 -0
  258. package/lib/src/components/layout/menu/reset-password.js.map +1 -0
  259. package/lib/src/components/layout/menu/user-bar.d.ts +19 -0
  260. package/lib/src/components/layout/menu/user-bar.d.ts.map +1 -0
  261. package/lib/src/components/layout/menu/user-bar.js +61 -0
  262. package/lib/src/components/layout/menu/user-bar.js.map +1 -0
  263. package/lib/src/components/layout/menu/userinfo-bar.d.ts +18 -0
  264. package/lib/src/components/layout/menu/userinfo-bar.d.ts.map +1 -0
  265. package/lib/src/components/layout/menu/userinfo-bar.js +50 -0
  266. package/lib/src/components/layout/menu/userinfo-bar.js.map +1 -0
  267. package/lib/src/components/layout/sidebar/index.d.ts +12 -0
  268. package/lib/src/components/layout/sidebar/index.d.ts.map +1 -0
  269. package/lib/src/components/layout/sidebar/index.js +19 -0
  270. package/lib/src/components/layout/sidebar/index.js.map +1 -0
  271. package/lib/src/components/module/dtmpl-page.d.ts +19 -0
  272. package/lib/src/components/module/dtmpl-page.d.ts.map +1 -0
  273. package/lib/src/components/module/dtmpl-page.js +46 -0
  274. package/lib/src/components/module/dtmpl-page.js.map +1 -0
  275. package/lib/src/components/module/ltmpl-page.d.ts +34 -0
  276. package/lib/src/components/module/ltmpl-page.d.ts.map +1 -0
  277. package/lib/src/components/module/ltmpl-page.js +154 -0
  278. package/lib/src/components/module/ltmpl-page.js.map +1 -0
  279. package/lib/src/components/routable/dtmpl-route.d.ts +17 -0
  280. package/lib/src/components/routable/dtmpl-route.d.ts.map +1 -0
  281. package/lib/src/components/routable/dtmpl-route.js +77 -0
  282. package/lib/src/components/routable/dtmpl-route.js.map +1 -0
  283. package/lib/src/components/routable/import-route.d.ts +13 -0
  284. package/lib/src/components/routable/import-route.d.ts.map +1 -0
  285. package/lib/src/components/routable/import-route.js +29 -0
  286. package/lib/src/components/routable/import-route.js.map +1 -0
  287. package/lib/src/components/routable/ltmpl-route.d.ts +25 -0
  288. package/lib/src/components/routable/ltmpl-route.d.ts.map +1 -0
  289. package/lib/src/components/routable/ltmpl-route.js +145 -0
  290. package/lib/src/components/routable/ltmpl-route.js.map +1 -0
  291. package/lib/src/components/table/act-table.d.ts +76 -0
  292. package/lib/src/components/table/act-table.d.ts.map +1 -0
  293. package/lib/src/components/table/act-table.js +454 -0
  294. package/lib/src/components/table/act-table.js.map +1 -0
  295. package/lib/src/components/table/column/column-selector.d.ts +26 -0
  296. package/lib/src/components/table/column/column-selector.d.ts.map +1 -0
  297. package/lib/src/components/table/column/column-selector.js +59 -0
  298. package/lib/src/components/table/column/column-selector.js.map +1 -0
  299. package/lib/src/components/table/l2-act-table.d.ts +23 -0
  300. package/lib/src/components/table/l2-act-table.d.ts.map +1 -0
  301. package/lib/src/components/table/l2-act-table.js +80 -0
  302. package/lib/src/components/table/l2-act-table.js.map +1 -0
  303. package/lib/src/components/table/modal-select-table.d.ts +41 -0
  304. package/lib/src/components/table/modal-select-table.d.ts.map +1 -0
  305. package/lib/src/components/table/modal-select-table.js +208 -0
  306. package/lib/src/components/table/modal-select-table.js.map +1 -0
  307. package/lib/src/components/table/pagination.d.ts +17 -0
  308. package/lib/src/components/table/pagination.d.ts.map +1 -0
  309. package/lib/src/components/table/pagination.js +40 -0
  310. package/lib/src/components/table/pagination.js.map +1 -0
  311. package/lib/src/components/table/query-table.d.ts +65 -0
  312. package/lib/src/components/table/query-table.d.ts.map +1 -0
  313. package/lib/src/components/table/query-table.js +257 -0
  314. package/lib/src/components/table/query-table.js.map +1 -0
  315. package/lib/src/components/table/relation-table.d.ts +61 -0
  316. package/lib/src/components/table/relation-table.d.ts.map +1 -0
  317. package/lib/src/components/table/relation-table.js +444 -0
  318. package/lib/src/components/table/relation-table.js.map +1 -0
  319. package/lib/src/components/table/select-table.d.ts +40 -0
  320. package/lib/src/components/table/select-table.d.ts.map +1 -0
  321. package/lib/src/components/table/select-table.js +223 -0
  322. package/lib/src/components/table/select-table.js.map +1 -0
  323. package/lib/src/components/table/selected-rows-card.d.ts +16 -0
  324. package/lib/src/components/table/selected-rows-card.d.ts.map +1 -0
  325. package/lib/src/components/table/selected-rows-card.js +47 -0
  326. package/lib/src/components/table/selected-rows-card.js.map +1 -0
  327. package/lib/src/components/table/stat/restat.d.ts +26 -0
  328. package/lib/src/components/table/stat/restat.d.ts.map +1 -0
  329. package/lib/src/components/table/stat/restat.js +61 -0
  330. package/lib/src/components/table/stat/restat.js.map +1 -0
  331. package/lib/src/components/table/table-util.d.ts +5 -0
  332. package/lib/src/components/table/table-util.d.ts.map +1 -0
  333. package/{src/components/table/table-util.tsx → lib/src/components/table/table-util.js} +12 -15
  334. package/lib/src/components/table/table-util.js.map +1 -0
  335. package/lib/src/components/tmpl/control-type-supportor.d.ts +9 -0
  336. package/lib/src/components/tmpl/control-type-supportor.d.ts.map +1 -0
  337. package/{src/components/tmpl/control-type-supportor.tsx → lib/src/components/tmpl/control-type-supportor.js} +18 -30
  338. package/lib/src/components/tmpl/control-type-supportor.js.map +1 -0
  339. package/lib/src/components/tmpl/hc-data-source.d.ts +19 -0
  340. package/lib/src/components/tmpl/hc-data-source.d.ts.map +1 -0
  341. package/lib/src/components/tmpl/hc-data-source.js +230 -0
  342. package/lib/src/components/tmpl/hc-data-source.js.map +1 -0
  343. package/lib/src/components/tmpl/hcservice-v3.d.ts +53 -0
  344. package/lib/src/components/tmpl/hcservice-v3.d.ts.map +1 -0
  345. package/lib/src/components/tmpl/hcservice-v3.js +639 -0
  346. package/lib/src/components/tmpl/hcservice-v3.js.map +1 -0
  347. package/{src/components/tmpl/interface.tsx → lib/src/components/tmpl/interface.d.ts} +73 -147
  348. package/lib/src/components/tmpl/interface.d.ts.map +1 -0
  349. package/lib/src/components/tmpl/interface.js +4 -0
  350. package/lib/src/components/tmpl/interface.js.map +1 -0
  351. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts +7 -0
  352. package/lib/src/components/tmpl/tmpl-config-analysis.d.ts.map +1 -0
  353. package/lib/src/components/tmpl/tmpl-config-analysis.js +106 -0
  354. package/lib/src/components/tmpl/tmpl-config-analysis.js.map +1 -0
  355. package/lib/src/components/units/index.d.ts +58 -0
  356. package/lib/src/components/units/index.d.ts.map +1 -0
  357. package/{src/components/units/index.tsx → lib/src/components/units/index.js} +149 -150
  358. package/lib/src/components/units/index.js.map +1 -0
  359. package/lib/src/components/welcome/quick-entrance.d.ts +20 -0
  360. package/lib/src/components/welcome/quick-entrance.d.ts.map +1 -0
  361. package/lib/src/components/welcome/quick-entrance.js +79 -0
  362. package/lib/src/components/welcome/quick-entrance.js.map +1 -0
  363. package/lib/src/components/welcome/workbench.d.ts +20 -0
  364. package/lib/src/components/welcome/workbench.d.ts.map +1 -0
  365. package/lib/src/components/welcome/workbench.js +78 -0
  366. package/lib/src/components/welcome/workbench.js.map +1 -0
  367. package/lib/src/index.d.ts +4 -0
  368. package/lib/src/index.d.ts.map +1 -0
  369. package/lib/src/index.js +4 -0
  370. package/lib/src/index.js.map +1 -0
  371. package/package.json +27 -9
  372. package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +0 -29
  373. package/dist/css/main-2e6725ec1b56da516cee.css +0 -256
  374. package/src/components/chart/antd/Chart.js +0 -32
  375. package/src/components/chart/antd/Chart10000.js +0 -90
  376. package/src/components/chart/antd/Max2DimLineChart.js +0 -128
  377. package/src/components/chart/antd/PieChart1.js +0 -54
  378. package/src/components/chart/antd/PieChart2.js +0 -56
  379. package/src/components/chart/antd/chart-utils.tsx +0 -50
  380. package/src/components/chart/antd/column-chart-sub.tsx +0 -67
  381. package/src/components/chart/antd/line-chart-sub.tsx +0 -65
  382. package/src/components/chart/antd/pie-chart-sub.tsx +0 -54
  383. package/src/components/chart/antd/statview-d2-chart.tsx +0 -125
  384. package/src/components/chart/statview-l2-chart.tsx +0 -69
  385. package/src/components/controls/action/index.css +0 -9
  386. package/src/components/controls/action/index.tsx +0 -228
  387. package/src/components/controls/auto-complete/index.tsx +0 -80
  388. package/src/components/controls/cascader/index.js +0 -97
  389. package/src/components/controls/chemstruc/graph.tsx +0 -150
  390. package/src/components/controls/chemstruc/index.css +0 -28
  391. package/src/components/controls/collapse-card/index.css +0 -9
  392. package/src/components/controls/collapse-card/index.tsx +0 -59
  393. package/src/components/controls/color-picker/index.css +0 -27
  394. package/src/components/controls/color-picker/index.tsx +0 -88
  395. package/src/components/controls/cquery/cquick-button.tsx +0 -117
  396. package/src/components/controls/date-picker/index.tsx +0 -141
  397. package/src/components/controls/entity-select/entity-select.tsx +0 -277
  398. package/src/components/controls/entity-select/index.css +0 -6
  399. package/src/components/controls/entity-select/popover-entity-select.tsx +0 -112
  400. package/src/components/controls/entry-control.tsx +0 -240
  401. package/src/components/controls/enum-badge/index.tsx +0 -28
  402. package/src/components/controls/enum-tag/index.tsx +0 -30
  403. package/src/components/controls/file-view/drawer-file-view.tsx +0 -69
  404. package/src/components/controls/file-view/index.tsx +0 -145
  405. package/src/components/controls/html-editor/draft.tsx +0 -161
  406. package/src/components/controls/html-editor/tinymce.js +0 -55
  407. package/src/components/controls/input-number/index.tsx +0 -101
  408. package/src/components/controls/input-range/index.tsx +0 -48
  409. package/src/components/controls/password-setter/index.css +0 -3
  410. package/src/components/controls/password-setter/index.js +0 -70
  411. package/src/components/controls/progress/index.tsx +0 -61
  412. package/src/components/controls/relation-existion/index.css +0 -4
  413. package/src/components/controls/relation-existion/index.tsx +0 -108
  414. package/src/components/controls/rfield/index.css +0 -4
  415. package/src/components/controls/rfield/index.tsx +0 -161
  416. package/src/components/controls/signature/index.tsx +0 -162
  417. package/src/components/controls/steps/index.tsx +0 -58
  418. package/src/components/controls/text/ellipsis-text.tsx +0 -70
  419. package/src/components/controls/upload/index.tsx +0 -122
  420. package/src/components/controls/view-control.tsx +0 -177
  421. package/src/components/detail/button/cquery-button-bar.tsx +0 -112
  422. package/src/components/detail/button/index.css +0 -43
  423. package/src/components/detail/button/submit-button-bar.tsx +0 -151
  424. package/src/components/detail/dtmpl.css +0 -53
  425. package/src/components/detail/edit/dtmpl-edit.tsx +0 -218
  426. package/src/components/detail/edit/fields-edit-card.tsx +0 -103
  427. package/src/components/detail/edit/modal-dtmpl-edit.tsx +0 -198
  428. package/src/components/detail/edit/modal-row-edit.tsx +0 -72
  429. package/src/components/detail/edit/post-result/index.tsx +0 -52
  430. package/src/components/detail/edit/row-edit-card.tsx +0 -125
  431. package/src/components/detail/edit/row-editor.tsx +0 -71
  432. package/src/components/detail/rightbar/index.css +0 -35
  433. package/src/components/detail/rightbar/index.tsx +0 -76
  434. package/src/components/detail/view/act-dtmpl-view.tsx +0 -155
  435. package/src/components/detail/view/dtmpl-view.tsx +0 -143
  436. package/src/components/detail/view/field-view-group.tsx +0 -73
  437. package/src/components/detail/view/modal-dtmpl-view.tsx +0 -56
  438. package/src/components/detail/view/snapshot-timeline.tsx +0 -130
  439. package/src/components/exportor/export-frame.css +0 -3
  440. package/src/components/exportor/export-frame.tsx +0 -194
  441. package/src/components/exportor/index.tsx +0 -60
  442. package/src/components/form/criteria-form.tsx +0 -241
  443. package/src/components/form/dtmpl-form.css +0 -4
  444. package/src/components/form/dtmpl-form.tsx +0 -272
  445. package/src/components/form/field-group-form.tsx +0 -75
  446. package/src/components/form/fields-form.tsx +0 -51
  447. package/src/components/form/form-Item-group.tsx +0 -99
  448. package/src/components/form/index.css +0 -13
  449. package/src/components/import/excel-import.tsx +0 -316
  450. package/src/components/import/index.css +0 -54
  451. package/src/components/import/template-builder.js +0 -474
  452. package/src/components/import/template.css +0 -51
  453. package/src/components/layout/MainPage.tsx +0 -230
  454. package/src/components/layout/footer/index.css +0 -6
  455. package/src/components/layout/footer/index.js +0 -17
  456. package/src/components/layout/header/index.css +0 -86
  457. package/src/components/layout/header/index.tsx +0 -58
  458. package/src/components/layout/menu/block.tsx +0 -88
  459. package/src/components/layout/menu/l2menu-message-bar.tsx +0 -118
  460. package/src/components/layout/menu/l2menu-quick-bar.tsx +0 -132
  461. package/src/components/layout/menu/menu-2layers.tsx +0 -92
  462. package/src/components/layout/menu/menu-render.tsx +0 -49
  463. package/src/components/layout/menu/reset-password.tsx +0 -185
  464. package/src/components/layout/menu/user-bar.tsx +0 -97
  465. package/src/components/layout/menu/userinfo-bar.tsx +0 -70
  466. package/src/components/layout/sidebar/index.css +0 -26
  467. package/src/components/layout/sidebar/index.tsx +0 -38
  468. package/src/components/login.js +0 -137
  469. package/src/components/module/criteria-page.tsx +0 -175
  470. package/src/components/module/dtmpl-page.tsx +0 -70
  471. package/src/components/module/ltmpl-page.tsx +0 -181
  472. package/src/components/routable/dtmpl-route.tsx +0 -96
  473. package/src/components/routable/import-route.tsx +0 -28
  474. package/src/components/routable/ltmpl-route.tsx +0 -158
  475. package/src/components/table/act-table.tsx +0 -635
  476. package/src/components/table/column/column-selector.tsx +0 -79
  477. package/src/components/table/column/index.css +0 -14
  478. package/src/components/table/index.css +0 -45
  479. package/src/components/table/l2-act-table.tsx +0 -85
  480. package/src/components/table/modal-select-table.tsx +0 -248
  481. package/src/components/table/pagination.css +0 -15
  482. package/src/components/table/pagination.tsx +0 -72
  483. package/src/components/table/query-table.tsx +0 -331
  484. package/src/components/table/relation-table.tsx +0 -600
  485. package/src/components/table/select-table.tsx +0 -247
  486. package/src/components/table/selected-rows-card.tsx +0 -62
  487. package/src/components/table/stat/restat.tsx +0 -79
  488. package/src/components/tmpl/hc-data-source.tsx +0 -230
  489. package/src/components/tmpl/hcservice-v3.tsx +0 -624
  490. package/src/components/tmpl/superagent.js +0 -93
  491. package/src/components/tmpl/tmpl-config-analysis.tsx +0 -111
  492. package/src/components/units/EncryptUtils.js +0 -38
  493. package/src/components/units/image.d.ts +0 -8
  494. package/src/components/units/logo.png +0 -0
  495. package/src/components/units/storage.js +0 -3
  496. package/src/components/welcome/HCWelcome.js +0 -232
  497. package/src/components/welcome/index.css +0 -13
  498. package/src/components/welcome/logo.png +0 -0
  499. package/src/components/welcome/quick-entrance.tsx +0 -77
  500. package/src/components/welcome/workbench.tsx +0 -76
  501. package/src/index.js +0 -5
  502. package/src/style/common.css +0 -79
  503. package/src/style/coverstyle.css +0 -49
  504. package/src/style/transstyle.css +0 -24
  505. package/tsconfig.json +0 -106
@@ -0,0 +1,202 @@
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 { Layout } from 'antd';
12
+ import Footer from './footer';
13
+ import Header from './header';
14
+ import SideBar from './sidebar';
15
+ import HCDataSource from "../tmpl/hc-data-source";
16
+ import DocumentTitle from "react-document-title";
17
+ import Units from '../units';
18
+ import Scrollbars from 'react-custom-scrollbars';
19
+ const { Content, Sider } = Layout;
20
+ class MainPage extends React.PureComponent {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.scrollbarRef = React.createRef();
24
+ this.state = {
25
+ collapsed: false,
26
+ blocks: [],
27
+ currentL2MenuId: undefined,
28
+ currentBlockId: undefined,
29
+ isImporter: false,
30
+ };
31
+ this.findBlockTitle = (blockId) => {
32
+ let blockTitle;
33
+ const { blocks } = this.state;
34
+ if (blockId) {
35
+ for (const block of blocks) {
36
+ if (block.id == blockId) {
37
+ blockTitle = block.title;
38
+ break;
39
+ }
40
+ }
41
+ }
42
+ let title = blockTitle ? blockTitle + '-' : "";
43
+ let programName = Units.programName() ? Units.programName() : 'HYDROCARBON';
44
+ title = title + programName;
45
+ return title;
46
+ };
47
+ this.findBlockIdOfL2Menu = (leMenuId) => {
48
+ let blockId = undefined;
49
+ const { blocks } = this.state;
50
+ if (leMenuId) {
51
+ for (const block of blocks) {
52
+ for (const menul1 of block.l1Menus) {
53
+ for (const menul2 of menul1.l2Menus) {
54
+ if (menul2.id == leMenuId) {
55
+ blockId = block.id;
56
+ break;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ return blockId;
63
+ };
64
+ this.findCurrentBlock = () => {
65
+ const { blocks, currentL2MenuId, currentBlockId } = this.state;
66
+ let result = undefined;
67
+ if (currentL2MenuId) {
68
+ for (const block of blocks) {
69
+ for (const menul1 of block.l1Menus) {
70
+ for (const menul2 of menul1.l2Menus) {
71
+ if (menul2.id == currentL2MenuId) {
72
+ result = block;
73
+ break;
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ if (currentBlockId && !result) {
80
+ for (const block of blocks) {
81
+ if (block.id === currentBlockId) {
82
+ result = block;
83
+ break;
84
+ }
85
+ }
86
+ }
87
+ if (!result) {
88
+ result = blocks.at(0);
89
+ }
90
+ return result;
91
+ };
92
+ this.toggle = () => {
93
+ this.setState({
94
+ collapsed: !this.state.collapsed,
95
+ });
96
+ };
97
+ }
98
+ componentDidMount() {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ var currentURL = new URL(window.location.href);
101
+ console.log('main page currentURL:', currentURL);
102
+ const search = window.location.href.split("?")[1];
103
+ var searchParams = new URLSearchParams('?' + search);
104
+ let blockId = searchParams.get('blockId');
105
+ let l2MenuId = searchParams.get('menuId');
106
+ //进一步找找l2MenuId
107
+ if (!l2MenuId) {
108
+ let sourcePart = currentURL.hash.match(/[\w]+\-[\d]+/);
109
+ if (sourcePart) {
110
+ let source = sourcePart[0].split('-');
111
+ if (source[0] === 'menu') {
112
+ l2MenuId = source[1];
113
+ }
114
+ }
115
+ }
116
+ let blockRes = yield HCDataSource.requestBlocks(l2MenuId ? l2MenuId : undefined, blockId ? blockId : undefined);
117
+ this.setState({
118
+ isImporter: currentURL.hash.indexOf('/importer') > 0,
119
+ blocks: blockRes.blocks,
120
+ currentL2MenuId: blockRes.l2MenuId,
121
+ currentBlockId: blockRes.blockId,
122
+ });
123
+ });
124
+ }
125
+ componentDidUpdate(prevProps, prevState) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ var currentURL = new URL(window.location.href);
128
+ const search = window.location.href.split("?")[1];
129
+ var searchParams = new URLSearchParams('?' + search);
130
+ let blockId = searchParams.get('blockId');
131
+ let l2MenuId = searchParams.get('menuId');
132
+ let isImporter_ = currentURL.hash.indexOf('/importer') > 0;
133
+ if (prevState.isImporter != isImporter_) {
134
+ this.setState({
135
+ isImporter: isImporter_,
136
+ });
137
+ }
138
+ //进一步找找l2MenuId
139
+ if (!l2MenuId) {
140
+ let sourcePart = currentURL.hash.match(/[\w]+\-[\d]+/);
141
+ if (sourcePart) {
142
+ let source = sourcePart[0].split('-');
143
+ if (source[0] === 'menu') {
144
+ l2MenuId = source[1];
145
+ }
146
+ }
147
+ }
148
+ const { currentL2MenuId, currentBlockId } = this.state;
149
+ if (l2MenuId && currentL2MenuId != l2MenuId) {
150
+ this.setState({
151
+ currentL2MenuId: l2MenuId,
152
+ });
153
+ }
154
+ if (!blockId) {
155
+ blockId = this.findBlockIdOfL2Menu(l2MenuId);
156
+ }
157
+ if (blockId && currentBlockId != blockId) {
158
+ this.setState({
159
+ currentBlockId: blockId,
160
+ });
161
+ }
162
+ });
163
+ }
164
+ render() {
165
+ var _a, _b;
166
+ const { match } = this.props;
167
+ const { collapsed, currentL2MenuId, currentBlockId, isImporter } = this.state;
168
+ //滚动条回到顶部
169
+ // document.body.scrollTop = document.documentElement.scrollTop = 0;
170
+ // @ts-ignore
171
+ // eslint-disable-next-line no-unused-expressions
172
+ (_b = (_a = this.scrollbarRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollToTop();
173
+ return (React.createElement(Scrollbars, { ref: this.scrollbarRef, style: { height: 'calc(100vh)' }, autoHide: true, autoHideTimeout: 1000 },
174
+ React.createElement(DocumentTitle, { title: (isImporter ? '导入-' : "") + this.findBlockTitle(currentBlockId) },
175
+ React.createElement(Layout, null,
176
+ React.createElement(Sider, { style: {
177
+ overflow: 'auto',
178
+ height: '100vh',
179
+ position: 'fixed',
180
+ left: 0,
181
+ top: 0,
182
+ bottom: 0,
183
+ }, collapsed: collapsed },
184
+ React.createElement(SideBar, { blockMenu: this.findCurrentBlock(), currentL2MenuId: currentL2MenuId, collapsed: collapsed })),
185
+ React.createElement(Layout, { style: collapsed ? { background: '#fff', marginLeft: 80 } : {
186
+ background: '#fff',
187
+ marginLeft: 200
188
+ } },
189
+ React.createElement(Header, Object.assign({ toggle: this.toggle }, this.state)),
190
+ React.createElement(Content, { style: {
191
+ margin: '24px 16px 0',
192
+ overflow: 'initial',
193
+ minHeight: 'calc(100vh)',
194
+ minWidth: 760,
195
+ maxWidth: 1960,
196
+ paddingBottom: '8px',
197
+ } }, this.props.children),
198
+ React.createElement(Footer, null))))));
199
+ }
200
+ }
201
+ export default MainPage;
202
+ //# sourceMappingURL=MainPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/components/layout/MainPage.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAe,MAAM,EAAC,MAAM,MAAM,CAAA;AACzC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,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AAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAC,CAAC,CAAC,CAAC;4BAC9D,UAAU,EAAE,MAAM;4BAClB,UAAU,EAAE,GAAG;yBAClB;wBACG,oBAAC,MAAM,kBAAC,MAAM,EAAE,IAAI,CAAC,MAAM,IAAM,IAAI,CAAC,KAAK,EAAI;wBAC/C,oBAAC,OAAO,IAAC,KAAK,EAAE;gCACZ,MAAM,EAAE,aAAa;gCACrB,QAAQ,EAAE,SAAS;gCACnB,SAAS,EAAE,aAAa;gCACxB,QAAQ,EAAE,GAAG;gCACb,QAAQ,EAAE,IAAI;gCACd,aAAa,EAAE,KAAK;6BACvB,IACI,IAAI,CAAC,KAAK,CAAC,QAAQ,CACd;wBACV,oBAAC,MAAM,OAAE,CACJ,CACJ,CACG,CACP,CAChB,CAAA;IACL,CAAC;CACJ;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import "./index.css";
4
+ import { BlockProps } from "../menu/block";
5
+ interface HeaderProps extends BlockProps {
6
+ toggle: any;
7
+ collapsed: boolean;
8
+ }
9
+ interface HeaderState {
10
+ }
11
+ declare class Header extends React.PureComponent<HeaderProps, HeaderState> {
12
+ toggle: () => void;
13
+ render(): JSX.Element;
14
+ }
15
+ export default Header;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAA;AACpB,OAAc,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAOhD,UAAU,WAAY,SAAQ,UAAU;IACpC,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,WAAW;CAEpB;AAED,cAAM,MAAO,SAAQ,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,CAAC;IAE9D,MAAM,aAEJ;IAEF,MAAM;CA4BT;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { Col, Layout, Row } from 'antd';
3
+ import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons';
4
+ import 'antd/dist/antd.css';
5
+ import "./index.css";
6
+ import Block from "../menu/block";
7
+ import L2MenuMessageBar from '../menu/l2menu-message-bar';
8
+ import L2MenuQuickBar from '../menu/l2menu-quick-bar';
9
+ import UserBar from '../menu/user-bar';
10
+ const { Header: AntdHeader, } = Layout;
11
+ class Header extends React.PureComponent {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.toggle = () => {
15
+ this.props.toggle();
16
+ };
17
+ }
18
+ render() {
19
+ let { collapsed } = this.props;
20
+ return (React.createElement(AntdHeader, { style: { padding: 0, height: 'auto' } },
21
+ React.createElement(Row, { className: "header-top", wrap: false },
22
+ React.createElement(Col, { span: 20, className: "header-col" },
23
+ React.createElement("div", { style: { float: 'left' } }, React.createElement(collapsed ? MenuUnfoldOutlined : MenuFoldOutlined, {
24
+ className: 'trigger',
25
+ onClick: this.toggle,
26
+ })),
27
+ React.createElement(Block, Object.assign({}, this.props))),
28
+ React.createElement(Col, { span: 1, style: { width: '100%' } },
29
+ React.createElement(L2MenuQuickBar, null)),
30
+ React.createElement(Col, { span: 1, style: { width: '100%' } },
31
+ React.createElement(L2MenuMessageBar, null)),
32
+ React.createElement(Col, { span: 2 },
33
+ React.createElement(UserBar, null)))));
34
+ }
35
+ }
36
+ export default Header;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/layout/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO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AK,EAAE,MAAM,EAAC;oBAChC,oBAAC,cAAc,OAAkB,CAC/B;gBACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC;oBAChC,oBAAC,gBAAgB,OAAoB,CACnC;gBACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC;oBACR,oBAAC,OAAO,OAAW,CACjB,CACJ,CACD,CAChB,CAAA;IACL,CAAC;CACJ;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { BlockMenu } from "../../tmpl/interface";
2
+ export interface BlockProps {
3
+ blocks: BlockMenu[];
4
+ currentBlockId?: string;
5
+ currentL2MenuId?: string;
6
+ }
7
+ declare const _default: any;
8
+ export default _default;
9
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAc/C,MAAM,WAAW,UAAU;IACvB,MAAM,EAAC,SAAS,EAAE,CAAC;IACnB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,eAAe,CAAC,EAAC,MAAM,CAAC;CAC3B;;AAmED,wBAAiC"}
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { Dropdown, Menu } from 'antd';
3
+ import { withRouter } from 'react-router-dom';
4
+ import MenuRender from './menu-render';
5
+ class Block extends React.PureComponent {
6
+ constructor(props) {
7
+ super(props);
8
+ this.renderBlockMenu = (blockMenu) => {
9
+ return React.createElement(Menu, null, MenuRender.renderL1Menu(blockMenu.l1Menus, null));
10
+ };
11
+ this.findBlockId = (blocks, currentL2MenuId) => {
12
+ let blockId = undefined;
13
+ for (const block of blocks) {
14
+ for (const menul1 of block.l1Menus) {
15
+ for (const menul2 of menul1.l2Menus) {
16
+ if (menul2.id === currentL2MenuId) {
17
+ blockId = block.id;
18
+ return blockId;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return blockId;
24
+ };
25
+ }
26
+ render() {
27
+ const { currentBlockId, blocks, currentL2MenuId } = this.props;
28
+ if (!blocks || blocks.length < 1) {
29
+ return React.createElement(React.Fragment, null);
30
+ }
31
+ let blockId = currentBlockId;
32
+ if (currentL2MenuId && !blockId) {
33
+ blockId = this.findBlockId(blocks, currentL2MenuId);
34
+ }
35
+ if (!blockId) {
36
+ blockId = blocks.at(0).id;
37
+ }
38
+ return (blocks.map((item, index) => {
39
+ return React.createElement("div", { key: index, className: `${item.id == blockId ? "active" : ""} header-block` },
40
+ React.createElement(Dropdown, { overlay: this.renderBlockMenu(item) },
41
+ React.createElement("a", { className: "dropdown-link",
42
+ // href={`#/home?blockId=${item.id}`}
43
+ rel: "noopener noreferrer" }, item.title)));
44
+ }));
45
+ }
46
+ }
47
+ export default withRouter(Block);
48
+ //# sourceMappingURL=block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,QAAQ,EAAE,IAAI,EAAM,MAAM,MAAM,CAAC;AAErD,OAAO,EAAU,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAUrD,OAAO,UAAU,MAAM,eAAe,CAAC;AAYvC,MAAM,KAAM,SAAQ,KAAK,CAAC,aAAqC;IAG3D,YAAY,KAAK;QACb,KAAK,CAAC,KAAK,CAAC,CAAC;QAGjB,oBAAe,GAAG,CAAC,SAAmB,EAAC,EAAE;YACrC,OAAO,oBAAC,IAAI,QACP,UAAU,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,EAAC,IAAI,CAAC,CAC7C,CAAA;QAEX,CAAC,CAAA;QAGD,gBAAW,GAAG,CAAC,MAAkB,EAAC,eAAsB,EAAE,EAAE;YACxD,IAAI,OAAO,GAAQ,SAAS,CAAC;Y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AA;QACV,CAAC,CAAC,CACD,CAAC;IACN,CAAC;CAEJ;AAED,eAAe,UAAU,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import { Level2Menu } from "../../tmpl/interface";
4
+ interface L2MenuMessageBarProps {
5
+ }
6
+ interface MessageBar {
7
+ l2Menu: Level2Menu;
8
+ count: number;
9
+ }
10
+ interface L2MenuMessageBarState {
11
+ messageBars: MessageBar[];
12
+ anyState: boolean;
13
+ }
14
+ declare class L2MenuMessageBar extends React.PureComponent<L2MenuMessageBarProps, L2MenuMessageBarState> {
15
+ state: {
16
+ messageBars: any;
17
+ anyState: boolean;
18
+ };
19
+ componentDidMount(): Promise<void>;
20
+ renderMessageBar: (messageBars: MessageBar[]) => JSX.Element;
21
+ render(): JSX.Element;
22
+ }
23
+ export default L2MenuMessageBar;
24
+ //# sourceMappingURL=l2menu-message-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"l2menu-message-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-message-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKhD,UAAU,qBAAqB;CAE9B;AAED,UAAU,UAAU;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAC,OAAO,CAAC;CACpB;AAGD,cAAM,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAC5F,KAAK;;;MAGJ;IAEK,iBAAiB;IA0BvB,gBAAgB,gBAAiB,UAAU,EAAE,iBAgD5C;IAGD,MAAM;CAQT;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,97 @@
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 { Badge, Dropdown, Menu } from 'antd';
12
+ import { BellOutlined } from '@ant-design/icons';
13
+ import 'antd/dist/antd.css';
14
+ import HcserviceV3 from '../../tmpl/hcservice-v3';
15
+ import { NavLink } from 'react-router-dom';
16
+ import HCDataSource from './../../tmpl/hc-data-source';
17
+ import Units from "../../units";
18
+ class L2MenuMessageBar extends React.PureComponent {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.state = {
22
+ messageBars: undefined,
23
+ anyState: false,
24
+ };
25
+ this.renderMessageBar = (messageBars) => {
26
+ let total = 0;
27
+ const menu = (React.createElement(Menu, { key: 1 }, messageBars.map((messageBar, index) => {
28
+ if (messageBar.count) {
29
+ total = total + messageBar.count;
30
+ }
31
+ let defaultCriteriaData = "";
32
+ if (messageBar.l2Menu.defaultCriteriaValue) {
33
+ defaultCriteriaData = '&' + Units.transQueryParamsToStr(messageBar.l2Menu.defaultCriteriaValue);
34
+ }
35
+ return React.createElement(Menu.Item, { key: index },
36
+ React.createElement(NavLink, { to: `/${messageBar.l2Menu.id}/act-table?menuId=${messageBar.l2Menu.id}${defaultCriteriaData}` },
37
+ messageBar.l2Menu.title,
38
+ React.createElement(Badge, { count: messageBar.count, overflowCount: 99, offset: [2, -2], size: "small" })));
39
+ })));
40
+ if (!messageBars || messageBars.length == 0) {
41
+ return;
42
+ }
43
+ else if (messageBars.length == 1) {
44
+ let messageBar = messageBars[0];
45
+ const l2Menu = messageBar.l2Menu;
46
+ let defaultCriteriaData = "";
47
+ if (l2Menu.defaultCriteriaValue) {
48
+ defaultCriteriaData = '&' + Units.transQueryParamsToStr(l2Menu.defaultCriteriaValue);
49
+ }
50
+ return (React.createElement("div", { className: 'message-bar' },
51
+ React.createElement("a", { href: l2Menu.customPath ? `/page-${l2Menu.id}${l2Menu.customPath}?menuId=${l2Menu.id}` : `#/${l2Menu.id}/act-table?menuId=${l2Menu.id}${defaultCriteriaData}`, className: "head-example" },
52
+ React.createElement(Badge, { count: messageBar.count, overflowCount: 99, offset: [8, -2] },
53
+ React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
54
+ React.createElement(BellOutlined, null))))));
55
+ }
56
+ else {
57
+ return React.createElement(Dropdown, { overlay: menu, placement: "bottomCenter" },
58
+ React.createElement("div", { className: 'message-bar' },
59
+ React.createElement(Badge, { count: total, overflowCount: 99, offset: [8, -2] },
60
+ React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
61
+ React.createElement(BellOutlined, null)))));
62
+ }
63
+ };
64
+ }
65
+ componentDidMount() {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ let l2Menus = yield HCDataSource.messageMenus();
68
+ const messageBars = [];
69
+ for (const item of l2Menus) {
70
+ const messageBar = {
71
+ l2Menu: item,
72
+ count: 0,
73
+ };
74
+ let that = this;
75
+ setInterval(() => __awaiter(this, void 0, void 0, function* () {
76
+ let count = yield HcserviceV3.requestLtmplCount(item.id);
77
+ messageBar.count = count;
78
+ this.setState({
79
+ anyState: !this.state.anyState,
80
+ });
81
+ }), 180000);
82
+ let count = yield HcserviceV3.requestLtmplCount(item.id);
83
+ messageBar.count = count;
84
+ messageBars.push(messageBar);
85
+ }
86
+ this.setState({
87
+ messageBars,
88
+ });
89
+ });
90
+ }
91
+ render() {
92
+ const { messageBars } = this.state;
93
+ return (React.createElement(React.Fragment, null, messageBars ? this.renderMessageBar(messageBars) : ""));
94
+ }
95
+ }
96
+ export default L2MenuMessageBar;
97
+ //# sourceMappingURL=l2menu-message-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"l2menu-message-bar.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-message-bar.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,KAAK,EAAU,QAAQ,EAAE,IAAI,EAAC,MAAM,MAAM,CAAA;AAClD,OAAO,EAAgB,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,oBAAoB,CAAC;AAE5B,OAAO,WAAW,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,KAAK,MAAM,aAAa,CAAC;AAgBhC,MAAM,gBAAiB,SAAQ,KAAK,CAAC,aAA2D;IAAhG;;QACI,UAAK,GAAC;YACF,WAAW,EAAC,SAAS;YACrB,QAAQ,EAAC,KAAK;SACjB,CAAA;QA4BD,qBAAgB,GAAG,CAAC,WAAyB,EAAE,EAAE;YAE7C,IAAK,KAAK,GAAQ,CAAC,CAAC;YAEpB,MAAM,IAAI,GAAG,CACT,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,IACN,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE;gBACpC,IAAG,UAAU,CAAC,KAAK,EAAC;oBAChB,KAAK,GAAC,KAAK,GAAC,UAAU,CAAC,KAAK,CAAC;iBAChC;gBACD,IAAI,mBAAmB,GAAC,EAAE,CAAC;gBAC3B,IAAG,UAAU,CAAC,MAAM,CAAC,oBAAoB,EAAC;oBACtC,mBAAmB,GAAC,GAAG,GAAE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;iBAChG;gBACN,OAAO,oBAAC,IAAI,C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AAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzD,UAAU,CAAC,KAAK,GAAC,KAAK,CAAC;gBACvB,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAChC;YACD,IAAI,CAAC,QAAQ,CAAC;gBACV,WAAW;aACd,CAAC,CAAC;QACP,CAAC;KAAA;IAsDD,MAAM;QACF,MAAM,EAAC,WAAW,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACjC,OAAO,CACH,0CACK,WAAW,CAAA,CAAC,CAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAA,CAAC,CAAA,EAAE,CACnD,CACN,CAAC;IACN,CAAC;CACJ;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import { Level2Menu } from "../../tmpl/interface";
4
+ interface L2MenuQuickBarProps {
5
+ }
6
+ interface QuickBar {
7
+ l2Menu: Level2Menu;
8
+ count: number;
9
+ }
10
+ interface L2MenuQuickBarState {
11
+ quickBars: QuickBar[];
12
+ anyState: boolean;
13
+ currentId: string;
14
+ showDraw: boolean;
15
+ }
16
+ declare class L2MenuQuickBar extends React.PureComponent<L2MenuQuickBarProps, L2MenuQuickBarState> {
17
+ state: {
18
+ quickBars: any;
19
+ anyState: boolean;
20
+ currentId: any;
21
+ showDraw: boolean;
22
+ };
23
+ componentDidMount(): Promise<void>;
24
+ showDraw: (currentId: string) => void;
25
+ closeDrawer: () => void;
26
+ renderQuickBar: (quickBars: QuickBar[]) => JSX.Element;
27
+ render(): JSX.Element;
28
+ }
29
+ export default L2MenuQuickBar;
30
+ //# sourceMappingURL=l2menu-quick-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"l2menu-quick-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-quick-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKhD,UAAU,mBAAmB;CAE5B;AAED,UAAU,QAAQ;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,mBAAmB;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAC,OAAO,CAAC;IACjB,SAAS,EAAC,MAAM,CAAC;IACjB,QAAQ,EAAC,OAAO,CAAC;CACpB;AAGD,cAAM,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACtF,KAAK;;;;;MAKJ;IAEK,iBAAiB;IAevB,QAAQ,cAAY,MAAM,UAOzB;IAED,WAAW,aAIV;IAED,cAAc,cAAe,QAAQ,EAAE,iBAmCtC;IAGD,MAAM;CA2BT;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,94 @@
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 { Dropdown, Menu, Drawer, Space, Button } from 'antd';
12
+ import { AppstoreOutlined } from '@ant-design/icons';
13
+ import 'antd/dist/antd.css';
14
+ // import HcserviceV3 from '../../tmpl/hcservice-v3'
15
+ import HCDataSource from './../../tmpl/hc-data-source';
16
+ import LtmplPage from "./../../module/ltmpl-page";
17
+ class L2MenuQuickBar extends React.PureComponent {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.state = {
21
+ quickBars: undefined,
22
+ anyState: false,
23
+ currentId: undefined,
24
+ showDraw: false,
25
+ };
26
+ this.showDraw = (currentId) => {
27
+ console.log("点击了L2MenuQuickBar", currentId);
28
+ this.setState({
29
+ currentId,
30
+ showDraw: true
31
+ });
32
+ };
33
+ this.closeDrawer = () => {
34
+ this.setState({
35
+ showDraw: false
36
+ });
37
+ };
38
+ this.renderQuickBar = (quickBars) => {
39
+ let total = 0;
40
+ const menu = (React.createElement(Menu, { key: 1 }, quickBars.map((quickBar, index) => {
41
+ if (quickBar.count) {
42
+ total = total + quickBar.count;
43
+ }
44
+ return React.createElement(Menu.Item, { key: index },
45
+ React.createElement("span", { onClick: () => this.showDraw(quickBar.l2Menu.id) }, quickBar.l2Menu.title));
46
+ })));
47
+ if (!quickBars || quickBars.length == 0) {
48
+ return;
49
+ }
50
+ else if (quickBars.length == 1) {
51
+ let quickBar = quickBars[0];
52
+ const l2Menu = quickBar.l2Menu;
53
+ return (React.createElement("div", { className: 'message-bar', onClick: () => this.showDraw(quickBar.l2Menu.id) },
54
+ React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
55
+ React.createElement(AppstoreOutlined, null))));
56
+ }
57
+ else {
58
+ return React.createElement(Dropdown, { overlay: menu, placement: "bottomCenter" },
59
+ React.createElement("div", { className: 'message-bar' },
60
+ React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
61
+ React.createElement(AppstoreOutlined, null))));
62
+ }
63
+ };
64
+ }
65
+ componentDidMount() {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ let l2Menus = yield HCDataSource.quickEntranceMenus();
68
+ const quickBars = [];
69
+ for (const item of l2Menus) {
70
+ const quickBar = {
71
+ l2Menu: item,
72
+ count: 0,
73
+ };
74
+ let that = this;
75
+ quickBars.push(quickBar);
76
+ }
77
+ this.setState({
78
+ quickBars,
79
+ });
80
+ });
81
+ }
82
+ render() {
83
+ const { quickBars, showDraw, currentId } = this.state;
84
+ return (React.createElement(React.Fragment, null,
85
+ quickBars ? this.renderQuickBar(quickBars) : "",
86
+ React.createElement(Drawer, { placement: 'left', title: "\u5FEB\u6377\u67E5\u8BE2", closable: true, mask: false, onClose: this.closeDrawer, visible: showDraw, width: 'calc(100% - 280px)', style: {
87
+ maxWidth: 1960,
88
+ }, extra: React.createElement(Space, null,
89
+ React.createElement(Button, { onClick: this.closeDrawer }, "\u5173\u95ED")) },
90
+ React.createElement(LtmplPage, { sourceId: currentId }))));
91
+ }
92
+ }
93
+ export default L2MenuQuickBar;
94
+ //# sourceMappingURL=l2menu-quick-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"l2menu-quick-bar.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-quick-bar.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAgB,QAAQ,EAAE,IAAI,EAAY,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAClF,OAAO,EAAgB,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,oBAAoB,CAAC;AAE5B,oDAAoD;AACpD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAmBlD,MAAM,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAA1F;;QACI,UAAK,GAAC;YACF,SAAS,EAAC,SAAS;YACnB,QAAQ,EAAC,KAAK;YACd,SAAS,EAAC,SAAS;YACnB,QAAQ,EAAC,KAAK;SACjB,CAAA;QAiBD,aAAQ,GAAC,CAAC,SAAgB,EAAC,EAAE;YACzB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAC,SAAS,CAAC,CAAC;YAC3C,IAAI,CAAC,QAAQ,CAAC;gBACV,SAAS;gBACT,QAAQ,EAAC,IAAI;aAChB,CAAC,CAAA;QAEN,CAAC,CAAA;QAED,gBAAW,GAAC,GAAE,EAAE;YACZ,IAAI,CAAC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AAQ,EAAE,SAAS,GAAc,CACvC,CACV,CACN,CAAC;IACN,CAAC;CACJ;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { BlockMenu } from "../../tmpl/interface";
2
+ export interface Menu2layersProps {
3
+ blockMenu: BlockMenu;
4
+ collapsed?: boolean;
5
+ currentL2MenuId?: string;
6
+ }
7
+ declare const _default: any;
8
+ export default _default;
9
+ //# sourceMappingURL=menu-2layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-2layers.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/menu-2layers.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAK/C,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;;AAgFD,wBAAuC"}