@nutui/nutui-react-taro 3.0.19 → 3.0.20-cpp

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 (452) hide show
  1. package/CHANGELOG.md +28 -59
  2. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  3. package/dist/cjs/hooks/use-ref-state.js +3 -3
  4. package/dist/cjs/hooks/use-touch.js +1 -2
  5. package/dist/cjs/locales/base.d.ts +9 -0
  6. package/dist/cjs/locales/en-US.js +21 -2
  7. package/dist/cjs/locales/id-ID.js +21 -2
  8. package/dist/cjs/locales/ja-JP.js +19 -2
  9. package/dist/cjs/locales/tr-TR.js +21 -2
  10. package/dist/cjs/locales/zh-CN.js +19 -2
  11. package/dist/cjs/locales/zh-TW.js +19 -2
  12. package/dist/cjs/locales/zh-UG.js +21 -2
  13. package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
  14. package/dist/cjs/packages/address/address.d.ts +1 -1
  15. package/dist/cjs/packages/address/style/style.harmony.css +38 -17
  16. package/dist/cjs/packages/address/utils.js +3 -3
  17. package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
  18. package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
  19. package/dist/cjs/packages/avatar/avatar.js +32 -6
  20. package/dist/cjs/packages/avatarcropper/avatarcropper.js +18 -34
  21. package/dist/cjs/packages/badge/badge.js +20 -10
  22. package/dist/cjs/packages/barrage/barrage.js +14 -24
  23. package/dist/cjs/packages/button/button.d.ts +2 -24
  24. package/dist/cjs/packages/button/button.js +9 -12
  25. package/dist/cjs/packages/button/index.d.ts +0 -1
  26. package/dist/cjs/packages/button/style/button.scss +0 -3
  27. package/dist/cjs/packages/button/style/style.css +0 -3
  28. package/dist/cjs/packages/button/style/style.harmony.css +0 -3
  29. package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
  30. package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
  31. package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
  32. package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
  33. package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
  34. package/dist/cjs/packages/calendar/style/style.css +21 -1
  35. package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
  36. package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
  37. package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
  38. package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
  39. package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
  40. package/dist/cjs/packages/calendar/utils.js +8 -8
  41. package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
  42. package/dist/cjs/packages/calendarcard/icon.js +17 -28
  43. package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
  44. package/dist/cjs/packages/calendarcard/style/style.css +13 -0
  45. package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
  46. package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  47. package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
  48. package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  49. package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
  50. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  51. package/dist/cjs/packages/card/style/style.harmony.css +1 -1
  52. package/dist/cjs/packages/cascader/cascader.js +12 -21
  53. package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
  54. package/dist/cjs/packages/cascader/utils.js +3 -3
  55. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  56. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  57. package/dist/cjs/packages/configprovider/index.js +6 -6
  58. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  59. package/dist/cjs/packages/countdown/countdown.js +1 -2
  60. package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
  61. package/dist/cjs/packages/datepicker/utils.js +9 -9
  62. package/dist/cjs/packages/dialog/content.js +3 -3
  63. package/dist/cjs/packages/dialog/dialog.js +26 -23
  64. package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
  65. package/dist/cjs/packages/dialog/style/style.css +1 -1
  66. package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
  67. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
  68. package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
  69. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
  70. package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
  71. package/dist/cjs/packages/divider/divider.js +2 -2
  72. package/dist/cjs/packages/drag/drag.js +4 -7
  73. package/dist/cjs/packages/elevator/elevator.js +7 -10
  74. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  75. package/dist/cjs/packages/empty/empty.d.ts +4 -4
  76. package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
  77. package/dist/cjs/packages/form/index.js +0 -2
  78. package/dist/cjs/packages/form/style/style.harmony.css +0 -5
  79. package/dist/cjs/packages/form/useform.js +50 -57
  80. package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
  81. package/dist/cjs/packages/formitem/style/style.css +0 -5
  82. package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
  83. package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
  84. package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
  85. package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
  86. package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
  87. package/dist/cjs/packages/image/image.js +11 -3
  88. package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
  89. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  90. package/dist/cjs/packages/input/input.js +10 -3
  91. package/dist/cjs/packages/inputnumber/inputnumber.js +17 -29
  92. package/dist/cjs/packages/lottie/lottiemp.js +10 -18
  93. package/dist/cjs/packages/lottie/types.js +0 -2
  94. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  95. package/dist/cjs/packages/noticebar/noticebar.js +74 -70
  96. package/dist/cjs/packages/notify/notify.js +4 -4
  97. package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
  98. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
  99. package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
  100. package/dist/cjs/packages/nutui.react.build.js +123 -119
  101. package/dist/cjs/packages/nutui.react.d.ts +4 -1
  102. package/dist/cjs/packages/nutui.react.js +124 -119
  103. package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
  104. package/dist/cjs/packages/nutui.react.scss.js +1 -0
  105. package/dist/cjs/packages/overlay/overlay.js +6 -6
  106. package/dist/cjs/packages/picker/style/style.css +1 -1
  107. package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
  108. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  109. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  110. package/dist/cjs/packages/pickerview/utils.js +3 -3
  111. package/dist/cjs/packages/popover/popover.js +75 -77
  112. package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
  113. package/dist/cjs/packages/popup/popup.js +192 -113
  114. package/dist/cjs/packages/popup/style/popup.scss +22 -1
  115. package/dist/cjs/packages/popup/style/style.css +38 -17
  116. package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
  117. package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
  118. package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
  119. package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
  120. package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
  121. package/dist/cjs/packages/price/price.js +52 -13
  122. package/dist/cjs/packages/progress/progress.js +2 -4
  123. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  124. package/dist/cjs/packages/quickenter/index.d.ts +3 -0
  125. package/dist/cjs/packages/quickenter/index.js +13 -0
  126. package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
  127. package/dist/cjs/packages/quickenter/quickenter.js +153 -0
  128. package/dist/cjs/packages/quickenter/style/css.js +2 -0
  129. package/dist/cjs/packages/quickenter/style/index.js +2 -0
  130. package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
  131. package/dist/cjs/packages/quickenter/style/style.css +106 -0
  132. package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
  133. package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
  134. package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
  135. package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
  136. package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
  137. package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
  138. package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
  139. package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
  140. package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
  141. package/dist/cjs/packages/radio/index.js +0 -2
  142. package/dist/cjs/packages/range/range.js +44 -28
  143. package/dist/cjs/packages/rate/rate.js +5 -8
  144. package/dist/cjs/packages/resultpage/resultpage.js +2 -1
  145. package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
  146. package/dist/cjs/packages/searchbar/searchbar.js +23 -9
  147. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  148. package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
  149. package/dist/cjs/packages/step/step.js +3 -8
  150. package/dist/cjs/packages/step/style/step.scss +0 -2
  151. package/dist/cjs/packages/step/style/style.css +0 -2
  152. package/dist/cjs/packages/step/style/style.harmony.css +0 -2
  153. package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
  154. package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
  155. package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
  156. package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
  157. package/dist/cjs/packages/steps/style/steps.scss +10 -3
  158. package/dist/cjs/packages/steps/style/style.css +13 -7
  159. package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
  160. package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
  161. package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
  162. package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
  163. package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
  164. package/dist/cjs/packages/sticky/sticky.js +4 -7
  165. package/dist/cjs/packages/swipe/swipe.js +84 -122
  166. package/dist/cjs/packages/swiper/index.js +0 -1
  167. package/dist/cjs/packages/switch/switch.js +4 -7
  168. package/dist/cjs/packages/table/style/style.css +1 -1
  169. package/dist/cjs/packages/table/style/style.harmony.css +1 -1
  170. package/dist/cjs/packages/table/style/table.scss +1 -1
  171. package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
  172. package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
  173. package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
  174. package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
  175. package/dist/cjs/packages/tabs/tabs.js +12 -5
  176. package/dist/cjs/packages/tag/style/style.css +1 -1
  177. package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
  178. package/dist/cjs/packages/tag/style/tag.scss +1 -1
  179. package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
  180. package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
  181. package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
  182. package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
  183. package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
  184. package/dist/cjs/packages/toast/style/style.css +2 -4
  185. package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
  186. package/dist/cjs/packages/toast/style/toast.scss +2 -4
  187. package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
  188. package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
  189. package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
  190. package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
  191. package/dist/cjs/packages/toast/toast.js +5 -5
  192. package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
  193. package/dist/cjs/packages/uploader/uploader.js +38 -51
  194. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  195. package/dist/cjs/packages/watermark/watermark.js +4 -8
  196. package/dist/cjs/types/index.d.ts +3 -0
  197. package/dist/cjs/types/index.js +3 -0
  198. package/dist/cjs/types/spec/address/base.js +0 -2
  199. package/dist/cjs/types/spec/button/base.d.ts +2 -1
  200. package/dist/cjs/types/spec/button/taro.d.ts +5 -1
  201. package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
  202. package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
  203. package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
  204. package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
  205. package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
  206. package/dist/cjs/types/spec/popup/base.d.ts +2 -0
  207. package/dist/cjs/types/spec/price/base.d.ts +1 -0
  208. package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
  209. package/dist/cjs/types/spec/quickenter/base.js +4 -0
  210. package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
  211. package/dist/cjs/types/spec/quickenter/h5.js +4 -0
  212. package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
  213. package/dist/cjs/types/spec/quickenter/taro.js +4 -0
  214. package/dist/cjs/utils/date.js +5 -5
  215. package/dist/cjs/utils/event-mocker.js +10 -18
  216. package/dist/cjs/utils/get-rect.js +4 -4
  217. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  218. package/dist/cjs/utils/merge-props.js +3 -3
  219. package/dist/cjs/utils/merge.js +6 -6
  220. package/dist/cjs/utils/raf.js +3 -3
  221. package/dist/cjs/utils/render.js +5 -9
  222. package/dist/cjs/utils/rubberband.js +3 -3
  223. package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
  224. package/dist/cjs/utils/should-render-price-raw.js +46 -0
  225. package/dist/cjs/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
  226. package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
  227. package/dist/cjs/utils/taro/get-rect.js +18 -26
  228. package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
  229. package/dist/cjs/utils/taro/get-system-info.js +5 -10
  230. package/dist/cjs/utils/taro/platform.js +5 -5
  231. package/dist/es/hooks/taro/use-custom-event.js +1 -0
  232. package/dist/es/hooks/use-touch.js +1 -1
  233. package/dist/es/locales/base.d.ts +9 -0
  234. package/dist/es/locales/en-US.js +21 -2
  235. package/dist/es/locales/id-ID.js +21 -2
  236. package/dist/es/locales/ja-JP.js +19 -2
  237. package/dist/es/locales/tr-TR.js +21 -2
  238. package/dist/es/locales/zh-CN.js +19 -2
  239. package/dist/es/locales/zh-TW.js +19 -2
  240. package/dist/es/locales/zh-UG.js +21 -2
  241. package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
  242. package/dist/es/packages/address/address.d.ts +1 -1
  243. package/dist/es/packages/address/style/style.harmony.css +38 -17
  244. package/dist/es/packages/animatingnumbers/countup.js +3 -1
  245. package/dist/es/packages/audio/style/style.harmony.css +0 -3
  246. package/dist/es/packages/avatar/avatar.js +32 -6
  247. package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
  248. package/dist/es/packages/badge/badge.js +20 -10
  249. package/dist/es/packages/barrage/barrage.js +14 -24
  250. package/dist/es/packages/button/button.d.ts +2 -24
  251. package/dist/es/packages/button/button.js +10 -12
  252. package/dist/es/packages/button/index.d.ts +0 -1
  253. package/dist/es/packages/button/style/button.scss +0 -3
  254. package/dist/es/packages/button/style/style.css +0 -3
  255. package/dist/es/packages/button/style/style.harmony.css +0 -3
  256. package/dist/es/packages/button/style-jmapp/button.scss +0 -3
  257. package/dist/es/packages/button/style-jmapp/style.css +0 -3
  258. package/dist/es/packages/button/style-jrkf/button.scss +0 -3
  259. package/dist/es/packages/button/style-jrkf/style.css +0 -3
  260. package/dist/es/packages/calendar/style/calendar.scss +32 -1
  261. package/dist/es/packages/calendar/style/style.css +21 -1
  262. package/dist/es/packages/calendar/style/style.harmony.css +59 -18
  263. package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
  264. package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
  265. package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
  266. package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
  267. package/dist/es/packages/calendarcard/calendarcard.js +31 -9
  268. package/dist/es/packages/calendarcard/icon.js +13 -24
  269. package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
  270. package/dist/es/packages/calendarcard/style/style.css +13 -0
  271. package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
  272. package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  273. package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
  274. package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  275. package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
  276. package/dist/es/packages/card/style/style.harmony.css +1 -1
  277. package/dist/es/packages/cascader/cascader.js +12 -21
  278. package/dist/es/packages/cascader/style/style.harmony.css +38 -17
  279. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  280. package/dist/es/packages/configprovider/types.d.ts +1 -1
  281. package/dist/es/packages/countdown/countdown.js +1 -2
  282. package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
  283. package/dist/es/packages/dialog/dialog.js +33 -28
  284. package/dist/es/packages/dialog/style/dialog.scss +1 -1
  285. package/dist/es/packages/dialog/style/style.css +1 -1
  286. package/dist/es/packages/dialog/style/style.harmony.css +1 -4
  287. package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
  288. package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
  289. package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
  290. package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
  291. package/dist/es/packages/divider/divider.js +1 -1
  292. package/dist/es/packages/drag/drag.js +4 -7
  293. package/dist/es/packages/elevator/elevator.js +4 -7
  294. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  295. package/dist/es/packages/empty/empty.d.ts +4 -4
  296. package/dist/es/packages/empty/style/style.harmony.css +0 -3
  297. package/dist/es/packages/form/index.js +0 -1
  298. package/dist/es/packages/form/style/style.harmony.css +0 -5
  299. package/dist/es/packages/form/useform.js +46 -53
  300. package/dist/es/packages/formitem/style/formitem.scss +4 -4
  301. package/dist/es/packages/formitem/style/style.css +0 -5
  302. package/dist/es/packages/formitem/style/style.harmony.css +0 -5
  303. package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
  304. package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
  305. package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
  306. package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
  307. package/dist/es/packages/image/image.js +11 -3
  308. package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
  309. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  310. package/dist/es/packages/input/input.js +10 -3
  311. package/dist/es/packages/inputnumber/inputnumber.js +17 -29
  312. package/dist/es/packages/lottie/lottiemp.js +12 -20
  313. package/dist/es/packages/lottie/types.js +1 -1
  314. package/dist/es/packages/menuitem/menuitem.js +24 -22
  315. package/dist/es/packages/noticebar/noticebar.js +74 -70
  316. package/dist/es/packages/numberkeyboard/style/style.css +1 -1
  317. package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
  318. package/dist/es/packages/nutui.react.build.d.ts +3 -1
  319. package/dist/es/packages/nutui.react.build.js +3 -1
  320. package/dist/es/packages/overlay/overlay.js +3 -3
  321. package/dist/es/packages/picker/style/style.css +1 -1
  322. package/dist/es/packages/picker/style/style.harmony.css +39 -18
  323. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  324. package/dist/es/packages/pickerview/pickerview.js +1 -2
  325. package/dist/es/packages/popover/popover.js +75 -77
  326. package/dist/es/packages/popover/style/style.harmony.css +38 -17
  327. package/dist/es/packages/popup/popup.js +193 -114
  328. package/dist/es/packages/popup/style/popup.scss +22 -1
  329. package/dist/es/packages/popup/style/style.css +38 -17
  330. package/dist/es/packages/popup/style/style.harmony.css +38 -17
  331. package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
  332. package/dist/es/packages/popup/style-jmapp/style.css +22 -1
  333. package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
  334. package/dist/es/packages/popup/style-jrkf/style.css +22 -1
  335. package/dist/es/packages/price/price.js +53 -14
  336. package/dist/es/packages/progress/progress.js +2 -4
  337. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  338. package/dist/es/packages/quickenter/index.d.ts +3 -0
  339. package/dist/es/packages/quickenter/index.js +2 -0
  340. package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
  341. package/dist/es/packages/quickenter/quickenter.js +141 -0
  342. package/dist/es/packages/quickenter/style/css.js +2 -0
  343. package/dist/es/packages/quickenter/style/index.js +2 -0
  344. package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
  345. package/dist/es/packages/quickenter/style/style.css +106 -0
  346. package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
  347. package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
  348. package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
  349. package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
  350. package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
  351. package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
  352. package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
  353. package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
  354. package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
  355. package/dist/es/packages/radio/index.js +0 -1
  356. package/dist/es/packages/range/range.js +45 -29
  357. package/dist/es/packages/rate/rate.js +6 -9
  358. package/dist/es/packages/resultpage/resultpage.js +2 -1
  359. package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
  360. package/dist/es/packages/searchbar/searchbar.js +23 -9
  361. package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
  362. package/dist/es/packages/step/step.js +3 -8
  363. package/dist/es/packages/step/style/step.scss +0 -2
  364. package/dist/es/packages/step/style/style.css +0 -2
  365. package/dist/es/packages/step/style/style.harmony.css +0 -2
  366. package/dist/es/packages/step/style-jmapp/step.scss +0 -2
  367. package/dist/es/packages/step/style-jmapp/style.css +0 -2
  368. package/dist/es/packages/step/style-jrkf/step.scss +0 -2
  369. package/dist/es/packages/step/style-jrkf/style.css +0 -2
  370. package/dist/es/packages/steps/style/steps.scss +10 -3
  371. package/dist/es/packages/steps/style/style.css +13 -7
  372. package/dist/es/packages/steps/style/style.harmony.css +13 -9
  373. package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
  374. package/dist/es/packages/steps/style-jmapp/style.css +9 -3
  375. package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
  376. package/dist/es/packages/steps/style-jrkf/style.css +9 -3
  377. package/dist/es/packages/sticky/sticky.js +4 -7
  378. package/dist/es/packages/swipe/swipe.js +85 -123
  379. package/dist/es/packages/swiper/index.js +0 -1
  380. package/dist/es/packages/switch/switch.js +4 -7
  381. package/dist/es/packages/table/style/style.css +1 -1
  382. package/dist/es/packages/table/style/style.harmony.css +1 -1
  383. package/dist/es/packages/table/style/table.scss +1 -1
  384. package/dist/es/packages/table/style-jmapp/style.css +1 -1
  385. package/dist/es/packages/table/style-jmapp/table.scss +1 -1
  386. package/dist/es/packages/table/style-jrkf/style.css +1 -1
  387. package/dist/es/packages/table/style-jrkf/table.scss +1 -1
  388. package/dist/es/packages/tabs/tabs.js +12 -5
  389. package/dist/es/packages/tag/style/style.css +1 -1
  390. package/dist/es/packages/tag/style/style.harmony.css +1 -1
  391. package/dist/es/packages/tag/style/tag.scss +1 -1
  392. package/dist/es/packages/tag/style-jmapp/style.css +1 -1
  393. package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
  394. package/dist/es/packages/tag/style-jrkf/style.css +1 -1
  395. package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
  396. package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
  397. package/dist/es/packages/toast/style/style.css +2 -4
  398. package/dist/es/packages/toast/style/style.harmony.css +2 -4
  399. package/dist/es/packages/toast/style/toast.scss +2 -4
  400. package/dist/es/packages/toast/style-jmapp/style.css +2 -4
  401. package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
  402. package/dist/es/packages/toast/style-jrkf/style.css +2 -4
  403. package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
  404. package/dist/es/packages/toast/toast.js +1 -1
  405. package/dist/es/packages/tour/style/style.harmony.css +38 -17
  406. package/dist/es/packages/uploader/uploader.js +38 -51
  407. package/dist/es/packages/watermark/watermark.js +4 -8
  408. package/dist/es/types/index.d.ts +3 -0
  409. package/dist/es/types/index.js +3 -0
  410. package/dist/es/types/spec/address/base.js +1 -1
  411. package/dist/es/types/spec/button/base.d.ts +2 -1
  412. package/dist/es/types/spec/button/taro.d.ts +5 -1
  413. package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
  414. package/dist/es/types/spec/dialog/base.d.ts +3 -8
  415. package/dist/es/types/spec/dialog/h5.d.ts +2 -0
  416. package/dist/es/types/spec/dialog/taro.d.ts +2 -0
  417. package/dist/es/types/spec/overlay/base.d.ts +1 -0
  418. package/dist/es/types/spec/popup/base.d.ts +4 -5
  419. package/dist/es/types/spec/price/base.d.ts +4 -0
  420. package/dist/es/types/spec/quickenter/base.d.ts +45 -0
  421. package/dist/es/types/spec/quickenter/base.js +1 -0
  422. package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
  423. package/dist/es/types/spec/quickenter/h5.js +1 -0
  424. package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
  425. package/dist/es/types/spec/quickenter/taro.js +1 -0
  426. package/dist/es/utils/event-mocker.js +4 -12
  427. package/dist/es/utils/render.js +2 -6
  428. package/dist/es/utils/should-render-price-raw.d.ts +2 -0
  429. package/dist/es/utils/should-render-price-raw.js +30 -0
  430. package/dist/es/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
  431. package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
  432. package/dist/es/utils/taro/get-rect.js +14 -22
  433. package/dist/es/utils/taro/get-system-info.d.ts +0 -5
  434. package/dist/es/utils/taro/get-system-info.js +8 -7
  435. package/dist/nutui.react.umd.js +8698 -7523
  436. package/dist/style-jmapp.css +1 -1
  437. package/dist/style-jmapp.scss +47 -46
  438. package/dist/style-jrkf.css +1 -1
  439. package/dist/style-jrkf.scss +32 -31
  440. package/dist/style.css +1 -1
  441. package/dist/style.scss +32 -31
  442. package/dist/styles/jd-font.scss +2 -2
  443. package/dist/styles/theme-dark.scss +1 -2
  444. package/dist/styles/themes/daojia.css +1 -1
  445. package/dist/styles/themes/dark-daojia.css +1 -1
  446. package/dist/styles/themes/dark.css +1 -1
  447. package/dist/styles/themes/default.css +1 -1
  448. package/dist/styles/variables-daojia.scss +41 -0
  449. package/dist/styles/variables-jmapp.scss +41 -0
  450. package/dist/styles/variables-jrkf.scss +41 -0
  451. package/dist/styles/variables.scss +49 -4
  452. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get hasNonPriceChars () {
13
+ return hasNonPriceChars;
14
+ },
15
+ get shouldRenderPriceAsRaw () {
16
+ return shouldRenderPriceAsRaw;
17
+ }
18
+ });
19
+ var RE_NUM = /\d+(?:\.\d+)?/g;
20
+ // 价格合法字符:数字、小数点、负号、大写货币代码(HK USD EUR 等)、常见货币符号 Unicode 区块(含全角 ¥)
21
+ var PRICE_CHARS = /^[\d.\-A-Z¥¥$€£₩₹₽₺₴₪฿\u20A0-\u20CF\uFE69\uFF04\uFFE5]*$/;
22
+ // 无法提取出有效价格时直接按原文展示,避免把纯文案误格式化成 0 或空串
23
+ function hasNoExtractablePrice(s) {
24
+ var t = s.trim();
25
+ if (!t) return true;
26
+ if (!/\d/.test(t)) return true;
27
+ if (t.replace(/[^\d.]/g, '') === '') return true;
28
+ return false;
29
+ }
30
+ function shouldRenderPriceAsRaw(s) {
31
+ if (hasNoExtractablePrice(s)) {
32
+ return true;
33
+ }
34
+ var t = s.trim();
35
+ var matches = Array.from(t.matchAll(RE_NUM));
36
+ if (matches.length < 2) return false;
37
+ var a = matches[0];
38
+ var b = matches[1];
39
+ var i0 = a.index;
40
+ var i1 = b.index;
41
+ var between = t.slice(i0 + a[0].length, i1);
42
+ return !PRICE_CHARS.test(between);
43
+ }
44
+ function hasNonPriceChars(s) {
45
+ return !PRICE_CHARS.test(s);
46
+ }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export type TransitionStatus = 'entering' | 'entered' | 'exiting' | 'exited' | 'unmounted';
3
+ interface CSSTransitionProps {
4
+ in?: boolean;
5
+ timeout?: number;
6
+ classNames?: string;
7
+ nodeRef?: React.RefObject<any>;
8
+ mountOnEnter?: boolean;
9
+ unmountOnExit?: boolean;
10
+ onEntered?: () => void;
11
+ onExited?: () => void;
12
+ children: React.ReactElement;
13
+ }
14
+ declare const ConfigurableCSSTransition: React.FC<CSSTransitionProps>;
15
+ export default ConfigurableCSSTransition;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _default;
9
+ }
10
+ });
11
+ var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
13
+ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
+ var ConfigurableCSSTransition = function ConfigurableCSSTransition(props) {
15
+ var inPhase = props.in, _props_timeout = props.timeout, timeout = _props_timeout === void 0 ? 300 : _props_timeout, tmp = props.classNames, baseClassName = tmp === void 0 ? '' : tmp, nodeRef = props.nodeRef, mountOnEnter = props.mountOnEnter, unmountOnExit = props.unmountOnExit, onEntered = props.onEntered, onExited = props.onExited, children = props.children;
16
+ var _useState = (0, _sliced_to_array._)((0, _react.useState)(function() {
17
+ if (inPhase) return 'entered';
18
+ return unmountOnExit || mountOnEnter ? 'unmounted' : 'exited';
19
+ }), 2), status = _useState[0], setStatus = _useState[1];
20
+ var _useState1 = (0, _sliced_to_array._)((0, _react.useState)(function() {
21
+ if (inPhase) return "".concat(baseClassName, "-enter-done");
22
+ return "".concat(baseClassName, "-exit-done");
23
+ }), 2), classes = _useState1[0], setClasses = _useState1[1];
24
+ var timerRef = (0, _react.useRef)(null);
25
+ var statusRef = (0, _react.useRef)(status);
26
+ var prevInPhase = (0, _react.useRef)(inPhase);
27
+ var updateStatus = (0, _react.useCallback)(function(nextStatus) {
28
+ statusRef.current = nextStatus;
29
+ setStatus(nextStatus);
30
+ }, []);
31
+ var enter = (0, _react.useCallback)(function() {
32
+ if (timerRef.current) clearTimeout(timerRef.current);
33
+ if (statusRef.current === 'unmounted') {
34
+ updateStatus('exited');
35
+ }
36
+ updateStatus('entering');
37
+ setClasses("".concat(baseClassName, "-enter ").concat(baseClassName, "-enter-active"));
38
+ timerRef.current = setTimeout(function() {
39
+ updateStatus('entered');
40
+ setClasses("".concat(baseClassName, "-enter-done"));
41
+ onEntered === null || onEntered === void 0 ? void 0 : onEntered();
42
+ }, timeout);
43
+ }, [
44
+ baseClassName,
45
+ onEntered,
46
+ timeout,
47
+ updateStatus
48
+ ]);
49
+ var exit = (0, _react.useCallback)(function() {
50
+ if (timerRef.current) clearTimeout(timerRef.current);
51
+ updateStatus('exiting');
52
+ setClasses("".concat(baseClassName, "-exit ").concat(baseClassName, "-exit-active"));
53
+ timerRef.current = setTimeout(function() {
54
+ updateStatus('exited');
55
+ setClasses("".concat(baseClassName, "-exit-done"));
56
+ if (unmountOnExit) {
57
+ updateStatus('unmounted');
58
+ }
59
+ onExited === null || onExited === void 0 ? void 0 : onExited();
60
+ }, timeout);
61
+ }, [
62
+ baseClassName,
63
+ onExited,
64
+ timeout,
65
+ unmountOnExit,
66
+ updateStatus
67
+ ]);
68
+ (0, _react.useEffect)(function() {
69
+ if (prevInPhase.current !== inPhase) {
70
+ if (inPhase) {
71
+ enter();
72
+ } else {
73
+ exit();
74
+ }
75
+ prevInPhase.current = inPhase;
76
+ }
77
+ return function() {
78
+ if (timerRef.current) clearTimeout(timerRef.current);
79
+ };
80
+ }, [
81
+ inPhase,
82
+ enter,
83
+ exit
84
+ ]);
85
+ if (status === 'unmounted') return null;
86
+ return /*#__PURE__*/ (0, _react.cloneElement)(children, {
87
+ className: "".concat(children.props.className || '', " ").concat(classes)
88
+ });
89
+ };
90
+ var _default = ConfigurableCSSTransition;
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getRectInMultiPlatform: function() {
12
+ get getRectInMultiPlatform () {
13
13
  return getRectInMultiPlatform;
14
14
  },
15
- getRectInMultiPlatformWithoutCache: function() {
15
+ get getRectInMultiPlatformWithoutCache () {
16
16
  return getRectInMultiPlatformWithoutCache;
17
17
  },
18
- makeRect: function() {
18
+ get makeRect () {
19
19
  return makeRect;
20
20
  }
21
21
  });
@@ -36,12 +36,10 @@ function makeRect(width, height) {
36
36
  height: height
37
37
  };
38
38
  }
39
- var getRectInMultiPlatform = /*#__PURE__*/ function() {
40
- var _ref = (0, _async_to_generator._)(function(element) {
41
- var harmonyId;
42
- var _arguments = arguments;
39
+ var getRectInMultiPlatform = function getRectInMultiPlatform(element) {
40
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
41
+ return (0, _async_to_generator._)(function() {
43
42
  return (0, _ts_generator._)(this, function(_state) {
44
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
45
43
  if (element) {
46
44
  if (_getrect.inBrowser) {
47
45
  return [
@@ -57,7 +55,8 @@ var getRectInMultiPlatform = /*#__PURE__*/ function() {
57
55
  resolve(lru.get(element));
58
56
  return;
59
57
  }
60
- (0, _taro.createSelectorQuery)().select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
58
+ (0, _taro.createSelectorQuery)() // https://taro.jd.com/docs/reference/config/page/
59
+ .in((element === null || element === void 0 ? void 0 : element._scope) || element).select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
61
60
  var _param = (0, _sliced_to_array._)(param, 1), rects = _param[0];
62
61
  if (rects) {
63
62
  lru.set(element, rects);
@@ -72,17 +71,12 @@ var getRectInMultiPlatform = /*#__PURE__*/ function() {
72
71
  Promise.resolve(makeRect(0, 0))
73
72
  ];
74
73
  });
75
- });
76
- return function getRectInMultiPlatform(element) {
77
- return _ref.apply(this, arguments);
78
- };
79
- }();
80
- var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
81
- var _ref = (0, _async_to_generator._)(function(element) {
82
- var harmonyId;
83
- var _arguments = arguments;
74
+ })();
75
+ };
76
+ var getRectInMultiPlatformWithoutCache = function getRectInMultiPlatformWithoutCache(element) {
77
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
78
+ return (0, _async_to_generator._)(function() {
84
79
  return (0, _ts_generator._)(this, function(_state) {
85
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
86
80
  if (element) {
87
81
  if (_getrect.inBrowser) {
88
82
  return [
@@ -93,7 +87,8 @@ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
93
87
  return [
94
88
  2,
95
89
  new Promise(function(resolve, reject) {
96
- (0, _taro.createSelectorQuery)().select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
90
+ (0, _taro.createSelectorQuery)() // https://taro.jd.com/docs/reference/config/page/
91
+ .in((element === null || element === void 0 ? void 0 : element._scope) || element).select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
97
92
  var _param = (0, _sliced_to_array._)(param, 1), rects = _param[0];
98
93
  resolve(rects);
99
94
  });
@@ -105,8 +100,5 @@ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
105
100
  Promise.resolve(makeRect(0, 0))
106
101
  ];
107
102
  });
108
- });
109
- return function getRectInMultiPlatformWithoutCache(element) {
110
- return _ref.apply(this, arguments);
111
- };
112
- }();
103
+ })();
104
+ };
@@ -14,9 +14,4 @@ export declare const getDeviceInfo: () => IDeviceInfo;
14
14
  * @returns {Taro.getWindowInfo.Result} 窗口信息
15
15
  */
16
16
  export declare const getWindowInfo: () => Taro.getWindowInfo.Result;
17
- /**
18
- * 获取应用基础信息,兼容新旧 API
19
- * @returns {Taro.getAppBaseInfo.Result} 应用基础信息
20
- */
21
- export declare const getAppBaseInfo: () => Taro.getAppBaseInfo.Result;
22
17
  export {};
@@ -5,17 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getAppBaseInfo: function() {
13
- return getAppBaseInfo;
14
- },
15
- getDeviceInfo: function() {
12
+ get getDeviceInfo () {
16
13
  return getDeviceInfo;
17
14
  },
18
- getWindowInfo: function() {
15
+ get getWindowInfo () {
19
16
  return getWindowInfo;
20
17
  }
21
18
  });
@@ -26,7 +23,5 @@ var getDeviceInfo = function getDeviceInfo() {
26
23
  };
27
24
  var getWindowInfo = function getWindowInfo() {
28
25
  return typeof _taro.default.getWindowInfo === 'function' ? _taro.default.getWindowInfo() : _taro.default.getSystemInfoSync();
29
- };
30
- var getAppBaseInfo = function getAppBaseInfo() {
31
- return typeof _taro.default.getAppBaseInfo === 'function' ? _taro.default.getAppBaseInfo() : _taro.default.getSystemInfoSync();
32
- };
26
+ } // /**
27
+ ;
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- harmony: function() {
12
+ get harmony () {
13
13
  return harmony;
14
14
  },
15
- miniprogram: function() {
15
+ get miniprogram () {
16
16
  return miniprogram;
17
17
  },
18
- td: function() {
18
+ get td () {
19
19
  return td;
20
20
  },
21
- web: function() {
21
+ get web () {
22
22
  return web;
23
23
  }
24
24
  });
@@ -3,6 +3,7 @@ import { useEffect, useRef } from "react";
3
3
  import isEqual from "react-fast-compare";
4
4
  import { eventCenter, getCurrentInstance } from "@tarojs/taro";
5
5
  import { useForceUpdate } from "../use-force-update";
6
+ // export const customEvents = new Events()
6
7
  export var customEvents = eventCenter;
7
8
  export function useCustomEventsPath(selector) {
8
9
  var _getCurrentInstance_router;
@@ -1,4 +1,4 @@
1
- import React, { useRef } from "react";
1
+ import { useRef } from "react";
2
2
  var MIN_DISTANCE = 10;
3
3
  function getDirection(x, y) {
4
4
  if (x > y && x > MIN_DISTANCE) {
@@ -9,6 +9,11 @@ export interface BaseLang {
9
9
  edit: string;
10
10
  reset: string;
11
11
  close: string;
12
+ back: string;
13
+ clear: string;
14
+ image: {
15
+ errorTip: string;
16
+ };
12
17
  video: {
13
18
  errorTip: string;
14
19
  clickRetry: string;
@@ -39,6 +44,7 @@ export interface BaseLang {
39
44
  today: string;
40
45
  loadPreviousMonth: string;
41
46
  noEarlierMonth: string;
47
+ dayAriaLabel?: Function;
42
48
  };
43
49
  shortpassword: {
44
50
  title: string;
@@ -142,4 +148,7 @@ export interface BaseLang {
142
148
  errorCanvasTips: string;
143
149
  };
144
150
  mask: string;
151
+ quickenter: {
152
+ title: string;
153
+ };
145
154
  }
@@ -9,6 +9,11 @@ var enUS = {
9
9
  edit: 'Edit',
10
10
  reset: 'Reset',
11
11
  close: 'Close',
12
+ back: 'Back',
13
+ clear: 'Clear',
14
+ image: {
15
+ errorTip: 'Image failed to load'
16
+ },
12
17
  video: {
13
18
  errorTip: 'Error Tip',
14
19
  clickRetry: 'Click Retry'
@@ -48,7 +53,18 @@ var enUS = {
48
53
  },
49
54
  today: 'Today',
50
55
  loadPreviousMonth: 'Load Previous Month',
51
- noEarlierMonth: 'No Earlier Month'
56
+ noEarlierMonth: 'No Earlier Month',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
59
+ var label = today ? "Today, ".concat(dateStr) : dateStr;
60
+ if (isActive) {
61
+ label = "Selected ".concat(label);
62
+ }
63
+ if (isDisable) {
64
+ label = "".concat(label, " disabled");
65
+ }
66
+ return label;
67
+ }
52
68
  },
53
69
  shortpassword: {
54
70
  title: 'Please input a password',
@@ -155,6 +171,9 @@ var enUS = {
155
171
  watermark: {
156
172
  errorCanvasTips: 'Canvas is not supported in the current environment'
157
173
  },
158
- mask: 'Mask'
174
+ mask: 'Mask',
175
+ quickenter: {
176
+ title: 'Quick Enter'
177
+ }
159
178
  };
160
179
  export default enUS;
@@ -9,6 +9,11 @@ var idID = {
9
9
  edit: 'Sunting',
10
10
  reset: 'Mengatur Ulang',
11
11
  close: 'Tutup',
12
+ back: 'Kembali',
13
+ clear: 'Bersihkan',
14
+ image: {
15
+ errorTip: 'Gambar gagal dimuat'
16
+ },
12
17
  video: {
13
18
  errorTip: 'Terjadi Kesalahan',
14
19
  clickRetry: 'Coba Lagi'
@@ -48,7 +53,18 @@ var idID = {
48
53
  },
49
54
  today: 'Hari ini',
50
55
  loadPreviousMonth: 'Muat Bulan Sebelumnya',
51
- noEarlierMonth: 'Tidak Ada Bulan Sebelumnya'
56
+ noEarlierMonth: 'Tidak Ada Bulan Sebelumnya',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
59
+ var label = today ? "Hari ini, ".concat(dateStr) : dateStr;
60
+ if (isActive) {
61
+ label = "Dipilih ".concat(label);
62
+ }
63
+ if (isDisable) {
64
+ label = "".concat(label, " dinonaktifkan");
65
+ }
66
+ return label;
67
+ }
52
68
  },
53
69
  shortpassword: {
54
70
  title: 'SIlakan masukan kata sandi',
@@ -155,6 +171,9 @@ var idID = {
155
171
  watermark: {
156
172
  errorCanvasTips: 'Canvas is not supported in the current environment'
157
173
  },
158
- mask: 'Masker'
174
+ mask: 'Masker',
175
+ quickenter: {
176
+ title: 'Masuk Cepat'
177
+ }
159
178
  };
160
179
  export default idID;
@@ -8,6 +8,12 @@ var jaJP = {
8
8
  select: '選択してください',
9
9
  edit: '編集',
10
10
  reset: 'リセット',
11
+ close: '閉じる',
12
+ back: '戻る',
13
+ clear: 'クリア',
14
+ image: {
15
+ errorTip: '画像の読み込みに失敗しました'
16
+ },
11
17
  video: {
12
18
  errorTip: '動画の読み込みに失敗しました',
13
19
  clickRetry: 'クリックして再試行'
@@ -47,7 +53,16 @@ var jaJP = {
47
53
  },
48
54
  today: '今日',
49
55
  loadPreviousMonth: '前の月を読み込む',
50
- noEarlierMonth: 'これより前の月はありません'
56
+ noEarlierMonth: 'これより前の月はありません',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ if (isActive) {
59
+ return today ? "今日".concat(month, "月").concat(day, "日を選択しました") : "".concat(month, "月").concat(day, "日を選択しました");
60
+ }
61
+ if (isDisable) {
62
+ return today ? "今日".concat(month, "月").concat(day, "日は無効です") : "".concat(month, "月").concat(day, "日は無効です");
63
+ }
64
+ return today ? "今日".concat(month, "月").concat(day, "日") : "".concat(month, "月").concat(day, "日");
65
+ }
51
66
  },
52
67
  shortpassword: {
53
68
  title: 'パスワードを入力してください',
@@ -155,6 +170,8 @@ var jaJP = {
155
170
  errorCanvasTips: '現在の環境はCanvasをサポートしていません'
156
171
  },
157
172
  mask: 'マスク',
158
- close: '閉じる'
173
+ quickenter: {
174
+ title: 'クイックアクセス'
175
+ }
159
176
  };
160
177
  export default jaJP;
@@ -9,6 +9,11 @@ var trTR = {
9
9
  edit: 'düzenlemek',
10
10
  reset: 'sıfırlama',
11
11
  close: 'Kapat',
12
+ back: 'Geri',
13
+ clear: 'Temizle',
14
+ image: {
15
+ errorTip: 'Resim yüklenemedi'
16
+ },
12
17
  video: {
13
18
  errorTip: 'Video yüklenemedi',
14
19
  clickRetry: 'Yeniden Tıklayın'
@@ -48,7 +53,18 @@ var trTR = {
48
53
  },
49
54
  today: 'Bugün',
50
55
  loadPreviousMonth: 'Önceki ayı yükle',
51
- noEarlierMonth: 'Önceki ay yok'
56
+ noEarlierMonth: 'Önceki ay yok',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
59
+ var label = today ? "Bug\xfcn, ".concat(dateStr) : dateStr;
60
+ if (isActive) {
61
+ label = "Se\xe7ili ".concat(label);
62
+ }
63
+ if (isDisable) {
64
+ label = "".concat(label, " devre dışı");
65
+ }
66
+ return label;
67
+ }
52
68
  },
53
69
  shortpassword: {
54
70
  title: 'Lütfen şifrenizi girin',
@@ -155,6 +171,9 @@ var trTR = {
155
171
  watermark: {
156
172
  errorCanvasTips: 'Geçerli ortam Canvası desteklemiyor'
157
173
  },
158
- mask: 'Maske'
174
+ mask: 'Maske',
175
+ quickenter: {
176
+ title: 'Hızlı Giriş'
177
+ }
159
178
  };
160
179
  export default trTR;
@@ -9,6 +9,11 @@ var zhCN = {
9
9
  edit: '编辑',
10
10
  reset: '重置',
11
11
  close: '关闭',
12
+ back: '返回',
13
+ clear: '清除',
14
+ image: {
15
+ errorTip: '图片加载失败'
16
+ },
12
17
  video: {
13
18
  errorTip: '视频加载失败',
14
19
  clickRetry: '点击重试'
@@ -48,7 +53,16 @@ var zhCN = {
48
53
  },
49
54
  today: '今天',
50
55
  loadPreviousMonth: '加载上一个月',
51
- noEarlierMonth: '没有更早月份'
56
+ noEarlierMonth: '没有更早月份',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ if (isActive) {
59
+ return today ? "已选定今日".concat(month, "月").concat(day, "号") : "已选定".concat(month, "月").concat(day, "号");
60
+ }
61
+ if (isDisable) {
62
+ return today ? "".concat(month, "月").concat(day, "号今日按钮变暗") : "".concat(month, "月").concat(day, "号按钮变暗");
63
+ }
64
+ return today ? "".concat(month, "月").concat(day, "号今日") : "".concat(month, "月").concat(day, "号");
65
+ }
52
66
  },
53
67
  shortpassword: {
54
68
  title: '请输入密码',
@@ -155,6 +169,9 @@ var zhCN = {
155
169
  watermark: {
156
170
  errorCanvasTips: '当前环境不支持Canvas'
157
171
  },
158
- mask: '蒙层'
172
+ mask: '蒙层',
173
+ quickenter: {
174
+ title: '快捷入口'
175
+ }
159
176
  };
160
177
  export default zhCN;
@@ -9,6 +9,11 @@ var zhCN = {
9
9
  edit: '編輯',
10
10
  reset: '重置',
11
11
  close: '關閉',
12
+ back: '返回',
13
+ clear: '清除',
14
+ image: {
15
+ errorTip: '圖片加載失敗'
16
+ },
12
17
  video: {
13
18
  errorTip: '視頻加載失敗',
14
19
  clickRetry: '點擊重試'
@@ -48,7 +53,16 @@ var zhCN = {
48
53
  },
49
54
  today: '今天',
50
55
  loadPreviousMonth: '加載上一個月',
51
- noEarlierMonth: '沒有更早月份'
56
+ noEarlierMonth: '沒有更早月份',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ if (isActive) {
59
+ return today ? "已選定今日".concat(month, "月").concat(day, "號") : "已選定".concat(month, "月").concat(day, "號");
60
+ }
61
+ if (isDisable) {
62
+ return today ? "".concat(month, "月").concat(day, "號今日按鈕變暗") : "".concat(month, "月").concat(day, "號按鈕變暗");
63
+ }
64
+ return today ? "".concat(month, "月").concat(day, "號今日") : "".concat(month, "月").concat(day, "號");
65
+ }
52
66
  },
53
67
  shortpassword: {
54
68
  title: '請輸入密碼',
@@ -155,6 +169,9 @@ var zhCN = {
155
169
  watermark: {
156
170
  errorCanvasTips: '當前環境不支持Canvas'
157
171
  },
158
- mask: '蒙層'
172
+ mask: '蒙層',
173
+ quickenter: {
174
+ title: '快捷入口'
175
+ }
159
176
  };
160
177
  export default zhCN;
@@ -9,6 +9,11 @@ var zhUG = {
9
9
  edit: 'يحرر',
10
10
  reset: 'إعادة ضبط',
11
11
  close: 'تاقاش',
12
+ back: 'قايتىش',
13
+ clear: 'تاقاش',
14
+ image: {
15
+ errorTip: 'رەسىم يۈكلەش مەغلۇپ بولدى'
16
+ },
12
17
  video: {
13
18
  errorTip: 'فىلىمنى قويۇش مەغلۇپ بولدى',
14
19
  clickRetry: 'قايتا سىناش'
@@ -48,7 +53,18 @@ var zhUG = {
48
53
  },
49
54
  today: 'بۈگۈن',
50
55
  loadPreviousMonth: 'ئالدىنقى ئاي',
51
- noEarlierMonth: 'تۈگىدى'
56
+ noEarlierMonth: 'تۈگىدى',
57
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
58
+ var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
59
+ var label = today ? "بۈگۈن, ".concat(dateStr) : dateStr;
60
+ if (isActive) {
61
+ label = "تاللانغان ".concat(label);
62
+ }
63
+ if (isDisable) {
64
+ label = "".concat(label, " چەكلەنگەن");
65
+ }
66
+ return label;
67
+ }
52
68
  },
53
69
  shortpassword: {
54
70
  title: 'مەخپى نومۇرنى كىرگۈزۈڭ',
@@ -155,6 +171,9 @@ var zhUG = {
155
171
  watermark: {
156
172
  errorCanvasTips: 'Canvas نى قوللىمايدۇ'
157
173
  },
158
- mask: 'قاپلىما قەۋەت'
174
+ mask: 'mask',
175
+ quickenter: {
176
+ title: 'تېز كىرگۈزۈش'
177
+ }
159
178
  };
160
179
  export default zhUG;