wt-enjoy-link-antd-repack 4.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. package/README.md +26 -0
  2. package/dist/esm/assets/location.png +0 -0
  3. package/dist/esm/component/BiuAButton/index.d.ts +18 -0
  4. package/dist/esm/component/BiuAButton/index.js +8 -0
  5. package/dist/esm/component/BiuACard/index.d.ts +2 -0
  6. package/dist/esm/component/BiuACard/index.js +9 -0
  7. package/dist/esm/component/BiuACascader/index.d.ts +10 -0
  8. package/dist/esm/component/BiuACascader/index.js +8 -0
  9. package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
  10. package/dist/esm/component/BiuADatePicker/index.js +18 -0
  11. package/dist/esm/component/BiuAForm/index.d.ts +7 -0
  12. package/dist/esm/component/BiuAForm/index.js +10 -0
  13. package/dist/esm/component/BiuAInput/index.d.ts +14 -0
  14. package/dist/esm/component/BiuAInput/index.js +32 -0
  15. package/dist/esm/component/BiuASelect/index.d.ts +6 -0
  16. package/dist/esm/component/BiuASelect/index.js +14 -0
  17. package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
  18. package/dist/esm/component/BiuASwitch/index.js +9 -0
  19. package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
  20. package/dist/esm/component/BiuATimePicker/index.js +8 -0
  21. package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
  22. package/dist/esm/component/BiuATreeSelect/index.js +8 -0
  23. package/dist/esm/component/BiuBar/index.d.ts +13 -0
  24. package/dist/esm/component/BiuBar/index.js +42 -0
  25. package/dist/esm/component/BiuComSelect/index.d.ts +24 -0
  26. package/dist/esm/component/BiuComSelect/index.js +104 -0
  27. package/dist/esm/component/BiuCue/index.d.ts +18 -0
  28. package/dist/esm/component/BiuCue/index.js +44 -0
  29. package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
  30. package/dist/esm/component/BiuCustomSelect/index.js +153 -0
  31. package/dist/esm/component/BiuCustomTable/index.d.ts +14 -0
  32. package/dist/esm/component/BiuCustomTable/index.js +76 -0
  33. package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +8 -0
  34. package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +264 -0
  35. package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
  36. package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
  37. package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
  38. package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
  39. package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
  40. package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
  41. package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
  42. package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
  43. package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
  44. package/dist/esm/component/BiuDescriptions/index.js +39 -0
  45. package/dist/esm/component/BiuDetailDrawer/index.d.ts +15 -0
  46. package/dist/esm/component/BiuDetailDrawer/index.js +54 -0
  47. package/dist/esm/component/BiuDivider/index.d.ts +4 -0
  48. package/dist/esm/component/BiuDivider/index.js +29 -0
  49. package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
  50. package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
  51. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
  52. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
  53. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
  54. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
  55. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
  56. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +98 -0
  57. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
  58. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
  59. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
  60. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +393 -0
  61. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
  62. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
  63. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
  64. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
  65. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
  66. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
  67. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
  68. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
  69. package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
  70. package/dist/esm/component/BiuField/component/SNInput.js +622 -0
  71. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +23 -0
  72. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +187 -0
  73. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
  74. package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +153 -0
  75. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
  76. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
  77. package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
  78. package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +66 -0
  79. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
  80. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
  81. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +24 -0
  82. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +164 -0
  83. package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
  84. package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
  85. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
  86. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
  87. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
  88. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +113 -0
  89. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
  90. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
  91. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
  92. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
  93. package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
  94. package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
  95. package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
  96. package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
  97. package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
  98. package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
  99. package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
  100. package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
  101. package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
  102. package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
  103. package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
  104. package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
  105. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
  106. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +175 -0
  107. package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
  108. package/dist/esm/component/BiuField/component/customMenu.js +110 -0
  109. package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
  110. package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
  111. package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
  112. package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
  113. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
  114. package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
  115. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +41 -0
  116. package/dist/esm/component/BiuField/component/dicTypeSelect.js +84 -0
  117. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
  118. package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
  119. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +18 -0
  120. package/dist/esm/component/BiuField/component/editLocationSelect.js +119 -0
  121. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
  122. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
  123. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
  124. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
  125. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
  126. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
  127. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
  128. package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
  129. package/dist/esm/component/BiuField/component/index.d.ts +37 -0
  130. package/dist/esm/component/BiuField/component/index.js +37 -0
  131. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
  132. package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
  133. package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
  134. package/dist/esm/component/BiuField/component/lpnSelect.js +88 -0
  135. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +15 -0
  136. package/dist/esm/component/BiuField/component/orderTypeSelect.js +79 -0
  137. package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
  138. package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
  139. package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
  140. package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
  141. package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
  142. package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
  143. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
  144. package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
  145. package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
  146. package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
  147. package/dist/esm/component/BiuField/component/userSelect.d.ts +8 -0
  148. package/dist/esm/component/BiuField/component/userSelect.js +163 -0
  149. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
  150. package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
  151. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +13 -0
  152. package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +92 -0
  153. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
  154. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
  155. package/dist/esm/component/BiuField/index.d.ts +8 -0
  156. package/dist/esm/component/BiuField/index.js +607 -0
  157. package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
  158. package/dist/esm/component/BiuFileInput/index.js +53 -0
  159. package/dist/esm/component/BiuForm/index.d.ts +12 -0
  160. package/dist/esm/component/BiuForm/index.js +241 -0
  161. package/dist/esm/component/BiuForm/type.d.ts +45 -0
  162. package/dist/esm/component/BiuForm/type.js +1 -0
  163. package/dist/esm/component/BiuForm/utils.d.ts +2 -0
  164. package/dist/esm/component/BiuForm/utils.js +46 -0
  165. package/dist/esm/component/BiuIcon/index.d.ts +3 -0
  166. package/dist/esm/component/BiuIcon/index.js +15 -0
  167. package/dist/esm/component/BiuMapSelectSite/index.d.ts +48 -0
  168. package/dist/esm/component/BiuMapSelectSite/index.js +453 -0
  169. package/dist/esm/component/BiuModal/index.d.ts +24 -0
  170. package/dist/esm/component/BiuModal/index.js +239 -0
  171. package/dist/esm/component/BiuOperForm/index.d.ts +15 -0
  172. package/dist/esm/component/BiuOperForm/index.js +375 -0
  173. package/dist/esm/component/BiuOperForm/type.d.ts +23 -0
  174. package/dist/esm/component/BiuOperForm/type.js +1 -0
  175. package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
  176. package/dist/esm/component/BiuOperTable/index.js +349 -0
  177. package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
  178. package/dist/esm/component/BiuOperTable/type.js +1 -0
  179. package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
  180. package/dist/esm/component/BiuOperTable/utils.js +13 -0
  181. package/dist/esm/component/BiuPagination/index.d.ts +14 -0
  182. package/dist/esm/component/BiuPagination/index.js +34 -0
  183. package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
  184. package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +74 -0
  185. package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
  186. package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
  187. package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
  188. package/dist/esm/component/BiuResizeTable/index.js +71 -0
  189. package/dist/esm/component/BiuResizeTable/index.less +19 -0
  190. package/dist/esm/component/BiuSplit/index.d.ts +32 -0
  191. package/dist/esm/component/BiuSplit/index.js +57 -0
  192. package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
  193. package/dist/esm/component/BiuTable/component/index.js +3 -0
  194. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
  195. package/dist/esm/component/BiuTable/component/tableActionBarRender.js +88 -0
  196. package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
  197. package/dist/esm/component/BiuTable/component/tableCellRender.js +108 -0
  198. package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
  199. package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
  200. package/dist/esm/component/BiuTable/context.d.ts +2 -0
  201. package/dist/esm/component/BiuTable/context.js +2 -0
  202. package/dist/esm/component/BiuTable/hooks/index.d.ts +1 -0
  203. package/dist/esm/component/BiuTable/hooks/index.js +1 -0
  204. package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +4 -0
  205. package/dist/esm/component/BiuTable/hooks/useFetchData.js +64 -0
  206. package/dist/esm/component/BiuTable/index.d.ts +42 -0
  207. package/dist/esm/component/BiuTable/index.js +484 -0
  208. package/dist/esm/component/BiuTable/type.d.ts +168 -0
  209. package/dist/esm/component/BiuTable/type.js +1 -0
  210. package/dist/esm/component/BiuTable/utils.d.ts +10 -0
  211. package/dist/esm/component/BiuTable/utils.js +117 -0
  212. package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
  213. package/dist/esm/component/BiuTableLink/index.js +54 -0
  214. package/dist/esm/component/BiuTableSelect/index.d.ts +49 -0
  215. package/dist/esm/component/BiuTableSelect/index.js +209 -0
  216. package/dist/esm/component/BiuTabs/index.d.ts +4 -0
  217. package/dist/esm/component/BiuTabs/index.js +18 -0
  218. package/dist/esm/component/BiuVirtualTable/index.d.ts +21 -0
  219. package/dist/esm/component/BiuVirtualTable/index.js +161 -0
  220. package/dist/esm/component/index.d.ts +35 -0
  221. package/dist/esm/component/index.js +35 -0
  222. package/dist/esm/constant/Cache_Key.d.ts +28 -0
  223. package/dist/esm/constant/Cache_Key.js +28 -0
  224. package/dist/esm/constant/DateTime.d.ts +12 -0
  225. package/dist/esm/constant/DateTime.js +15 -0
  226. package/dist/esm/constant/External.d.ts +64 -0
  227. package/dist/esm/constant/External.js +260 -0
  228. package/dist/esm/constant/Gateway_Path.d.ts +5 -0
  229. package/dist/esm/constant/Gateway_Path.js +5 -0
  230. package/dist/esm/constant/Layout.d.ts +210 -0
  231. package/dist/esm/constant/Layout.js +215 -0
  232. package/dist/esm/constant/Regexp.d.ts +109 -0
  233. package/dist/esm/constant/Regexp.js +130 -0
  234. package/dist/esm/constant/index.d.ts +6 -0
  235. package/dist/esm/constant/index.js +6 -0
  236. package/dist/esm/hooks/index.d.ts +6 -0
  237. package/dist/esm/hooks/index.js +6 -0
  238. package/dist/esm/hooks/useAuth.d.ts +4 -0
  239. package/dist/esm/hooks/useAuth.js +22 -0
  240. package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
  241. package/dist/esm/hooks/useCurrentSystem.js +15 -0
  242. package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
  243. package/dist/esm/hooks/useLayoutInfo.js +14 -0
  244. package/dist/esm/hooks/useReducerState.d.ts +16 -0
  245. package/dist/esm/hooks/useReducerState.js +43 -0
  246. package/dist/esm/hooks/useUserInfo.d.ts +4 -0
  247. package/dist/esm/hooks/useUserInfo.js +15 -0
  248. package/dist/esm/hooks/useWareInfo.d.ts +4 -0
  249. package/dist/esm/hooks/useWareInfo.js +15 -0
  250. package/dist/esm/index.d.ts +5 -0
  251. package/dist/esm/index.js +5 -0
  252. package/dist/esm/package/index.d.ts +1 -0
  253. package/dist/esm/package/index.js +1 -0
  254. package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
  255. package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
  256. package/dist/esm/package/requestWrapper/index.d.ts +4 -0
  257. package/dist/esm/package/requestWrapper/index.js +402 -0
  258. package/dist/esm/package/requestWrapper/type.d.ts +36 -0
  259. package/dist/esm/package/requestWrapper/type.js +1 -0
  260. package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
  261. package/dist/esm/package/requestWrapper/utils.js +35 -0
  262. package/dist/esm/utils/authUtils.d.ts +18 -0
  263. package/dist/esm/utils/authUtils.js +36 -0
  264. package/dist/esm/utils/cacheUtils.d.ts +4 -0
  265. package/dist/esm/utils/cacheUtils.js +24 -0
  266. package/dist/esm/utils/chainUtils.d.ts +26 -0
  267. package/dist/esm/utils/chainUtils.js +54 -0
  268. package/dist/esm/utils/dateUtils.d.ts +23 -0
  269. package/dist/esm/utils/dateUtils.js +55 -0
  270. package/dist/esm/utils/decimalUtils.d.ts +5 -0
  271. package/dist/esm/utils/decimalUtils.js +7 -0
  272. package/dist/esm/utils/excelUtils.d.ts +22 -0
  273. package/dist/esm/utils/excelUtils.js +153 -0
  274. package/dist/esm/utils/index.d.ts +11 -0
  275. package/dist/esm/utils/index.js +11 -0
  276. package/dist/esm/utils/layoutUtils.d.ts +1 -0
  277. package/dist/esm/utils/layoutUtils.js +13 -0
  278. package/dist/esm/utils/objectUtils.d.ts +1 -0
  279. package/dist/esm/utils/objectUtils.js +3 -0
  280. package/dist/esm/utils/soundUtils.d.ts +5 -0
  281. package/dist/esm/utils/soundUtils.js +29 -0
  282. package/dist/esm/utils/stringUtils.d.ts +24 -0
  283. package/dist/esm/utils/stringUtils.js +39 -0
  284. package/dist/esm/utils/sysUtils.d.ts +4 -0
  285. package/dist/esm/utils/sysUtils.js +4 -0
  286. package/package.json +59 -0
@@ -0,0 +1,241 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { DownOutlined, ReloadOutlined, SearchOutlined, UpOutlined } from '@ant-design/icons';
14
+ import { Col, Row, Space, Tooltip } from 'antd';
15
+ import { pick } from 'lodash';
16
+ import moment from 'moment';
17
+ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useState } from 'react';
18
+ import { styled } from 'styled-components';
19
+ import useMediaQuery from 'use-media-antd-query';
20
+ import { formatData } from "./utils";
21
+ import { BiuAButton, BiuField, BiuAFormItem, BiuAForm } from "./..";
22
+ import { FORM_COL_LAYOUT } from "../../constant";
23
+ import { calcOperationLayout } from "../../utils";
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
+ import { jsxs as _jsxs } from "react/jsx-runtime";
26
+ import { createElement as _createElement } from "react";
27
+ var StyledLabel = styled.div.withConfig({
28
+ displayName: "StyledLabel",
29
+ componentId: "enjoy-link-antd-repack__sc-emj5jb-0"
30
+ })(["font-size:14px;font-weight:normal;height:26px;line-height:26px;display:flex;flex-direction:row;"]);
31
+
32
+ /**
33
+ * 渲染表单 标签
34
+ * @param title
35
+ */
36
+ var FormLabelRender = /*#__PURE__*/React.memo(function (props) {
37
+ var title = props.title,
38
+ labelWidth = props.labelWidth;
39
+ return /*#__PURE__*/_jsx(Tooltip, {
40
+ getPopupContainer: function getPopupContainer() {
41
+ return document.body;
42
+ },
43
+ placement: "top",
44
+ title: title,
45
+ children: /*#__PURE__*/_jsxs(StyledLabel, {
46
+ style: {
47
+ width: labelWidth,
48
+ maxWidth: labelWidth
49
+ },
50
+ children: [/*#__PURE__*/_jsx("span", {
51
+ style: {
52
+ flex: '1',
53
+ overflow: 'hidden',
54
+ textOverflow: 'ellipsis',
55
+ whiteSpace: 'nowrap'
56
+ },
57
+ children: title
58
+ }), /*#__PURE__*/_jsx("span", {
59
+ style: {
60
+ padding: '0 8px 0 0'
61
+ },
62
+ children: "\xA0:"
63
+ })]
64
+ })
65
+ });
66
+ });
67
+ var StyledForm = styled(BiuAForm).withConfig({
68
+ displayName: "StyledForm",
69
+ componentId: "enjoy-link-antd-repack__sc-emj5jb-1"
70
+ })([".ant-col{padding:0px !important;}.arco-form-item-label{font-size:14px;}.ant-form-item-label > label::after{margin:0px !important;}"]);
71
+ export var BiuForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
72
+ var _props$columns = props.columns,
73
+ columns = _props$columns === void 0 ? [] : _props$columns,
74
+ onSubmit = props.onSubmit,
75
+ onReset = props.onReset,
76
+ _props$labelWidth = props.labelWidth,
77
+ labelWidth = _props$labelWidth === void 0 ? '100px' : _props$labelWidth;
78
+ var _BiuAForm$useForm = BiuAForm.useForm(),
79
+ _BiuAForm$useForm2 = _slicedToArray(_BiuAForm$useForm, 1),
80
+ form = _BiuAForm$useForm2[0];
81
+ var _useState = useState(false),
82
+ _useState2 = _slicedToArray(_useState, 2),
83
+ advace = _useState2[0],
84
+ setAdvace = _useState2[1];
85
+ var largeLayout = useMediaQuery();
86
+
87
+ /**
88
+ * headLine 为折叠行数,表格查询条数默认为 2。其他地方默认为 1
89
+ */
90
+ var colFormCount = useMemo(function () {
91
+ var _props$headLine;
92
+ return 24 / FORM_COL_LAYOUT.default[largeLayout || 'sm'].span * ((_props$headLine = props.headLine) !== null && _props$headLine !== void 0 ? _props$headLine : 1);
93
+ }, [largeLayout, props.headLine]);
94
+ useImperativeHandle(ref, function () {
95
+ return _objectSpread({}, pick(form, ['getFieldsValue', 'resetFields', 'setFieldsValue', 'setFields', 'submit']));
96
+ }, [form]);
97
+ var _useMemo = useMemo(function () {
98
+ return {
99
+ operationLayout: calcOperationLayout(columns.length),
100
+ formInLine: colFormCount - 1 >= columns.length
101
+ };
102
+ }, [columns, colFormCount]),
103
+ operationLayout = _useMemo.operationLayout,
104
+ formInLine = _useMemo.formInLine;
105
+ var atLine = useMemo(function () {
106
+ return advace || formInLine;
107
+ }, [advace, formInLine]);
108
+ var onFinish = useCallback(function (values) {
109
+ if (onSubmit) onSubmit(formatData(values, columns));
110
+ }, [columns, onSubmit]);
111
+ var onFormReset = useCallback(function () {
112
+ form.resetFields();
113
+ if (onReset) onReset();
114
+ setTimeout(function () {
115
+ form.submit();
116
+ }, 200);
117
+ }, [form, onReset]);
118
+
119
+ //
120
+ // onSubmit 提交事件,在提交前格式化相关的数据
121
+ // daterange 组件渲染时候会判断当前值并赋值默认值
122
+ // 表单收缩起来时候不需要渲染相关组件,所以可以直接设置 shouldUpdate 不渲染当前组件
123
+ //
124
+ return /*#__PURE__*/_jsx(StyledForm, {
125
+ form: form,
126
+ onFinish: onFinish,
127
+ children: /*#__PURE__*/_jsxs(Row, {
128
+ children: [columns.map(function (_ref, index) {
129
+ var dataIndex = _ref.dataIndex,
130
+ initialValue = _ref.initialValue,
131
+ _ref$deps = _ref.deps,
132
+ deps = _ref$deps === void 0 ? [] : _ref$deps,
133
+ depsEnum = _ref.depsEnum,
134
+ title = _ref.title,
135
+ type = _ref.type,
136
+ restProps = _ref.restProps,
137
+ formItemLabelWidth = _ref.labelWidth;
138
+ var iniV = initialValue || (type === 'daterange' && !initialValue ? [moment().subtract(2, 'days'), moment()] : initialValue);
139
+ var field = '';
140
+ if (Array.isArray(dataIndex) && dataIndex.length <= 0 || !dataIndex) return null;
141
+ if (Array.isArray(dataIndex)) {
142
+ var _ref2 = dataIndex;
143
+ var _ref3 = _slicedToArray(_ref2, 1);
144
+ field = _ref3[0];
145
+ } else {
146
+ field = dataIndex;
147
+ }
148
+ if (advace ? true : index < colFormCount - 1) return /*#__PURE__*/_jsx(Col, _objectSpread(_objectSpread({}, FORM_COL_LAYOUT.default), {}, {
149
+ children: deps && deps.length > 0 ? /*#__PURE__*/_jsx(BiuAFormItem, {
150
+ colon: false,
151
+ label: /*#__PURE__*/_jsx(FormLabelRender, _objectSpread({
152
+ labelWidth: formItemLabelWidth || labelWidth,
153
+ title: title
154
+ }, restProps)),
155
+ children: /*#__PURE__*/_jsx(BiuAFormItem, {
156
+ noStyle: true,
157
+ name: field,
158
+ initialValue: iniV,
159
+ dependencies: deps,
160
+ rules: [{
161
+ required: false
162
+ }],
163
+ children: function children(_ref4) {
164
+ var getFieldsValue = _ref4.getFieldsValue;
165
+ var fieldsValue = deps.length > 0 ? getFieldsValue(deps) : {};
166
+ if (depsEnum) {
167
+ Object.keys(depsEnum).forEach(function (n) {
168
+ fieldsValue[depsEnum[n]] = fieldsValue[n];
169
+ });
170
+ }
171
+ return /*#__PURE__*/_jsx(BiuField, _objectSpread(_objectSpread({
172
+ allowClear: true,
173
+ valueType: type
174
+ }, fieldsValue), restProps), field);
175
+ }
176
+ }, field)
177
+ }, field) : /*#__PURE__*/_jsx(BiuAFormItem, {
178
+ name: field,
179
+ initialValue: iniV,
180
+ colon: false,
181
+ rules: [{
182
+ required: false
183
+ }],
184
+ label: /*#__PURE__*/_jsx(FormLabelRender, _objectSpread(_objectSpread({
185
+ title: title
186
+ }, restProps), {}, {
187
+ labelWidth: formItemLabelWidth || labelWidth
188
+ })),
189
+ children: /*#__PURE__*/_jsx(BiuField, _objectSpread({
190
+ allowClear: true,
191
+ valueType: type
192
+ }, restProps), field)
193
+ }, field)
194
+ }), field);
195
+ return /*#__PURE__*/_jsx(BiuAFormItem, {
196
+ name: field,
197
+ initialValue: iniV,
198
+ hidden: true,
199
+ rules: [{
200
+ required: false
201
+ }],
202
+ children: /*#__PURE__*/_jsx(BiuField, _objectSpread({
203
+ allowClear: true,
204
+ valueType: type
205
+ }, restProps), field)
206
+ }, field);
207
+ }), /*#__PURE__*/_createElement(Col, _objectSpread(_objectSpread({}, atLine ? operationLayout : FORM_COL_LAYOUT.default), {}, {
208
+ key: "advaceSearch",
209
+ style: {
210
+ textAlign: atLine ? 'right' : 'left'
211
+ }
212
+ }), /*#__PURE__*/_jsx(BiuAFormItem, {
213
+ labelCol: {
214
+ span: 0
215
+ },
216
+ wrapperCol: {
217
+ span: 24
218
+ },
219
+ children: /*#__PURE__*/_jsxs(Space, {
220
+ children: [/*#__PURE__*/_jsx(BiuAButton, {
221
+ icon: /*#__PURE__*/_jsx(SearchOutlined, {}),
222
+ type: "primary",
223
+ htmlType: "submit",
224
+ children: "\u67E5\u8BE2"
225
+ }), /*#__PURE__*/_jsx(BiuAButton, {
226
+ onClick: onFormReset,
227
+ icon: /*#__PURE__*/_jsx(ReloadOutlined, {}),
228
+ children: "\u91CD\u7F6E"
229
+ }), formInLine ? null : /*#__PURE__*/_jsxs(BiuAButton, {
230
+ type: "link",
231
+ onClick: function onClick() {
232
+ return setAdvace(!advace);
233
+ },
234
+ children: [advace ? '收起' : '展开', advace ? /*#__PURE__*/_jsx(UpOutlined, {}) : /*#__PURE__*/_jsx(DownOutlined, {})]
235
+ })]
236
+ })
237
+ }))]
238
+ })
239
+ });
240
+ }));
241
+ export * from "./type";
@@ -0,0 +1,45 @@
1
+ import type { FormInstance, FormProps } from 'antd/es/form';
2
+ import type { Dispatch } from 'react';
3
+ import type { BiuColumnType } from "..";
4
+ export type BiuFormType = 'header' | 'form';
5
+ export type opeationConfig = {
6
+ submitText?: string;
7
+ submitVisible?: boolean;
8
+ resetText?: string;
9
+ resetVisible?: boolean;
10
+ onSubmit?: () => void;
11
+ onReset?: () => void;
12
+ };
13
+ export type BiuFormProps = {
14
+ columns: BiuColumnType[];
15
+ headLine?: number;
16
+ labelWidth?: number | string;
17
+ onSubmit?: (params: Record<string, unknown>) => any;
18
+ onReset?: () => void;
19
+ type?: BiuFormType;
20
+ operationConfig?: opeationConfig;
21
+ } & FormProps;
22
+ export type BiuFormRefProps = Pick<FormInstance, 'getFieldsValue' | 'resetFields' | 'setFieldsValue' | 'setFields' | 'submit'>;
23
+ /**
24
+ * @argument initialState 表单初始化数据
25
+ *
26
+ * @param colFormCount 每行表单数量,用来控制收起以及展开
27
+ * @param advace true 展开 false 收起
28
+ * @param form 表单实例
29
+ * @param columns 和表格用同一套列配置信息,内容再自定义筛选
30
+ * @param setAdvace 设置展开和收起
31
+ * @param setColumns 重新设置列表信息
32
+ * @param action 实例引用
33
+ * @param setAction 重新设置实例
34
+ */
35
+ export type BiuFormContainerInterface = (initialState?: any) => {
36
+ advace: boolean;
37
+ columns: BiuColumnType[];
38
+ form: FormInstance;
39
+ setAdvace: Dispatch<React.SetStateAction<boolean>>;
40
+ setColumns: Dispatch<React.SetStateAction<any>>;
41
+ colFormCount: number;
42
+ };
43
+ export type FormOperationProps = {
44
+ opeationConfig?: opeationConfig;
45
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { BiuColumnType } from "..";
2
+ export declare const formatData: (data: Record<string, unknown>, columns: BiuColumnType[]) => any;
@@ -0,0 +1,46 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { isArray } from 'lodash';
8
+ import moment from 'moment';
9
+ export var formatData = function formatData(data, columns) {
10
+ var dateColumns = columns.filter(function (_ref) {
11
+ var noSearch = _ref.noSearch;
12
+ return !noSearch;
13
+ });
14
+ var tmpObj = {};
15
+ dateColumns.forEach(function (_ref2) {
16
+ var dataIndex = _ref2.dataIndex,
17
+ proxyField = _ref2.proxyField;
18
+ var field = '';
19
+ if (Array.isArray(dataIndex) && dataIndex.length <= 0 || !dataIndex) return;
20
+ if (Array.isArray(dataIndex)) {
21
+ var _ref3 = dataIndex;
22
+ var _ref4 = _slicedToArray(_ref3, 1);
23
+ field = _ref4[0];
24
+ } else {
25
+ field = dataIndex;
26
+ }
27
+ if (proxyField && isArray(proxyField)) {
28
+ var _ref5 = data[field] || [undefined, undefined],
29
+ _ref6 = _slicedToArray(_ref5, 2),
30
+ beginDate = _ref6[0],
31
+ endDate = _ref6[1];
32
+ var _proxyField = _slicedToArray(proxyField, 2),
33
+ beginField = _proxyField[0],
34
+ endField = _proxyField[1];
35
+ tmpObj[beginField] = moment.isMoment(beginDate) ? beginDate.format('YYYY-MM-DD 00:00:00') : beginDate;
36
+ tmpObj[endField] = moment.isMoment(endDate) ? endDate.format('YYYY-MM-DD 23:59:59') : endDate;
37
+ return;
38
+ }
39
+ if (proxyField && proxyField !== '') {
40
+ tmpObj[proxyField] = data[field];
41
+ return;
42
+ }
43
+ tmpObj[field] = data[field];
44
+ });
45
+ return tmpObj;
46
+ };
@@ -0,0 +1,3 @@
1
+ import type { IconFontProps } from '@ant-design/icons/es/components/IconFont';
2
+ import React from 'react';
3
+ export declare const BiuIcon: React.MemoExoticComponent<(props: IconFontProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,15 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { createFromIconfontCN } from '@ant-design/icons';
8
+ import React from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ var IconFont = createFromIconfontCN({
11
+ scriptUrl: '//at.alicdn.com/t/font_2042106_e5lqihl74h5.js'
12
+ });
13
+ export var BiuIcon = /*#__PURE__*/React.memo(function (props) {
14
+ return /*#__PURE__*/_jsx(IconFont, _objectSpread({}, props));
15
+ });
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ type resultType = {
3
+ province: string | null;
4
+ city: string | null;
5
+ district: string | null;
6
+ lng: string | null;
7
+ lat: string | null;
8
+ address: string | null;
9
+ };
10
+ type positionType = {
11
+ lng?: string;
12
+ lat?: string;
13
+ };
14
+ export type BiuMapSelectSiteStateType = {
15
+ searchList: any[];
16
+ periphery: any[];
17
+ lngSearch: string;
18
+ latSearch: string;
19
+ searchValue: any;
20
+ } & resultType;
21
+ export type BiuMapSelectSitePropsType = {
22
+ id: string;
23
+ open: boolean;
24
+ position?: positionType;
25
+ onSelect: (result?: resultType) => void;
26
+ onCancel: () => void;
27
+ width?: string | number;
28
+ height?: string | number;
29
+ textAddress?: string;
30
+ };
31
+ export declare class BiuMapSelectSite extends React.PureComponent<BiuMapSelectSitePropsType, BiuMapSelectSiteStateType> {
32
+ state: BiuMapSelectSiteStateType;
33
+ mark: any;
34
+ isSuccess: boolean;
35
+ placeSearch: any;
36
+ componentDidUpdate(): void;
37
+ init: () => void;
38
+ mapDrawMarker: (lng: any, lat: any) => void;
39
+ search: (value: string) => void;
40
+ handleSelect: (_value: string, opts: any) => void;
41
+ getAddress: (lng: string, lat: string) => void;
42
+ selectPeriphery: (opts: any) => void;
43
+ geolocation: () => void;
44
+ handleOk: () => void;
45
+ handleCancel: () => void;
46
+ render(): import("react/jsx-runtime").JSX.Element;
47
+ }
48
+ export {};