@fonixtree/magic-design 2.0.95 → 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 (193) hide show
  1. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  2. package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  3. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  4. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  5. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  6. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  7. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  8. package/es/common/Collapse/index.js +10 -8
  9. package/es/common/FontStyles/index.less +3 -1
  10. package/es/common/LinkModal/MiniAppApi/const.js +637 -0
  11. package/es/common/LinkModal/MiniAppApi/index.js +61 -0
  12. package/es/common/LinkModal/index.js +6 -0
  13. package/es/common/MonpayCountDown/index.js +160 -0
  14. package/es/common/RatingText/index.js +105 -0
  15. package/es/common/RatingText/index.less +12 -0
  16. package/es/common/index.js +8 -0
  17. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  18. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  19. package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  20. package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
  21. package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
  22. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  23. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  24. package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  25. package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  26. package/es/composite-comp/common/components/ProductItem/index.js +5 -11
  27. package/es/composite-comp/common/components/ProductItem/index.less +10 -0
  28. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  29. package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  30. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  31. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  32. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  33. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  34. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  35. package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  36. package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  37. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  38. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  39. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  40. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  41. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  42. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  43. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  44. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  45. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  46. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  47. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  48. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  49. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  50. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  51. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  52. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  53. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  54. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  55. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  56. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  57. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  58. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  59. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  60. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  61. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  62. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  63. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  64. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  65. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  66. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  67. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  68. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  69. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  70. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  71. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  72. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  73. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  74. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  75. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  76. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  77. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  78. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  79. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  80. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  81. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  82. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  83. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  84. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  85. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  86. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  87. package/es/constants/component-types.js +13 -3
  88. package/es/constants/index.js +10 -1
  89. package/es/constants/layout.js +43 -4
  90. package/es/core/Designer/ConfigPanel/index.js +1 -1
  91. package/es/core/Designer/index.js +5 -2
  92. package/es/locale/en/en.json +11 -0
  93. package/es/locale/es/es.json +11 -0
  94. package/es/locale/id/id.json +11 -0
  95. package/es/utils/businessUtil.js +12 -0
  96. package/es/utils/dateUtil.js +13 -0
  97. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  98. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  99. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  100. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  101. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  102. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  103. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  104. package/lib/common/Collapse/index.js +10 -8
  105. package/lib/common/FontStyles/index.less +3 -1
  106. package/lib/common/LinkModal/MiniAppApi/const.js +637 -0
  107. package/lib/common/LinkModal/MiniAppApi/index.js +61 -0
  108. package/lib/common/LinkModal/index.js +6 -0
  109. package/lib/common/MonpayCountDown/index.js +160 -0
  110. package/lib/common/RatingText/index.js +105 -0
  111. package/lib/common/RatingText/index.less +12 -0
  112. package/lib/common/index.js +8 -0
  113. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  114. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  115. package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  116. package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
  117. package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
  118. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  119. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  120. package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  121. package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  122. package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
  123. package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
  124. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  125. package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  126. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  127. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  128. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  129. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  130. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  131. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  132. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  133. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  134. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  135. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  136. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  137. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  138. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  139. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  140. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  141. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  142. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  143. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  144. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  145. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  146. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  147. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  148. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  149. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  150. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  151. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  152. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  153. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  154. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  155. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  156. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  157. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  158. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  159. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  160. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  161. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  162. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  163. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  164. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  165. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  166. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  167. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  168. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  169. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  170. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  171. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  172. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  173. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  174. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  175. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  176. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  177. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  178. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  179. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  180. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  181. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  182. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  183. package/lib/constants/component-types.js +13 -3
  184. package/lib/constants/index.js +10 -1
  185. package/lib/constants/layout.js +43 -4
  186. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  187. package/lib/core/Designer/index.js +5 -2
  188. package/lib/locale/en/en.json +11 -0
  189. package/lib/locale/es/es.json +11 -0
  190. package/lib/locale/id/id.json +11 -0
  191. package/lib/utils/businessUtil.js +12 -0
  192. package/lib/utils/dateUtil.js +13 -0
  193. package/package.json +1 -1
@@ -0,0 +1,124 @@
1
+ .m-recommend-pc {
2
+ display: flex;
3
+ flex-direction: column;
4
+ position: relative;
5
+
6
+ .cylon-tabs-nav-operations {
7
+ display: none !important;
8
+ }
9
+
10
+ // ::-webkit-scrollbar {
11
+ // width: 0;
12
+ // height: 0;
13
+ // display: none;
14
+ // }
15
+
16
+ .tab-select-wrap {
17
+ display: flex;
18
+ align-items: center;
19
+ height: 50px;
20
+ background: rgb(255 255 255);
21
+ overflow: auto;
22
+ position: relative;
23
+ margin-bottom: 15px;
24
+
25
+ .tabTitle {
26
+ display: flex;
27
+ align-items: center;
28
+ text-align: center;
29
+ padding: 0 24px;
30
+ width: fit-content;
31
+ height: 100%;
32
+ justify-content: center;
33
+ white-space: nowrap;
34
+ flex-direction: column;
35
+ cursor: pointer;
36
+
37
+ img {
38
+ height: 24px;
39
+ width: 24px;
40
+ margin-bottom: 2px;
41
+ }
42
+ }
43
+
44
+ .active-line {
45
+ position: absolute;
46
+ bottom: 0;
47
+ width: 200px;
48
+ height: 3px;
49
+ background-color: #fff;
50
+ transition: .2s all linear;
51
+ border-radius: 1.5px;
52
+ }
53
+ }
54
+
55
+ .tab-content {
56
+ display: flex;
57
+ flex-direction: row;
58
+ align-items: center;
59
+
60
+ .tab-list {
61
+ width: 100%;
62
+ }
63
+ }
64
+
65
+ .arrow-icon {
66
+ display: block;
67
+ width: 36px;
68
+ height: 36px;
69
+ line-height: 42px;
70
+ text-align: center;
71
+ background: #FFFFFF;
72
+ box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
73
+ border-radius: 100px;
74
+ cursor: pointer;
75
+
76
+ &.left {
77
+ margin-right: 15px;
78
+ }
79
+
80
+ &.right {
81
+ margin-left: 15px;
82
+ }
83
+ }
84
+
85
+ .macyContainer {
86
+ display: flex;
87
+ margin: 0;
88
+ }
89
+
90
+ .scrollContainer {
91
+ display: flex;
92
+ flex-direction: row;
93
+ align-items: center;
94
+ flex: 1;
95
+ margin: 0;
96
+ overflow-x: auto;
97
+ padding-bottom: 15px;
98
+
99
+ &.pl_100 {
100
+ padding-left: 100px;
101
+ }
102
+
103
+ .scrollProductList {
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: flex-start;
107
+
108
+ .productCard {
109
+ margin-right: 20px;
110
+ }
111
+ }
112
+ }
113
+
114
+ .btnSeeAll {
115
+ display: block;
116
+ width: fit-content;
117
+ min-width: 80px;
118
+ flex: none;
119
+
120
+ &.line {
121
+ margin: 0 auto 10px auto;
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _common = require("../../../../../common");
19
+
20
+ var _locale = require("../../../../../locale");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var AComponent =
53
+ /** @class */
54
+ function (_super) {
55
+ __extends(AComponent, _super);
56
+
57
+ function AComponent() {
58
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59
+
60
+ _this.state = {};
61
+
62
+ _this.reRender = function () {
63
+ (0, _coreUtil.renderPreview)();
64
+
65
+ _this.setState({});
66
+ };
67
+
68
+ return _this;
69
+ }
70
+
71
+ AComponent.prototype.render = function () {
72
+ var _this = this;
73
+
74
+ var _a, _b, _c;
75
+
76
+ var panelProps = this.props.panelProps;
77
+ return /*#__PURE__*/_react["default"].createElement("div", {
78
+ className: "monpay_flash_sale_content"
79
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
80
+ title: (0, _locale.i18n)('PRODUCT_SORT_BY')
81
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
82
+ onChange: function onChange(v) {
83
+ panelProps.sortType = v;
84
+
85
+ _this.reRender();
86
+ },
87
+ value: panelProps.sortType
88
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
89
+ value: "1"
90
+ }, (0, _locale.i18n)('SALES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
91
+ value: "3"
92
+ }, (0, _locale.i18n)('PRICE')))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
93
+ headerSize: "middle",
94
+ onRefresh: this.reRender,
95
+ source: [{
96
+ key: '0',
97
+ name: (0, _locale.i18n)('DISCOUNT_LABEL'),
98
+ metaOption: panelProps.discount
99
+ }, {
100
+ key: '1',
101
+ name: (0, _locale.i18n)('ACTIVITY_LABEL'),
102
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
103
+ data: panelProps.label
104
+ }),
105
+ metaOption: panelProps.label
106
+ }, {
107
+ key: '2',
108
+ name: (0, _locale.i18n)('PRODUCT_NAME'),
109
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
110
+ data: panelProps.productName
111
+ }),
112
+ metaOption: panelProps.productName
113
+ }, {
114
+ key: '3',
115
+ name: (0, _locale.i18n)('ACTIVITY_PRICE'),
116
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
117
+ data: panelProps.activityPrice
118
+ }),
119
+ metaOption: panelProps.activityPrice
120
+ }, {
121
+ key: '4',
122
+ name: (0, _locale.i18n)('SALES_PRICE'),
123
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
124
+ data: panelProps.salesPrice
125
+ }),
126
+ metaOption: panelProps.salesPrice
127
+ }, {
128
+ key: '5',
129
+ name: (0, _locale.i18n)('STOCK'),
130
+ metaOption: panelProps.stock
131
+ }],
132
+ type: "switch"
133
+ }), /*#__PURE__*/_react["default"].createElement("div", {
134
+ className: "sales_progress_wrap"
135
+ }, /*#__PURE__*/_react["default"].createElement("div", {
136
+ className: "title"
137
+ }, /*#__PURE__*/_react["default"].createElement("span", {
138
+ className: "label"
139
+ }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
140
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
141
+ onChange: function onChange(v) {
142
+ panelProps.salesProgress.open = v;
143
+
144
+ _this.reRender();
145
+ }
146
+ })), ((_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
147
+ className: "content"
148
+ }, /*#__PURE__*/_react["default"].createElement("p", {
149
+ className: "name"
150
+ }, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
151
+ colorType: "rgba",
152
+ onChange: function onChange(v) {
153
+ panelProps.salesProgress.color = v;
154
+
155
+ _this.reRender();
156
+ },
157
+ value: (_c = panelProps.salesProgress) === null || _c === void 0 ? void 0 : _c.color
158
+ }))));
159
+ };
160
+
161
+ AComponent.defaultProps = {
162
+ panelProps: {
163
+ sortType: '1',
164
+ label: {},
165
+ productName: {},
166
+ activityPrice: {},
167
+ salesPrice: {},
168
+ salesProgress: {
169
+ open: false
170
+ }
171
+ }
172
+ };
173
+ return AComponent;
174
+ }(_react["default"].Component);
175
+
176
+ var _default = AComponent;
177
+ exports["default"] = _default;
@@ -0,0 +1,41 @@
1
+ .monpay_flash_sale_content {
2
+
3
+ .sales_progress_wrap {
4
+ border-top: 1px solid #EDF0F4;
5
+ padding-top: 20px;
6
+ padding-bottom: 10px;
7
+
8
+ .title {
9
+ display: flex;
10
+ justify-content: space-between;
11
+
12
+ .label {
13
+ font-size: 16px !important;
14
+ line-height: 24px !important;
15
+ height: 24px !important;
16
+ font-weight: 600 !important;
17
+ color: hsl(219, 33%, 21%);
18
+ font-family: 'Open Sans';
19
+ font-style: normal;
20
+ }
21
+ }
22
+
23
+ .content {
24
+ position: relative;
25
+ background-color: #F5F6F7;
26
+ border-radius: 6px;
27
+ padding: 12px;
28
+ margin-top: 20px;
29
+
30
+ .name {
31
+ font-size: 14px;
32
+ font-family: 'Open Sans';
33
+ font-weight: 600;
34
+ color: #232F46;
35
+ margin-bottom: 10px;
36
+ }
37
+
38
+ }
39
+
40
+ }
41
+ }
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _coreUtil = require("../../../../../utils/coreUtil");
15
+
16
+ var _common = require("../../../../../common");
17
+
18
+ var _locale = require("../../../../../locale");
19
+
20
+ require("./index.less");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var AComponent =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(AComponent, _super);
54
+
55
+ function AComponent() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {};
59
+
60
+ _this.reRender = function () {
61
+ (0, _coreUtil.renderPreview)();
62
+
63
+ _this.setState({});
64
+ };
65
+
66
+ return _this;
67
+ }
68
+
69
+ AComponent.prototype.render = function () {
70
+ var _this = this;
71
+
72
+ var _a, _b, _c;
73
+
74
+ var panelProps = this.props.panelProps;
75
+
76
+ var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
77
+ title: ""
78
+ }, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
79
+ onChange: function onChange(icon) {
80
+ panelProps.icon.url = icon;
81
+
82
+ _this.reRender();
83
+ },
84
+ value: panelProps.icon.url
85
+ }));
86
+
87
+ var countDownSetting = /*#__PURE__*/_react["default"].createElement("div", {
88
+ className: "count_down_set_wrap"
89
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
90
+ headerSize: "middle",
91
+ onRefresh: function onRefresh() {
92
+ return _this.reRender();
93
+ },
94
+ showActiveColor: true,
95
+ source: [{
96
+ key: 'number1',
97
+ name: (0, _locale.i18n)('NUMBER'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
99
+ data: (_a = panelProps.countdown) === null || _a === void 0 ? void 0 : _a.number
100
+ }),
101
+ metaOption: (_b = panelProps.countdown) === null || _b === void 0 ? void 0 : _b.number
102
+ }],
103
+ type: "switch"
104
+ }), /*#__PURE__*/_react["default"].createElement(_common.Field, {
105
+ style: {
106
+ position: 'relative'
107
+ },
108
+ title: (0, _locale.i18n)('BACKGROUND')
109
+ }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
110
+ colorType: "rgba",
111
+ onChange: function onChange(v) {
112
+ panelProps.countdown.backgroundColor = v;
113
+
114
+ _this.reRender();
115
+ },
116
+ value: (_c = panelProps.countdown) === null || _c === void 0 ? void 0 : _c.backgroundColor
117
+ })));
118
+
119
+ return /*#__PURE__*/_react["default"].createElement("div", {
120
+ className: "monpay_flash_sale_title"
121
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
122
+ headerSize: "middle",
123
+ onRefresh: this.reRender,
124
+ source: [{
125
+ key: '1',
126
+ name: (0, _locale.i18n)('ICON'),
127
+ value: iconSetting,
128
+ metaOption: panelProps.icon
129
+ }, {
130
+ key: '2',
131
+ name: (0, _locale.i18n)('HEADLINE'),
132
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
133
+ data: panelProps.headline
134
+ }),
135
+ metaOption: panelProps.headline
136
+ }, {
137
+ key: '3',
138
+ name: (0, _locale.i18n)('COUNTDOWN'),
139
+ value: countDownSetting,
140
+ metaOption: panelProps.countdown
141
+ }, {
142
+ key: '4',
143
+ name: (0, _locale.i18n)('BUTTON'),
144
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
145
+ data: panelProps.button
146
+ }),
147
+ metaOption: panelProps.button
148
+ }, {
149
+ key: '5',
150
+ name: (0, _locale.i18n)('SESSION_TIME'),
151
+ metaOption: panelProps.sessionTime
152
+ }],
153
+ type: "switch"
154
+ }));
155
+ };
156
+
157
+ AComponent.defaultProps = {
158
+ panelProps: {
159
+ icon: {
160
+ open: true,
161
+ url: ''
162
+ },
163
+ headline: {},
164
+ button: {}
165
+ }
166
+ };
167
+ return AComponent;
168
+ }(_react["default"].Component);
169
+
170
+ var _default = AComponent;
171
+ exports["default"] = _default;
@@ -0,0 +1,7 @@
1
+ .monpay_flash_sale_title {
2
+ .count_down_set_wrap {
3
+ background-color: #F5F6F7;
4
+ border-radius: 6px;
5
+ padding: 0 12px 1px 12px;
6
+ }
7
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = FlashDealConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _FlashDealConfigTitle = _interopRequireDefault(require("./FlashDealConfigTitle"));
11
+
12
+ var _FlashDealConfigContent = _interopRequireDefault(require("./FlashDealConfigContent"));
13
+
14
+ var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
15
+
16
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
17
+
18
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
19
+
20
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
21
+
22
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
23
+
24
+ var _locale = require("../../../../locale");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function FlashDealConfig(props) {
29
+ var data = props.data;
30
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
31
+ divider: "bold",
32
+ headerSize: "large",
33
+ source: [{
34
+ key: '1',
35
+ name: (0, _locale.i18n)('TITLE'),
36
+ value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigTitle["default"], {
37
+ panelProps: data.title
38
+ })
39
+ }, {
40
+ key: '2',
41
+ name: (0, _locale.i18n)('CONTENT'),
42
+ value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigContent["default"], {
43
+ panelProps: data.content
44
+ })
45
+ }, {
46
+ key: '3',
47
+ name: (0, _locale.i18n)('SPACING'),
48
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
49
+ configCompSpace: true,
50
+ data: data.spacing
51
+ })
52
+ }, {
53
+ key: '4',
54
+ name: (0, _locale.i18n)('CUSTOMIZE'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
56
+ data: data.customize,
57
+ isHideAlign: true,
58
+ layoutSource: [{
59
+ id: 'layout1',
60
+ name: 'layout1',
61
+ image: _layout["default"]
62
+ }]
63
+ })
64
+ }, {
65
+ key: '5',
66
+ name: (0, _locale.i18n)('BACKGROUND'),
67
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
68
+ data: data.background
69
+ })
70
+ }],
71
+ type: "triangle"
72
+ }));
73
+ }