aldehyde 0.2.197 → 0.2.198

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 (569) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +2 -2
  3. package/lib/custom-page/def-custom-page.d.ts.map +1 -1
  4. package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
  5. package/lib/detail/dtmpl.css +57 -57
  6. package/lib/export/export-frame.css +2 -2
  7. package/lib/export/export-frame.d.ts.map +1 -1
  8. package/lib/export/select-code-export-frame.d.ts.map +1 -1
  9. package/lib/form/dtmpl-form.css +3 -3
  10. package/lib/form/dtmpl-form.d.ts.map +1 -1
  11. package/lib/form/field-group-form.d.ts.map +1 -1
  12. package/lib/form/form-Item-group.d.ts.map +1 -1
  13. package/lib/form/index.css +12 -12
  14. package/lib/hooks/useVarCssColor.d.ts.map +1 -1
  15. package/lib/import/excel-import.d.ts.map +1 -1
  16. package/lib/import/index.css +53 -53
  17. package/lib/import/template.css +50 -50
  18. package/lib/layout/common.css +64 -64
  19. package/lib/layout/coverstyle.css +51 -51
  20. package/lib/layout2/LayoutContext.d.ts.map +1 -1
  21. package/lib/locale/LocaleButton.d.ts.map +1 -1
  22. package/lib/locale/LocaleProvider.d.ts.map +1 -1
  23. package/lib/locale/langMp.d.ts.map +1 -1
  24. package/lib/locale/translate.d.ts.map +1 -1
  25. package/lib/locale/useLocale.d.ts.map +1 -1
  26. package/lib/login/index.css +19 -19
  27. package/lib/login/login.d.ts.map +1 -1
  28. package/lib/login2/Login.d.ts.map +1 -1
  29. package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
  30. package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
  31. package/lib/module/dtmpl-editor.d.ts.map +1 -1
  32. package/lib/module/dtmpl-view-card.d.ts.map +1 -1
  33. package/lib/module/embed-dtmpl-edit-page.d.ts.map +1 -1
  34. package/lib/module/ltmpl-modal.d.ts.map +1 -1
  35. package/lib/module/ltmpl-table.d.ts.map +1 -1
  36. package/lib/routable/dtmpl-route.d.ts.map +1 -1
  37. package/lib/routable/dtmpl-route.js +1 -1
  38. package/lib/routable/dtmpl-route.js.map +1 -1
  39. package/lib/routable/withroute.d.ts.map +1 -1
  40. package/lib/table/act-table.d.ts.map +1 -1
  41. package/lib/table/act-table.js +2 -1
  42. package/lib/table/act-table.js.map +1 -1
  43. package/lib/table/control-table-x-axis-wrapper.d.ts +2 -11
  44. package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -1
  45. package/lib/table/index.css +71 -71
  46. package/lib/table/l2-act-table.d.ts.map +1 -1
  47. package/lib/table/modal-select-table.d.ts.map +1 -1
  48. package/lib/table/pagination.css +14 -14
  49. package/lib/table/pagination.d.ts.map +1 -1
  50. package/lib/table/query-table.d.ts.map +1 -1
  51. package/lib/table/relation-table.d.ts.map +1 -1
  52. package/lib/table/select-table.d.ts.map +1 -1
  53. package/lib/table/selected-rows-card.d.ts.map +1 -1
  54. package/lib/tmpl/control-type-supportor.d.ts.map +1 -1
  55. package/lib/tmpl/hc-data-source.d.ts.map +1 -1
  56. package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
  57. package/lib/tmpl/interface.d.ts +1 -0
  58. package/lib/tmpl/interface.d.ts.map +1 -1
  59. package/lib/tmpl/interface.js.map +1 -1
  60. package/lib/tmpl/tmpl-config-analysis.d.ts.map +1 -1
  61. package/lib/tree/act-tree.d.ts.map +1 -1
  62. package/lib/tree/block-menu-auth-tree.d.ts.map +1 -1
  63. package/lib/tree/index.css +20 -20
  64. package/lib/tree/tmpl-tree.d.ts.map +1 -1
  65. package/lib/tree/tree-node.d.ts.map +1 -1
  66. package/lib/tree/tree-utils.d.ts.map +1 -1
  67. package/lib/utils/dsu.d.ts.map +1 -1
  68. package/lib/welcome/index.css +13 -13
  69. package/lib/welcome/quick-entrance.d.ts.map +1 -1
  70. package/lib/welcome/workbench.d.ts.map +1 -1
  71. package/package.json +206 -206
  72. package/src/aldehyde/controls/action/index.css +8 -8
  73. package/src/aldehyde/controls/action/index.tsx +396 -401
  74. package/src/aldehyde/controls/action/utils.tsx +307 -307
  75. package/src/aldehyde/controls/auto-complete/index.tsx +82 -82
  76. package/src/aldehyde/controls/cascader/index.tsx +112 -112
  77. package/src/aldehyde/controls/chemstruc/graph.tsx +184 -184
  78. package/src/aldehyde/controls/chemstruc/index.css +28 -28
  79. package/src/aldehyde/controls/code-editor/sql-code-editor.tsx +73 -73
  80. package/src/aldehyde/controls/collapse-card/index.css +8 -8
  81. package/src/aldehyde/controls/collapse-card/index.tsx +109 -109
  82. package/src/aldehyde/controls/color-picker/index.css +26 -26
  83. package/src/aldehyde/controls/color-picker/index.tsx +114 -114
  84. package/src/aldehyde/controls/counting-tag/index.tsx +53 -53
  85. package/src/aldehyde/controls/cquery/cquick-button.tsx +144 -144
  86. package/src/aldehyde/controls/date-picker/index.tsx +146 -146
  87. package/src/aldehyde/controls/entity-select/entity-select.tsx +723 -723
  88. package/src/aldehyde/controls/entity-select/index.css +6 -6
  89. package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +154 -154
  90. package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +190 -190
  91. package/src/aldehyde/controls/entry-control.tsx +359 -359
  92. package/src/aldehyde/controls/enum-badge/index.tsx +31 -31
  93. package/src/aldehyde/controls/enum-tag/index.tsx +35 -35
  94. package/src/aldehyde/controls/field-history/index.tsx +81 -81
  95. package/src/aldehyde/controls/file-export/select-code-export.tsx +40 -40
  96. package/src/aldehyde/controls/file-view/drawer-file-view.tsx +75 -75
  97. package/src/aldehyde/controls/file-view/index.tsx +142 -142
  98. package/src/aldehyde/controls/file-view/newin-file-view.tsx +40 -40
  99. package/src/aldehyde/controls/html-editor/draft.tsx +161 -161
  100. package/src/aldehyde/controls/html-editor/tinymce.js +54 -54
  101. package/src/aldehyde/controls/input-number/index.tsx +148 -148
  102. package/src/aldehyde/controls/input-range/index.tsx +59 -59
  103. package/src/aldehyde/controls/password-setter/index.css +2 -2
  104. package/src/aldehyde/controls/password-setter/index.js +88 -88
  105. package/src/aldehyde/controls/progress/index.tsx +74 -74
  106. package/src/aldehyde/controls/relation-existion/index.css +4 -4
  107. package/src/aldehyde/controls/relation-existion/index.tsx +140 -140
  108. package/src/aldehyde/controls/rfield/index.css +4 -4
  109. package/src/aldehyde/controls/rfield/index.tsx +226 -226
  110. package/src/aldehyde/controls/select/index.tsx +211 -211
  111. package/src/aldehyde/controls/signature/index.tsx +226 -226
  112. package/src/aldehyde/controls/steps/index.tsx +59 -59
  113. package/src/aldehyde/controls/text/ellipsis-text.tsx +96 -96
  114. package/src/aldehyde/controls/upload/index.tsx +138 -138
  115. package/src/aldehyde/controls/view-control.tsx +284 -284
  116. package/src/aldehyde/custom-page/custom-page-router.tsx +75 -75
  117. package/src/aldehyde/custom-page/def-custom-page.tsx +17 -17
  118. package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +87 -87
  119. package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +90 -90
  120. package/src/aldehyde/detail/button/cquery-button-bar.tsx +144 -144
  121. package/src/aldehyde/detail/button/edit-button.tsx +62 -62
  122. package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +178 -178
  123. package/src/aldehyde/detail/button/index.css +42 -42
  124. package/src/aldehyde/detail/button/submit-button-bar.tsx +56 -56
  125. package/src/aldehyde/detail/button/view-button.tsx +61 -61
  126. package/src/aldehyde/detail/dtmpl.css +57 -57
  127. package/src/aldehyde/detail/edit/dtmpl-edit.tsx +267 -267
  128. package/src/aldehyde/detail/edit/fields-edit-card.tsx +143 -143
  129. package/src/aldehyde/detail/edit/modal-row-edit.tsx +94 -94
  130. package/src/aldehyde/detail/edit/post-result/index.tsx +85 -85
  131. package/src/aldehyde/detail/edit/row-edit-card.tsx +179 -179
  132. package/src/aldehyde/detail/edit/row-editor.tsx +72 -72
  133. package/src/aldehyde/detail/rightbar/index.css +34 -34
  134. package/src/aldehyde/detail/rightbar/index.tsx +92 -92
  135. package/src/aldehyde/detail/tooltipbar/index.tsx +32 -32
  136. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +286 -271
  137. package/src/aldehyde/detail/view/dtmpl-view.tsx +319 -319
  138. package/src/aldehyde/detail/view/field-view-group.tsx +83 -83
  139. package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +72 -72
  140. package/src/aldehyde/detail/view/snapshot-timeline.tsx +164 -164
  141. package/src/aldehyde/export/export-frame.css +2 -2
  142. package/src/aldehyde/export/export-frame.tsx +299 -299
  143. package/src/aldehyde/export/select-code-export-frame.tsx +218 -218
  144. package/src/aldehyde/form/criteria-form.tsx +488 -488
  145. package/src/aldehyde/form/dtmpl-form.css +3 -3
  146. package/src/aldehyde/form/dtmpl-form.tsx +502 -502
  147. package/src/aldehyde/form/field-group-form.tsx +98 -98
  148. package/src/aldehyde/form/fields-form.tsx +44 -44
  149. package/src/aldehyde/form/form-Item-group.tsx +211 -211
  150. package/src/aldehyde/form/index.css +12 -12
  151. package/src/aldehyde/hooks/useVarCssColor.ts +6 -6
  152. package/src/aldehyde/icon/index.tsx +28 -28
  153. package/src/aldehyde/import/excel-import.tsx +450 -450
  154. package/src/aldehyde/import/index.css +53 -53
  155. package/src/aldehyde/import/template.css +50 -50
  156. package/src/aldehyde/index.tsx +176 -176
  157. package/src/aldehyde/layout/MainPage.tsx +334 -334
  158. package/src/aldehyde/layout/common.css +64 -64
  159. package/src/aldehyde/layout/coverstyle.css +51 -51
  160. package/src/aldehyde/layout/footer/index.css +5 -5
  161. package/src/aldehyde/layout/footer/index.js +17 -17
  162. package/src/aldehyde/layout/header/index.css +122 -122
  163. package/src/aldehyde/layout/header/index.tsx +145 -145
  164. package/src/aldehyde/layout/menu/block.css +7 -7
  165. package/src/aldehyde/layout/menu/block.tsx +174 -174
  166. package/src/aldehyde/layout/menu/l2menu-message-bar.tsx +161 -161
  167. package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +159 -159
  168. package/src/aldehyde/layout/menu/menu-2layers.tsx +117 -117
  169. package/src/aldehyde/layout/menu/menu-render.tsx +165 -165
  170. package/src/aldehyde/layout/menu/reset-password.tsx +255 -255
  171. package/src/aldehyde/layout/menu/user-bar.tsx +258 -258
  172. package/src/aldehyde/layout/menu/userinfo-bar.tsx +69 -69
  173. package/src/aldehyde/layout/sidebar/index.css +57 -57
  174. package/src/aldehyde/layout/sidebar/index.tsx +85 -85
  175. package/src/aldehyde/layout2/LayoutContext.tsx +95 -95
  176. package/src/aldehyde/layout2/components/userButton.tsx +171 -171
  177. package/src/aldehyde/layout2/css/header.css +38 -38
  178. package/src/aldehyde/layout2/header.tsx +371 -371
  179. package/src/aldehyde/layout2/main.tsx +27 -27
  180. package/src/aldehyde/layout2/page.tsx +189 -189
  181. package/src/aldehyde/layout2/sider.tsx +335 -335
  182. package/src/aldehyde/layout2/type/layout.type.ts +10 -10
  183. package/src/aldehyde/layout2/util/menu.util.tsx +122 -122
  184. package/src/aldehyde/locale/LocaleButton.tsx +47 -47
  185. package/src/aldehyde/locale/LocaleProvider.tsx +204 -204
  186. package/src/aldehyde/locale/langMp.ts +45 -45
  187. package/src/aldehyde/locale/translate.ts +80 -80
  188. package/src/aldehyde/locale/useLocale.ts +56 -56
  189. package/src/aldehyde/login/context-setter.tsx +130 -130
  190. package/src/aldehyde/login/index.css +19 -19
  191. package/src/aldehyde/login/login.tsx +252 -252
  192. package/src/aldehyde/login/router-login.tsx +107 -107
  193. package/src/aldehyde/login/vertify/index.css +143 -143
  194. package/src/aldehyde/login/vertify/index.tsx +360 -360
  195. package/src/aldehyde/login/vertify/tool.ts +13 -13
  196. package/src/aldehyde/login2/Login.tsx +203 -203
  197. package/src/aldehyde/login2/LoginPage.tsx +64 -64
  198. package/src/aldehyde/login2/index.tsx +4 -4
  199. package/src/aldehyde/module/block-menu-tree-drawer.tsx +116 -116
  200. package/src/aldehyde/module/criteria-page.tsx1 +175 -175
  201. package/src/aldehyde/module/dtmpl-edit-card.tsx +313 -313
  202. package/src/aldehyde/module/dtmpl-edit-drawer.tsx +23 -23
  203. package/src/aldehyde/module/dtmpl-edit-modal.tsx +25 -25
  204. package/src/aldehyde/module/dtmpl-edit-page.tsx +396 -396
  205. package/src/aldehyde/module/dtmpl-editor.tsx +162 -162
  206. package/src/aldehyde/module/dtmpl-view-card.tsx +73 -73
  207. package/src/aldehyde/module/dtmpl-view-drawer.tsx +64 -64
  208. package/src/aldehyde/module/dtmpl-view-modal.tsx +53 -53
  209. package/src/aldehyde/module/embed-dtmpl-edit-page.tsx +137 -137
  210. package/src/aldehyde/module/ltmpl-drawer.tsx +57 -57
  211. package/src/aldehyde/module/ltmpl-modal.tsx +62 -62
  212. package/src/aldehyde/module/ltmpl-table.tsx +375 -375
  213. package/src/aldehyde/routable/dtmpl-route.tsx +166 -165
  214. package/src/aldehyde/routable/import-route.tsx +34 -34
  215. package/src/aldehyde/routable/ltmpl-route.tsx +436 -436
  216. package/src/aldehyde/routable/ttmpl-route.tsx +95 -95
  217. package/src/aldehyde/routable/withroute.tsx +25 -25
  218. package/src/aldehyde/table/act-table.tsx +1737 -1732
  219. package/src/aldehyde/table/column/column-selector.tsx +130 -130
  220. package/src/aldehyde/table/column/index.css +13 -13
  221. package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +80 -80
  222. package/src/aldehyde/table/index.css +71 -71
  223. package/src/aldehyde/table/l2-act-table.tsx +91 -91
  224. package/src/aldehyde/table/modal-select-table.tsx +278 -278
  225. package/src/aldehyde/table/pagination.css +14 -14
  226. package/src/aldehyde/table/pagination.tsx +76 -76
  227. package/src/aldehyde/table/query-table.tsx +1421 -1421
  228. package/src/aldehyde/table/relation-table.tsx +855 -855
  229. package/src/aldehyde/table/select-table.tsx +272 -272
  230. package/src/aldehyde/table/selected-rows-card.tsx +75 -75
  231. package/src/aldehyde/table/stat/restat.tsx +123 -123
  232. package/src/aldehyde/table/table-util.tsx +25 -25
  233. package/src/aldehyde/tmpl/control-type-supportor.tsx +111 -111
  234. package/src/aldehyde/tmpl/hc-data-source.tsx +514 -514
  235. package/src/aldehyde/tmpl/hcservice-v3.tsx +1226 -1226
  236. package/src/aldehyde/tmpl/interface.tsx +614 -612
  237. package/src/aldehyde/tmpl/model-struc-v3.tsx +107 -107
  238. package/src/aldehyde/tmpl/superagent.js +165 -165
  239. package/src/aldehyde/tmpl/tmpl-config-analysis.tsx +342 -342
  240. package/src/aldehyde/tree/act-tree.tsx +220 -220
  241. package/src/aldehyde/tree/block-menu-auth-tree.tsx +187 -187
  242. package/src/aldehyde/tree/index.css +20 -20
  243. package/src/aldehyde/tree/tmpl-tree.tsx +678 -678
  244. package/src/aldehyde/tree/tree-node.tsx +73 -73
  245. package/src/aldehyde/tree/tree-utils.tsx +170 -170
  246. package/src/aldehyde/units/EncryptUtils.js +37 -37
  247. package/src/aldehyde/units/image.d.ts +7 -7
  248. package/src/aldehyde/units/index.tsx +978 -978
  249. package/src/aldehyde/units/storage.js +2 -2
  250. package/src/aldehyde/utils/dsu.ts +27 -27
  251. package/src/aldehyde/welcome/HCWelcome.js +321 -321
  252. package/src/aldehyde/welcome/HCWelcome1.js +259 -259
  253. package/src/aldehyde/welcome/index.css +13 -13
  254. package/src/aldehyde/welcome/quick-entrance.tsx +98 -98
  255. package/src/aldehyde/welcome/workbench.tsx +100 -100
  256. package/lib/controls/action/index.css +0 -9
  257. package/lib/controls/action/index.d.ts +0 -67
  258. package/lib/controls/action/index.d.ts.map +0 -1
  259. package/lib/controls/action/index.js +0 -243
  260. package/lib/controls/action/index.js.map +0 -1
  261. package/lib/controls/action/utils.d.ts +0 -15
  262. package/lib/controls/action/utils.d.ts.map +0 -1
  263. package/lib/controls/action/utils.js +0 -262
  264. package/lib/controls/action/utils.js.map +0 -1
  265. package/lib/controls/auto-complete/index.d.ts +0 -7
  266. package/lib/controls/auto-complete/index.d.ts.map +0 -1
  267. package/lib/controls/auto-complete/index.js +0 -58
  268. package/lib/controls/auto-complete/index.js.map +0 -1
  269. package/lib/controls/cascader/index.d.ts +0 -23
  270. package/lib/controls/cascader/index.d.ts.map +0 -1
  271. package/lib/controls/cascader/index.js +0 -108
  272. package/lib/controls/cascader/index.js.map +0 -1
  273. package/lib/controls/chemstruc/graph.d.ts +0 -40
  274. package/lib/controls/chemstruc/graph.d.ts.map +0 -1
  275. package/lib/controls/chemstruc/graph.js +0 -133
  276. package/lib/controls/chemstruc/graph.js.map +0 -1
  277. package/lib/controls/chemstruc/index.css +0 -28
  278. package/lib/controls/code-editor/sql-code-editor.d.ts +0 -15
  279. package/lib/controls/code-editor/sql-code-editor.d.ts.map +0 -1
  280. package/lib/controls/code-editor/sql-code-editor.js +0 -53
  281. package/lib/controls/code-editor/sql-code-editor.js.map +0 -1
  282. package/lib/controls/collapse-card/index.css +0 -9
  283. package/lib/controls/collapse-card/index.d.ts +0 -33
  284. package/lib/controls/collapse-card/index.d.ts.map +0 -1
  285. package/lib/controls/collapse-card/index.js +0 -74
  286. package/lib/controls/collapse-card/index.js.map +0 -1
  287. package/lib/controls/color-picker/index.css +0 -27
  288. package/lib/controls/color-picker/index.d.ts +0 -30
  289. package/lib/controls/color-picker/index.d.ts.map +0 -1
  290. package/lib/controls/color-picker/index.js +0 -64
  291. package/lib/controls/color-picker/index.js.map +0 -1
  292. package/lib/controls/counting-tag/index.d.ts +0 -20
  293. package/lib/controls/counting-tag/index.d.ts.map +0 -1
  294. package/lib/controls/counting-tag/index.js +0 -37
  295. package/lib/controls/counting-tag/index.js.map +0 -1
  296. package/lib/controls/cquery/cquick-button.d.ts +0 -36
  297. package/lib/controls/cquery/cquick-button.d.ts.map +0 -1
  298. package/lib/controls/cquery/cquick-button.js +0 -75
  299. package/lib/controls/cquery/cquick-button.js.map +0 -1
  300. package/lib/controls/date-picker/index.d.ts +0 -7
  301. package/lib/controls/date-picker/index.d.ts.map +0 -1
  302. package/lib/controls/date-picker/index.js +0 -91
  303. package/lib/controls/date-picker/index.js.map +0 -1
  304. package/lib/controls/entity-select/entity-select.d.ts +0 -87
  305. package/lib/controls/entity-select/entity-select.d.ts.map +0 -1
  306. package/lib/controls/entity-select/entity-select.js +0 -475
  307. package/lib/controls/entity-select/entity-select.js.map +0 -1
  308. package/lib/controls/entity-select/index.css +0 -6
  309. package/lib/controls/entity-select/lab-tree-select.d.ts +0 -36
  310. package/lib/controls/entity-select/lab-tree-select.d.ts.map +0 -1
  311. package/lib/controls/entity-select/lab-tree-select.js +0 -127
  312. package/lib/controls/entity-select/lab-tree-select.js.map +0 -1
  313. package/lib/controls/entity-select/popover-entity-select.d.ts +0 -33
  314. package/lib/controls/entity-select/popover-entity-select.d.ts.map +0 -1
  315. package/lib/controls/entity-select/popover-entity-select.js +0 -114
  316. package/lib/controls/entity-select/popover-entity-select.js.map +0 -1
  317. package/lib/controls/enum-badge/index.d.ts +0 -7
  318. package/lib/controls/enum-badge/index.d.ts.map +0 -1
  319. package/lib/controls/enum-badge/index.js +0 -14
  320. package/lib/controls/enum-badge/index.js.map +0 -1
  321. package/lib/controls/enum-tag/index.d.ts +0 -7
  322. package/lib/controls/enum-tag/index.d.ts.map +0 -1
  323. package/lib/controls/enum-tag/index.js +0 -27
  324. package/lib/controls/enum-tag/index.js.map +0 -1
  325. package/lib/controls/field-history/index.d.ts +0 -8
  326. package/lib/controls/field-history/index.d.ts.map +0 -1
  327. package/lib/controls/field-history/index.js +0 -67
  328. package/lib/controls/field-history/index.js.map +0 -1
  329. package/lib/controls/file-export/select-code-export.d.ts +0 -13
  330. package/lib/controls/file-export/select-code-export.d.ts.map +0 -1
  331. package/lib/controls/file-export/select-code-export.js +0 -14
  332. package/lib/controls/file-export/select-code-export.js.map +0 -1
  333. package/lib/controls/file-view/drawer-file-view.d.ts +0 -23
  334. package/lib/controls/file-view/drawer-file-view.d.ts.map +0 -1
  335. package/lib/controls/file-view/drawer-file-view.js +0 -49
  336. package/lib/controls/file-view/drawer-file-view.js.map +0 -1
  337. package/lib/controls/file-view/index.d.ts +0 -30
  338. package/lib/controls/file-view/index.d.ts.map +0 -1
  339. package/lib/controls/file-view/index.js +0 -122
  340. package/lib/controls/file-view/index.js.map +0 -1
  341. package/lib/controls/file-view/newin-file-view.d.ts +0 -18
  342. package/lib/controls/file-view/newin-file-view.d.ts.map +0 -1
  343. package/lib/controls/file-view/newin-file-view.js +0 -28
  344. package/lib/controls/file-view/newin-file-view.js.map +0 -1
  345. package/lib/controls/html-editor/draft.d.ts +0 -22
  346. package/lib/controls/html-editor/draft.d.ts.map +0 -1
  347. package/lib/controls/html-editor/draft.js +0 -122
  348. package/lib/controls/html-editor/draft.js.map +0 -1
  349. package/lib/controls/html-editor/tinymce.d.ts +0 -13
  350. package/lib/controls/html-editor/tinymce.d.ts.map +0 -1
  351. package/lib/controls/html-editor/tinymce.js +0 -47
  352. package/lib/controls/html-editor/tinymce.js.map +0 -1
  353. package/lib/controls/input-number/index.d.ts +0 -7
  354. package/lib/controls/input-number/index.d.ts.map +0 -1
  355. package/lib/controls/input-number/index.js +0 -77
  356. package/lib/controls/input-number/index.js.map +0 -1
  357. package/lib/controls/input-range/index.d.ts +0 -7
  358. package/lib/controls/input-range/index.d.ts.map +0 -1
  359. package/lib/controls/input-range/index.js +0 -29
  360. package/lib/controls/input-range/index.js.map +0 -1
  361. package/lib/controls/password-setter/index.css +0 -3
  362. package/lib/controls/password-setter/index.d.ts +0 -17
  363. package/lib/controls/password-setter/index.d.ts.map +0 -1
  364. package/lib/controls/password-setter/index.js +0 -59
  365. package/lib/controls/password-setter/index.js.map +0 -1
  366. package/lib/controls/progress/index.d.ts +0 -7
  367. package/lib/controls/progress/index.d.ts.map +0 -1
  368. package/lib/controls/progress/index.js +0 -52
  369. package/lib/controls/progress/index.js.map +0 -1
  370. package/lib/controls/relation-existion/index.css +0 -4
  371. package/lib/controls/relation-existion/index.d.ts +0 -31
  372. package/lib/controls/relation-existion/index.d.ts.map +0 -1
  373. package/lib/controls/relation-existion/index.js +0 -87
  374. package/lib/controls/relation-existion/index.js.map +0 -1
  375. package/lib/controls/rfield/index.css +0 -4
  376. package/lib/controls/rfield/index.d.ts +0 -41
  377. package/lib/controls/rfield/index.d.ts.map +0 -1
  378. package/lib/controls/rfield/index.js +0 -149
  379. package/lib/controls/rfield/index.js.map +0 -1
  380. package/lib/controls/select/index.d.ts +0 -30
  381. package/lib/controls/select/index.d.ts.map +0 -1
  382. package/lib/controls/select/index.js +0 -145
  383. package/lib/controls/select/index.js.map +0 -1
  384. package/lib/controls/signature/index.d.ts +0 -42
  385. package/lib/controls/signature/index.d.ts.map +0 -1
  386. package/lib/controls/signature/index.js +0 -155
  387. package/lib/controls/signature/index.js.map +0 -1
  388. package/lib/controls/steps/index.d.ts +0 -8
  389. package/lib/controls/steps/index.d.ts.map +0 -1
  390. package/lib/controls/steps/index.js +0 -47
  391. package/lib/controls/steps/index.js.map +0 -1
  392. package/lib/controls/text/ellipsis-text.d.ts +0 -31
  393. package/lib/controls/text/ellipsis-text.d.ts.map +0 -1
  394. package/lib/controls/text/ellipsis-text.js +0 -48
  395. package/lib/controls/text/ellipsis-text.js.map +0 -1
  396. package/lib/controls/upload/index.d.ts +0 -26
  397. package/lib/controls/upload/index.d.ts.map +0 -1
  398. package/lib/controls/upload/index.js +0 -109
  399. package/lib/controls/upload/index.js.map +0 -1
  400. package/lib/detail/button/bottom-submit-button-bar.d.ts +0 -24
  401. package/lib/detail/button/bottom-submit-button-bar.d.ts.map +0 -1
  402. package/lib/detail/button/bottom-submit-button-bar.js +0 -38
  403. package/lib/detail/button/bottom-submit-button-bar.js.map +0 -1
  404. package/lib/detail/button/cquery-button-bar.d.ts +0 -28
  405. package/lib/detail/button/cquery-button-bar.d.ts.map +0 -1
  406. package/lib/detail/button/cquery-button-bar.js +0 -79
  407. package/lib/detail/button/cquery-button-bar.js.map +0 -1
  408. package/lib/detail/button/edit-button.d.ts +0 -11
  409. package/lib/detail/button/edit-button.d.ts.map +0 -1
  410. package/lib/detail/button/edit-button.js +0 -29
  411. package/lib/detail/button/edit-button.js.map +0 -1
  412. package/lib/detail/button/fix-right-submit-button-bar.d.ts +0 -26
  413. package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +0 -1
  414. package/lib/detail/button/fix-right-submit-button-bar.js +0 -93
  415. package/lib/detail/button/fix-right-submit-button-bar.js.map +0 -1
  416. package/lib/detail/button/index.css +0 -43
  417. package/lib/detail/button/submit-button-bar.d.ts +0 -22
  418. package/lib/detail/button/submit-button-bar.d.ts.map +0 -1
  419. package/lib/detail/button/submit-button-bar.js +0 -22
  420. package/lib/detail/button/submit-button-bar.js.map +0 -1
  421. package/lib/detail/button/view-button.d.ts +0 -11
  422. package/lib/detail/button/view-button.d.ts.map +0 -1
  423. package/lib/detail/button/view-button.js +0 -28
  424. package/lib/detail/button/view-button.js.map +0 -1
  425. package/lib/detail/edit/dtmpl-edit.d.ts +0 -48
  426. package/lib/detail/edit/dtmpl-edit.d.ts.map +0 -1
  427. package/lib/detail/edit/dtmpl-edit.js +0 -236
  428. package/lib/detail/edit/dtmpl-edit.js.map +0 -1
  429. package/lib/detail/edit/fields-edit-card.d.ts +0 -51
  430. package/lib/detail/edit/fields-edit-card.d.ts.map +0 -1
  431. package/lib/detail/edit/fields-edit-card.js +0 -63
  432. package/lib/detail/edit/fields-edit-card.js.map +0 -1
  433. package/lib/detail/edit/modal-row-edit.d.ts +0 -43
  434. package/lib/detail/edit/modal-row-edit.d.ts.map +0 -1
  435. package/lib/detail/edit/modal-row-edit.js +0 -60
  436. package/lib/detail/edit/modal-row-edit.js.map +0 -1
  437. package/lib/detail/edit/post-result/index.d.ts +0 -17
  438. package/lib/detail/edit/post-result/index.d.ts.map +0 -1
  439. package/lib/detail/edit/post-result/index.js +0 -33
  440. package/lib/detail/edit/post-result/index.js.map +0 -1
  441. package/lib/detail/edit/row-edit-card.d.ts +0 -54
  442. package/lib/detail/edit/row-edit-card.d.ts.map +0 -1
  443. package/lib/detail/edit/row-edit-card.js +0 -83
  444. package/lib/detail/edit/row-edit-card.js.map +0 -1
  445. package/lib/detail/edit/row-editor.d.ts +0 -33
  446. package/lib/detail/edit/row-editor.d.ts.map +0 -1
  447. package/lib/detail/edit/row-editor.js +0 -57
  448. package/lib/detail/edit/row-editor.js.map +0 -1
  449. package/lib/detail/rightbar/index.css +0 -35
  450. package/lib/detail/rightbar/index.d.ts +0 -31
  451. package/lib/detail/rightbar/index.d.ts.map +0 -1
  452. package/lib/detail/rightbar/index.js +0 -59
  453. package/lib/detail/rightbar/index.js.map +0 -1
  454. package/lib/detail/tooltipbar/index.d.ts +0 -19
  455. package/lib/detail/tooltipbar/index.d.ts.map +0 -1
  456. package/lib/detail/tooltipbar/index.js +0 -29
  457. package/lib/detail/tooltipbar/index.js.map +0 -1
  458. package/lib/detail/view/act-dtmpl-view.d.ts +0 -64
  459. package/lib/detail/view/act-dtmpl-view.d.ts.map +0 -1
  460. package/lib/detail/view/act-dtmpl-view.js +0 -152
  461. package/lib/detail/view/act-dtmpl-view.js.map +0 -1
  462. package/lib/detail/view/dtmpl-view.d.ts +0 -43
  463. package/lib/detail/view/dtmpl-view.d.ts.map +0 -1
  464. package/lib/detail/view/dtmpl-view.js +0 -164
  465. package/lib/detail/view/dtmpl-view.js.map +0 -1
  466. package/lib/detail/view/field-view-group.d.ts +0 -30
  467. package/lib/detail/view/field-view-group.d.ts.map +0 -1
  468. package/lib/detail/view/field-view-group.js +0 -45
  469. package/lib/detail/view/field-view-group.js.map +0 -1
  470. package/lib/detail/view/modal-dtmpl-view.d.ts +0 -40
  471. package/lib/detail/view/modal-dtmpl-view.d.ts.map +0 -1
  472. package/lib/detail/view/modal-dtmpl-view.js +0 -34
  473. package/lib/detail/view/modal-dtmpl-view.js.map +0 -1
  474. package/lib/detail/view/snapshot-timeline.d.ts +0 -44
  475. package/lib/detail/view/snapshot-timeline.d.ts.map +0 -1
  476. package/lib/detail/view/snapshot-timeline.js +0 -92
  477. package/lib/detail/view/snapshot-timeline.js.map +0 -1
  478. package/lib/index.d.ts +0 -51
  479. package/lib/index.d.ts.map +0 -1
  480. package/lib/index.js +0 -116
  481. package/lib/index.js.map +0 -1
  482. package/lib/layout/footer/index.css +0 -6
  483. package/lib/layout/footer/index.d.ts +0 -7
  484. package/lib/layout/footer/index.d.ts.map +0 -1
  485. package/lib/layout/footer/index.js +0 -12
  486. package/lib/layout/footer/index.js.map +0 -1
  487. package/lib/layout/header/index.css +0 -122
  488. package/lib/layout/header/index.d.ts +0 -10
  489. package/lib/layout/header/index.d.ts.map +0 -1
  490. package/lib/layout/header/index.js +0 -62
  491. package/lib/layout/header/index.js.map +0 -1
  492. package/lib/layout/menu/block.css +0 -7
  493. package/lib/layout/menu/block.d.ts +0 -33
  494. package/lib/layout/menu/block.d.ts.map +0 -1
  495. package/lib/layout/menu/block.js +0 -128
  496. package/lib/layout/menu/block.js.map +0 -1
  497. package/lib/layout/menu/l2menu-message-bar.d.ts +0 -28
  498. package/lib/layout/menu/l2menu-message-bar.d.ts.map +0 -1
  499. package/lib/layout/menu/l2menu-message-bar.js +0 -114
  500. package/lib/layout/menu/l2menu-message-bar.js.map +0 -1
  501. package/lib/layout/menu/l2menu-quick-bar.d.ts +0 -45
  502. package/lib/layout/menu/l2menu-quick-bar.d.ts.map +0 -1
  503. package/lib/layout/menu/l2menu-quick-bar.js +0 -108
  504. package/lib/layout/menu/l2menu-quick-bar.js.map +0 -1
  505. package/lib/layout/menu/menu-2layers.d.ts +0 -26
  506. package/lib/layout/menu/menu-2layers.d.ts.map +0 -1
  507. package/lib/layout/menu/menu-2layers.js +0 -95
  508. package/lib/layout/menu/menu-2layers.js.map +0 -1
  509. package/lib/layout/menu/menu-render.d.ts +0 -14
  510. package/lib/layout/menu/menu-render.d.ts.map +0 -1
  511. package/lib/layout/menu/menu-render.js +0 -159
  512. package/lib/layout/menu/menu-render.js.map +0 -1
  513. package/lib/layout/menu/reset-password.d.ts +0 -38
  514. package/lib/layout/menu/reset-password.d.ts.map +0 -1
  515. package/lib/layout/menu/reset-password.js +0 -143
  516. package/lib/layout/menu/reset-password.js.map +0 -1
  517. package/lib/layout/menu/user-bar.d.ts +0 -50
  518. package/lib/layout/menu/user-bar.d.ts.map +0 -1
  519. package/lib/layout/menu/user-bar.js +0 -161
  520. package/lib/layout/menu/user-bar.js.map +0 -1
  521. package/lib/layout/menu/userinfo-bar.d.ts +0 -34
  522. package/lib/layout/menu/userinfo-bar.d.ts.map +0 -1
  523. package/lib/layout/menu/userinfo-bar.js +0 -49
  524. package/lib/layout/menu/userinfo-bar.js.map +0 -1
  525. package/lib/layout/sidebar/index.css +0 -57
  526. package/lib/layout/sidebar/index.d.ts +0 -12
  527. package/lib/layout/sidebar/index.d.ts.map +0 -1
  528. package/lib/layout/sidebar/index.js +0 -45
  529. package/lib/layout/sidebar/index.js.map +0 -1
  530. package/lib/layout/sidebar/logo.png +0 -0
  531. package/lib/layout2/components/userButton.d.ts +0 -5
  532. package/lib/layout2/components/userButton.d.ts.map +0 -1
  533. package/lib/layout2/components/userButton.js +0 -133
  534. package/lib/layout2/components/userButton.js.map +0 -1
  535. package/lib/layout2/css/header.css +0 -38
  536. package/lib/layout2/imgs/home.png +0 -0
  537. package/lib/layout2/type/layout.type.d.ts +0 -10
  538. package/lib/layout2/type/layout.type.d.ts.map +0 -1
  539. package/lib/layout2/type/layout.type.js +0 -2
  540. package/lib/layout2/type/layout.type.js.map +0 -1
  541. package/lib/layout2/util/menu.util.d.ts +0 -28
  542. package/lib/layout2/util/menu.util.d.ts.map +0 -1
  543. package/lib/layout2/util/menu.util.js +0 -85
  544. package/lib/layout2/util/menu.util.js.map +0 -1
  545. package/lib/login/vertify/index.css +0 -144
  546. package/lib/login/vertify/index.d.ts +0 -78
  547. package/lib/login/vertify/index.d.ts.map +0 -1
  548. package/lib/login/vertify/index.js +0 -210
  549. package/lib/login/vertify/index.js.map +0 -1
  550. package/lib/login/vertify/tool.d.ts +0 -5
  551. package/lib/login/vertify/tool.d.ts.map +0 -1
  552. package/lib/login/vertify/tool.js +0 -11
  553. package/lib/login/vertify/tool.js.map +0 -1
  554. package/lib/login2/img/login-bg.png +0 -0
  555. package/lib/table/column/column-selector.d.ts +0 -25
  556. package/lib/table/column/column-selector.d.ts.map +0 -1
  557. package/lib/table/column/column-selector.js +0 -62
  558. package/lib/table/column/column-selector.js.map +0 -1
  559. package/lib/table/column/index.css +0 -14
  560. package/lib/table/stat/restat.d.ts +0 -38
  561. package/lib/table/stat/restat.d.ts.map +0 -1
  562. package/lib/table/stat/restat.js +0 -62
  563. package/lib/table/stat/restat.js.map +0 -1
  564. package/lib/welcome/img/development.png +0 -0
  565. package/lib/welcome/img/pain-point.png +0 -0
  566. package/lib/welcome/img/target.png +0 -0
  567. package/lib/welcome/img/time-cost.png +0 -0
  568. package/lib/welcome/img/time-prograss.png +0 -0
  569. package/lib/welcome/img/welcome.png +0 -0
@@ -1,109 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import React from "react";
11
- import { Button, Upload as AntdUpload, message } from "antd";
12
- import { UploadOutlined } from "@ant-design/icons";
13
- import HcserviceV3 from "./../../tmpl/hcservice-v3";
14
- import Super from "../../tmpl/superagent";
15
- import Units from "../../units";
16
- import { LocaleContext } from "../../locale/LocaleProvider";
17
- class Upload extends React.PureComponent {
18
- constructor() {
19
- super(...arguments);
20
- this.state = {};
21
- // handleRemove=(info)=>{
22
- // Modal.confirm({
23
- // title: "删除提示",
24
- // content: "您确定删除此图片吗?",
25
- // okText: "确认",
26
- // cancelText: "取消",
27
- // onOk: () => {
28
- // let fileList = []
29
- // this.props.onChange(JSON.stringify({valid:'delete'}));
30
- // },
31
- // onCancel: () => {
32
- // return false;
33
- // }
34
- // });
35
- //
36
- // return false;
37
- // }
38
- this.handleRemove = (info) => {
39
- this.props.onChange(JSON.stringify({ valid: "delete" }));
40
- };
41
- this.handleChange = (info) => __awaiter(this, void 0, void 0, function* () {
42
- console.log("file change:", info);
43
- if (info.file.status == "done") {
44
- let newFile = {
45
- valid: "new",
46
- fileKey: info.file.response.fileKey,
47
- fileName: info.file.originFileObj.name,
48
- };
49
- const { onChange } = this.props;
50
- onChange(JSON.stringify(newFile));
51
- }
52
- });
53
- // triggerChange = (changedValue) => {
54
- // onChange(changedValue);
55
- // if (onChange) {
56
- // onChange(changedValue);
57
- // }
58
- // }
59
- this.beforeUpload = (file) => {
60
- const { translate } = this.context;
61
- const isLt5M = file.size / 1024 / 1024 < 40;
62
- if (!isLt5M) {
63
- message.error(translate("${超过40M限制 不允许上传~}"), 5);
64
- return false;
65
- }
66
- else {
67
- return true;
68
- }
69
- };
70
- }
71
- render() {
72
- const { id, itemType, disabled, value, serverKey } = this.props;
73
- const { translate } = this.context;
74
- let fileList = [];
75
- if (value) {
76
- let value_1 = value;
77
- if (typeof value_1 == "string") {
78
- value_1 = JSON.parse(value);
79
- }
80
- if (value_1.valid === true) {
81
- fileList.push({
82
- uid: "-1",
83
- name: value_1.base.fileName,
84
- status: "done",
85
- url: encodeURI(Units.joinPath(Units.joinPath(Units.api(), "/v3/files"), value_1.base.path)) +
86
- `?@token=${Units.hydrocarbonToken()}&@programToken=${Units.programCode()}&disposition=attachment`,
87
- });
88
- }
89
- else if (value_1.valid == "new") {
90
- fileList.push({
91
- uid: "-2",
92
- name: value_1.fileName,
93
- });
94
- }
95
- }
96
- return (React.createElement("div", null,
97
- React.createElement(AntdUpload, { id: id, maxCount: 1, accept: itemType === "picture"
98
- ? ".png, .jpg, .jpeg"
99
- : itemType === "video"
100
- ? ".mp4"
101
- : undefined, listType: itemType == "picture" ? "picture" : "text", fileList: fileList.length == 0 ? undefined : fileList, disabled: disabled, name: "file", headers: Super.getHeaderObj(), action: (file) => HcserviceV3.postFileAction(serverKey, file), beforeUpload: this.beforeUpload, onChange: this.handleChange, onRemove: this.handleRemove }, fileList && fileList.length >= 1 ? ("") : (React.createElement(Button, { disabled: disabled },
102
- React.createElement(UploadOutlined, null),
103
- " ",
104
- disabled ? translate("${无需上传}") : translate("${点击上传}"))))));
105
- }
106
- }
107
- Upload.contextType = LocaleContext;
108
- export default Upload;
109
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/aldehyde/controls/upload/index.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AAEpD,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAE1C,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,MAAqB,MAAO,SAAQ,KAAK,CAAC,aAGzC;IAHD;;QAIE,UAAK,GAAG,EAAE,CAAC;QAIX,yBAAyB;QACzB,sBAAsB;QACtB,yBAAyB;QACzB,iCAAiC;QACjC,wBAAwB;QACxB,4BAA4B;QAC5B,wBAAwB;QACxB,gCAAgC;QAChC,qEAAqE;QACrE,aAAa;QACb,4BAA4B;QAC5B,4BAA4B;QAC5B,YAAY;QACZ,UAAU;QACV,EAAE;QACF,oBAAoB;QACpB,IAAI;QACJ,iBAAY,GAAG,CAAC,IAAI,EAAE,EAAE;YACtB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC3D,CAAC,CAAC;QACF,i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C,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACrD,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,EAC7B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,EAC7D,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,QAAQ,EAAE,IAAI,CAAC,YAAY,IAE1B,QAAQ,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAClC,EAAE,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,QAAQ,EAAE,QAAQ;gBACxB,oBAAC,cAAc,OAAG;gBAAC,GAAG;gBACrB,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAChD,CACV,CACU,CACT,CACP,CAAC;IACJ,CAAC;;AAtHM,kBAAW,GAAG,aAAa,AAAhB,CAAiB;eALhB,MAAM"}
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { SubmitButtonProps } from "./submit-button-bar";
4
- import { LocaleContext } from "../../locale/LocaleProvider";
5
- interface BottomSubmitButtonBarProps extends SubmitButtonProps {
6
- }
7
- interface BottomSubmitButtonState {
8
- }
9
- declare class BottomSubmitButtonBar extends React.PureComponent<BottomSubmitButtonBarProps, BottomSubmitButtonState> {
10
- state: {};
11
- static contextType: React.Context<{
12
- locale: import("../../locale/langMp").LocaleType;
13
- langPkg: any;
14
- availableLang: string[];
15
- changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
16
- t: (...strs: string[]) => string;
17
- translate: (...strs: string[]) => string;
18
- getServiceLangStr?: () => string;
19
- }>;
20
- context: React.ContextType<typeof LocaleContext>;
21
- render(): React.JSX.Element;
22
- }
23
- export default BottomSubmitButtonBar;
24
- //# sourceMappingURL=bottom-submit-button-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bottom-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,0BAA2B,SAAQ,iBAAiB;CAAG;AAEjE,UAAU,uBAAuB;CAEhC;AAED,cAAM,qBAAsB,SAAQ,KAAK,CAAC,aAAa,CACrD,0BAA0B,EAC1B,uBAAuB,CACxB;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM;CA8DP;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,38 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { Button, Card, Col, Row, Space } from "antd";
4
- import { SaveOutlined } from "@ant-design/icons";
5
- import Action from "../../controls/action";
6
- import { LocaleContext } from "../../locale/LocaleProvider";
7
- class BottomSubmitButtonBar extends React.PureComponent {
8
- constructor() {
9
- super(...arguments);
10
- this.state = {
11
- // stateSerial:0,
12
- };
13
- }
14
- render() {
15
- const {} = this.state;
16
- const { dtmplConfig, position, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
17
- const { buttons, actions } = dtmplConfig;
18
- const { translate } = this.context;
19
- return (React.createElement(Card, { bordered: false },
20
- React.createElement(Row, { align: "middle", justify: position == "bottomLeft"
21
- ? "start"
22
- : position == "bottomRight"
23
- ? "end"
24
- : "center" },
25
- React.createElement(Space, null,
26
- buttons.includes("dtmplSave") ? (React.createElement(Col, null,
27
- React.createElement(Button, { onClick: () => doSubmit(), type: "primary", icon: React.createElement(SaveOutlined, null), key: "btn", block: true }, translate("${保存}")))) : null,
28
- actions
29
- ? actions.map((item, index) => {
30
- return (React.createElement(Col, null,
31
- React.createElement(Action, { serverKey: serverKey, serial: serial, key: item.id, data: [dtmplData], formRef: formRef, actionConfig: item, doAction: doSubmit })));
32
- })
33
- : ""))));
34
- }
35
- }
36
- BottomSubmitButtonBar.contextType = LocaleContext;
37
- export default BottomSubmitButtonBar;
38
- //# sourceMappingURL=bottom-submit-button-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bottom-submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/bottom-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQ5D,MAAM,qBAAsB,SAAQ,KAAK,CAAC,aAGzC;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;IAkEJ,CAAC;IA9DC,MAAM;QACJ,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtB,MAAM,EACJ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,GACV,GAAG,IAAI,CAAC,KAAK,CAAC;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;QACzC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAEnC,OAAO,CACL,oBAAC,IAAI,IAAC,QAAQ,EAAE,KAAK;YACnB,oBAAC,GAAG,IACF,KAAK,EAAE,QAAQ,EACf,OAAO,EACL,QAAQ,IAAI,YAAY;oBACtB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,QAAQ,IAAI,aAAa;wBAC3B,CAAC,CAAC,KAAK;wBACP,CAAC,CAAC,QAAQ;gBAGd,oBAAC,KAAK;oBACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAC/B,oBAAC,GAAG;wBACF,oBAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,EACzB,IAAI,EAAC,SAAS,EACd,IAAI,EAAE,oBAAC,YAAY,OAAG,EACtB,GAAG,EAAC,KAAK,EACT,KAAK,UAEJ,SAAS,CAAC,OAAO,CAAC,CACZ,CACL,CACP,CAAC,CAAC,CAAC,IAAI;oBACP,OAAO;wBACN,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;4BAC1B,OAAO,CACL,oBAAC,GAAG;gCACF,oBAAC,MAAM,IACL,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,IAAI,EAAE,CAAC,SAAS,CAAC,EACjB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,GACV,CACN,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,CACA,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;AAhEM,iCAAW,GAAG,aAAa,AAAhB,CAAiB;AAmErC,eAAe,qBAAqB,CAAC"}
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { CQueryConfig, DtmplConfig } from "../../tmpl/interface";
4
- import { LocaleContext } from "../../locale/LocaleProvider";
5
- interface CqueryButtonBarProps {
6
- serverKey?: string;
7
- dtmplConfig: DtmplConfig;
8
- mainCode: string;
9
- }
10
- interface CqueryButtonBarState {
11
- }
12
- declare class CqueryButtonBar extends React.PureComponent<CqueryButtonBarProps, CqueryButtonBarState> {
13
- state: {};
14
- static contextType: React.Context<{
15
- locale: import("../../locale/langMp").LocaleType;
16
- langPkg: any;
17
- availableLang: string[];
18
- changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
19
- t: (...strs: string[]) => string;
20
- translate: (...strs: string[]) => string;
21
- getServiceLangStr?: () => string;
22
- }>;
23
- context: React.ContextType<typeof LocaleContext>;
24
- calcOffsetBottom: (cQuerys: CQueryConfig[]) => 80 | 120 | 86;
25
- render(): "" | React.JSX.Element;
26
- }
27
- export default CqueryButtonBar;
28
- //# sourceMappingURL=cquery-button-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cquery-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AACrB,OAAO,EAGL,YAAY,EACZ,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,oBAAoB;CAE7B;AAED,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAC/C,oBAAoB,EACpB,oBAAoB,CACrB;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,gBAAgB,YAAa,YAAY,EAAE,mBAQzC;IAoBF,MAAM;CA8EP;AAED,eAAe,eAAe,CAAC"}
@@ -1,79 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { Affix, Button, Popover, Space } from "antd";
4
- import { LeftOutlined } from "@ant-design/icons";
5
- import CquickButton from "../../controls/cquery/cquick-button";
6
- import { LocaleContext } from "../../locale/LocaleProvider";
7
- class CqueryButtonBar extends React.PureComponent {
8
- constructor() {
9
- super(...arguments);
10
- this.state = {
11
- // stateSerial:0,
12
- };
13
- this.calcOffsetBottom = (cQuerys) => {
14
- if (cQuerys.length >= 3) {
15
- return 120;
16
- }
17
- else if (cQuerys.length == 2) {
18
- return 86;
19
- }
20
- else {
21
- return 80;
22
- }
23
- };
24
- }
25
- // async componentDidMount() {
26
- // console.log("SubmitButtonBar this.loadData()");
27
- //
28
- // console.log("SubmitButtonBar this.loadData()1");
29
- // // if(code!=preCode || (!code && preCode)){
30
- // // await this.loadData();
31
- // // }else{
32
- // // formRef.current.resetFields();
33
- // // }
34
- // }
35
- // loadData = async () => {
36
- // console.log("SubmitButtonBar this.loadData()2");
37
- // this.setState({
38
- // stateSerial: this.state.stateSerial + 1,
39
- // })
40
- // }
41
- render() {
42
- const {} = this.state;
43
- const { dtmplConfig, mainCode, serverKey } = this.props;
44
- const { translate } = this.context;
45
- if (!dtmplConfig) {
46
- return null;
47
- }
48
- const { buttons, cQuerys } = dtmplConfig;
49
- const cardList = [];
50
- let content;
51
- if (cQuerys && cQuerys.length > 3) {
52
- content = (React.createElement("div", { style: { width: "100px" }, className: "btns" },
53
- React.createElement(Space, { direction: "vertical" }, cQuerys.map((item, index) => {
54
- if (index > 2) {
55
- return (React.createElement(CquickButton, { serverKey: serverKey, block: true, key: item.id, mainCode: mainCode, cQueryConfig: item }));
56
- }
57
- }))));
58
- }
59
- //offsetBottom={this.calcOffsetBottom(cQuerys)}
60
- return cQuerys && cQuerys.length > 0 && mainCode ? (React.createElement(Affix, { style: { position: "absolute", top: 180, right: 10, maxHeight: 90 }, offsetTop: 300 },
61
- React.createElement("div", { className: "submitButtonBar" },
62
- React.createElement("ul", null,
63
- cQuerys
64
- ? cQuerys.map((item, index) => {
65
- if (index < 3) {
66
- return (React.createElement("li", { key: index },
67
- React.createElement(CquickButton, { serverKey: serverKey, type: "text", block: true, key: item.id, mainCode: mainCode, cQueryConfig: item })));
68
- }
69
- })
70
- : "", //处理后面的
71
- cQuerys && cQuerys.length > 2 ? (React.createElement(Popover, { placement: "leftTop", content: content, trigger: "hover" },
72
- React.createElement(Button, { block: true },
73
- React.createElement(LeftOutlined, null),
74
- translate("${更多}")))) : (""))))) : ("");
75
- }
76
- }
77
- CqueryButtonBar.contextType = LocaleContext;
78
- export default CqueryButtonBar;
79
- //# sourceMappingURL=cquery-button-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cquery-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/cquery-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AASrB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAc,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAY5D,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAGnC;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;QAIF,qBAAgB,GAAG,CAAC,OAAuB,EAAE,EAAE;YAC7C,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACxB,OAAO,GAAG,CAAC;YACb,CAAC;iBAAM,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBAC/B,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC;IAkGJ,CAAC;IAhGC,+BAA+B;IAC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CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CACjD,oBAAC,KAAK,IACJ,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EACnE,SAAS,EAAE,GAAG;YAEd,6BAAK,SAAS,EAAE,iBAAiB;gBAC/B;oBACG,OAAO;wBACN,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;4BAC1B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gCACd,OAAO,CACL,4BAAI,GAAG,EAAE,KAAK;oCACZ,oBAAC,YAAY,IACX,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,IAAI,GACJ,CACb,CACN,CAAC;4BACJ,CAAC;wBACH,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,EACL,OAAO;oBACR,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9B,oBAAC,OAAO,IAAC,SAAS,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO;wBAC5D,oBAAC,MAAM,IAAC,KAAK;4BACX,oBAAC,YAAY,OAAG;4BACf,SAAS,CAAC,OAAO,CAAC,CACZ,CACD,CACX,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACE,CACD,CACA,CACT,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CAAC;IACJ,CAAC;;AA5GM,2BAAW,GAAG,aAAa,AAAhB,CAAiB;AA+GrC,eAAe,eAAe,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { DoEditParam, DtmplData, LtmplConfig } from "../../tmpl/interface";
3
- interface EditButtonProps {
4
- serverKey?: string;
5
- doEdit: (doEditParam: DoEditParam) => void;
6
- data: DtmplData;
7
- ltmplConfig: LtmplConfig;
8
- }
9
- declare const EditButton: React.FC<EditButtonProps>;
10
- export default EditButton;
11
- //# sourceMappingURL=edit-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit-button.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/edit-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI3E,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+CzC,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { Button } from "antd";
3
- import { EditOutlined } from "@ant-design/icons";
4
- import ActionUtils from "../../controls/action/utils";
5
- const EditButton = (props) => {
6
- var _a;
7
- const { doEdit, data, ltmplConfig } = props;
8
- let button = undefined;
9
- if (ltmplConfig.classEditConfigs) {
10
- ltmplConfig.classEditConfigs.forEach((classEditConfig) => {
11
- if (!button &&
12
- ActionUtils.isShow(classEditConfig.preposes, [data], undefined)) {
13
- button = (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit({
14
- code: data.code,
15
- mode: "update",
16
- dtmplSourceId: classEditConfig.id,
17
- }) }));
18
- }
19
- });
20
- }
21
- // debugger
22
- if (!button &&
23
- ActionUtils.isShow((_a = ltmplConfig.buttonEditAction) === null || _a === void 0 ? void 0 : _a.preposes, [data], undefined)) {
24
- button = (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit({ code: data.code, mode: "update" }) }));
25
- }
26
- return button ? button : React.createElement(React.Fragment, null);
27
- };
28
- export default EditButton;
29
- //# sourceMappingURL=edit-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit-button.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/edit-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAStD,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE;;IACtD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC5C,IAAI,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,WAAW,CAAC,gBAAgB,EAAE,CAAC;QACjC,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,EAAE;YACvD,IACE,CAAC,MAAM;gBACP,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,EAC/D,CAAC;gBACD,MAAM,GAAG,CACP,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,oBAAC,YAAY,OAAG,EACtB,OAAO,EAAE,GAAG,EAAE,CACZ,MAAM,CAAC;wBACL,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,IAAI,EAAE,QAAQ;wBACd,aAAa,EAAE,eAAe,CAAC,EAAE;qBAClC,CAAC,GAEI,CACX,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,aAAa;IACb,IACE,CAAC,MAAM;QACP,WAAW,CAAC,MAAM,CAChB,MAAA,WAAW,CAAC,gBAAgB,0CAAE,QAAQ,EACtC,CAAC,IAAI,CAAC,EACN,SAAS,CACV,EACD,CAAC;QACD,MAAM,GAAG,CACP,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,oBAAC,YAAY,OAAG,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,GAClD,CACX,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,yCAAK,CAAC;AACjC,CAAC,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { ActionConfig, ButtonName } from "../../../aldehyde/tmpl/interface";
4
- import { SubmitButtonProps } from "./submit-button-bar";
5
- import { LocaleContext } from "../../locale/LocaleProvider";
6
- interface FixRightSubmitButtonProps extends SubmitButtonProps {
7
- }
8
- interface FixRightSubmitButtonState {
9
- }
10
- declare class FixRightSubmitButtonBar extends React.PureComponent<FixRightSubmitButtonProps, FixRightSubmitButtonState> {
11
- state: {};
12
- static contextType: React.Context<{
13
- locale: import("../../locale/langMp").LocaleType;
14
- langPkg: any;
15
- availableLang: string[];
16
- changeLocale: (locale: import("../../locale/langMp").LocaleType) => void;
17
- t: (...strs: string[]) => string;
18
- translate: (...strs: string[]) => string;
19
- getServiceLangStr?: () => string;
20
- }>;
21
- context: React.ContextType<typeof LocaleContext>;
22
- calcOffsetBottom: (buttons: ButtonName[], actions: ActionConfig[]) => 80 | 120 | 86;
23
- render(): React.JSX.Element;
24
- }
25
- export default FixRightSubmitButtonBar;
26
- //# sourceMappingURL=fix-right-submit-button-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix-right-submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/fix-right-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,UAAU,EAGX,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,UAAU,yBAA0B,SAAQ,iBAAiB;CAAG;AAEhE,UAAU,yBAAyB;CAElC;AAED,cAAM,uBAAwB,SAAQ,KAAK,CAAC,aAAa,CACvD,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,KAAK,KAEH;IACF,MAAM,CAAC,WAAW;;;;;;;;OAAiB;IACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,gBAAgB,YAAa,UAAU,EAAE,WAAW,YAAY,EAAE,mBAehE;IAEF,MAAM;CAgIP;AAED,eAAe,uBAAuB,CAAC"}
@@ -1,93 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- import { Affix, Button, Popover } from "antd";
4
- import { LeftOutlined, SaveOutlined } from "@ant-design/icons";
5
- import Action from "../../controls/action";
6
- import { LocaleContext } from "../../locale/LocaleProvider";
7
- class FixRightSubmitButtonBar extends React.PureComponent {
8
- constructor() {
9
- super(...arguments);
10
- this.state = {
11
- // stateSerial:0,
12
- };
13
- this.calcOffsetBottom = (buttons, actions) => {
14
- let buttonSize = 0;
15
- if (actions) {
16
- buttonSize = buttonSize + actions.length;
17
- }
18
- if (buttons && buttons.includes("dtmplSave")) {
19
- buttonSize = buttonSize + 1;
20
- }
21
- if (buttonSize >= 3) {
22
- return 120;
23
- }
24
- else if (buttonSize == 2) {
25
- return 86;
26
- }
27
- else {
28
- return 80;
29
- }
30
- };
31
- }
32
- render() {
33
- const {} = this.state;
34
- const { dtmplConfig, doSubmit, formRef, serial, serverKey, dtmplData, } = this.props;
35
- const { buttons, actions } = dtmplConfig;
36
- const cardList = [];
37
- const { translate } = this.context;
38
- //console.log(" submit-button-bar serial:",serial);
39
- // console.log(" submit-button-bar stateSerial:",stateSerial);
40
- if (dtmplConfig.premises && dtmplConfig.premises.length > 0) {
41
- cardList.push({
42
- id: "1",
43
- title: translate("${默认字段}"),
44
- });
45
- }
46
- dtmplConfig.groups.forEach((g) => {
47
- cardList.push({
48
- title: g.title,
49
- id: g.id,
50
- });
51
- });
52
- let content;
53
- if (actions && actions.length > 1) {
54
- content = (React.createElement("div", { className: "btns" }, actions.map((item, index) => {
55
- if (index > 1) {
56
- // return <Popconfirm key={item.id} placement="top" title={"确定要保存修改并执行此操作吗?"}
57
- // onConfirm={() => doSubmit(item.id)} okText="确定" cancelText="取消">
58
- // <Button
59
- // type="primary"
60
- // >{item.title}</Button>
61
- // </Popconfirm>
62
- return (React.createElement(Action, { serverKey: serverKey, data: [dtmplData], iconType: "icon-title", hiddenType: "disabled", buttonType: "primary", serial: serial, key: item.id, formRef: formRef, actionConfig: item, doAction: doSubmit }));
63
- }
64
- })));
65
- }
66
- return (React.createElement(Affix
67
- //style={{position: 'absolute', right: 10, maxHeight: 100}}
68
- // offsetBottom={this.calcOffsetBottom(buttons, actions)}>
69
- , {
70
- //style={{position: 'absolute', right: 10, maxHeight: 100}}
71
- // offsetBottom={this.calcOffsetBottom(buttons, actions)}>
72
- style: { position: "absolute", bottom: 60, right: 15 }, offsetBottom: this.calcOffsetBottom(buttons, actions) },
73
- React.createElement("div", { className: "submitButtonBar" },
74
- React.createElement("ul", null,
75
- buttons.includes("dtmplSave") ? (React.createElement("li", { key: 100 },
76
- React.createElement(Button, { onClick: () => doSubmit(), type: "primary", icon: React.createElement(SaveOutlined, null), key: "btn", block: true }, translate("${保存}")))) : (""), //处理前两个
77
- actions
78
- ? actions.map((item, index) => {
79
- if (index < 2) {
80
- return (React.createElement("li", { key: index },
81
- React.createElement(Action, { data: [dtmplData], serverKey: serverKey, hiddenType: "disabled", buttonType: "primary-block", serial: serial, key: item.id, formRef: formRef, actionConfig: item, doAction: doSubmit })));
82
- }
83
- })
84
- : "", //处理后面的
85
- actions && actions.length > 2 ? (React.createElement(Popover, { placement: "leftTop", content: content, trigger: "hover" },
86
- React.createElement(Button, { block: true },
87
- React.createElement(LeftOutlined, null),
88
- translate("${更多}")))) : ("")))));
89
- }
90
- }
91
- FixRightSubmitButtonBar.contextType = LocaleContext;
92
- export default FixRightSubmitButtonBar;
93
- //# sourceMappingURL=fix-right-submit-button-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix-right-submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/fix-right-submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQ5D,MAAM,uBAAwB,SAAQ,KAAK,CAAC,aAG3C;IAHD;;QAIE,UAAK,GAAG;QACN,iBAAiB;SAClB,CAAC;QAIF,qBAAgB,GAAG,CAAC,OAAqB,EAAE,OAAuB,EAAE,EAAE;YACpE,IAAI,UAAU,GAAW,CAAC,CAAC;YAC3B,IAAI,OAAO,EAAE,CAAC;gBACZ,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;YAC3C,CAAC;YACD,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC7C,UAAU,GAAG,UAAU,GAAG,CAAC,CAAC;YAC9B,CAAC;YACD,IAAI,UAAU,IAAI,CAAC,EAAE,CAAC;gBACpB,OAAO,GAAG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CAAC;gCACd,OAAO,CACL,4BAAI,GAAG,EAAE,KAAK;oCAKZ,oBAAC,MAAM,IACL,IAAI,EAAE,CAAC,SAAS,CAAC,EACjB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,GACV,CACP,CACN,CAAC;4BACJ,CAAC;wBACH,CAAC,CAAC;wBACJ,CAAC,CAAC,EAAE,EACL,OAAO;oBACR,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9B,oBAAC,OAAO,IAAC,SAAS,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,OAAO;wBAC5D,oBAAC,MAAM,IAAC,KAAK;4BACX,oBAAC,YAAY,OAAG;4BACf,SAAS,CAAC,OAAO,CAAC,CACZ,CACD,CACX,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACE,CACD,CACA,CACT,CAAC;IACJ,CAAC;;AAnJM,mCAAW,GAAG,aAAa,AAAhB,CAAiB;AAsJrC,eAAe,uBAAuB,CAAC"}
@@ -1,43 +0,0 @@
1
- .submitButtonBar{
2
- background: #fff;
3
- /*position: absolute;*/
4
- /*right:10px;*/
5
- /*top:80px;*/
6
- border:1px solid #e8e8e8;
7
- border-radius: 4px;
8
- box-shadow: 2px 2px 10px rgba(0,0,0,.2);
9
- max-height:158px;
10
- /*min-height:80px;*/
11
- overflow:auto;
12
- width:100px;
13
- }
14
- .submitButtonBar::-webkit-scrollbar {
15
- display: none;
16
- }
17
- .submitButtonBar ul{
18
- padding:0;
19
- margin:0;
20
- }
21
- .submitButtonBar li{
22
- list-style-type: none;
23
- padding:4px;
24
- margin:0;
25
- text-align: left;
26
- white-space: nowrap;
27
- overflow: hidden;
28
- }
29
- /*.rightBar li:hover{*/
30
- /* background: #cfe3f5;*/
31
- /*}*/
32
-
33
- .btns button{
34
- margin-right: 10px
35
- }
36
-
37
- .cquickTextButton {
38
- cursor:pointer;
39
- }
40
-
41
- .cquickTextButton:hover{
42
- color: #1890ff;
43
- }
@@ -1,22 +0,0 @@
1
- import React, { RefObject } from 'react';
2
- import './index.css';
3
- import { ButtonPosition, DtmplConfig, DtmplData } from "../../../aldehyde/tmpl/interface";
4
- import { FormInstance } from "antd/lib/form/hooks/useForm";
5
- export interface SubmitButtonProps {
6
- serverKey?: string;
7
- dtmplConfig: DtmplConfig;
8
- dtmplData: DtmplData;
9
- position?: ButtonPosition;
10
- doSubmit: (actionId?: string, codes?: string[], params?: object) => void;
11
- formRef: RefObject<FormInstance>;
12
- serial: number;
13
- }
14
- interface SubmitButtonState {
15
- }
16
- declare class SubmitButtonBar extends React.PureComponent<SubmitButtonProps, SubmitButtonState> {
17
- state: {};
18
- static defaultProps: {};
19
- render(): React.JSX.Element;
20
- }
21
- export default SubmitButtonBar;
22
- //# sourceMappingURL=submit-button-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submit-button-bar.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACtC,OAAO,aAAa,CAAA;AACpB,OAAO,EAGH,cAAc,EACd,WAAW,EACX,SAAS,EAEZ,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD,MAAM,WAAY,iBAAiB;IAC/B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAC,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAC,cAAc,CAAC;IACzB,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAC,KAAK,CAAC,EAAC,MAAM,EAAE,EAAC,MAAM,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IACrE,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACjC,MAAM,EAAC,MAAM,CAAC;CAEjB;AAGD,UAAU,iBAAiB;CAE1B;AAED,cAAM,eAAgB,SAAQ,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAEnF,KAAK,KAEJ;IAED,MAAM,CAAC,YAAY,KAElB;IAED,MAAM;CAST;AAED,eAAe,eAAe,CAAC"}
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.css';
3
- import FixRightSubmitButtonBar from './fix-right-submit-button-bar';
4
- import BottomSubmitButtonBar from "./bottom-submit-button-bar";
5
- class SubmitButtonBar extends React.PureComponent {
6
- constructor() {
7
- super(...arguments);
8
- this.state = {
9
- // stateSerial:0,
10
- };
11
- }
12
- render() {
13
- const { position, doSubmit, serial, dtmplConfig, formRef, dtmplData } = this.props;
14
- let posi = position ? position : dtmplConfig.buttonPosition ? dtmplConfig.buttonPosition : undefined;
15
- return React.createElement(React.Fragment, null, !posi || posi == 'fixedBottomRight' ?
16
- React.createElement(FixRightSubmitButtonBar, { doSubmit: doSubmit, serial: serial, dtmplConfig: dtmplConfig, formRef: formRef, dtmplData: dtmplData })
17
- : React.createElement(BottomSubmitButtonBar, { position: posi, doSubmit: doSubmit, serial: serial, dtmplConfig: dtmplConfig, formRef: formRef, dtmplData: dtmplData }));
18
- }
19
- }
20
- SubmitButtonBar.defaultProps = {};
21
- export default SubmitButtonBar;
22
- //# sourceMappingURL=submit-button-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submit-button-bar.js","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/submit-button-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,aAAa,CAAA;AAYpB,OAAO,uBAAuB,MAAM,+BAA+B,CAAA;AAEnE,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAkB/D,MAAM,eAAgB,SAAQ,KAAK,CAAC,aAAmD;IAAvF;;QAEI,UAAK,GAAC;QACJ,iBAAiB;SAClB,CAAA;IAeL,CAAC;IATG,MAAM;QACF,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAChF,IAAI,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAA;QAEpG,OAAO,0CAAG,CAAC,IAAI,IAAI,IAAI,IAAI,kBAAkB,CAAC,CAAC;YAC3C,oBAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG;YAChI,CAAC,CAAC,oBAAC,qBAAqB,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,CAChJ,CAAA;IACR,CAAC;;AAZM,4BAAY,GAAC,EAEnB,AAFkB,CAElB;AAaL,eAAe,eAAe,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { DtmplData, LtmplConfig, ShowViewParam } from "../../tmpl/interface";
3
- interface ViewButtonProps {
4
- serverKey?: string;
5
- showView: (showViewParam: ShowViewParam) => void;
6
- data: DtmplData;
7
- ltmplConfig: LtmplConfig;
8
- }
9
- declare const ViewButton: React.FC<ViewButtonProps>;
10
- export default ViewButton;
11
- //# sourceMappingURL=view-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view-button.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/detail/button/view-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAI3E,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8CzC,CAAC;AACF,eAAe,UAAU,CAAC"}