@cloudbase/weda-ui 3.2.0 → 3.3.0

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 (356) hide show
  1. package/dist/cypress/support/commands.d.ts +1 -0
  2. package/dist/cypress/support/commands.js +40 -0
  3. package/dist/cypress/support/e2e.d.ts +24 -0
  4. package/dist/cypress/support/e2e.js +22 -0
  5. package/dist/src/configs/actions/showModal.json +48 -0
  6. package/dist/src/configs/actions/showToast.json +41 -0
  7. package/dist/src/configs/components/auth.json +16 -0
  8. package/dist/src/configs/components/button.json +239 -0
  9. package/dist/src/configs/components/calendar.json +81 -0
  10. package/dist/src/configs/components/carousel.json +292 -0
  11. package/dist/src/configs/components/chart/bar.json +962 -0
  12. package/dist/src/configs/components/chart/line.json +878 -0
  13. package/dist/src/configs/components/chart/pie.json +685 -0
  14. package/dist/src/configs/components/chart/statisticsCard.json +376 -0
  15. package/dist/src/configs/components/container.json +50 -0
  16. package/dist/src/configs/components/dataView.json +247 -0
  17. package/dist/src/configs/components/drawer.json +115 -0
  18. package/dist/src/configs/components/form/checkbox.json +179 -0
  19. package/dist/src/configs/components/form/departTreeSelect.json +124 -0
  20. package/dist/src/configs/components/form/form.json +73 -0
  21. package/dist/src/configs/components/form/input.json +154 -0
  22. package/dist/src/configs/components/form/location.json +216 -0
  23. package/dist/src/configs/components/form/radio.json +203 -0
  24. package/dist/src/configs/components/form/richText.json +133 -0
  25. package/dist/src/configs/components/form/select.json +449 -0
  26. package/dist/src/configs/components/form/switch.json +58 -0
  27. package/dist/src/configs/components/form/textarea.json +116 -0
  28. package/dist/src/configs/components/form/tips.json +34 -0
  29. package/dist/src/configs/components/form/uploader.json +171 -0
  30. package/dist/src/configs/components/form/uploaderFile.json +158 -0
  31. package/dist/src/configs/components/form/userTreeSelect.json +128 -0
  32. package/dist/src/configs/components/formdetail.json +105 -0
  33. package/dist/src/configs/components/graphicCard.json +413 -0
  34. package/dist/src/configs/components/image.json +187 -0
  35. package/dist/src/configs/components/link.json +79 -0
  36. package/dist/src/configs/components/listView.json +378 -0
  37. package/dist/src/configs/components/lottery.json +163 -0
  38. package/dist/src/configs/components/modal.json +72 -0
  39. package/dist/src/configs/components/navLayout.json +368 -0
  40. package/dist/src/configs/components/navigationBar.json +62 -0
  41. package/dist/src/configs/components/richtextview.json +26 -0
  42. package/dist/src/configs/components/scrollVeiw.json +253 -0
  43. package/dist/src/configs/components/slot.json +17 -0
  44. package/dist/src/configs/components/swiper.json +90 -0
  45. package/dist/src/configs/components/tabs.json +122 -0
  46. package/dist/src/configs/components/text.json +95 -0
  47. package/dist/src/configs/components/wedaVideo.json +89 -0
  48. package/dist/src/configs/components/wxOpenApi/phone.json +127 -0
  49. package/dist/src/configs/components/wxOpenApi/phoneCode.json +109 -0
  50. package/dist/src/configs/components/wxOpenApi/share.json +160 -0
  51. package/dist/src/configs/components/wxOpenApi/userInfo.json +156 -0
  52. package/dist/src/configs/index.d.ts +103 -0
  53. package/dist/src/configs/index.js +111 -0
  54. package/dist/src/docs/common/format.d.ts +13 -0
  55. package/dist/src/docs/common/format.js +122 -0
  56. package/dist/src/docs/common/tableView.d.ts +30 -0
  57. package/dist/src/docs/common/tableView.js +156 -0
  58. package/dist/src/index.d.ts +2 -0
  59. package/dist/src/index.js +3 -0
  60. package/dist/src/setupTests.d.ts +2 -0
  61. package/dist/src/setupTests.js +19 -0
  62. package/dist/src/web/actions/index.d.ts +2 -0
  63. package/dist/src/web/actions/index.js +2 -0
  64. package/dist/src/web/actions/showModal/index.d.ts +4 -0
  65. package/dist/src/web/actions/showModal/index.js +66 -0
  66. package/dist/src/web/actions/showToast/index.d.ts +1 -0
  67. package/dist/src/web/actions/showToast/index.js +3 -0
  68. package/dist/src/web/components/button/index.d.ts +32 -0
  69. package/dist/src/web/components/button/index.js +48 -0
  70. package/dist/src/web/components/calendar/index.d.ts +19 -0
  71. package/dist/src/web/components/calendar/index.js +191 -0
  72. package/dist/src/web/components/calendar/util.d.ts +13 -0
  73. package/dist/src/web/components/calendar/util.js +74 -0
  74. package/dist/src/web/components/carousel/index.d.ts +41 -0
  75. package/dist/src/web/components/carousel/index.js +244 -0
  76. package/dist/src/web/components/chart/bar/index.d.ts +3 -0
  77. package/dist/src/web/components/chart/bar/index.js +45 -0
  78. package/dist/src/web/components/chart/bar/index.old.d.ts +40 -0
  79. package/dist/src/web/components/chart/bar/index.old.js +56 -0
  80. package/dist/src/web/components/chart/common/Chart.d.ts +10 -0
  81. package/dist/src/web/components/chart/common/Chart.js +31 -0
  82. package/dist/src/web/components/chart/common/chart-custom-connector.d.ts +6 -0
  83. package/dist/src/web/components/chart/common/chart-custom-connector.js +35 -0
  84. package/dist/src/web/components/chart/common/chart-error.d.ts +2 -0
  85. package/dist/src/web/components/chart/common/chart-error.js +2 -0
  86. package/dist/src/web/components/chart/common/config/bar.d.ts +48 -0
  87. package/dist/src/web/components/chart/common/config/bar.js +49 -0
  88. package/dist/src/web/components/chart/common/config/global.d.ts +13 -0
  89. package/dist/src/web/components/chart/common/config/global.js +16 -0
  90. package/dist/src/web/components/chart/common/config/line.d.ts +46 -0
  91. package/dist/src/web/components/chart/common/config/line.js +49 -0
  92. package/dist/src/web/components/chart/common/config/pie.d.ts +29 -0
  93. package/dist/src/web/components/chart/common/config/pie.js +36 -0
  94. package/dist/src/web/components/chart/common/core/eChartBar.d.ts +66 -0
  95. package/dist/src/web/components/chart/common/core/eChartBar.js +201 -0
  96. package/dist/src/web/components/chart/common/core/eChartBase.d.ts +127 -0
  97. package/dist/src/web/components/chart/common/core/eChartBase.js +394 -0
  98. package/dist/src/web/components/chart/common/core/eChartLine.d.ts +60 -0
  99. package/dist/src/web/components/chart/common/core/eChartLine.js +173 -0
  100. package/dist/src/web/components/chart/common/core/eChartPie.d.ts +48 -0
  101. package/dist/src/web/components/chart/common/core/eChartPie.js +135 -0
  102. package/dist/src/web/components/chart/common/core/type.d.ts +35 -0
  103. package/dist/src/web/components/chart/common/core/type.js +9 -0
  104. package/dist/src/web/components/chart/common/data-transform.d.ts +6 -0
  105. package/dist/src/web/components/chart/common/data-transform.js +248 -0
  106. package/dist/src/web/components/chart/common/echarts.d.ts +5 -0
  107. package/dist/src/web/components/chart/common/echarts.js +24 -0
  108. package/dist/src/web/components/chart/common/error-boundary.d.ts +5 -0
  109. package/dist/src/web/components/chart/common/error-boundary.js +26 -0
  110. package/dist/src/web/components/chart/common/useChart.d.ts +8 -0
  111. package/dist/src/web/components/chart/common/useChart.js +72 -0
  112. package/dist/src/web/components/chart/line/index.d.ts +3 -0
  113. package/dist/src/web/components/chart/line/index.js +42 -0
  114. package/dist/src/web/components/chart/line/index.old.d.ts +38 -0
  115. package/dist/src/web/components/chart/line/index.old.js +53 -0
  116. package/dist/src/web/components/chart/pie/index.d.ts +3 -0
  117. package/dist/src/web/components/chart/pie/index.js +42 -0
  118. package/dist/src/web/components/chart/pie/index.old.d.ts +27 -0
  119. package/dist/src/web/components/chart/pie/index.old.js +40 -0
  120. package/dist/src/web/components/chart/statisticsCard/index.d.ts +85 -0
  121. package/dist/src/web/components/chart/statisticsCard/index.js +203 -0
  122. package/dist/src/web/components/chart/statisticsCard/interface.d.ts +13 -0
  123. package/dist/src/web/components/chart/statisticsCard/interface.js +1 -0
  124. package/dist/src/web/components/common/error-boundary.d.ts +5 -0
  125. package/dist/src/web/components/common/error-boundary.js +33 -0
  126. package/dist/src/web/components/common/portal.d.ts +7 -0
  127. package/dist/src/web/components/common/portal.js +14 -0
  128. package/dist/src/web/components/common/use-loop-render-detect.d.ts +11 -0
  129. package/dist/src/web/components/common/use-loop-render-detect.js +124 -0
  130. package/dist/src/web/components/container/index.d.ts +6 -0
  131. package/dist/src/web/components/container/index.js +6 -0
  132. package/dist/src/web/components/dataView/index.d.ts +6 -0
  133. package/dist/src/web/components/dataView/index.js +8 -0
  134. package/dist/src/web/components/dataView/interface.d.ts +5 -0
  135. package/dist/src/web/components/dataView/interface.js +1 -0
  136. package/dist/src/web/components/drawer/index.d.ts +13 -0
  137. package/dist/src/web/components/drawer/index.js +12 -0
  138. package/dist/src/web/components/form/checkbox/index.d.ts +13 -0
  139. package/dist/src/web/components/form/checkbox/index.js +167 -0
  140. package/dist/src/web/components/form/enumSelect/MultipleSelect.d.ts +78 -0
  141. package/dist/src/web/components/form/enumSelect/MultipleSelect.js +52 -0
  142. package/dist/src/web/components/form/enumSelect/NormalSelect.d.ts +83 -0
  143. package/dist/src/web/components/form/enumSelect/NormalSelect.js +52 -0
  144. package/dist/src/web/components/form/enumSelect/SelectContainer.d.ts +16 -0
  145. package/dist/src/web/components/form/enumSelect/SelectContainer.js +30 -0
  146. package/dist/src/web/components/form/enumSelect/index.d.ts +82 -0
  147. package/dist/src/web/components/form/enumSelect/index.js +6 -0
  148. package/dist/src/web/components/form/enumSelect/props/defaultProps.d.ts +34 -0
  149. package/dist/src/web/components/form/enumSelect/props/defaultProps.js +40 -0
  150. package/dist/src/web/components/form/enumSelect/props/propsTypes.d.ts +39 -0
  151. package/dist/src/web/components/form/enumSelect/props/propsTypes.js +47 -0
  152. package/dist/src/web/components/form/form/index.d.ts +32 -0
  153. package/dist/src/web/components/form/form/index.js +150 -0
  154. package/dist/src/web/components/form/formcell/index.d.ts +8 -0
  155. package/dist/src/web/components/form/formcell/index.js +40 -0
  156. package/dist/src/web/components/form/input/index.d.ts +14 -0
  157. package/dist/src/web/components/form/input/index.js +94 -0
  158. package/dist/src/web/components/form/location/common/mapChoose.d.ts +15 -0
  159. package/dist/src/web/components/form/location/common/mapChoose.js +496 -0
  160. package/dist/src/web/components/form/location/common/mapView.d.ts +19 -0
  161. package/dist/src/web/components/form/location/common/mapView.js +175 -0
  162. package/dist/src/web/components/form/location/common/propsConfig.d.ts +59 -0
  163. package/dist/src/web/components/form/location/common/propsConfig.js +50 -0
  164. package/dist/src/web/components/form/location/common/selectModal.d.ts +21 -0
  165. package/dist/src/web/components/form/location/common/selectModal.js +44 -0
  166. package/dist/src/web/components/form/location/common/tmap.d.ts +3 -0
  167. package/dist/src/web/components/form/location/common/tmap.js +21 -0
  168. package/dist/src/web/components/form/location/common/useLocationInfo.d.ts +36 -0
  169. package/dist/src/web/components/form/location/common/useLocationInfo.js +105 -0
  170. package/dist/src/web/components/form/location/components/LocationH5/location.h5.d.ts +8 -0
  171. package/dist/src/web/components/form/location/components/LocationH5/location.h5.js +328 -0
  172. package/dist/src/web/components/form/location/components/LocationPC/Header.d.ts +12 -0
  173. package/dist/src/web/components/form/location/components/LocationPC/Header.js +43 -0
  174. package/dist/src/web/components/form/location/components/LocationPC/location.PC.d.ts +8 -0
  175. package/dist/src/web/components/form/location/components/LocationPC/location.PC.js +228 -0
  176. package/dist/src/web/components/form/location/constants.d.ts +2 -0
  177. package/dist/src/web/components/form/location/constants.js +3 -0
  178. package/dist/src/web/components/form/location/index.d.ts +1 -0
  179. package/dist/src/web/components/form/location/index.js +24 -0
  180. package/dist/src/web/components/form/radio/index.d.ts +11 -0
  181. package/dist/src/web/components/form/radio/index.js +115 -0
  182. package/dist/src/web/components/form/renderDecorator.d.ts +6 -0
  183. package/dist/src/web/components/form/renderDecorator.js +20 -0
  184. package/dist/src/web/components/form/select/allTimePicker/calendar.d.ts +13 -0
  185. package/dist/src/web/components/form/select/allTimePicker/calendar.js +104 -0
  186. package/dist/src/web/components/form/select/allTimePicker/dataUtils.d.ts +24 -0
  187. package/dist/src/web/components/form/select/allTimePicker/dataUtils.js +265 -0
  188. package/dist/src/web/components/form/select/allTimePicker/index.d.ts +14 -0
  189. package/dist/src/web/components/form/select/allTimePicker/index.js +944 -0
  190. package/dist/src/web/components/form/select/dropdown-select/ui.d.ts +15 -0
  191. package/dist/src/web/components/form/select/dropdown-select/ui.js +55 -0
  192. package/dist/src/web/components/form/select/h5.d.ts +16 -0
  193. package/dist/src/web/components/form/select/h5.js +466 -0
  194. package/dist/src/web/components/form/select/index.d.ts +66 -0
  195. package/dist/src/web/components/form/select/index.js +255 -0
  196. package/dist/src/web/components/form/select/region/index.d.ts +6 -0
  197. package/dist/src/web/components/form/select/region/index.js +147 -0
  198. package/dist/src/web/components/form/select/time.d.ts +9 -0
  199. package/dist/src/web/components/form/select/time.js +146 -0
  200. package/dist/src/web/components/form/select/use-options.d.ts +26 -0
  201. package/dist/src/web/components/form/select/use-options.js +103 -0
  202. package/dist/src/web/components/form/select/year.d.ts +7 -0
  203. package/dist/src/web/components/form/select/year.js +72 -0
  204. package/dist/src/web/components/form/switch/index.d.ts +6 -0
  205. package/dist/src/web/components/form/switch/index.js +58 -0
  206. package/dist/src/web/components/form/textarea/index.d.ts +12 -0
  207. package/dist/src/web/components/form/textarea/index.js +66 -0
  208. package/dist/src/web/components/form/tips/index.d.ts +8 -0
  209. package/dist/src/web/components/form/tips/index.js +17 -0
  210. package/dist/src/web/components/form/uploader/index.d.ts +3 -0
  211. package/dist/src/web/components/form/uploader/index.js +42 -0
  212. package/dist/src/web/components/form/uploader/uploader.h5.d.ts +20 -0
  213. package/dist/src/web/components/form/uploader/uploader.h5.js +199 -0
  214. package/dist/src/web/components/form/uploader/uploader.pc.d.ts +29 -0
  215. package/dist/src/web/components/form/uploader/uploader.pc.js +208 -0
  216. package/dist/src/web/components/form/uploaderFile/index.d.ts +4 -0
  217. package/dist/src/web/components/form/uploaderFile/index.js +19 -0
  218. package/dist/src/web/components/form/uploaderFile/uploadFile.h5.d.ts +23 -0
  219. package/dist/src/web/components/form/uploaderFile/uploadFile.h5.js +330 -0
  220. package/dist/src/web/components/form/uploaderFile/uploadFile.pc.d.ts +24 -0
  221. package/dist/src/web/components/form/uploaderFile/uploadFile.pc.js +302 -0
  222. package/dist/src/web/components/form/userOrgSelect/comTool.d.ts +8 -0
  223. package/dist/src/web/components/form/userOrgSelect/comTool.js +101 -0
  224. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +19 -0
  225. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +252 -0
  226. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +4 -0
  227. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +157 -0
  228. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/index.d.ts +2 -0
  229. package/dist/src/web/components/form/userOrgSelect/departTreeSelect/index.js +17 -0
  230. package/dist/src/web/components/form/userOrgSelect/getUserService.d.ts +11 -0
  231. package/dist/src/web/components/form/userOrgSelect/getUserService.js +159 -0
  232. package/dist/src/web/components/form/userOrgSelect/index.d.ts +2 -0
  233. package/dist/src/web/components/form/userOrgSelect/index.js +17 -0
  234. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +27 -0
  235. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.h5.js +276 -0
  236. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +9 -0
  237. package/dist/src/web/components/form/userOrgSelect/userTreeSelect.pc.js +253 -0
  238. package/dist/src/web/components/form/userOrgSelect/utils.d.ts +36 -0
  239. package/dist/src/web/components/form/userOrgSelect/utils.js +80 -0
  240. package/dist/src/web/components/formdetail/index.d.ts +28 -0
  241. package/dist/src/web/components/formdetail/index.js +173 -0
  242. package/dist/src/web/components/graphicCard/index.d.ts +46 -0
  243. package/dist/src/web/components/graphicCard/index.js +178 -0
  244. package/dist/src/web/components/image/image.d.ts +9 -0
  245. package/dist/src/web/components/image/image.js +119 -0
  246. package/dist/src/web/components/image/index.d.ts +13 -0
  247. package/dist/src/web/components/image/index.js +77 -0
  248. package/dist/src/web/components/index.d.ts +50 -0
  249. package/dist/src/web/components/index.js +99 -0
  250. package/dist/src/web/components/link/index.d.ts +24 -0
  251. package/dist/src/web/components/link/index.js +71 -0
  252. package/dist/src/web/components/listView/index.d.ts +7 -0
  253. package/dist/src/web/components/listView/index.js +297 -0
  254. package/dist/src/web/components/listView/interface.d.ts +127 -0
  255. package/dist/src/web/components/listView/interface.js +1 -0
  256. package/dist/src/web/components/lottery/index.d.ts +22 -0
  257. package/dist/src/web/components/lottery/index.js +385 -0
  258. package/dist/src/web/components/lottery/lotteryUtil.d.ts +23 -0
  259. package/dist/src/web/components/lottery/lotteryUtil.js +181 -0
  260. package/dist/src/web/components/modal/index.d.ts +17 -0
  261. package/dist/src/web/components/modal/index.js +11 -0
  262. package/dist/src/web/components/modal/modal.h5.d.ts +4 -0
  263. package/dist/src/web/components/modal/modal.h5.js +46 -0
  264. package/dist/src/web/components/modal/modal.pc.d.ts +3 -0
  265. package/dist/src/web/components/modal/modal.pc.js +31 -0
  266. package/dist/src/web/components/navLayout/index.d.ts +61 -0
  267. package/dist/src/web/components/navLayout/index.js +127 -0
  268. package/dist/src/web/components/navigationBar/common.d.ts +15 -0
  269. package/dist/src/web/components/navigationBar/common.js +127 -0
  270. package/dist/src/web/components/navigationBar/h5Menu.d.ts +14 -0
  271. package/dist/src/web/components/navigationBar/h5Menu.js +72 -0
  272. package/dist/src/web/components/navigationBar/horizontalMenu.d.ts +12 -0
  273. package/dist/src/web/components/navigationBar/horizontalMenu.js +99 -0
  274. package/dist/src/web/components/navigationBar/index.d.ts +13 -0
  275. package/dist/src/web/components/navigationBar/index.js +157 -0
  276. package/dist/src/web/components/navigationBar/verticalMenu.d.ts +13 -0
  277. package/dist/src/web/components/navigationBar/verticalMenu.js +38 -0
  278. package/dist/src/web/components/phone/index.d.ts +18 -0
  279. package/dist/src/web/components/phone/index.js +4 -0
  280. package/dist/src/web/components/phoneCode/index.d.ts +18 -0
  281. package/dist/src/web/components/phoneCode/index.js +4 -0
  282. package/dist/src/web/components/picker/datePicker.d.ts +10 -0
  283. package/dist/src/web/components/picker/datePicker.js +31 -0
  284. package/dist/src/web/components/picker/picker.d.ts +6 -0
  285. package/dist/src/web/components/picker/picker.js +45 -0
  286. package/dist/src/web/components/picker/timePicker.d.ts +7 -0
  287. package/dist/src/web/components/picker/timePicker.js +42 -0
  288. package/dist/src/web/components/richText/const.d.ts +1 -0
  289. package/dist/src/web/components/richText/const.js +2 -0
  290. package/dist/src/web/components/richText/index.d.ts +50 -0
  291. package/dist/src/web/components/richText/index.js +351 -0
  292. package/dist/src/web/components/richTextView/index.d.ts +7 -0
  293. package/dist/src/web/components/richTextView/index.js +46 -0
  294. package/dist/src/web/components/scrollView/index.d.ts +26 -0
  295. package/dist/src/web/components/scrollView/index.js +97 -0
  296. package/dist/src/web/components/share/index.d.ts +34 -0
  297. package/dist/src/web/components/share/index.js +4 -0
  298. package/dist/src/web/components/slot/index.d.ts +6 -0
  299. package/dist/src/web/components/slot/index.js +9 -0
  300. package/dist/src/web/components/swiper/index.d.ts +24 -0
  301. package/dist/src/web/components/swiper/index.js +153 -0
  302. package/dist/src/web/components/tabs/index.d.ts +13 -0
  303. package/dist/src/web/components/tabs/index.js +20 -0
  304. package/dist/src/web/components/tabs/tabs.h5.d.ts +4 -0
  305. package/dist/src/web/components/tabs/tabs.h5.js +44 -0
  306. package/dist/src/web/components/tabs/tabs.pc.d.ts +3 -0
  307. package/dist/src/web/components/tabs/tabs.pc.js +40 -0
  308. package/dist/src/web/components/text/index.d.ts +14 -0
  309. package/dist/src/web/components/text/index.js +19 -0
  310. package/dist/src/web/components/uploaderFileView/index.d.ts +10 -0
  311. package/dist/src/web/components/uploaderFileView/index.js +46 -0
  312. package/dist/src/web/components/uploaderView/index.d.ts +17 -0
  313. package/dist/src/web/components/uploaderView/index.js +48 -0
  314. package/dist/src/web/components/userInfo/index.d.ts +26 -0
  315. package/dist/src/web/components/userInfo/index.js +4 -0
  316. package/dist/src/web/components/wedaVideo/index.d.ts +17 -0
  317. package/dist/src/web/components/wedaVideo/index.js +156 -0
  318. package/dist/src/web/index.d.ts +8 -0
  319. package/dist/src/web/index.js +4 -0
  320. package/dist/src/web/utils/classnames.d.ts +2 -0
  321. package/dist/src/web/utils/classnames.js +37 -0
  322. package/dist/src/web/utils/console.d.ts +3 -0
  323. package/dist/src/web/utils/console.js +26 -0
  324. package/dist/src/web/utils/constant.d.ts +23 -0
  325. package/dist/src/web/utils/constant.js +24 -0
  326. package/dist/src/web/utils/debounce.d.ts +2 -0
  327. package/dist/src/web/utils/debounce.js +92 -0
  328. package/dist/src/web/utils/getLocalCounter.d.ts +1 -0
  329. package/dist/src/web/utils/getLocalCounter.js +4 -0
  330. package/dist/src/web/utils/getUserService.d.ts +11 -0
  331. package/dist/src/web/utils/getUserService.js +156 -0
  332. package/dist/src/web/utils/isObjectEqual.d.ts +2 -0
  333. package/dist/src/web/utils/isObjectEqual.js +12 -0
  334. package/dist/src/web/utils/loading-fallback.d.ts +2 -0
  335. package/dist/src/web/utils/loading-fallback.js +2 -0
  336. package/dist/src/web/utils/lodash.d.ts +1 -0
  337. package/dist/src/web/utils/lodash.js +2 -0
  338. package/dist/src/web/utils/platform.d.ts +18 -0
  339. package/dist/src/web/utils/platform.js +193 -0
  340. package/dist/src/web/utils/tcb.d.ts +33 -0
  341. package/dist/src/web/utils/tcb.js +118 -0
  342. package/dist/src/web/utils/tmap.d.ts +3 -0
  343. package/dist/src/web/utils/tmap.js +21 -0
  344. package/dist/src/web/utils/use-cloud-id-temp-url.d.ts +1 -0
  345. package/dist/src/web/utils/use-cloud-id-temp-url.js +15 -0
  346. package/dist/src/web/utils/useSetState.d.ts +1 -0
  347. package/dist/src/web/utils/useSetState.js +8 -0
  348. package/dist/src/web/utils/useSyncValue.d.ts +4 -0
  349. package/dist/src/web/utils/useSyncValue.js +16 -0
  350. package/dist/src/web/utils/weui.d.ts +1 -0
  351. package/dist/src/web/utils/weui.js +2 -0
  352. package/dist/web/components/form/input/index.css +16 -0
  353. package/dist/web/components/form/select/allTimePicker/calendar.css +114 -0
  354. package/dist/web/components/form/select/allTimePicker/index.css +136 -0
  355. package/dist/web/components/form/userOrgSelect/userOrgSelect.css +809 -0
  356. package/package.json +34 -21
@@ -0,0 +1,127 @@
1
+ import React from 'react';
2
+ /**
3
+ * 数据容器公共属性
4
+ */
5
+ export interface IDataContainer {
6
+ /**
7
+ * 数据源类型
8
+ */
9
+ dataSourceType: 'data-model' | 'connector' | 'custom-connector';
10
+ /**
11
+ * 连接器
12
+ */
13
+ bindConnectMetadata?: {
14
+ datasource: {
15
+ name?: string;
16
+ };
17
+ };
18
+ /**
19
+ * 连接器方法
20
+ */
21
+ connectorMethod?: {
22
+ name?: string;
23
+ inParams?: string[];
24
+ outParams?: string[];
25
+ title?: string;
26
+ };
27
+ /**
28
+ * 数据模型
29
+ */
30
+ datasource?: {
31
+ name?: string;
32
+ extra?: {
33
+ viewId?: string;
34
+ methodName?: string;
35
+ };
36
+ };
37
+ /**
38
+ * 连接器查询入参
39
+ */
40
+ connectorParams?: object;
41
+ /**
42
+ * 数据筛选
43
+ */
44
+ where?: {
45
+ groupLogic?: null | 'or' | 'and';
46
+ logicData?: {
47
+ keyType?: 'field' | 'var-font';
48
+ key: string;
49
+ rel: 'eq' | 'neq' | 'lt' | 'gt' | 'gte' | 'lte' | 'in' | 'nin' | 'search';
50
+ value: any;
51
+ valueType?: 'const' | 'var-font' | 'relative-amount' | 'field';
52
+ expression?: string | boolean;
53
+ logic?: null | 'or' | 'and' | string;
54
+ extra?: {
55
+ type?: 'string' | 'number' | 'boolean' | 'object' | 'array' | string;
56
+ format?: string | null;
57
+ isExpression?: boolean;
58
+ };
59
+ }[];
60
+ }[];
61
+ /**
62
+ * 容器事件
63
+ */
64
+ events?: {
65
+ queryEmpty?: any;
66
+ querySuccess?: any;
67
+ queryFail?: any;
68
+ onDataChange?: (param: any) => any;
69
+ };
70
+ /**
71
+ * 类
72
+ */
73
+ className?: string;
74
+ /**
75
+ * app.cloud 对象依赖,默认会从 window.app 取值
76
+ */
77
+ appCloud?: {
78
+ callDataSource?: any;
79
+ isInIde?: any;
80
+ };
81
+ /**
82
+ * 子元素
83
+ */
84
+ children?: React.ReactNode | undefined;
85
+ /**
86
+ * 其他属性
87
+ */
88
+ [key: string]: any;
89
+ }
90
+ /**
91
+ * 数据容器-列表视图
92
+ */
93
+ export interface IListView extends IDataContainer {
94
+ /**
95
+ * 数据字段
96
+ */
97
+ orderBy?: string;
98
+ /**
99
+ * 数据类型
100
+ */
101
+ orderType?: 'desc' | 'asc';
102
+ /**
103
+ * 模板
104
+ */
105
+ template?: 'simpleList' | 'detailList' | 'imageTextList' | 'cardList' | 'none';
106
+ /**
107
+ * 显示行数
108
+ */
109
+ pageSize?: number;
110
+ /**
111
+ * 分页类型,加载更多|底部刷新|分页器
112
+ */
113
+ pagination?: 'loadMoreButton' | 'bottomLoad' | 'pagination' | 'none';
114
+ /**
115
+ * 调用 onDataChange 之前的数据转换,如列表视图需要接受 array,而数据视图需要接受 object
116
+ */
117
+ beforeDataChange?: (param: any) => any;
118
+ /**
119
+ * 是否展示回调recoreds字段
120
+ */
121
+ isRecords?: boolean;
122
+ }
123
+ /**
124
+ * 查询状态
125
+ * 成功|失败|空|加载中|初始化
126
+ */
127
+ export declare type IStatus = 'success' | 'fail' | 'empty' | 'loading' | '';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import './index.css';
3
+ import type { CommonPropsType, ICompRef } from '../../types';
4
+ declare type TCompRef = ICompRef<{
5
+ start: () => void;
6
+ }>;
7
+ declare const _default: React.ForwardRefExoticComponent<PropsType & React.RefAttributes<TCompRef>>;
8
+ export default _default;
9
+ export interface PropsType extends CommonPropsType {
10
+ /**
11
+ * 奖品列表
12
+ */
13
+ prizeList: any;
14
+ /**
15
+ * 启动抽奖
16
+ */
17
+ enablePrize: boolean;
18
+ /**
19
+ * 抽奖结果
20
+ */
21
+ prizeResult: string;
22
+ }
@@ -0,0 +1,385 @@
1
+ /* eslint-disable react/jsx-key */
2
+ import React, { useState, useEffect, useCallback, useImperativeHandle, useMemo, } from 'react';
3
+ import { usePlatform } from '../../utils/platform';
4
+ import classNames from '../../utils/classnames';
5
+ import './index.css';
6
+ import { ConfigProvider } from 'tea-component';
7
+ import LotteryAction from './lotteryUtil';
8
+ const CLASS_PREFIX = 'weda-lottery';
9
+ const lotteryAction = new LotteryAction();
10
+ export default React.forwardRef(function Lottery({ className, id, style, prizeList, enablePrize, prizeResult, events }, ref) {
11
+ const platform = usePlatform();
12
+ const [activedId, setActivedId] = useState(-1);
13
+ const [isStartLottery, setIsStartLottery] = useState(false);
14
+ const [lotteryList, setLotteryList] = useState([]);
15
+ const [btnActived, setBtnActived] = useState(false);
16
+ //获取初始化默认数据,数据不足8条设置默认,超过8条获取前8条
17
+ const lotteryListDefault = useMemo(() => {
18
+ const list = [];
19
+ if (prizeList == null) {
20
+ return list;
21
+ }
22
+ for (let i = 0; i < 8; i++) {
23
+ if (i < prizeList.length) {
24
+ const prize = prizeList[i];
25
+ list.push({
26
+ idx: i + 1,
27
+ selected: false,
28
+ desc: prize.title,
29
+ src: prize.image,
30
+ });
31
+ }
32
+ else {
33
+ list.push({
34
+ idx: i + 1,
35
+ selected: false,
36
+ desc: '',
37
+ src: '',
38
+ });
39
+ }
40
+ }
41
+ return list;
42
+ }, [prizeList]);
43
+ const startLottery = useCallback(() => {
44
+ setLotteryList(lotteryListDefault);
45
+ setBtnActived(true);
46
+ if (lotteryAction.isStart)
47
+ return;
48
+ events === null || events === void 0 ? void 0 : events.clickLotteryButton();
49
+ setIsStartLottery(true);
50
+ }, [lotteryListDefault, events]);
51
+ useImperativeHandle(ref, () => {
52
+ return {
53
+ methods: {
54
+ start: startLottery,
55
+ },
56
+ };
57
+ }, [startLottery]);
58
+ useEffect(() => {
59
+ setLotteryList(lotteryListDefault);
60
+ }, [lotteryListDefault]);
61
+ useEffect(() => {
62
+ lotteryAction.animationCallback = ({ idx, isEnd }) => {
63
+ setActivedId(idx == -1 ? 0 : idx);
64
+ if (isEnd) {
65
+ setBtnActived(false);
66
+ const list = lotteryList.map((item, index) => {
67
+ if (index === idx - 1) {
68
+ item.selected = true;
69
+ }
70
+ else {
71
+ item.selected = false;
72
+ }
73
+ return item;
74
+ });
75
+ setLotteryList(list);
76
+ setActivedId(-1);
77
+ // eslint-disable-next-line rulesdir/no-timer
78
+ setTimeout(() => {
79
+ events.finishLottery({
80
+ prize: idx,
81
+ result: list[idx - 1],
82
+ });
83
+ // 延迟700毫秒显示的视觉效果更好,否则看不清结果就弹出dialog盖住了
84
+ }, 700);
85
+ }
86
+ };
87
+ }, [events, lotteryList]);
88
+ useEffect(() => {
89
+ // 当满足开启抽奖条件并且点击了开奖开关时,启用抽奖
90
+ if (enablePrize && isStartLottery) {
91
+ lotteryAction.start(prizeResult, () => {
92
+ window.app.showToast({
93
+ title: '网络异常',
94
+ icon: 'none',
95
+ });
96
+ });
97
+ // 当不选取变量作为结果的时候,按照设置给定结果
98
+ lotteryAction.end(prizeResult);
99
+ setIsStartLottery(false);
100
+ }
101
+ else if (!enablePrize) {
102
+ //立马停止抽奖
103
+ lotteryAction.stop();
104
+ }
105
+ }, [isStartLottery, enablePrize, prizeResult]);
106
+ useEffect(() => {
107
+ // 设置抽奖结果
108
+ lotteryAction.end(prizeResult);
109
+ }, [prizeResult]);
110
+ const [widthRatio, setWidthRatio] = useState(1);
111
+ const [heightRatio, setHeightRatio] = useState(1);
112
+ // 上下5个球的宽度
113
+ const [dotWidth, setDotWidth] = useState(217 / 14);
114
+ // 左右5个球的高度
115
+ const [dotHeight, setDotHeight] = useState(217 / 14);
116
+ const standardWidth = 326;
117
+ const standardHeight = 326;
118
+ const cls = classNames({
119
+ [CLASS_PREFIX]: true,
120
+ [className]: className,
121
+ [`${CLASS_PREFIX}-mobile`]: platform === 'h5',
122
+ });
123
+ // 将获取的style 转化为 px, 用户输入的单位可能有(纯数字,px, rem, %, rpx)
124
+ // 注: 前端输入宽高,不带单位和带rem单位,code 中获取的都是rem 单位,也就是输入1304,输出‘46.5714rem’; 输入‘1304rem’, 输出‘1304rem’, 所以rem目前不支持正常的比列
125
+ // 带上px单位和不带单位,输出的都是rem,且转化的值一样的,所以不需要特殊处理,也就是 输入 1304 和 1304px ,前端拿到的都是‘46.5714rem’
126
+ // rpx 是小程序的单位,并且在pc 上加病没作用,所以rpx 不处理
127
+ // % 暂时也不处理,因为不确定用户的百分比是以什么为标准的
128
+ const getStyleUnit = (targetValue) => {
129
+ if (!targetValue)
130
+ return -1;
131
+ const value = targetValue.toString();
132
+ // 获取单位
133
+ const fotData = value.match(/^\d+(?:\.\d+)?([a-zA-Z%]+)?$/);
134
+ let unit = 'rem';
135
+ if (fotData && fotData[1]) {
136
+ unit = fotData[1];
137
+ }
138
+ return unit;
139
+ };
140
+ const getRatio = (value, unit) => {
141
+ let actualValue;
142
+ if (unit.toString() === 'rem') {
143
+ actualValue = value * 14 * 2;
144
+ }
145
+ return actualValue;
146
+ };
147
+ // 通过页面配置拿到用户设置的宽,高,直接获取的宽和高,会被转化为rem, 需要将rem 转为 px. 规则: e/2/14
148
+ // css 输出的px到页面rem, 转化规则为: e/14
149
+ useEffect(() => {
150
+ if (!style || style == undefined || platform === 'h5') {
151
+ setWidthRatio(1);
152
+ setDotWidth(217 / 14);
153
+ setHeightRatio(1);
154
+ setDotHeight(217 / 14);
155
+ return;
156
+ }
157
+ if (style && style !== undefined) {
158
+ // 如果宽和高不存在,则还远吗比例为默认值-1,也就是保持视觉稿默认的宽和高
159
+ if (!style.width) {
160
+ setWidthRatio(1);
161
+ setDotWidth(217 / 14);
162
+ }
163
+ if (!style.height) {
164
+ setHeightRatio(1);
165
+ setDotHeight(217 / 14);
166
+ }
167
+ if (style.width) {
168
+ // 现将获取的rem 转化为px
169
+ const actualValue = getRatio(parseFloat(style.width.toString()), getStyleUnit(style.width));
170
+ // setWidthRatio();
171
+ const setValue = Math.floor((actualValue / (standardWidth * 2)) * 1000) / 1000;
172
+ setWidthRatio(setValue);
173
+ const dotWidth = (setValue * 43 * 4 + setValue * 9 * 5) / 14;
174
+ setDotWidth(dotWidth);
175
+ }
176
+ if (style.height) {
177
+ // 现将获取的rem 转化为px
178
+ const actualValue = getRatio(parseFloat(style.height.toString()), getStyleUnit(style.height));
179
+ const setValue = Math.floor((actualValue / (standardHeight * 2)) * 1000) / 1000;
180
+ setHeightRatio(setValue);
181
+ const dotHeight = (setValue * 43 * 4 + setValue * 9 * 5) / 14;
182
+ setDotHeight(dotHeight);
183
+ }
184
+ }
185
+ }, [platform, style]);
186
+ const renderDot = (direction, list) => {
187
+ return (React.createElement(React.Fragment, null,
188
+ React.createElement("div", { className: classNames(`${CLASS_PREFIX}__dot`, `${CLASS_PREFIX}__dot-${direction}`) }, list.map((item, index) => {
189
+ return (React.createElement("div", { key: index, className: `${CLASS_PREFIX}__dot-item`, style: {
190
+ width: `${(9 * widthRatio) / 14}rem`,
191
+ height: `${(9 * heightRatio) / 14}rem`,
192
+ marginBottom: `${direction}` === 'vertical'
193
+ ? `${(43 * heightRatio) / 14}rem`
194
+ : '0',
195
+ marginRight: `${direction}` === 'horizontal'
196
+ ? `${(43 * widthRatio) / 14}rem`
197
+ : '0',
198
+ } }));
199
+ }))));
200
+ };
201
+ const dotList = [
202
+ {
203
+ single: true,
204
+ position: 'left-top',
205
+ direction: '',
206
+ list: [],
207
+ },
208
+ {
209
+ single: true,
210
+ position: 'left-bottom',
211
+ direction: '',
212
+ list: [],
213
+ },
214
+ {
215
+ single: true,
216
+ position: 'right-top',
217
+ direction: '',
218
+ list: [],
219
+ },
220
+ {
221
+ single: true,
222
+ position: 'right-bottom',
223
+ direction: '',
224
+ list: [],
225
+ },
226
+ {
227
+ single: false,
228
+ position: 'top',
229
+ direction: 'horizontal',
230
+ list: ['1', '2', '3', '4', '5'],
231
+ },
232
+ {
233
+ single: false,
234
+ position: 'bottom',
235
+ direction: 'horizontal',
236
+ list: ['1', '2', '3', '4', '5'],
237
+ },
238
+ {
239
+ single: false,
240
+ position: 'left',
241
+ direction: 'vertical',
242
+ list: ['1', '2', '3', '4', '5'],
243
+ },
244
+ {
245
+ single: false,
246
+ position: 'right',
247
+ direction: 'vertical',
248
+ list: ['1', '2', '3', '4', '5'],
249
+ },
250
+ ];
251
+ return (React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
252
+ React.createElement("div", { className: "body", key: "lottery", "data-testid": "lottery" },
253
+ React.createElement("div", { className: cls, id: id, style: style },
254
+ React.createElement("div", { className: `${CLASS_PREFIX}__wrap` },
255
+ dotList.map((dot, index) => {
256
+ return (React.createElement("div", { key: index },
257
+ dot.single && (React.createElement("div", { key: `${dot.direction}-${index}`, className: classNames(`${CLASS_PREFIX}__dot-single`, `${CLASS_PREFIX}__dot-${dot.position}`), style: {
258
+ width: `${(9 * widthRatio) / 14}rem`,
259
+ height: `${(9 * heightRatio) / 14}rem`,
260
+ top: `${dot.position}` === 'left-top' ||
261
+ `${dot.position}` === 'right-top'
262
+ ? `${(9 * heightRatio) / 14}rem`
263
+ : '',
264
+ bottom: `${dot.position}` === 'left-bottom' ||
265
+ `${dot.position}` === 'right-bottom'
266
+ ? `${(9 * heightRatio) / 14}rem`
267
+ : '',
268
+ left: `${dot.position}` === 'left-top' ||
269
+ `${dot.position}` === 'left-bottom'
270
+ ? `${(6 * widthRatio) / 14}rem`
271
+ : '',
272
+ right: `${dot.position}` === 'right-top' ||
273
+ `${dot.position}` === 'right-bottom'
274
+ ? `${(6 * widthRatio) / 14}rem`
275
+ : '',
276
+ } })),
277
+ !dot.single && (React.createElement("div", { key: `${dot.direction}-${index}`, className: `${CLASS_PREFIX}__dot-${dot.position}`, style: {
278
+ left: `${dot.position}` === 'top' ||
279
+ `${dot.position}` === 'bottom'
280
+ ? `calc((${'100%'} - ${dotWidth}rem) / 2)`
281
+ : `${dot.position}` === 'left'
282
+ ? `${(widthRatio * 18 - widthRatio * 9) / 2 / 14}rem`
283
+ : '',
284
+ top: `${dot.position}` === 'left' ||
285
+ `${dot.position}` === 'right'
286
+ ? `calc((100% - ${dotHeight}rem) / 2)`
287
+ : `${dot.position}` === 'top'
288
+ ? `${(heightRatio * 18 - heightRatio * 9) / 2 / 14}rem`
289
+ : '',
290
+ bottom: `${dot.position}` === 'bottom'
291
+ ? `${(heightRatio * 18 - heightRatio * 9) / 2 / 14}rem`
292
+ : '',
293
+ right: `${dot.position}` === 'right'
294
+ ? `${(widthRatio * 18 - widthRatio * 9) / 2 / 14}rem`
295
+ : '',
296
+ } }, true && renderDot(dot.direction, dot.list)))));
297
+ }),
298
+ React.createElement("div", { className: `${CLASS_PREFIX}__inner`, style: {
299
+ paddingTop: `${(18 * heightRatio) / 14}rem`,
300
+ paddingBottom: `${(18 * heightRatio) / 14}rem`,
301
+ paddingLeft: `${(18 * widthRatio) / 14}rem`,
302
+ paddingRight: `${(18 * widthRatio) / 14}rem`,
303
+ } },
304
+ React.createElement("div", { className: `${CLASS_PREFIX}__inner-wrap` },
305
+ React.createElement("ul", { className: `${CLASS_PREFIX}__list` }, lotteryList.map((item, index) => {
306
+ return (React.createElement("li", { "data-testid": "lottery-item", key: index, className: classNames(`${CLASS_PREFIX}__turntable-item`, item.idx === activedId ? 'is-actived' : '', item.selected ? 'is-selected' : ''), style: {
307
+ width: `calc((${'100%'} - ${(widthRatio * 8 * 4) / 14}rem) / 3)`,
308
+ height: `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3)`,
309
+ top: `${index}` == '0' ||
310
+ `${index}` == '1' ||
311
+ `${index}` == '2'
312
+ ? `${(heightRatio * 8) / 14}rem`
313
+ : `${index}` == '3'
314
+ ? `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3 + ${(heightRatio * 8 * 2) / 14}rem)`
315
+ : '',
316
+ bottom: `${index}` == '4' ||
317
+ `${index}` == '5' ||
318
+ `${index}` == '6'
319
+ ? `${(heightRatio * 8) / 14}rem`
320
+ : `${index}` == '7'
321
+ ? `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3 + ${(heightRatio * 8 * 2) / 14}rem)`
322
+ : '',
323
+ right: `${index}` == '2' ||
324
+ `${index}` == '3' ||
325
+ `${index}` == '4'
326
+ ? `${(widthRatio * 8) / 14}rem`
327
+ : '',
328
+ left: `${index}` == '0' ||
329
+ `${index}` == '6' ||
330
+ `${index}` == '7'
331
+ ? `${(widthRatio * 8) / 14}rem`
332
+ : `${index}` == '1' || `${index}` == '5'
333
+ ? `calc((${'100%'} - ${(widthRatio * 8 * 4) / 14}rem) / 3 + ${(widthRatio * 8 * 2) / 14}rem)`
334
+ : '',
335
+ } },
336
+ React.createElement("div", { className: `${CLASS_PREFIX}__turntable-cell`, style: {
337
+ borderLeftWidth: `${(4 * widthRatio) / 14}rem`,
338
+ borderRightWidth: `${(4 * widthRatio) / 14}rem`,
339
+ borderTopWidth: `${(4 * heightRatio) / 14}rem`,
340
+ borderBottomWidth: `${(4 * heightRatio) / 14}rem`,
341
+ paddingTop: `${(8 * heightRatio) / 14}rem`,
342
+ paddingBottom: `${(8 * heightRatio) / 14}rem`,
343
+ paddingLeft: `${(2 * widthRatio) / 14}rem`,
344
+ paddingRight: `${(2 * widthRatio) / 14}rem`,
345
+ } },
346
+ item.src && (React.createElement("div", { className: `${CLASS_PREFIX}__turntable-cell-image`, style: {
347
+ height: `${(heightRatio * 40) / 14}rem`,
348
+ } },
349
+ React.createElement("img", { src: item.src, alt: item.desc, className: `${CLASS_PREFIX}__turntable-cell-icon`, style: {
350
+ width: `${(widthRatio * 40) / 14}rem`,
351
+ height: `${(heightRatio * 40) / 14}rem`,
352
+ } }))),
353
+ item.desc && (React.createElement("div", { className: `${CLASS_PREFIX}__turntable-cell-desc`, style: {
354
+ marginTop: `${(heightRatio * 6) / 14}rem`,
355
+ fontSize: `${(widthRatio * 12) / 14}rem`,
356
+ lineHeight: `${(heightRatio * 17) / 14}rem`,
357
+ } }, item.desc)))));
358
+ })),
359
+ React.createElement("div", { className: classNames(`${CLASS_PREFIX}__turntable-btn`, btnActived ? 'is-actived' : ''), style: {
360
+ width: `calc((${'100%'} - ${(widthRatio * 8 * 4) / 14}rem) / 3)`,
361
+ height: `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3)`,
362
+ top: `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3 + ${(heightRatio * 8 * 2) / 14}rem)`,
363
+ left: `calc((${'100%'} - ${(heightRatio * 8 * 4) / 14}rem) / 3 + ${(heightRatio * 8 * 2) / 14}rem)`,
364
+ } },
365
+ React.createElement("div", { className: `${CLASS_PREFIX}__btn-inner`, style: {
366
+ paddingTop: `${(9 * heightRatio) / 14}rem`,
367
+ paddingBottom: `${(9 * heightRatio) / 14}rem`,
368
+ paddingLeft: `${(9 * widthRatio) / 14}rem`,
369
+ paddingRight: `${(9 * widthRatio) / 14}rem`,
370
+ } },
371
+ React.createElement("div", { className: `${CLASS_PREFIX}__btn` },
372
+ React.createElement("a", { "data-testid": "start-lottery", className: `${CLASS_PREFIX}__btn-image`, style: {
373
+ paddingTop: `${(11 * heightRatio) / 14}rem`,
374
+ paddingBottom: `${(11 * heightRatio) / 14}rem`,
375
+ paddingLeft: `${(15 * widthRatio) / 14}rem`,
376
+ paddingRight: `${(15 * widthRatio) / 14}rem`,
377
+ }, onClick: startLottery },
378
+ React.createElement("p", { className: `${CLASS_PREFIX}__btn-text`, style: {
379
+ fontSize: `${(widthRatio * 18) / 14}rem`,
380
+ lineHeight: `${(widthRatio * 22) / 14}rem`,
381
+ } },
382
+ "\u5F00\u59CB",
383
+ React.createElement("br", null),
384
+ "\u62BD\u5956"))))))))))));
385
+ });
@@ -0,0 +1,23 @@
1
+ export default class LotteryAction {
2
+ idx: number;
3
+ isStart: boolean;
4
+ endId: any;
5
+ speed: number;
6
+ duration: number;
7
+ maxIdx: number;
8
+ animationCallback: ({ idx, isEnd }: {
9
+ idx: any;
10
+ isEnd: any;
11
+ }) => void;
12
+ isError: boolean;
13
+ isSpeedUp: boolean;
14
+ timeout: number;
15
+ timer: any;
16
+ constructor();
17
+ start(prizeResult: any, errorCallback: any): void;
18
+ end(prizeResult: any): void;
19
+ error(): void;
20
+ stop(): void;
21
+ pointOnCubicBezier(cp: any, t: any): number;
22
+ loop(): void;
23
+ }