@fonixtree/magic-design 0.1.78 → 0.1.80

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 (317) hide show
  1. package/es/assets/fonts/Trueno-Light.otf +0 -0
  2. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  3. package/es/assets/fonts/TruenoBd.otf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.css +31 -3
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  8. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  10. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  11. package/es/assets/images/base64/index.js +36 -2
  12. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  14. package/es/assets/less/cylon-antd.less +7246 -1686
  15. package/es/assets/less/font.less +22 -0
  16. package/es/common/AffiliateProductModal/index.js +582 -0
  17. package/es/common/AffiliateProductModal/index.less +146 -0
  18. package/es/common/CardCarousel/index.js +171 -0
  19. package/es/common/CardCarousel/index.less +28 -0
  20. package/es/common/GroupList/index.less +3 -0
  21. package/es/common/ImagePicker/index.js +1 -3
  22. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  23. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  24. package/es/common/LinkModal/index.js +14 -2
  25. package/es/common/MyModal/index.js +417 -0
  26. package/es/common/MyModal/index.less +74 -0
  27. package/es/common/ProductModal/index.js +2 -3
  28. package/es/common/ProductSource/index.js +42 -10
  29. package/es/common/UrlPicker/index.js +3 -1
  30. package/es/common/index.js +16 -0
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/Video/index.js +1 -2
  34. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  35. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  36. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  37. package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  38. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  39. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  40. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  41. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  42. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  43. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  44. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  45. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  46. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  47. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  48. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  49. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  50. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  51. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  52. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  53. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  54. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  55. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  56. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  57. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  58. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  59. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  60. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  61. package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  62. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  63. package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
  64. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  65. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  66. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  68. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  69. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  70. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  71. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  72. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  73. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  74. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  75. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  76. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  77. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  78. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  79. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  80. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  81. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  82. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  83. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  84. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  85. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  86. package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  87. package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  88. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  89. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  90. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  91. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  92. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  93. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  94. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  95. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  96. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  97. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  98. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  99. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  100. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  101. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  102. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  103. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  104. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  105. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  106. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  107. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  108. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  109. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  110. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  111. package/es/constants/component-types.js +27 -3
  112. package/es/constants/index.js +26 -1
  113. package/es/constants/layout.js +48 -1
  114. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  115. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  116. package/es/core/Designer/ChatRobot/index.js +36 -14
  117. package/es/core/Designer/ChatRobot/index.less +69 -28
  118. package/es/core/Designer/ConfigPanel/index.js +8 -3
  119. package/es/core/Designer/History/index.js +2 -2
  120. package/es/core/Designer/PageCompList/index.js +8 -5
  121. package/es/core/Designer/QuickMenuBar/index.js +5 -3
  122. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  123. package/es/core/Designer/RenderHtml/index.js +18 -15
  124. package/es/core/Designer/RenderHtml/index.less +1 -1
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  129. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  130. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  133. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  134. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  135. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  140. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  141. package/es/core/Designer/ToolBarModal/index.js +68 -22
  142. package/es/core/Designer/ToolBarModal/index.less +3 -2
  143. package/es/core/Designer/index.js +12 -1
  144. package/es/core/Renderer/index.js +55 -8
  145. package/es/decorator/compositeDecorator.js +23 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Image/index.js +31 -25
  150. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  151. package/es/meta-comp/components/Text/index.js +20 -1
  152. package/es/meta-comp/components/Text/index.less +8 -0
  153. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  154. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  155. package/es/mobx/Frame.js +17 -2
  156. package/es/utils/businessUtil.js +17 -6
  157. package/es/utils/commonUtil.js +54 -4
  158. package/es/utils/currencyUtil.js +9 -2
  159. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  160. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  161. package/lib/assets/fonts/TruenoBd.otf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.css +31 -3
  163. package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
  164. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  165. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  166. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  167. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  168. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  169. package/lib/assets/images/base64/index.js +36 -2
  170. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  171. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  172. package/lib/assets/less/cylon-antd.less +7246 -1686
  173. package/lib/assets/less/font.less +22 -0
  174. package/lib/common/AffiliateProductModal/index.js +582 -0
  175. package/lib/common/AffiliateProductModal/index.less +146 -0
  176. package/lib/common/CardCarousel/index.js +171 -0
  177. package/lib/common/CardCarousel/index.less +28 -0
  178. package/lib/common/GroupList/index.less +3 -0
  179. package/lib/common/ImagePicker/index.js +1 -3
  180. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  181. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  182. package/lib/common/LinkModal/index.js +14 -2
  183. package/lib/common/MyModal/index.js +417 -0
  184. package/lib/common/MyModal/index.less +74 -0
  185. package/lib/common/ProductModal/index.js +2 -3
  186. package/lib/common/ProductSource/index.js +42 -10
  187. package/lib/common/UrlPicker/index.js +3 -1
  188. package/lib/common/index.js +16 -0
  189. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  191. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  192. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  193. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  194. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  195. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  196. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  197. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  198. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  199. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  200. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  201. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  202. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  203. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  204. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  205. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  206. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  207. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  208. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  209. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  210. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  211. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  213. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  214. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  215. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  216. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  217. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  218. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  219. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  220. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  221. package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
  222. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  223. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  224. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  225. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  226. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  227. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  228. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  229. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  230. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  231. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  233. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  234. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  235. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  236. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  237. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  238. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  239. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  240. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  241. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  242. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  243. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  244. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  246. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  247. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  248. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  249. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  250. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  251. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  252. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  253. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  254. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  255. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  256. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  257. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  258. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  259. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  260. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  261. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  262. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  263. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  264. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  265. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  266. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  267. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  268. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  269. package/lib/constants/component-types.js +27 -3
  270. package/lib/constants/index.js +26 -1
  271. package/lib/constants/layout.js +48 -1
  272. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  273. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  274. package/lib/core/Designer/ChatRobot/index.js +36 -14
  275. package/lib/core/Designer/ChatRobot/index.less +69 -28
  276. package/lib/core/Designer/ConfigPanel/index.js +8 -3
  277. package/lib/core/Designer/History/index.js +2 -2
  278. package/lib/core/Designer/PageCompList/index.js +8 -5
  279. package/lib/core/Designer/QuickMenuBar/index.js +5 -3
  280. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  281. package/lib/core/Designer/RenderHtml/index.js +18 -15
  282. package/lib/core/Designer/RenderHtml/index.less +1 -1
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  299. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  300. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  301. package/lib/core/Designer/index.js +12 -1
  302. package/lib/core/Renderer/index.js +55 -8
  303. package/lib/decorator/compositeDecorator.js +23 -0
  304. package/lib/locale/en/en.json +6 -1
  305. package/lib/locale/es/es.json +6 -1
  306. package/lib/locale/id/id.json +6 -1
  307. package/lib/meta-comp/components/Image/index.js +31 -25
  308. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  309. package/lib/meta-comp/components/Text/index.js +20 -1
  310. package/lib/meta-comp/components/Text/index.less +8 -0
  311. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  312. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  313. package/lib/mobx/Frame.js +17 -2
  314. package/lib/utils/businessUtil.js +17 -6
  315. package/lib/utils/commonUtil.js +54 -4
  316. package/lib/utils/currencyUtil.js +9 -2
  317. package/package.json +1 -1
@@ -7,10 +7,18 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
10
12
  var _components = require("../../../../../meta-comp/components");
11
13
 
14
+ var _mobx = require("../../../../../mobx");
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
12
18
  var _commonUtil = require("../../../../../utils/commonUtil");
13
19
 
20
+ var _common = require("../../../../../common");
21
+
14
22
  var _constants = require("../../../../../constants");
15
23
 
16
24
  var _currencyUtil = require("../../../../../utils/currencyUtil");
@@ -227,35 +235,84 @@ function (_super) {
227
235
  function WalletMobile() {
228
236
  var _this = _super !== null && _super.apply(this, arguments) || this;
229
237
 
238
+ _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
230
239
  _this.state = {
231
- cashback: 0,
232
- credit: 0,
233
- bnpl: 0
240
+ sliderIndex: 0,
241
+ userWalletData: {}
234
242
  };
243
+ _this.destroy = null;
235
244
 
236
245
  _this.getMyWalletData = function () {
237
246
  return __awaiter(_this, void 0, void 0, function () {
238
- var _a, userCreditResps, userCashbackValues, creditObj, bnplObj;
247
+ var data, _a, userCreditResps, userCashbackValues, userBalance, userPoint, defaultShowWallet, bnplObj, creditObj, B2BObj;
239
248
 
240
- return __generator(this, function (_b) {
241
- switch (_b.label) {
249
+ var _b;
250
+
251
+ var _this = this;
252
+
253
+ return __generator(this, function (_c) {
254
+ switch (_c.label) {
242
255
  case 0:
256
+ data = this.props.data;
243
257
  return [4
244
258
  /*yield*/
245
259
  , (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
246
260
 
247
261
  case 1:
248
- _a = _b.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
262
+ _a = _c.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues, userBalance = _a.userBalance, userPoint = _a.userPoint, defaultShowWallet = _a.defaultShowWallet;
263
+ bnplObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
264
+ return item.creditId === 1;
265
+ });
249
266
  creditObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
250
- return item.creditId === 2 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
267
+ return item.creditId === 2;
251
268
  });
252
- bnplObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
253
- return item.creditId === 1 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
269
+ B2BObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
270
+ return item.creditId === 3;
254
271
  });
255
272
  this.setState({
256
- cashback: userCashbackValues === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userCashbackValues),
257
- credit: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : 'APPLY',
258
- bnpl: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : 'APPLY'
273
+ userWalletData: (_b = {}, _b[_constants.walletType.BNPL] = {
274
+ amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : 'APPLY',
275
+ show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(bnplObj === null || bnplObj === void 0 ? void 0 : bnplObj.state)
276
+ }, _b[_constants.walletType.CREDIT] = {
277
+ amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : 'APPLY',
278
+ show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(creditObj === null || creditObj === void 0 ? void 0 : creditObj.state)
279
+ }, _b[_constants.walletType.B2B] = {
280
+ amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : 'APPLY',
281
+ text: B2BObj ? 'Add more products to your shop!' : '',
282
+ btnText: B2BObj ? 'Procure Product' : '',
283
+ show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(B2BObj === null || B2BObj === void 0 ? void 0 : B2BObj.state)
284
+ }, _b[_constants.walletType.CASHBACK] = {
285
+ amount: userCashbackValues === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userCashbackValues),
286
+ show: true
287
+ }, _b[_constants.walletType.BALANCE] = {
288
+ amount: userBalance === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userBalance),
289
+ btnText: userBalance ? 'Social Commerce' : '',
290
+ show: true
291
+ }, _b[_constants.walletType.CENDUIT] = {
292
+ amount: userPoint === null ? '****' : userPoint,
293
+ btnText: userPoint ? 'CenDuit Mall' : '',
294
+ show: true
295
+ }, _b)
296
+ }, function () {
297
+ var _a;
298
+
299
+ if (data.customize.layout === 'layout2' && _this.carouselRef) {
300
+ var userWalletData_1 = _this.state.userWalletData;
301
+
302
+ var _groupSource = data.groupSource.filter(function (f) {
303
+ var _a;
304
+
305
+ return (_a = userWalletData_1[f.sourceType]) === null || _a === void 0 ? void 0 : _a.show;
306
+ });
307
+
308
+ var defaultShowIndex_1 = 0;
309
+
310
+ _groupSource.forEach(function (f, i) {
311
+ if (f.sourceType === defaultShowWallet) defaultShowIndex_1 = i;
312
+ });
313
+
314
+ (_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(defaultShowIndex_1);
315
+ }
259
316
  });
260
317
  return [2
261
318
  /*return*/
@@ -265,88 +322,281 @@ function (_super) {
265
322
  });
266
323
  };
267
324
 
268
- _this.getAmount = function (type) {
269
- var _a = _this.state,
270
- cashback = _a.cashback,
271
- credit = _a.credit,
272
- bnpl = _a.bnpl;
273
- if (type === 'Cashback') return cashback;
274
- if (type === 'Credit') return credit;
275
- if (type === 'BNPL') return bnpl;
325
+ _this.mouseEnterBtn = function (e) {
326
+ var _a, _b;
327
+
328
+ var data = _this.props.data;
329
+
330
+ if ((_a = data.setting.navigation) === null || _a === void 0 ? void 0 : _a.hoverColor) {
331
+ e.target.style.color = data.setting.navigation.hoverColor;
332
+ }
333
+
334
+ if ((_b = data.setting.navigation) === null || _b === void 0 ? void 0 : _b.hoverSize) {
335
+ e.target.style.fontSize = data.setting.navigation.hoverSize;
336
+ }
337
+ };
338
+
339
+ _this.mouseLeaveBtn = function (e) {
340
+ var _a, _b;
341
+
342
+ var data = _this.props.data;
343
+
344
+ if ((_a = data.setting.navigation) === null || _a === void 0 ? void 0 : _a.color) {
345
+ e.target.style.color = data.setting.navigation.color;
346
+ }
347
+
348
+ if ((_b = data.setting.navigation) === null || _b === void 0 ? void 0 : _b.size) {
349
+ e.target.style.fontSize = data.setting.navigation.size;
350
+ }
351
+ };
352
+
353
+ _this.sliderGoTo = function (groupSource) {
354
+ var nextIndex = groupSource.findIndex(function (item) {
355
+ return item.id === _mobx.store.clickedGroup;
356
+ });
357
+
358
+ if (nextIndex != -1 && nextIndex != _this.state.sliderIndex) {
359
+ _this.carouselRef.current.slideTo(nextIndex);
360
+ }
276
361
  };
277
362
 
278
363
  return _this;
279
364
  }
280
365
 
281
366
  WalletMobile.prototype.componentDidMount = function () {
367
+ var _this = this;
368
+
282
369
  this.getMyWalletData();
370
+ this.destroy = (0, _mobx.autorun)(function () {
371
+ var _a;
372
+
373
+ if (_this.props.data.customize.layout === 'layout2' && _this.carouselRef) {
374
+ _this.sliderGoTo(_this.props.data.groupSource);
375
+ /** 设计器模式下 如果选中特定group 自动播放关闭 */
376
+
377
+
378
+ if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
379
+ (_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.stopPlay();
380
+ }
381
+ }
382
+ });
383
+ };
384
+
385
+ WalletMobile.prototype.componentWillReceiveProps = function (nextProps) {
386
+ var _a, _b;
387
+
388
+ if (nextProps.data.customize.layout === 'layout2' && this.carouselRef) {
389
+ this.sliderGoTo(nextProps.data.groupSource);
390
+
391
+ if (nextProps.data.setting.autoplay.open) {
392
+ (_a = this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.startPlay();
393
+ } else {
394
+ (_b = this.carouselRef.current) === null || _b === void 0 ? void 0 : _b.stopPlay();
395
+ }
396
+ }
283
397
  };
284
398
 
285
399
  WalletMobile.prototype.render = function () {
286
400
  var _this = this;
287
401
 
402
+ var _a, _b, _c, _d, _e, _f, _g, _h;
403
+
288
404
  var data = this.props.data;
289
- var GAData = (0, _commonUtil.getGAData)(data);
405
+ var _j = this.state,
406
+ sliderIndex = _j.sliderIndex,
407
+ userWalletData = _j.userWalletData;
290
408
  var colNum = data.customize.rowNum;
291
- return /*#__PURE__*/_react["default"].createElement("div", {
292
- className: "m-Wallet-mobile"
293
- }, data.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
294
- className: "headline",
295
- data: data.title.headline
296
- }), /*#__PURE__*/_react["default"].createElement("div", {
297
- className: "content column_" + colNum,
298
- style: (0, _commonUtil.pxToRem)({
299
- gap: MOBILE_IMG_SIZE[colNum].gap
300
- })
301
- }, data.groupSource.map(function (item) {
302
- var _amount = _this.getAmount(item.sourceType);
409
+ var autoplay = (_b = (_a = data.setting) === null || _a === void 0 ? void 0 : _a.autoplay) === null || _b === void 0 ? void 0 : _b.open;
303
410
 
304
- return /*#__PURE__*/_react["default"].createElement("div", {
305
- key: item.id,
306
- className: "item-wrap",
307
- onMouseEnter: function onMouseEnter() {
308
- var _a;
411
+ var _groupSource = data.groupSource.filter(function (f) {
412
+ var _a;
309
413
 
310
- return _this.setState((_a = {}, _a["hover_" + item.id] = true, _a));
311
- },
312
- onMouseLeave: function onMouseLeave() {
313
- var _a;
414
+ return (_a = userWalletData[f.sourceType]) === null || _a === void 0 ? void 0 : _a.show;
415
+ });
416
+ /** 设计器模式下 如果选中特定group 自动播放关闭 */
314
417
 
315
- return _this.setState((_a = {}, _a["hover_" + item.id] = false, _a));
316
- },
317
- style: (0, _commonUtil.pxToRem)({
318
- width: "calc((100% - " + (0, _commonUtil.convertToRem)(MOBILE_IMG_SIZE[colNum].gap * (colNum - 1)) + ") / " + colNum + ")"
418
+
419
+ if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
420
+ autoplay = false;
421
+ }
422
+
423
+ var navStyle = {
424
+ fontSize: (0, _commonUtil.convertToRem)((_d = (_c = data.setting) === null || _c === void 0 ? void 0 : _c.navigation) === null || _d === void 0 ? void 0 : _d.size),
425
+ color: (_f = (_e = data.setting) === null || _e === void 0 ? void 0 : _e.navigation) === null || _f === void 0 ? void 0 : _f.color
426
+ };
427
+
428
+ var getItemContent = function getItemContent(item, preItem, nextItem) {
429
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
430
+
431
+ var data = _this.props.data;
432
+ var userWalletData = _this.state.userWalletData;
433
+ var GAData = (0, _commonUtil.getGAData)(data);
434
+ var _bgStyle = {};
435
+
436
+ if (item.background) {
437
+ if (item.background.bgType === 'color') {
438
+ _bgStyle.backgroundColor = item.background.color;
439
+ _bgStyle.opacity = item.background.opacity ? item.background.opacity : 1;
440
+ } else {
441
+ _bgStyle.backgroundImage = "url(" + item.background.image + ")";
442
+ _bgStyle.backgroundPosition = 'center';
443
+ _bgStyle.backgroundSize = 'cover';
444
+ }
445
+ }
446
+
447
+ item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) || 'Make money and shop on Cendol!';
448
+ return /*#__PURE__*/_react["default"].createElement("div", {
449
+ className: "text-content",
450
+ style: _bgStyle
451
+ }, ((_b = item.title) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
452
+ className: "title",
453
+ data: item.title,
454
+ GAData: __assign(__assign({}, GAData), {
455
+ groupId: item.id,
456
+ groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
319
457
  })
320
- }, item.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
321
- className: "image",
322
- data: item.hover.open && item.hover.image.open && _this.state["hover_" + item.id] ? item.hover.image : item.image,
458
+ }), ((_c = item.amount) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
459
+ className: "amount",
460
+ data: __assign(__assign({}, item.amount), {
461
+ text: (_d = userWalletData[item.sourceType]) === null || _d === void 0 ? void 0 : _d.amount
462
+ }),
323
463
  GAData: __assign(__assign({}, GAData), {
324
464
  groupId: item.id,
325
465
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
326
- }) // maxHeight={MOBILE_IMG_SIZE[colNum].maxH}
327
- ,
328
- maxWidth: "100%"
329
- }), /*#__PURE__*/_react["default"].createElement("div", {
330
- className: "text-content"
331
- }, item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
332
- className: "title",
333
- data: item.hover.open && item.hover.title.open && _this.state["hover_" + item.id] ? item.hover.title : item.title,
466
+ }),
467
+ readonly: true
468
+ }), ((_e = item.text) === null || _e === void 0 ? void 0 : _e.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
469
+ className: "text",
470
+ data: item.text,
334
471
  GAData: __assign(__assign({}, GAData), {
335
472
  groupId: item.id,
336
473
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
337
474
  })
338
- }), item.amount.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
339
- className: "amount",
340
- data: __assign(__assign({}, item.hover.open && item.hover.amount.open && _this.state["hover_" + item.id] ? item.hover.amount : item.amount), {
341
- text: _amount
475
+ }), ((_f = item.button) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
476
+ className: "wallet-btn",
477
+ data: __assign(__assign({}, item.button), {
478
+ text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) || 'Lets Go!'
479
+ }),
480
+ GAData: __assign(__assign({}, GAData), {
481
+ groupId: item.id,
482
+ groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
483
+ })
484
+ }), data.customize.layout === 'layout2' && ((_h = item.peek) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
485
+ className: "peek left"
486
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
487
+ data: __assign(__assign({}, item.peek), {
488
+ text: "" + (((_j = preItem === null || preItem === void 0 ? void 0 : preItem.title) === null || _j === void 0 ? void 0 : _j.text) || '')
489
+ }),
490
+ GAData: __assign(__assign({}, GAData), {
491
+ groupId: item.id,
492
+ groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
493
+ }),
494
+ readonly: true
495
+ }), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
496
+ data: __assign(__assign({}, item.peek), {
497
+ text: "" + (((_k = userWalletData[preItem === null || preItem === void 0 ? void 0 : preItem.sourceType]) === null || _k === void 0 ? void 0 : _k.amount) || '')
498
+ }),
499
+ GAData: __assign(__assign({}, GAData), {
500
+ groupId: item.id,
501
+ groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
502
+ }),
503
+ readonly: true
504
+ })), /*#__PURE__*/_react["default"].createElement("div", {
505
+ className: "peek right"
506
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
507
+ data: __assign(__assign({}, item.peek), {
508
+ text: "" + (((_l = nextItem === null || nextItem === void 0 ? void 0 : nextItem.title) === null || _l === void 0 ? void 0 : _l.text) || '')
509
+ }),
510
+ GAData: __assign(__assign({}, GAData), {
511
+ groupId: item.id,
512
+ groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
513
+ }),
514
+ readonly: true
515
+ }), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
516
+ data: __assign(__assign({}, item.peek), {
517
+ text: "" + (((_m = userWalletData[nextItem === null || nextItem === void 0 ? void 0 : nextItem.sourceType]) === null || _m === void 0 ? void 0 : _m.amount) || '')
342
518
  }),
343
519
  GAData: __assign(__assign({}, GAData), {
344
520
  groupId: item.id,
345
521
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
346
522
  }),
347
523
  readonly: true
348
- })));
349
- })));
524
+ }))));
525
+ };
526
+
527
+ return /*#__PURE__*/_react["default"].createElement("div", {
528
+ className: "m-Wallet-mobile"
529
+ }, data.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
530
+ className: "headline",
531
+ data: data.title.headline
532
+ }), data.customize.layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
533
+ className: "column-layout column_" + colNum,
534
+ style: (0, _commonUtil.pxToRem)({
535
+ gap: MOBILE_IMG_SIZE[colNum].gap
536
+ })
537
+ }, _groupSource.map(function (item) {
538
+ return /*#__PURE__*/_react["default"].createElement("div", {
539
+ key: item.id,
540
+ className: "item-wrap",
541
+ style: (0, _commonUtil.pxToRem)({
542
+ width: "calc((100% - " + (0, _commonUtil.convertToRem)(MOBILE_IMG_SIZE[colNum].gap * (colNum - 1)) + ") / " + colNum + ")"
543
+ })
544
+ }, getItemContent(item));
545
+ })) : /*#__PURE__*/_react["default"].createElement("div", {
546
+ className: "carousel-layout"
547
+ }, data.setting.navigation.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
548
+ className: "carousel-icon-left",
549
+ onClick: function onClick() {
550
+ return _this.carouselRef.current.toPrev();
551
+ },
552
+ onMouseEnter: this.mouseEnterBtn,
553
+ onMouseLeave: this.mouseLeaveBtn,
554
+ style: navStyle,
555
+ type: "icon-left"
556
+ }), /*#__PURE__*/_react["default"].createElement(_common.CardCarousel, {
557
+ ref: this.carouselRef,
558
+ autoplay: autoplay,
559
+ delay: ((_h = (_g = data.setting) === null || _g === void 0 ? void 0 : _g.autoplay) === null || _h === void 0 ? void 0 : _h.interval) * 1000,
560
+ onChange: function onChange(index) {
561
+ return _this.setState({
562
+ sliderIndex: index
563
+ });
564
+ }
565
+ }, _groupSource.map(function (item, index) {
566
+ var preItemFirst = _groupSource.length > 1 ? _groupSource[_groupSource.length - 1] : null;
567
+ var preItemLast = _groupSource.length > 1 ? _groupSource[0] : null;
568
+ var preItem = index === 0 ? preItemFirst : _groupSource[index - 1];
569
+ var nextItem = index === _groupSource.length - 1 ? preItemLast : _groupSource[index + 1];
570
+ return /*#__PURE__*/_react["default"].createElement("div", {
571
+ key: item.id,
572
+ className: "item-wrap"
573
+ }, getItemContent(item, preItem, nextItem));
574
+ })), data.setting.navigation.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
575
+ className: "carousel-icon-right",
576
+ onClick: function onClick() {
577
+ return _this.carouselRef.current.toNext();
578
+ },
579
+ onMouseEnter: this.mouseEnterBtn,
580
+ onMouseLeave: this.mouseLeaveBtn,
581
+ style: navStyle,
582
+ type: "icon-right"
583
+ }), data.setting.dots.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement("div", {
584
+ className: "swiper-ban"
585
+ }, _groupSource.map(function (item, i) {
586
+ return /*#__PURE__*/_react["default"].createElement("div", {
587
+ key: i,
588
+ className: (0, _classnames["default"])('ban', {
589
+ active: i == sliderIndex
590
+ }),
591
+ onClick: function onClick() {
592
+ return _this.carouselRef.current.slideTo(i);
593
+ },
594
+ style: (0, _commonUtil.pxToRem)({
595
+ backgroundColor: i == sliderIndex ? data.setting.dots.hoverColor : data.setting.dots.color,
596
+ fontSize: i == sliderIndex ? data.setting.dots.hoverSize : data.setting.dots.size
597
+ })
598
+ });
599
+ }))));
350
600
  };
351
601
 
352
602
  WalletMobile.defaultProps = {
@@ -1,27 +1,103 @@
1
1
  .m-Wallet-mobile .headline {
2
2
  margin-bottom: 0.14rem;
3
3
  }
4
- .m-Wallet-mobile .content {
4
+ .m-Wallet-mobile .item-wrap .text-content {
5
+ position: relative !important;
5
6
  display: flex;
7
+ align-items: center;
8
+ justify-content: center;
6
9
  flex-wrap: wrap;
10
+ border-radius: 0.2rem;
11
+ padding: 0.2rem 0.8rem 1.16rem 0.8rem;
12
+ }
13
+ .m-Wallet-mobile .item-wrap .text-content .wallet-btn {
14
+ margin-top: 0.2rem;
7
15
  }
8
- .m-Wallet-mobile .content.column_3 .item-wrap .title {
9
- top: 13%;
16
+ .m-Wallet-mobile .item-wrap .text-content .peek {
17
+ position: absolute;
18
+ bottom: 0.16rem;
19
+ width: 1.2rem !important;
20
+ white-space: nowrap;
21
+ }
22
+ .m-Wallet-mobile .item-wrap .text-content .peek.left {
23
+ left: 0.8rem;
10
24
  }
11
- .m-Wallet-mobile .content.column_3 .item-wrap .amount {
12
- bottom: 13%;
25
+ .m-Wallet-mobile .item-wrap .text-content .peek.right {
26
+ right: 0.8rem;
13
27
  }
14
- .m-Wallet-mobile .content .item-wrap {
28
+ .m-Wallet-mobile .column-layout {
15
29
  display: flex;
16
- align-items: center;
17
- justify-content: center;
30
+ flex-wrap: wrap;
31
+ justify-content: space-between;
32
+ }
33
+ .m-Wallet-mobile .column-layout .text-content {
34
+ padding: 0.2rem 0 0.2rem 0;
35
+ }
36
+ .m-Wallet-mobile .column-layout .text-content .wallet-btn {
37
+ margin-top: 0.2rem;
38
+ }
39
+ .m-Wallet-mobile .column-layout .text-content .peek {
40
+ bottom: 0.2rem;
41
+ }
42
+ .m-Wallet-mobile .column-layout .text-content .peek.left {
43
+ left: 0.32rem;
44
+ }
45
+ .m-Wallet-mobile .column-layout .text-content .peek.right {
46
+ right: 0.32rem;
47
+ }
48
+ .m-Wallet-mobile .carousel-layout {
18
49
  position: relative;
19
- border-radius: 0.2rem;
50
+ min-height: 4.8rem;
20
51
  }
21
- .m-Wallet-mobile .content .item-wrap .image {
22
- border-radius: 0.2rem;
23
- overflow: hidden;
52
+ .m-Wallet-mobile .carousel-layout .slick-track {
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ }
57
+ .m-Wallet-mobile .carousel-layout .carousel-icon-left {
58
+ position: absolute;
59
+ left: 0.32rem;
60
+ top: 0;
61
+ bottom: 0;
62
+ margin: auto;
63
+ cursor: pointer;
64
+ z-index: 20;
24
65
  }
25
- .m-Wallet-mobile .content .item-wrap .text-content {
66
+ .m-Wallet-mobile .carousel-layout .carousel-icon-right {
26
67
  position: absolute;
68
+ right: 0.32rem;
69
+ top: 0;
70
+ bottom: 0;
71
+ margin: auto;
72
+ cursor: pointer;
73
+ z-index: 20;
74
+ }
75
+ .m-Wallet-mobile .carousel-layout .swiper-ban {
76
+ position: absolute;
77
+ width: 100%;
78
+ bottom: 0.72rem;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ z-index: 20;
83
+ }
84
+ .m-Wallet-mobile .carousel-layout .swiper-ban .ban {
85
+ font-size: 0.16rem;
86
+ width: 1em;
87
+ height: 1em;
88
+ border-radius: 50%;
89
+ background-color: #FFF;
90
+ cursor: inherit;
91
+ margin-right: 0.2rem;
92
+ transition: all 0.5s;
93
+ opacity: 0.4;
94
+ }
95
+ .m-Wallet-mobile .carousel-layout .swiper-ban .ban:last-child {
96
+ margin-right: 0;
97
+ }
98
+ .m-Wallet-mobile .carousel-layout .swiper-ban .ban.active {
99
+ width: 2em;
100
+ height: 1em;
101
+ border-radius: 2rem;
102
+ opacity: 1;
27
103
  }
@@ -17,8 +17,6 @@ var _currencyUtil = require("../../../../../utils/currencyUtil");
17
17
 
18
18
  var _ConfigPanel = require("../../../../../core/Designer/ConfigPanel");
19
19
 
20
- require("./index.less");
21
-
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
21
 
24
22
  var __extends = void 0 && (void 0).__extends || function () {
@@ -1,40 +1 @@
1
- .m-Wallet-pc {
2
-
3
- .headline {
4
- margin-bottom: 20px;
5
- }
6
-
7
- .content {
8
- display: flex;
9
- flex-wrap: wrap;
10
-
11
- &.column_3 {
12
- .item-wrap {
13
- .title {
14
- top: 24%;
15
- }
16
-
17
- .amount {
18
- bottom: 14%;
19
- }
20
- }
21
- }
22
-
23
- .item-wrap {
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
- position: relative;
28
- border-radius: 10px;
29
-
30
- .image {
31
- border-radius: 10px;
32
- overflow: hidden;
33
- }
34
-
35
- .text-content {
36
- position: absolute;
37
- }
38
- }
39
- }
40
- }
1
+ .m-Wallet-pc {}