@fonixtree/magic-design 2.0.97 → 2.0.98

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 (187) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  3. package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  4. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  5. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  6. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  7. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  8. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  9. package/es/common/Collapse/index.js +10 -8
  10. package/es/common/FontStyles/index.less +3 -1
  11. package/es/common/MonpayCountDown/index.js +160 -0
  12. package/es/common/RatingText/index.js +105 -0
  13. package/es/common/RatingText/index.less +12 -0
  14. package/es/common/index.js +8 -0
  15. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  16. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  17. package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  18. package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
  19. package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
  20. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  21. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  22. package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  23. package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  24. package/es/composite-comp/common/components/ProductItem/index.js +5 -11
  25. package/es/composite-comp/common/components/ProductItem/index.less +10 -0
  26. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  27. package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  28. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  29. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  30. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  31. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  32. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  33. package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  34. package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  35. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  36. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  37. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  38. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  39. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  40. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  41. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  42. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  43. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  44. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  45. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  46. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  47. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  48. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  49. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  50. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  51. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  52. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  53. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  54. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  55. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  56. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  57. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  58. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  59. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  60. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  61. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  62. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  63. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  64. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  65. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  66. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  67. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  68. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  69. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  70. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  71. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  72. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  73. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  74. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  75. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  76. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  77. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  78. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  79. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  80. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  81. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  82. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  83. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  84. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  85. package/es/constants/component-types.js +13 -3
  86. package/es/constants/index.js +8 -0
  87. package/es/constants/layout.js +43 -4
  88. package/es/core/Designer/ConfigPanel/index.js +1 -1
  89. package/es/core/Designer/index.js +5 -2
  90. package/es/locale/en/en.json +11 -0
  91. package/es/locale/es/es.json +11 -0
  92. package/es/locale/id/id.json +11 -0
  93. package/es/utils/dateUtil.js +13 -0
  94. package/lib/assets/fonts/.DS_Store +0 -0
  95. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  96. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  97. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  98. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  99. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  100. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  101. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  102. package/lib/common/Collapse/index.js +10 -8
  103. package/lib/common/FontStyles/index.less +3 -1
  104. package/lib/common/MonpayCountDown/index.js +160 -0
  105. package/lib/common/RatingText/index.js +105 -0
  106. package/lib/common/RatingText/index.less +12 -0
  107. package/lib/common/index.js +8 -0
  108. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  109. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  110. package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  111. package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
  112. package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
  113. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  114. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  115. package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  116. package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  117. package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
  118. package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
  119. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  120. package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  121. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  122. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  123. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  124. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  125. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  126. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  127. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  128. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  129. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  130. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  131. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  132. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  133. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  134. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  135. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  136. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  137. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  138. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  139. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  140. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  141. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  142. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  143. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  144. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  145. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  146. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  147. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  148. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  149. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  150. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  151. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  152. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  153. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  154. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  155. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  156. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  157. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  158. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  159. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  160. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  161. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  162. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  163. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  164. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  165. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  166. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  167. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  168. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  169. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  170. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  171. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  172. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  173. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  174. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  175. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  176. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  177. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  178. package/lib/constants/component-types.js +13 -3
  179. package/lib/constants/index.js +8 -0
  180. package/lib/constants/layout.js +43 -4
  181. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  182. package/lib/core/Designer/index.js +5 -2
  183. package/lib/locale/en/en.json +11 -0
  184. package/lib/locale/es/es.json +11 -0
  185. package/lib/locale/id/id.json +11 -0
  186. package/lib/utils/dateUtil.js +13 -0
  187. package/package.json +1 -1
@@ -59,6 +59,10 @@ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/
59
59
 
60
60
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
61
61
 
62
+ var _MonpayRecommend = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayRecommend"));
63
+
64
+ var _MonpayFlashDeal = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayFlashDeal"));
65
+
62
66
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
63
67
 
64
68
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -113,6 +117,10 @@ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/confi
113
117
 
114
118
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
115
119
 
120
+ var _MonpayRecommendConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayRecommendConfig"));
121
+
122
+ var _MonpayFlashDealConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayFlashDealConfig"));
123
+
116
124
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
117
125
 
118
126
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -151,6 +159,8 @@ var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito
151
159
 
152
160
  var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
153
161
 
162
+ var _MonpayRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig"));
163
+
154
164
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
155
165
 
156
166
  var _a, _b, _c; // 组件
@@ -159,17 +169,17 @@ var _a, _b, _c; // 组件
159
169
  /**
160
170
  * 渲染组件索引
161
171
  */
162
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
172
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
163
173
  /**
164
174
  * 一级配置面板索引
165
175
  */
166
176
 
167
177
  exports.componentMap = componentMap;
168
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
178
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
169
179
  /**
170
180
  * 二级配置面板索引
171
181
  */
172
182
 
173
183
  exports.configPanelMap = configPanelMap;
174
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
184
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
175
185
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -146,6 +146,10 @@ var compInfoMap = {
146
146
  name: 'Flash Deal',
147
147
  icon: 'icon-flash-deal'
148
148
  },
149
+ MONPAY_FLASH_DEAL: {
150
+ name: 'Monpay Flash Deal',
151
+ icon: 'icon-flash-deal'
152
+ },
149
153
  GROUP_BUY: {
150
154
  name: 'Group Buy',
151
155
  icon: 'icon-group-buy'
@@ -178,6 +182,10 @@ var compInfoMap = {
178
182
  name: 'Affiliate Recommend',
179
183
  icon: 'icon-forms'
180
184
  },
185
+ MONPAY_RECOMMEND: {
186
+ name: 'Monpay Recommend',
187
+ icon: 'icon-forms'
188
+ },
181
189
  DIVIDER: {
182
190
  name: 'Divider',
183
191
  icon: 'icon-divider-1'
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
6
+ exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.monpayRecommendLayoutMobile = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
7
7
 
8
8
  var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
9
9
 
@@ -59,6 +59,14 @@ var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-
59
59
 
60
60
  var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
61
61
 
62
+ var _layoutRecommendMobile = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-1.png"));
63
+
64
+ var _layoutRecommendMobile2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-2.png"));
65
+
66
+ var _layoutRecommendMobile3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-3.png"));
67
+
68
+ var _layoutRecommendMobile4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-4.png"));
69
+
62
70
  var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
63
71
 
64
72
  var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
@@ -81,6 +89,10 @@ var _layoutNavigationTile = _interopRequireDefault(require("../assets/images/lay
81
89
 
82
90
  var _layoutNavigationNormal = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-normal.png"));
83
91
 
92
+ var _bannerSlideLayout = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout1.png"));
93
+
94
+ var _bannerSlideLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout2.png"));
95
+
84
96
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
85
97
 
86
98
  // import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
@@ -214,6 +226,24 @@ var recommendLayoutMobile = [{
214
226
  image: _layoutRecommend5["default"]
215
227
  }];
216
228
  exports.recommendLayoutMobile = recommendLayoutMobile;
229
+ var monpayRecommendLayoutMobile = [{
230
+ id: 'layout1',
231
+ name: 'layout1',
232
+ image: _layoutRecommendMobile["default"]
233
+ }, {
234
+ id: 'layout2',
235
+ name: 'layout2',
236
+ image: _layoutRecommendMobile2["default"]
237
+ }, {
238
+ id: 'layout3',
239
+ name: 'layout3',
240
+ image: _layoutRecommendMobile3["default"]
241
+ }, {
242
+ id: 'layout4',
243
+ name: 'layout4',
244
+ image: _layoutRecommendMobile4["default"]
245
+ }];
246
+ exports.monpayRecommendLayoutMobile = monpayRecommendLayoutMobile;
217
247
  var recommendLayoutPc = [{
218
248
  id: 'layout1',
219
249
  name: 'layout1',
@@ -236,8 +266,7 @@ var affiliateLayoutMobile = [{
236
266
  id: 'layout2',
237
267
  name: 'layout2',
238
268
  image: _layoutRecommend2["default"]
239
- }, // { id: 'layout3', name: 'layout3', image: recommendLayout3 },
240
- {
269
+ }, {
241
270
  id: 'layout4',
242
271
  name: 'layout4',
243
272
  image: _layoutRecommend4["default"]
@@ -312,4 +341,14 @@ var pcNavigationLayout = [{
312
341
  name: 'normal',
313
342
  image: _layoutNavigationNormal["default"]
314
343
  }];
315
- exports.pcNavigationLayout = pcNavigationLayout;
344
+ exports.pcNavigationLayout = pcNavigationLayout;
345
+ var bannerSlideLayout = [{
346
+ id: 'layout1',
347
+ name: 'layout1',
348
+ image: _bannerSlideLayout["default"]
349
+ }, {
350
+ id: 'layout2',
351
+ name: 'layout2',
352
+ image: _bannerSlideLayout2["default"]
353
+ }];
354
+ exports.bannerSlideLayout = bannerSlideLayout;
@@ -115,7 +115,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
115
115
 
116
116
  case 'RECOMMEND':
117
117
  case 'AFFILIATE_RECOMMEND':
118
- // console.log('RECOMMEND ---panelProps.groupName.text', panelProps.groupName.text);
118
+ case 'MONPAY_RECOMMEND':
119
119
  groupName = panelProps.groupName.text;
120
120
  break;
121
121
 
@@ -529,9 +529,12 @@ function (_super) {
529
529
 
530
530
  case _constants.quickMenuCode.SAVE:
531
531
  /** 如果保存则重置为mobile,同一移动端截图 #10504010 */
532
- _this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
532
+ _this.onSwitchDevice(_constants.deviceTypeMap.PHONE); // onSave(handleParams);
533
+
533
534
 
534
- onSave(handleParams);
535
+ onSave(__assign(__assign({}, handleParams), {
536
+ device: _constants.deviceTypeMap.PHONE
537
+ }));
535
538
  break;
536
539
 
537
540
  case _constants.quickMenuCode.MODE_PC:
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.formatDateTime = exports.formatDateMinute = exports.formatDate = void 0;
7
7
  exports.formatDayMonth = formatDayMonth;
8
+ exports.formatDayMonthTime = formatDayMonthTime;
8
9
  exports.newDate = void 0;
9
10
 
10
11
  var _moment = _interopRequireDefault(require("moment"));
@@ -66,5 +67,17 @@ function formatDayMonth(date, fmt) {
66
67
  return '';
67
68
  }
68
69
 
70
+ return (0, _moment["default"])(newDate(date)).format(fmt);
71
+ }
72
+
73
+ function formatDayMonthTime(date, fmt) {
74
+ if (fmt === void 0) {
75
+ fmt = 'DD MMM HH:mm';
76
+ }
77
+
78
+ if (!date) {
79
+ return '';
80
+ }
81
+
69
82
  return (0, _moment["default"])(newDate(date)).format(fmt);
70
83
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.97",
4
+ "version": "2.0.98",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",