@cloudbase/weda-ui 3.3.0 → 3.3.2

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 (454) hide show
  1. package/dist/configs/components/chart/bar.json +281 -47
  2. package/dist/configs/components/chart/line.json +245 -48
  3. package/dist/configs/components/chart/pie.json +227 -42
  4. package/dist/configs/components/dataView.json +9 -1
  5. package/dist/configs/components/form/form.json +4 -0
  6. package/dist/configs/components/form/select.json +18 -0
  7. package/dist/docs/common/tableView.js +0 -3
  8. package/dist/setupTests.d.ts +2 -1
  9. package/dist/setupTests.js +6 -1
  10. package/dist/web/actions/showModal/index.js +0 -1
  11. package/dist/web/components/calendar/index.js +40 -38
  12. package/dist/web/components/carousel/index.js +62 -62
  13. package/dist/web/components/chart/bar/index.d.ts +2 -40
  14. package/dist/web/components/chart/bar/index.js +44 -55
  15. package/dist/{src/web → web}/components/chart/bar/index.old.d.ts +0 -0
  16. package/dist/{src/web → web}/components/chart/bar/index.old.js +0 -0
  17. package/dist/{src/web → web}/components/chart/common/Chart.d.ts +0 -0
  18. package/dist/{src/web → web}/components/chart/common/Chart.js +0 -0
  19. package/dist/{src/web → web}/components/chart/common/chart-custom-connector.d.ts +0 -0
  20. package/dist/{src/web → web}/components/chart/common/chart-custom-connector.js +0 -0
  21. package/dist/{src/web → web}/components/chart/common/chart-error.d.ts +0 -0
  22. package/dist/{src/web → web}/components/chart/common/chart-error.js +0 -0
  23. package/dist/web/components/chart/common/core/eChartBar.d.ts +1 -3
  24. package/dist/web/components/chart/common/core/eChartBar.js +6 -3
  25. package/dist/web/components/chart/common/core/eChartBase.d.ts +2 -3
  26. package/dist/web/components/chart/common/core/eChartBase.js +47 -5
  27. package/dist/web/components/chart/common/core/eChartLine.d.ts +1 -3
  28. package/dist/web/components/chart/common/core/eChartLine.js +6 -3
  29. package/dist/web/components/chart/common/core/eChartPie.d.ts +1 -3
  30. package/dist/web/components/chart/common/core/eChartPie.js +6 -3
  31. package/dist/{src/web → web}/components/chart/common/data-transform.d.ts +0 -0
  32. package/dist/{src/web → web}/components/chart/common/data-transform.js +0 -0
  33. package/dist/web/components/chart/common/echarts.d.ts +3 -0
  34. package/dist/web/components/chart/common/useChart.js +23 -11
  35. package/dist/web/components/chart/line/index.d.ts +2 -38
  36. package/dist/web/components/chart/line/index.js +41 -52
  37. package/dist/{src/web → web}/components/chart/line/index.old.d.ts +0 -0
  38. package/dist/{src/web → web}/components/chart/line/index.old.js +0 -0
  39. package/dist/web/components/chart/pie/index.d.ts +2 -26
  40. package/dist/web/components/chart/pie/index.js +41 -39
  41. package/dist/{src/web → web}/components/chart/pie/index.old.d.ts +0 -0
  42. package/dist/{src/web → web}/components/chart/pie/index.old.js +0 -0
  43. package/dist/{src/web → web}/components/common/error-boundary.d.ts +0 -0
  44. package/dist/{src/web → web}/components/common/error-boundary.js +0 -0
  45. package/dist/{src/web → web}/components/common/portal.d.ts +0 -0
  46. package/dist/{src/web → web}/components/common/portal.js +0 -0
  47. package/dist/{src/web → web}/components/common/use-loop-render-detect.d.ts +0 -0
  48. package/dist/{src/web → web}/components/common/use-loop-render-detect.js +0 -0
  49. package/dist/web/components/form/checkbox/index.js +29 -29
  50. package/dist/web/components/form/enumSelect/MultipleSelect.d.ts +2 -2
  51. package/dist/web/components/form/enumSelect/NormalSelect.d.ts +2 -2
  52. package/dist/web/components/form/enumSelect/index.d.ts +2 -2
  53. package/dist/web/components/form/enumSelect/props/propsTypes.d.ts +2 -2
  54. package/dist/web/components/form/form/index.js +46 -0
  55. package/dist/web/components/form/input/index.js +13 -5
  56. package/dist/web/components/form/location/common/mapChoose.js +7 -6
  57. package/dist/web/components/form/location/common/mapView.js +9 -6
  58. package/dist/web/components/form/location/common/propsConfig.d.ts +1 -1
  59. package/dist/{src/web → web}/components/form/location/common/tmap.d.ts +0 -0
  60. package/dist/{src/web → web}/components/form/location/common/tmap.js +0 -0
  61. package/dist/web/components/form/location/common/useLocationInfo.d.ts +1 -1
  62. package/dist/web/components/form/location/common/useLocationInfo.js +3 -2
  63. package/dist/web/components/form/location/components/LocationH5/location.h5.js +6 -3
  64. package/dist/web/components/form/location/components/LocationPC/location.PC.js +5 -1
  65. package/dist/web/components/form/location/index.js +7 -0
  66. package/dist/web/components/form/radio/index.js +3 -3
  67. package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.d.ts +0 -0
  68. package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.js +0 -0
  69. package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.d.ts +0 -0
  70. package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.js +0 -0
  71. package/dist/{src/web → web}/components/form/select/allTimePicker/index.d.ts +0 -0
  72. package/dist/{src/web → web}/components/form/select/allTimePicker/index.js +0 -0
  73. package/dist/web/components/form/select/h5.d.ts +1 -1
  74. package/dist/web/components/form/select/h5.js +63 -7
  75. package/dist/web/components/form/select/index.d.ts +3 -2
  76. package/dist/web/components/form/select/index.js +25 -2
  77. package/dist/web/components/form/select/use-options.js +1 -1
  78. package/dist/web/components/form/select/year.js +1 -1
  79. package/dist/web/components/form/switch/index.js +2 -2
  80. package/dist/web/components/form/textarea/index.js +1 -1
  81. package/dist/web/components/form/uploader/uploader.h5.js +17 -42
  82. package/dist/web/components/form/uploader/uploader.pc.js +22 -28
  83. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +18 -25
  84. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +12 -23
  85. package/dist/web/components/form/userOrgSelect/comTool.d.ts +1 -0
  86. package/dist/web/components/form/userOrgSelect/comTool.js +25 -13
  87. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +2 -3
  88. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +65 -64
  89. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +2 -2
  90. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +41 -37
  91. package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.d.ts +0 -0
  92. package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.js +0 -0
  93. package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +7 -4
  94. package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +62 -58
  95. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +4 -4
  96. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +133 -109
  97. package/dist/web/components/form/userOrgSelect/utils.d.ts +3 -2
  98. package/dist/web/components/form/userOrgSelect/utils.js +24 -16
  99. package/dist/web/components/formdetail/index.js +14 -11
  100. package/dist/web/components/graphicCard/index.d.ts +16 -1
  101. package/dist/web/components/graphicCard/index.js +42 -30
  102. package/dist/web/components/image/index.js +4 -18
  103. package/dist/web/components/index.js +3 -1
  104. package/dist/web/components/listView/index.js +20 -9
  105. package/dist/web/components/lottery/index.js +10 -16
  106. package/dist/web/components/lottery/lotteryUtil.js +1 -1
  107. package/dist/web/components/modal/index.js +1 -1
  108. package/dist/web/components/navLayout/index.d.ts +16 -1
  109. package/dist/web/components/navLayout/index.js +31 -20
  110. package/dist/web/components/navigationBar/horizontalMenu.js +1 -1
  111. package/dist/web/components/navigationBar/index.js +13 -8
  112. package/dist/web/components/richText/index.js +1 -2
  113. package/dist/web/components/richTextView/index.js +20 -18
  114. package/dist/web/components/scrollView/index.d.ts +1 -2
  115. package/dist/web/components/scrollView/index.js +7 -5
  116. package/dist/web/components/swiper/index.js +62 -62
  117. package/dist/web/components/tabs/index.js +6 -1
  118. package/dist/web/components/tabs/tabs.h5.js +2 -0
  119. package/dist/web/components/text/index.js +10 -8
  120. package/dist/web/components/uploaderFileView/index.js +3 -18
  121. package/dist/web/components/uploaderView/index.js +1 -1
  122. package/dist/web/components/wedaVideo/index.js +21 -25
  123. package/dist/{src/web → web}/utils/console.d.ts +0 -0
  124. package/dist/{src/web → web}/utils/console.js +0 -0
  125. package/dist/web/utils/platform.js +1 -1
  126. package/dist/web/utils/tcb.d.ts +12 -6
  127. package/dist/web/utils/tcb.js +13 -0
  128. package/dist/web/utils/use-cloud-id-temp-url.js +3 -1
  129. package/dist/web/utils/useSyncValue.js +1 -0
  130. package/package.json +1 -1
  131. package/dist/cypress/support/commands.d.ts +0 -1
  132. package/dist/cypress/support/commands.js +0 -40
  133. package/dist/cypress/support/e2e.d.ts +0 -24
  134. package/dist/cypress/support/e2e.js +0 -22
  135. package/dist/src/configs/actions/showModal.json +0 -48
  136. package/dist/src/configs/actions/showToast.json +0 -41
  137. package/dist/src/configs/components/auth.json +0 -16
  138. package/dist/src/configs/components/button.json +0 -239
  139. package/dist/src/configs/components/calendar.json +0 -81
  140. package/dist/src/configs/components/carousel.json +0 -292
  141. package/dist/src/configs/components/chart/bar.json +0 -962
  142. package/dist/src/configs/components/chart/line.json +0 -878
  143. package/dist/src/configs/components/chart/pie.json +0 -685
  144. package/dist/src/configs/components/chart/statisticsCard.json +0 -376
  145. package/dist/src/configs/components/container.json +0 -50
  146. package/dist/src/configs/components/dataView.json +0 -247
  147. package/dist/src/configs/components/drawer.json +0 -115
  148. package/dist/src/configs/components/form/checkbox.json +0 -179
  149. package/dist/src/configs/components/form/departTreeSelect.json +0 -124
  150. package/dist/src/configs/components/form/form.json +0 -73
  151. package/dist/src/configs/components/form/input.json +0 -154
  152. package/dist/src/configs/components/form/location.json +0 -216
  153. package/dist/src/configs/components/form/radio.json +0 -203
  154. package/dist/src/configs/components/form/richText.json +0 -133
  155. package/dist/src/configs/components/form/select.json +0 -449
  156. package/dist/src/configs/components/form/switch.json +0 -58
  157. package/dist/src/configs/components/form/textarea.json +0 -116
  158. package/dist/src/configs/components/form/tips.json +0 -34
  159. package/dist/src/configs/components/form/uploader.json +0 -171
  160. package/dist/src/configs/components/form/uploaderFile.json +0 -158
  161. package/dist/src/configs/components/form/userTreeSelect.json +0 -128
  162. package/dist/src/configs/components/formdetail.json +0 -105
  163. package/dist/src/configs/components/graphicCard.json +0 -413
  164. package/dist/src/configs/components/image.json +0 -187
  165. package/dist/src/configs/components/link.json +0 -79
  166. package/dist/src/configs/components/listView.json +0 -378
  167. package/dist/src/configs/components/lottery.json +0 -163
  168. package/dist/src/configs/components/modal.json +0 -72
  169. package/dist/src/configs/components/navLayout.json +0 -368
  170. package/dist/src/configs/components/navigationBar.json +0 -62
  171. package/dist/src/configs/components/richtextview.json +0 -26
  172. package/dist/src/configs/components/scrollVeiw.json +0 -253
  173. package/dist/src/configs/components/slot.json +0 -17
  174. package/dist/src/configs/components/swiper.json +0 -90
  175. package/dist/src/configs/components/tabs.json +0 -122
  176. package/dist/src/configs/components/text.json +0 -95
  177. package/dist/src/configs/components/wedaVideo.json +0 -89
  178. package/dist/src/configs/components/wxOpenApi/phone.json +0 -127
  179. package/dist/src/configs/components/wxOpenApi/phoneCode.json +0 -109
  180. package/dist/src/configs/components/wxOpenApi/share.json +0 -160
  181. package/dist/src/configs/components/wxOpenApi/userInfo.json +0 -156
  182. package/dist/src/configs/index.d.ts +0 -103
  183. package/dist/src/configs/index.js +0 -111
  184. package/dist/src/docs/common/format.d.ts +0 -13
  185. package/dist/src/docs/common/format.js +0 -122
  186. package/dist/src/docs/common/tableView.d.ts +0 -30
  187. package/dist/src/docs/common/tableView.js +0 -156
  188. package/dist/src/index.d.ts +0 -2
  189. package/dist/src/index.js +0 -3
  190. package/dist/src/setupTests.d.ts +0 -2
  191. package/dist/src/setupTests.js +0 -19
  192. package/dist/src/web/actions/index.d.ts +0 -2
  193. package/dist/src/web/actions/index.js +0 -2
  194. package/dist/src/web/actions/showModal/index.d.ts +0 -4
  195. package/dist/src/web/actions/showModal/index.js +0 -66
  196. package/dist/src/web/actions/showToast/index.d.ts +0 -1
  197. package/dist/src/web/actions/showToast/index.js +0 -3
  198. package/dist/src/web/components/button/index.d.ts +0 -32
  199. package/dist/src/web/components/button/index.js +0 -48
  200. package/dist/src/web/components/calendar/index.d.ts +0 -19
  201. package/dist/src/web/components/calendar/index.js +0 -191
  202. package/dist/src/web/components/calendar/util.d.ts +0 -13
  203. package/dist/src/web/components/calendar/util.js +0 -74
  204. package/dist/src/web/components/carousel/index.d.ts +0 -41
  205. package/dist/src/web/components/carousel/index.js +0 -244
  206. package/dist/src/web/components/chart/bar/index.d.ts +0 -3
  207. package/dist/src/web/components/chart/bar/index.js +0 -45
  208. package/dist/src/web/components/chart/common/config/bar.d.ts +0 -48
  209. package/dist/src/web/components/chart/common/config/bar.js +0 -49
  210. package/dist/src/web/components/chart/common/config/global.d.ts +0 -13
  211. package/dist/src/web/components/chart/common/config/global.js +0 -16
  212. package/dist/src/web/components/chart/common/config/line.d.ts +0 -46
  213. package/dist/src/web/components/chart/common/config/line.js +0 -49
  214. package/dist/src/web/components/chart/common/config/pie.d.ts +0 -29
  215. package/dist/src/web/components/chart/common/config/pie.js +0 -36
  216. package/dist/src/web/components/chart/common/core/eChartBar.d.ts +0 -66
  217. package/dist/src/web/components/chart/common/core/eChartBar.js +0 -201
  218. package/dist/src/web/components/chart/common/core/eChartBase.d.ts +0 -127
  219. package/dist/src/web/components/chart/common/core/eChartBase.js +0 -394
  220. package/dist/src/web/components/chart/common/core/eChartLine.d.ts +0 -60
  221. package/dist/src/web/components/chart/common/core/eChartLine.js +0 -173
  222. package/dist/src/web/components/chart/common/core/eChartPie.d.ts +0 -48
  223. package/dist/src/web/components/chart/common/core/eChartPie.js +0 -135
  224. package/dist/src/web/components/chart/common/core/type.d.ts +0 -35
  225. package/dist/src/web/components/chart/common/core/type.js +0 -9
  226. package/dist/src/web/components/chart/common/echarts.d.ts +0 -5
  227. package/dist/src/web/components/chart/common/echarts.js +0 -24
  228. package/dist/src/web/components/chart/common/error-boundary.d.ts +0 -5
  229. package/dist/src/web/components/chart/common/error-boundary.js +0 -26
  230. package/dist/src/web/components/chart/common/useChart.d.ts +0 -8
  231. package/dist/src/web/components/chart/common/useChart.js +0 -72
  232. package/dist/src/web/components/chart/line/index.d.ts +0 -3
  233. package/dist/src/web/components/chart/line/index.js +0 -42
  234. package/dist/src/web/components/chart/pie/index.d.ts +0 -3
  235. package/dist/src/web/components/chart/pie/index.js +0 -42
  236. package/dist/src/web/components/chart/statisticsCard/index.d.ts +0 -85
  237. package/dist/src/web/components/chart/statisticsCard/index.js +0 -203
  238. package/dist/src/web/components/chart/statisticsCard/interface.d.ts +0 -13
  239. package/dist/src/web/components/chart/statisticsCard/interface.js +0 -1
  240. package/dist/src/web/components/container/index.d.ts +0 -6
  241. package/dist/src/web/components/container/index.js +0 -6
  242. package/dist/src/web/components/dataView/index.d.ts +0 -6
  243. package/dist/src/web/components/dataView/index.js +0 -8
  244. package/dist/src/web/components/dataView/interface.d.ts +0 -5
  245. package/dist/src/web/components/dataView/interface.js +0 -1
  246. package/dist/src/web/components/drawer/index.d.ts +0 -13
  247. package/dist/src/web/components/drawer/index.js +0 -12
  248. package/dist/src/web/components/form/checkbox/index.d.ts +0 -13
  249. package/dist/src/web/components/form/checkbox/index.js +0 -167
  250. package/dist/src/web/components/form/enumSelect/MultipleSelect.d.ts +0 -78
  251. package/dist/src/web/components/form/enumSelect/MultipleSelect.js +0 -52
  252. package/dist/src/web/components/form/enumSelect/NormalSelect.d.ts +0 -83
  253. package/dist/src/web/components/form/enumSelect/NormalSelect.js +0 -52
  254. package/dist/src/web/components/form/enumSelect/SelectContainer.d.ts +0 -16
  255. package/dist/src/web/components/form/enumSelect/SelectContainer.js +0 -30
  256. package/dist/src/web/components/form/enumSelect/index.d.ts +0 -82
  257. package/dist/src/web/components/form/enumSelect/index.js +0 -6
  258. package/dist/src/web/components/form/enumSelect/props/defaultProps.d.ts +0 -34
  259. package/dist/src/web/components/form/enumSelect/props/defaultProps.js +0 -40
  260. package/dist/src/web/components/form/enumSelect/props/propsTypes.d.ts +0 -39
  261. package/dist/src/web/components/form/enumSelect/props/propsTypes.js +0 -47
  262. package/dist/src/web/components/form/form/index.d.ts +0 -32
  263. package/dist/src/web/components/form/form/index.js +0 -150
  264. package/dist/src/web/components/form/formcell/index.d.ts +0 -8
  265. package/dist/src/web/components/form/formcell/index.js +0 -40
  266. package/dist/src/web/components/form/input/index.d.ts +0 -14
  267. package/dist/src/web/components/form/input/index.js +0 -94
  268. package/dist/src/web/components/form/location/common/mapChoose.d.ts +0 -15
  269. package/dist/src/web/components/form/location/common/mapChoose.js +0 -496
  270. package/dist/src/web/components/form/location/common/mapView.d.ts +0 -19
  271. package/dist/src/web/components/form/location/common/mapView.js +0 -175
  272. package/dist/src/web/components/form/location/common/propsConfig.d.ts +0 -59
  273. package/dist/src/web/components/form/location/common/propsConfig.js +0 -50
  274. package/dist/src/web/components/form/location/common/selectModal.d.ts +0 -21
  275. package/dist/src/web/components/form/location/common/selectModal.js +0 -44
  276. package/dist/src/web/components/form/location/common/useLocationInfo.d.ts +0 -36
  277. package/dist/src/web/components/form/location/common/useLocationInfo.js +0 -105
  278. package/dist/src/web/components/form/location/components/LocationH5/location.h5.d.ts +0 -8
  279. package/dist/src/web/components/form/location/components/LocationH5/location.h5.js +0 -328
  280. package/dist/src/web/components/form/location/components/LocationPC/Header.d.ts +0 -12
  281. package/dist/src/web/components/form/location/components/LocationPC/Header.js +0 -43
  282. package/dist/src/web/components/form/location/components/LocationPC/location.PC.d.ts +0 -8
  283. package/dist/src/web/components/form/location/components/LocationPC/location.PC.js +0 -228
  284. package/dist/src/web/components/form/location/constants.d.ts +0 -2
  285. package/dist/src/web/components/form/location/constants.js +0 -3
  286. package/dist/src/web/components/form/location/index.d.ts +0 -1
  287. package/dist/src/web/components/form/location/index.js +0 -24
  288. package/dist/src/web/components/form/radio/index.d.ts +0 -11
  289. package/dist/src/web/components/form/radio/index.js +0 -115
  290. package/dist/src/web/components/form/renderDecorator.d.ts +0 -6
  291. package/dist/src/web/components/form/renderDecorator.js +0 -20
  292. package/dist/src/web/components/form/select/dropdown-select/ui.d.ts +0 -15
  293. package/dist/src/web/components/form/select/dropdown-select/ui.js +0 -55
  294. package/dist/src/web/components/form/select/h5.d.ts +0 -16
  295. package/dist/src/web/components/form/select/h5.js +0 -466
  296. package/dist/src/web/components/form/select/index.d.ts +0 -66
  297. package/dist/src/web/components/form/select/index.js +0 -255
  298. package/dist/src/web/components/form/select/region/index.d.ts +0 -6
  299. package/dist/src/web/components/form/select/region/index.js +0 -147
  300. package/dist/src/web/components/form/select/time.d.ts +0 -9
  301. package/dist/src/web/components/form/select/time.js +0 -146
  302. package/dist/src/web/components/form/select/use-options.d.ts +0 -26
  303. package/dist/src/web/components/form/select/use-options.js +0 -103
  304. package/dist/src/web/components/form/select/year.d.ts +0 -7
  305. package/dist/src/web/components/form/select/year.js +0 -72
  306. package/dist/src/web/components/form/switch/index.d.ts +0 -6
  307. package/dist/src/web/components/form/switch/index.js +0 -58
  308. package/dist/src/web/components/form/textarea/index.d.ts +0 -12
  309. package/dist/src/web/components/form/textarea/index.js +0 -66
  310. package/dist/src/web/components/form/tips/index.d.ts +0 -8
  311. package/dist/src/web/components/form/tips/index.js +0 -17
  312. package/dist/src/web/components/form/uploader/index.d.ts +0 -3
  313. package/dist/src/web/components/form/uploader/index.js +0 -42
  314. package/dist/src/web/components/form/uploader/uploader.h5.d.ts +0 -20
  315. package/dist/src/web/components/form/uploader/uploader.h5.js +0 -199
  316. package/dist/src/web/components/form/uploader/uploader.pc.d.ts +0 -29
  317. package/dist/src/web/components/form/uploader/uploader.pc.js +0 -208
  318. package/dist/src/web/components/form/uploaderFile/index.d.ts +0 -4
  319. package/dist/src/web/components/form/uploaderFile/index.js +0 -19
  320. package/dist/src/web/components/form/uploaderFile/uploadFile.h5.d.ts +0 -23
  321. package/dist/src/web/components/form/uploaderFile/uploadFile.h5.js +0 -330
  322. package/dist/src/web/components/form/uploaderFile/uploadFile.pc.d.ts +0 -24
  323. package/dist/src/web/components/form/uploaderFile/uploadFile.pc.js +0 -302
  324. package/dist/src/web/components/form/userOrgSelect/comTool.d.ts +0 -8
  325. package/dist/src/web/components/form/userOrgSelect/comTool.js +0 -101
  326. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +0 -19
  327. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +0 -252
  328. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +0 -4
  329. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -157
  330. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/index.d.ts +0 -2
  331. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/index.js +0 -17
  332. package/dist/src/web/components/form/userOrgSelect/index.d.ts +0 -2
  333. package/dist/src/web/components/form/userOrgSelect/index.js +0 -17
  334. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +0 -27
  335. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.h5.js +0 -276
  336. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +0 -9
  337. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.pc.js +0 -253
  338. package/dist/src/web/components/form/userOrgSelect/utils.d.ts +0 -36
  339. package/dist/src/web/components/form/userOrgSelect/utils.js +0 -80
  340. package/dist/src/web/components/formdetail/index.d.ts +0 -28
  341. package/dist/src/web/components/formdetail/index.js +0 -173
  342. package/dist/src/web/components/graphicCard/index.d.ts +0 -46
  343. package/dist/src/web/components/graphicCard/index.js +0 -178
  344. package/dist/src/web/components/image/image.d.ts +0 -9
  345. package/dist/src/web/components/image/image.js +0 -119
  346. package/dist/src/web/components/image/index.d.ts +0 -13
  347. package/dist/src/web/components/image/index.js +0 -77
  348. package/dist/src/web/components/index.d.ts +0 -50
  349. package/dist/src/web/components/index.js +0 -99
  350. package/dist/src/web/components/link/index.d.ts +0 -24
  351. package/dist/src/web/components/link/index.js +0 -71
  352. package/dist/src/web/components/listView/index.d.ts +0 -7
  353. package/dist/src/web/components/listView/index.js +0 -297
  354. package/dist/src/web/components/listView/interface.d.ts +0 -127
  355. package/dist/src/web/components/listView/interface.js +0 -1
  356. package/dist/src/web/components/lottery/index.d.ts +0 -22
  357. package/dist/src/web/components/lottery/index.js +0 -385
  358. package/dist/src/web/components/lottery/lotteryUtil.d.ts +0 -23
  359. package/dist/src/web/components/lottery/lotteryUtil.js +0 -181
  360. package/dist/src/web/components/modal/index.d.ts +0 -17
  361. package/dist/src/web/components/modal/index.js +0 -11
  362. package/dist/src/web/components/modal/modal.h5.d.ts +0 -4
  363. package/dist/src/web/components/modal/modal.h5.js +0 -46
  364. package/dist/src/web/components/modal/modal.pc.d.ts +0 -3
  365. package/dist/src/web/components/modal/modal.pc.js +0 -31
  366. package/dist/src/web/components/navLayout/index.d.ts +0 -61
  367. package/dist/src/web/components/navLayout/index.js +0 -127
  368. package/dist/src/web/components/navigationBar/common.d.ts +0 -15
  369. package/dist/src/web/components/navigationBar/common.js +0 -127
  370. package/dist/src/web/components/navigationBar/h5Menu.d.ts +0 -14
  371. package/dist/src/web/components/navigationBar/h5Menu.js +0 -72
  372. package/dist/src/web/components/navigationBar/horizontalMenu.d.ts +0 -12
  373. package/dist/src/web/components/navigationBar/horizontalMenu.js +0 -99
  374. package/dist/src/web/components/navigationBar/index.d.ts +0 -13
  375. package/dist/src/web/components/navigationBar/index.js +0 -157
  376. package/dist/src/web/components/navigationBar/verticalMenu.d.ts +0 -13
  377. package/dist/src/web/components/navigationBar/verticalMenu.js +0 -38
  378. package/dist/src/web/components/phone/index.d.ts +0 -18
  379. package/dist/src/web/components/phone/index.js +0 -4
  380. package/dist/src/web/components/phoneCode/index.d.ts +0 -18
  381. package/dist/src/web/components/phoneCode/index.js +0 -4
  382. package/dist/src/web/components/picker/datePicker.d.ts +0 -10
  383. package/dist/src/web/components/picker/datePicker.js +0 -31
  384. package/dist/src/web/components/picker/picker.d.ts +0 -6
  385. package/dist/src/web/components/picker/picker.js +0 -45
  386. package/dist/src/web/components/picker/timePicker.d.ts +0 -7
  387. package/dist/src/web/components/picker/timePicker.js +0 -42
  388. package/dist/src/web/components/richText/const.d.ts +0 -1
  389. package/dist/src/web/components/richText/const.js +0 -2
  390. package/dist/src/web/components/richText/index.d.ts +0 -50
  391. package/dist/src/web/components/richText/index.js +0 -351
  392. package/dist/src/web/components/richTextView/index.d.ts +0 -7
  393. package/dist/src/web/components/richTextView/index.js +0 -46
  394. package/dist/src/web/components/scrollView/index.d.ts +0 -26
  395. package/dist/src/web/components/scrollView/index.js +0 -97
  396. package/dist/src/web/components/share/index.d.ts +0 -34
  397. package/dist/src/web/components/share/index.js +0 -4
  398. package/dist/src/web/components/slot/index.d.ts +0 -6
  399. package/dist/src/web/components/slot/index.js +0 -9
  400. package/dist/src/web/components/swiper/index.d.ts +0 -24
  401. package/dist/src/web/components/swiper/index.js +0 -153
  402. package/dist/src/web/components/tabs/index.d.ts +0 -13
  403. package/dist/src/web/components/tabs/index.js +0 -20
  404. package/dist/src/web/components/tabs/tabs.h5.d.ts +0 -4
  405. package/dist/src/web/components/tabs/tabs.h5.js +0 -44
  406. package/dist/src/web/components/tabs/tabs.pc.d.ts +0 -3
  407. package/dist/src/web/components/tabs/tabs.pc.js +0 -40
  408. package/dist/src/web/components/text/index.d.ts +0 -14
  409. package/dist/src/web/components/text/index.js +0 -19
  410. package/dist/src/web/components/uploaderFileView/index.d.ts +0 -10
  411. package/dist/src/web/components/uploaderFileView/index.js +0 -46
  412. package/dist/src/web/components/uploaderView/index.d.ts +0 -17
  413. package/dist/src/web/components/uploaderView/index.js +0 -48
  414. package/dist/src/web/components/userInfo/index.d.ts +0 -26
  415. package/dist/src/web/components/userInfo/index.js +0 -4
  416. package/dist/src/web/components/wedaVideo/index.d.ts +0 -17
  417. package/dist/src/web/components/wedaVideo/index.js +0 -156
  418. package/dist/src/web/index.d.ts +0 -8
  419. package/dist/src/web/index.js +0 -4
  420. package/dist/src/web/utils/classnames.d.ts +0 -2
  421. package/dist/src/web/utils/classnames.js +0 -37
  422. package/dist/src/web/utils/constant.d.ts +0 -23
  423. package/dist/src/web/utils/constant.js +0 -24
  424. package/dist/src/web/utils/debounce.d.ts +0 -2
  425. package/dist/src/web/utils/debounce.js +0 -92
  426. package/dist/src/web/utils/getLocalCounter.d.ts +0 -1
  427. package/dist/src/web/utils/getLocalCounter.js +0 -4
  428. package/dist/src/web/utils/getUserService.d.ts +0 -11
  429. package/dist/src/web/utils/getUserService.js +0 -156
  430. package/dist/src/web/utils/isObjectEqual.d.ts +0 -2
  431. package/dist/src/web/utils/isObjectEqual.js +0 -12
  432. package/dist/src/web/utils/loading-fallback.d.ts +0 -2
  433. package/dist/src/web/utils/loading-fallback.js +0 -2
  434. package/dist/src/web/utils/lodash.d.ts +0 -1
  435. package/dist/src/web/utils/lodash.js +0 -2
  436. package/dist/src/web/utils/platform.d.ts +0 -18
  437. package/dist/src/web/utils/platform.js +0 -193
  438. package/dist/src/web/utils/tcb.d.ts +0 -33
  439. package/dist/src/web/utils/tcb.js +0 -118
  440. package/dist/src/web/utils/tmap.d.ts +0 -3
  441. package/dist/src/web/utils/tmap.js +0 -21
  442. package/dist/src/web/utils/use-cloud-id-temp-url.d.ts +0 -1
  443. package/dist/src/web/utils/use-cloud-id-temp-url.js +0 -15
  444. package/dist/src/web/utils/useSetState.d.ts +0 -1
  445. package/dist/src/web/utils/useSetState.js +0 -8
  446. package/dist/src/web/utils/useSyncValue.d.ts +0 -4
  447. package/dist/src/web/utils/useSyncValue.js +0 -16
  448. package/dist/src/web/utils/weui.d.ts +0 -1
  449. package/dist/src/web/utils/weui.js +0 -2
  450. package/dist/web/components/form/userOrgSelect/userOrgSelect.less +0 -643
  451. package/dist/web/utils/getUserService.d.ts +0 -17
  452. package/dist/web/utils/getUserService.js +0 -148
  453. package/dist/web/utils/tmap.d.ts +0 -3
  454. package/dist/web/utils/tmap.js +0 -21
@@ -1,156 +0,0 @@
1
- import * as React from 'react';
2
- import videojs from 'video.js';
3
- import 'video.js/dist/video-js.css';
4
- import './index.css';
5
- import { usePlatform, isCloudFileID, isInIde } from '../../utils/platform';
6
- import classNames from '../../utils/classnames';
7
- import { ConfigProvider, Icon } from 'tea-component';
8
- import { useTempUrl } from '../../utils/use-cloud-id-temp-url';
9
- const { useEffect, useRef, useMemo, useState } = React;
10
- const MimetypesKind = {
11
- opus: 'video/ogg',
12
- ogv: 'video/ogg',
13
- mp4: 'video/mp4',
14
- mov: 'video/mp4',
15
- m4v: 'video/mp4',
16
- mkv: 'video/x-matroska',
17
- m4a: 'audio/mp4',
18
- mp3: 'audio/mpeg',
19
- aac: 'audio/aac',
20
- caf: 'audio/x-caf',
21
- flac: 'audio/flac',
22
- oga: 'audio/ogg',
23
- wav: 'audio/wav',
24
- m3u8: 'application/x-mpegURL',
25
- jpg: 'image/jpeg',
26
- jpeg: 'image/jpeg',
27
- gif: 'image/gif',
28
- png: 'image/png',
29
- svg: 'image/svg+xml',
30
- webp: 'image/webp',
31
- };
32
- const CLASS_PREFIX = 'weda-ui_video';
33
- const WedaVideo = ({ className, style, id, videoDataSource, posterImage, autoPlay, loopPlay, mutePlay, controlBarStatus, startTime, endTime, }) => {
34
- const platform = usePlatform();
35
- const cls = classNames({
36
- [className]: className,
37
- [CLASS_PREFIX]: true,
38
- [`${CLASS_PREFIX}-h5`]: platform === 'h5',
39
- 'weda-ui_video_control': !controlBarStatus,
40
- });
41
- const videoRef = useRef(null);
42
- const playerRef = useRef(null);
43
- const [videoModalStatus, setVideoModalStatus] = useState(true);
44
- const [videoErrMsg, setVideoErrMsg] = useState('');
45
- const { data: realSrc, error } = useTempUrl(videoDataSource);
46
- const videoType = useMemo(() => {
47
- return realSrc === null || realSrc === void 0 ? void 0 : realSrc.substring(realSrc.lastIndexOf('.') + 1).toLowerCase();
48
- }, [realSrc]);
49
- if (error) {
50
- console.error('getCloudUrl error', error);
51
- setVideoErrMsg('获取云文件资源失败');
52
- }
53
- useEffect(() => {
54
- const videoElement = videoRef.current;
55
- if (!playerRef.current) {
56
- const videoOptions = {
57
- poster: posterImage,
58
- autoplay: autoPlay,
59
- bigPlayButton: true,
60
- loop: loopPlay,
61
- muted: mutePlay,
62
- controls: controlBarStatus,
63
- language: 'zh-CN',
64
- fluid: true,
65
- controlBar: {
66
- children: [
67
- { name: 'playToggle' },
68
- { name: 'currentTimeDisplay' },
69
- { name: 'progressControl' },
70
- { name: 'durationDisplay' },
71
- {
72
- name: 'volumePanel',
73
- inline: false, // 不使用水平方式
74
- },
75
- { name: 'FullscreenToggle' }, // 全屏按钮
76
- ],
77
- },
78
- sources: [
79
- {
80
- src: realSrc || 'no',
81
- type: MimetypesKind[videoType] || 'video/mp4',
82
- },
83
- ],
84
- };
85
- playerRef.current = videojs(videoElement, videoOptions, () => {
86
- players.currentTime(startTime); //指定播放时间
87
- setVideoModalStatus(false);
88
- setVideoErrMsg('');
89
- });
90
- const players = playerRef.current;
91
- // 指定结束时间
92
- if (endTime) {
93
- players.on('timeupdate', () => {
94
- //播放时间改变
95
- const currentTime = players.currentTime();
96
- if (startTime >= endTime)
97
- return;
98
- if (currentTime > endTime) {
99
- players.currentTime(startTime);
100
- // eslint-disable-next-line rulesdir/no-timer
101
- setTimeout(() => {
102
- !loopPlay && players.pause();
103
- }, 200);
104
- }
105
- });
106
- }
107
- players.on('canplaythrough', function () {
108
- setVideoModalStatus(false);
109
- setVideoErrMsg('');
110
- });
111
- players.on('error', function () {
112
- let errorMsg = `视频资源加载出错,错误信息:${players === null || players === void 0 ? void 0 : players.error().message}`;
113
- const pattern = new RegExp('^(((https?)://)|/resources/)[^\\s]+$');
114
- if (isInIde() &&
115
- !pattern.test(videoDataSource) &&
116
- !isCloudFileID(videoDataSource)) {
117
- errorMsg = '请在预览区查看视频效果';
118
- }
119
- console.error('player error', errorMsg);
120
- setVideoErrMsg(errorMsg);
121
- setVideoModalStatus(true);
122
- });
123
- }
124
- }, [
125
- autoPlay,
126
- controlBarStatus,
127
- endTime,
128
- loopPlay,
129
- mutePlay,
130
- posterImage,
131
- realSrc,
132
- startTime,
133
- videoDataSource,
134
- videoRef,
135
- videoType,
136
- ]);
137
- useEffect(() => {
138
- // 切换视频源
139
- if (playerRef.current && videoType) {
140
- const srcOption = [
141
- {
142
- src: realSrc,
143
- type: MimetypesKind[videoType],
144
- },
145
- ];
146
- playerRef.current.src(srcOption);
147
- playerRef.current.load(realSrc);
148
- }
149
- }, [realSrc, videoType]);
150
- return (React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
151
- React.createElement("div", { className: cls, id: id, style: style, "data-testid": "wedaVideo" },
152
- React.createElement("div", { "data-vjs-player": true },
153
- React.createElement("video", { ref: videoRef, className: `video-js vjs-big-play-centered ${CLASS_PREFIX}__video-wrap` })),
154
- videoModalStatus && (React.createElement("div", { className: `${CLASS_PREFIX}__video-loading` }, realSrc === null ? React.createElement(Icon, { type: "loading" }) : videoErrMsg)))));
155
- };
156
- export default WedaVideo;
@@ -1,8 +0,0 @@
1
- export * from "./components";
2
- declare namespace _default {
3
- export { components };
4
- export { actions };
5
- }
6
- export default _default;
7
- import * as components from "./components";
8
- import * as actions from "./actions";
@@ -1,4 +0,0 @@
1
- import * as components from './components';
2
- import * as actions from './actions';
3
- export * from './components';
4
- export default { components, actions };
@@ -1,2 +0,0 @@
1
- export default classNames;
2
- declare function classNames(...args: any[]): any;
@@ -1,37 +0,0 @@
1
- /* !
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
6
- function classNames(...args) {
7
- const classes = [];
8
- for (let i = 0; i < args.length; i++) {
9
- const arg = args[i];
10
- if (!arg)
11
- continue;
12
- const argType = typeof arg;
13
- if (argType === 'string' || argType === 'number') {
14
- classes.push(arg);
15
- }
16
- else if (Array.isArray(arg)) {
17
- if (arg.length) {
18
- const inner = classes.push(classNames(...arg));
19
- if (inner) {
20
- classes.push(inner);
21
- }
22
- }
23
- }
24
- else if (argType === 'object') {
25
- if (arg.toString === Object.prototype.toString) {
26
- Object.keys(arg).forEach((key) => {
27
- arg[key] && classes.push(key);
28
- });
29
- }
30
- else {
31
- classes.push(arg.toString());
32
- }
33
- }
34
- }
35
- return classes.join(' ');
36
- }
37
- export default classNames;
@@ -1,23 +0,0 @@
1
- export declare const TitleType: {
2
- readonly LEFT: "left";
3
- readonly TOP: "top";
4
- readonly NONE: "none";
5
- };
6
- export declare const LOAD_ERR_IMG_BASE64: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMjUuMzIgMTYuMzU5N0MyNi4wNzY0IDE2LjM1OTcgMjYuODI1NCAxNi41MDg3IDI3LjUyNDMgMTYuNzk4MUMyOC4yMjMxIDE3LjA4NzYgMjguODU4MSAxNy41MTE5IDI5LjM5MjkgMTguMDQ2OEMyOS45Mjc4IDE4LjU4MTYgMzAuMzUyMSAxOS4yMTY2IDMwLjY0MTYgMTkuOTE1NEMzMC45MzEgMjAuNjE0MyAzMS4wOCAyMS4zNjMzIDMxLjA4IDIyLjExOTdDMzEuMDggMjIuODc2MSAzMC45MzEgMjMuNjI1MSAzMC42NDE2IDI0LjMyMzlDMzAuMzUyMSAyNS4wMjI4IDI5LjkyNzggMjUuNjU3OCAyOS4zOTI5IDI2LjE5MjZDMjguODU4MSAyNi43Mjc1IDI4LjIyMzEgMjcuMTUxOCAyNy41MjQzIDI3LjQ0MTJDMjYuODI1NCAyNy43MzA3IDI2LjA3NjQgMjcuODc5NyAyNS4zMiAyNy44Nzk3QzIzLjc5MjQgMjcuODc5NyAyMi4zMjczIDI3LjI3MjggMjEuMjQ3MSAyNi4xOTI2QzIwLjE2NjkgMjUuMTEyNCAxOS41NiAyMy42NDczIDE5LjU2IDIyLjExOTdDMTkuNTYgMjAuNTkyIDIwLjE2NjkgMTkuMTI3IDIxLjI0NzEgMTguMDQ2OEMyMi4zMjczIDE2Ljk2NjUgMjMuNzkyNCAxNi4zNTk3IDI1LjMyIDE2LjM1OTdaTTI4IDMuNTU5NjlWMTQuODc2OEMyNy4xNzc3IDE0LjU4NjYgMjYuMTkyIDE0LjQzODggMjUuMzIgMTQuNDM5N0MyNC4wMzEgMTQuNDM5NyAyMi44MTU3IDE0Ljc1NzEgMjEuNzQ4OCAxNS4zMTg0TDIwLjc5NTIgMTMuMTU5N0wxNi4wMjU5IDIwLjAyNzVMOC40NDU3NiAxNi40NDFMMy41NiAyMy4zOTk3SDE3Ljc0NjJDMTcuOTg2NyAyNC44MjkgMTguNjI4MiAyNi4xNjA2IDE5LjU5NTggMjcuMjM5N0gxVjMuNTU5NjlIMjhaTTI1Ljk2IDI0LjAzOTdIMjQuNjhWMjUuMzE5N0gyNS45NlYyNC4wMzk3Wk0yNS45NiAxOC45MTk3SDI0LjY4VjIzLjM5OTdIMjUuOTZWMTguOTE5N1pNNi4xMiAxMC41OTk3QzYuMTIgMTEuOTk4MSA3LjE5OTA0IDEzLjEwODUgOC42MDc2OCAxMy4xNTg0QzEwLjAyMDggMTMuMjA3NyAxMS4yNCAxMi4wNDggMTEuMjQgMTAuNTk5N0MxMS4yNCA5LjI0NjA5IDEwLjA2NDMgOC4wODU3NyA4Ljc1MjMyIDguMDQwOTdDNy4yOTU2OCA3Ljk5MTY5IDYuMTIgOS4xNTEzNyA2LjEyIDEwLjU5OTdaIiBmaWxsPSIjQkNDNEQwIj48L3BhdGg+Cjwvc3ZnPgo=";
7
- export declare const REL_DICT: {
8
- readonly equal: "eq";
9
- readonly unequal: "neq";
10
- readonly include: "search";
11
- readonly exclude: "_exclude";
12
- readonly begin_with: "_begin_with";
13
- readonly greater: "gt";
14
- readonly greater_or_equal: "gte";
15
- readonly bigger_or_equal: "gte";
16
- readonly less: "lt";
17
- readonly less_or_equal: "lte";
18
- readonly in: "in";
19
- readonly not_in: "nin";
20
- };
21
- export declare const emptyObject: {};
22
- export declare const emptyArray: readonly [];
23
- export declare const noop: () => void;
@@ -1,24 +0,0 @@
1
- export const TitleType = {
2
- LEFT: 'left',
3
- TOP: 'top',
4
- NONE: 'none',
5
- };
6
- export const LOAD_ERR_IMG_BASE64 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMjUuMzIgMTYuMzU5N0MyNi4wNzY0IDE2LjM1OTcgMjYuODI1NCAxNi41MDg3IDI3LjUyNDMgMTYuNzk4MUMyOC4yMjMxIDE3LjA4NzYgMjguODU4MSAxNy41MTE5IDI5LjM5MjkgMTguMDQ2OEMyOS45Mjc4IDE4LjU4MTYgMzAuMzUyMSAxOS4yMTY2IDMwLjY0MTYgMTkuOTE1NEMzMC45MzEgMjAuNjE0MyAzMS4wOCAyMS4zNjMzIDMxLjA4IDIyLjExOTdDMzEuMDggMjIuODc2MSAzMC45MzEgMjMuNjI1MSAzMC42NDE2IDI0LjMyMzlDMzAuMzUyMSAyNS4wMjI4IDI5LjkyNzggMjUuNjU3OCAyOS4zOTI5IDI2LjE5MjZDMjguODU4MSAyNi43Mjc1IDI4LjIyMzEgMjcuMTUxOCAyNy41MjQzIDI3LjQ0MTJDMjYuODI1NCAyNy43MzA3IDI2LjA3NjQgMjcuODc5NyAyNS4zMiAyNy44Nzk3QzIzLjc5MjQgMjcuODc5NyAyMi4zMjczIDI3LjI3MjggMjEuMjQ3MSAyNi4xOTI2QzIwLjE2NjkgMjUuMTEyNCAxOS41NiAyMy42NDczIDE5LjU2IDIyLjExOTdDMTkuNTYgMjAuNTkyIDIwLjE2NjkgMTkuMTI3IDIxLjI0NzEgMTguMDQ2OEMyMi4zMjczIDE2Ljk2NjUgMjMuNzkyNCAxNi4zNTk3IDI1LjMyIDE2LjM1OTdaTTI4IDMuNTU5NjlWMTQuODc2OEMyNy4xNzc3IDE0LjU4NjYgMjYuMTkyIDE0LjQzODggMjUuMzIgMTQuNDM5N0MyNC4wMzEgMTQuNDM5NyAyMi44MTU3IDE0Ljc1NzEgMjEuNzQ4OCAxNS4zMTg0TDIwLjc5NTIgMTMuMTU5N0wxNi4wMjU5IDIwLjAyNzVMOC40NDU3NiAxNi40NDFMMy41NiAyMy4zOTk3SDE3Ljc0NjJDMTcuOTg2NyAyNC44MjkgMTguNjI4MiAyNi4xNjA2IDE5LjU5NTggMjcuMjM5N0gxVjMuNTU5NjlIMjhaTTI1Ljk2IDI0LjAzOTdIMjQuNjhWMjUuMzE5N0gyNS45NlYyNC4wMzk3Wk0yNS45NiAxOC45MTk3SDI0LjY4VjIzLjM5OTdIMjUuOTZWMTguOTE5N1pNNi4xMiAxMC41OTk3QzYuMTIgMTEuOTk4MSA3LjE5OTA0IDEzLjEwODUgOC42MDc2OCAxMy4xNTg0QzEwLjAyMDggMTMuMjA3NyAxMS4yNCAxMi4wNDggMTEuMjQgMTAuNTk5N0MxMS4yNCA5LjI0NjA5IDEwLjA2NDMgOC4wODU3NyA4Ljc1MjMyIDguMDQwOTdDNy4yOTU2OCA3Ljk5MTY5IDYuMTIgOS4xNTEzNyA2LjEyIDEwLjU5OTdaIiBmaWxsPSIjQkNDNEQwIj48L3BhdGg+Cjwvc3ZnPgo=';
7
- export const REL_DICT = {
8
- equal: 'eq',
9
- unequal: 'neq',
10
- include: 'search',
11
- exclude: '_exclude',
12
- begin_with: '_begin_with',
13
- greater: 'gt',
14
- greater_or_equal: 'gte',
15
- bigger_or_equal: 'gte',
16
- less: 'lt',
17
- less_or_equal: 'lte',
18
- in: 'in',
19
- not_in: 'nin', // 不在多选值
20
- };
21
- export const emptyObject = {};
22
- export const emptyArray = [];
23
- // eslint-disable-next-line @typescript-eslint/no-empty-function
24
- export const noop = (() => { });
@@ -1,2 +0,0 @@
1
- export default debounce;
2
- declare function debounce(func: any, wait: any, options: any): (...args: any[]) => any;
@@ -1,92 +0,0 @@
1
- /* eslint-disable */
2
- function isObject(value) {
3
- const type = typeof value;
4
- return value != null && (type === 'object' || type === 'function');
5
- }
6
- function debounce(func, wait, options) {
7
- let lastArgs, lastThis, maxWait, result, timerId, lastCallTime;
8
- let lastInvokeTime = 0;
9
- let leading = false;
10
- let maxing = false;
11
- let trailing = true;
12
- if (typeof func !== 'function') {
13
- throw new TypeError('Expected a function');
14
- }
15
- wait = +wait || 0;
16
- if (isObject(options)) {
17
- leading = !!options.leading;
18
- maxing = 'maxWait' in options;
19
- maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : maxWait;
20
- trailing = 'trailing' in options ? !!options.trailing : trailing;
21
- }
22
- function invokeFunc(time) {
23
- const args = lastArgs;
24
- const thisArg = lastThis;
25
- lastArgs = lastThis = undefined;
26
- lastInvokeTime = time;
27
- result = func.apply(thisArg, args);
28
- return result;
29
- }
30
- function startTimer(pendingFunc, wait) {
31
- return setTimeout(pendingFunc, wait);
32
- }
33
- function leadingEdge(time) {
34
- lastInvokeTime = time;
35
- timerId = startTimer(timerExpired, wait);
36
- return leading ? invokeFunc(time) : result;
37
- }
38
- function remainingWait(time) {
39
- const timeSinceLastCall = time - lastCallTime;
40
- const timeSinceLastInvoke = time - lastInvokeTime;
41
- const timeWaiting = wait - timeSinceLastCall;
42
- return maxing
43
- ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)
44
- : timeWaiting;
45
- }
46
- function shouldInvoke(time) {
47
- const timeSinceLastCall = time - lastCallTime;
48
- const timeSinceLastInvoke = time - lastInvokeTime;
49
- return (lastCallTime === undefined ||
50
- timeSinceLastCall >= wait ||
51
- timeSinceLastCall < 0 ||
52
- (maxing && timeSinceLastInvoke >= maxWait));
53
- }
54
- function timerExpired() {
55
- const time = Date.now();
56
- if (shouldInvoke(time)) {
57
- return trailingEdge(time);
58
- }
59
- timerId = startTimer(timerExpired, remainingWait(time));
60
- }
61
- function trailingEdge(time) {
62
- timerId = undefined;
63
- if (trailing && lastArgs) {
64
- return invokeFunc(time);
65
- }
66
- lastArgs = lastThis = undefined;
67
- return result;
68
- }
69
- //debouncedFunc
70
- function debounced(...args) {
71
- const time = Date.now();
72
- const isInvoking = shouldInvoke(time);
73
- lastArgs = args;
74
- lastThis = this;
75
- lastCallTime = time;
76
- if (isInvoking) {
77
- if (timerId === undefined) {
78
- return leadingEdge(lastCallTime);
79
- }
80
- if (maxing) {
81
- timerId = startTimer(timerExpired, wait);
82
- return invokeFunc(lastCallTime);
83
- }
84
- }
85
- if (timerId === undefined) {
86
- timerId = startTimer(timerExpired, wait);
87
- }
88
- return result;
89
- }
90
- return debounced;
91
- }
92
- export default debounce;
@@ -1 +0,0 @@
1
- export default function getLocalCounter(): number;
@@ -1,4 +0,0 @@
1
- let localCounter = 1;
2
- export default function getLocalCounter() {
3
- return localCounter++;
4
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * 根据_id查询部门数据
3
- *
4
- */
5
- export function getDepartById(data: any): Promise<any>;
6
- export function initRootOrgs(data: any): Promise<any>;
7
- export function getDeparts(data: any): Promise<any>;
8
- export function searchByCondition(data: any): Promise<any>;
9
- export function defaultRequest(action: any, params: any, type?: any): Promise<any>;
10
- export function getDataSourceByName(dbName: any): Promise<any>;
11
- export function getUserInfo(): Promise<any>;
@@ -1,156 +0,0 @@
1
- import { callWedaApi, callDataSource } from './tcb';
2
- /**
3
- * 默认请求统一处理方法
4
- * @param {*} action
5
- * @param {*} params
6
- * @param {*} type
7
- * @returns
8
- */
9
- export const defaultRequest = async (action, params, type = 'callWedaApi') => {
10
- try {
11
- if (type === 'callWedaApi') {
12
- const res = await callWedaApi({
13
- action: action,
14
- data: params,
15
- });
16
- return res;
17
- }
18
- else if (type === 'callDataSource' && action === 'getUserById') {
19
- const datasource = await getDataSourceByName('sys_user');
20
- const userInfoList = [];
21
- let pageNo = 1;
22
- const setInitUserDataHandle = async () => {
23
- const res = await callWedaApi({
24
- action: 'DescribeWedaUserList',
25
- data: {
26
- pageNo: pageNo,
27
- pageSize: 100,
28
- UserIds: (params === null || params === void 0 ? void 0 : params.idList) || [],
29
- UserType: 'internalUser',
30
- },
31
- });
32
- const resData = ((res === null || res === void 0 ? void 0 : res.UserList) || []).map((item) => {
33
- const userInfo = JSON.parse(item === null || item === void 0 ? void 0 : item.UserExtend) || {};
34
- return {
35
- value: item === null || item === void 0 ? void 0 : item.UserId,
36
- data: {
37
- content: userInfo[datasource === null || datasource === void 0 ? void 0 : datasource.schema['x-primary-column']] ||
38
- (item === null || item === void 0 ? void 0 : item.UserId),
39
- },
40
- };
41
- });
42
- userInfoList.push.apply(userInfoList, resData);
43
- if ((res === null || res === void 0 ? void 0 : res.Total) > pageNo * 100) {
44
- pageNo += 1;
45
- await setInitUserDataHandle();
46
- }
47
- };
48
- (params === null || params === void 0 ? void 0 : params.idList.length) > 0 && (await setInitUserDataHandle());
49
- return userInfoList;
50
- }
51
- }
52
- catch (error) {
53
- console.error(action + '错误', error);
54
- throw errorHandle(error, action);
55
- }
56
- };
57
- /**
58
- * 获取用户表schema
59
- */
60
- export const getDataSourceByName = async (dbName) => {
61
- // dbName 为空时
62
- if (!dbName)
63
- return;
64
- const datasource = await window.app.cloud.getDataSourceProfile(dbName);
65
- return datasource;
66
- };
67
- /**
68
- * 根据_id查询部门数据
69
- *
70
- */
71
- export async function getDepartById(data) {
72
- try {
73
- const datasource = await getDataSourceByName('sys_department');
74
- const res = await callDataSource({
75
- dataSourceName: 'sys_department',
76
- methodName: 'wedaGetItem',
77
- params: data,
78
- });
79
- return res[datasource === null || datasource === void 0 ? void 0 : datasource.schema['x-primary-column']] || (res === null || res === void 0 ? void 0 : res._id);
80
- }
81
- catch (error) {
82
- console.error('错误', error);
83
- throw errorHandle(error, 'getDepartById');
84
- }
85
- }
86
- /**
87
- * 获取当前登录人信息
88
- * */
89
- export const getUserInfo = () => {
90
- var _a, _b;
91
- const userInfo = (_b = (_a = window === null || window === void 0 ? void 0 : window.app) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.getUserInfo();
92
- return Promise.resolve(userInfo);
93
- };
94
- /*
95
- * 初始化加载部门数据
96
- * @author servernnyu
97
- */
98
- export async function initRootOrgs(data) {
99
- try {
100
- const res = await callWedaApi({
101
- action: 'InitRootOrgs',
102
- data,
103
- });
104
- return res;
105
- }
106
- catch (error) {
107
- console.error('错误', error);
108
- throw errorHandle(error, 'InitRootOrgs');
109
- }
110
- }
111
- /*
112
- * 懒加载部门数据 LazyDescribeOrgs
113
- * OrgId:组织架构Id,为根节点就不传了,我就会去查根节点
114
- * DescribeCondition:查询条件,现在可以传{"Key":"NeedUser","Value": "true"}
115
- */
116
- export async function getDeparts(data) {
117
- try {
118
- const res = await callWedaApi({
119
- action: 'LazyDescribeOrgs',
120
- data,
121
- });
122
- return res;
123
- }
124
- catch (error) {
125
- console.error('错误', error);
126
- throw errorHandle(error, 'LazyDescribeOrgs');
127
- }
128
- }
129
- /*
130
- SearchByCondition接口
131
- 入参:
132
- KeyWords:关键词
133
- SearchCondition:搜索条件,当前要传俩,一个是是否关联用户同上,一个是SeachType,SearchByRole和SearchByOrg, NeedUser
134
- */
135
- export async function searchByCondition(data) {
136
- try {
137
- const res = await callWedaApi({
138
- action: 'SearchByCondition',
139
- data,
140
- });
141
- return res;
142
- }
143
- catch (error) {
144
- console.error('错误', error);
145
- throw errorHandle(error, 'SearchByCondition');
146
- }
147
- }
148
- const errorHandle = (error, action) => {
149
- var _a;
150
- if (error === null || error === void 0 ? void 0 : error.result) {
151
- return `${(_a = error === null || error === void 0 ? void 0 : error.result) === null || _a === void 0 ? void 0 : _a.message}(${action}${error === null || error === void 0 ? void 0 : error.requestId})`;
152
- }
153
- else {
154
- return `${action}(${error === null || error === void 0 ? void 0 : error.message})`;
155
- }
156
- };
@@ -1,2 +0,0 @@
1
- export function serde(a: any): any;
2
- export default function _default(a: any, b: any, shouldSerde?: boolean): any;
@@ -1,12 +0,0 @@
1
- import isEqual from 'lodash.isequal';
2
- export function serde(a) {
3
- return JSON.parse(JSON.stringify(a));
4
- }
5
- const isObj = (a) => typeof a === 'object' && a !== null;
6
- export default function (a, b, shouldSerde = false) {
7
- if (shouldSerde && isObj(a) && isObj(b)) {
8
- // for Proxy created by mbox
9
- return isEqual(serde(a), serde(b));
10
- }
11
- return isEqual(a, b);
12
- }
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const fallback: JSX.Element;
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export const fallback = React.createElement("div", null, "\u7EC4\u4EF6\u52A0\u8F7D\u4E2D...");
@@ -1 +0,0 @@
1
- export declare const isNil: (val: unknown) => val is null;
@@ -1,2 +0,0 @@
1
- // https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L11973
2
- export const isNil = (val) => val == null;
@@ -1,18 +0,0 @@
1
- export function usePlatform(): "h5" | "pc";
2
- /**
3
- * 在h5下,判断当前是否是移动浏览器
4
- */
5
- export function inH5IsMobile(): boolean;
6
- export function isH5Platform(): boolean;
7
- export function isCloudFileID(url: any): boolean;
8
- export function isHttpFileID(url: any): boolean;
9
- export function filterStrList(value: any): any[];
10
- export function transSize(size: any): string;
11
- export function downloadFile(url: any): void;
12
- export function cutFileTitle(str?: string, count?: number): string;
13
- export function isInIde(): boolean;
14
- export function resolveStaticResourceUrl(path: any): any;
15
- export function transFileCloudidToName(fileID: any): string;
16
- export function isUrl(path: any): boolean;
17
- export function randomStr(len?: number): string;
18
- export function getWhereList(where: any): any[];