@fonixtree/magic-design 0.1.93 → 0.2.2

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 (247) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +7 -35
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +4 -8
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/less/button.less +0 -5
  9. package/es/common/AffiliateProductModal/index.js +1 -1
  10. package/es/common/AffiliateProductModal/index.less +1 -1
  11. package/es/common/Button/index.less +1 -0
  12. package/es/common/CountDown/index.js +11 -20
  13. package/es/common/GroupList/index.js +2 -7
  14. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  15. package/es/common/LinkModal/CouponTable/index.js +1 -1
  16. package/es/common/LinkModal/CustomTable/index.js +0 -1
  17. package/es/common/LinkModal/FilteredProductModal/index.js +106 -82
  18. package/es/common/LinkModal/FilteredProductModal/index.less +0 -1
  19. package/es/common/LinkModal/ProductDetailPage/index.js +60 -115
  20. package/es/common/LinkModal/ProductDetailPage/index.less +1 -6
  21. package/es/common/LinkModal/SelectVideoModal/index.js +2 -3
  22. package/es/common/LinkModal/index.js +5 -20
  23. package/es/common/MagicLink/index.js +2 -2
  24. package/es/common/ProductModal/index.js +124 -181
  25. package/es/common/ProductModal/index.less +1 -7
  26. package/es/common/ProductSource/index.js +21 -81
  27. package/es/common/UrlPicker/index.js +10 -51
  28. package/es/common/Video/index.js +86 -142
  29. package/es/common/VideoUpload/index.js +1 -1
  30. package/es/common/index.js +0 -8
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  32. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  33. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  34. package/es/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  35. package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  36. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  37. package/{lib/composite-comp/nuri → es/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  38. package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  39. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  40. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  41. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  42. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  43. package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  44. package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  45. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  46. package/{lib/composite-comp/nuri → es/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  47. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  48. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  49. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  50. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  51. package/es/constants/component-types.js +6 -24
  52. package/es/constants/index.js +5 -52
  53. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  54. package/es/core/Designer/ChatRobot/index.js +4 -49
  55. package/es/core/Designer/ConfigPanel/index.js +0 -6
  56. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  57. package/es/core/Designer/PageCompList/index.js +1 -1
  58. package/es/core/Designer/QuickMenuBar/index.js +2 -6
  59. package/es/core/Designer/ToolBarModal/index.js +1 -5
  60. package/es/core/Designer/index.js +1 -12
  61. package/es/core/Renderer/index.js +2 -6
  62. package/es/decorator/compositeDecorator.js +6 -10
  63. package/es/decorator/index.js +1 -4
  64. package/es/decorator/metaDecorator.js +3 -7
  65. package/es/locale/en/en.json +2 -20
  66. package/es/locale/es/es.json +2 -20
  67. package/es/locale/id/id.json +2 -20
  68. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  69. package/es/mobx/index.js +3 -9
  70. package/es/utils/androidUtil.js +2 -17
  71. package/es/utils/businessUtil.js +5 -54
  72. package/es/utils/commonUtil.js +13 -151
  73. package/es/utils/coreUtil.js +24 -89
  74. package/lib/assets/fonts/magic-box-iconfont.css +7 -35
  75. package/lib/assets/fonts/magic-box-iconfont.css.bak +4 -8
  76. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  77. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  78. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  79. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  80. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  81. package/lib/assets/less/button.less +0 -5
  82. package/lib/common/AffiliateProductModal/index.js +1 -1
  83. package/lib/common/AffiliateProductModal/index.less +1 -1
  84. package/lib/common/Button/index.less +1 -0
  85. package/lib/common/CountDown/index.js +11 -20
  86. package/lib/common/GroupList/index.js +2 -7
  87. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  88. package/lib/common/LinkModal/CouponTable/index.js +1 -1
  89. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  90. package/lib/common/LinkModal/FilteredProductModal/index.js +106 -82
  91. package/lib/common/LinkModal/FilteredProductModal/index.less +0 -1
  92. package/lib/common/LinkModal/ProductDetailPage/index.js +60 -115
  93. package/lib/common/LinkModal/ProductDetailPage/index.less +1 -6
  94. package/lib/common/LinkModal/SelectVideoModal/index.js +2 -3
  95. package/lib/common/LinkModal/index.js +5 -20
  96. package/lib/common/MagicLink/index.js +2 -2
  97. package/lib/common/ProductModal/index.js +124 -181
  98. package/lib/common/ProductModal/index.less +1 -7
  99. package/lib/common/ProductSource/index.js +21 -81
  100. package/lib/common/UrlPicker/index.js +10 -51
  101. package/lib/common/Video/index.js +86 -142
  102. package/lib/common/VideoUpload/index.js +1 -1
  103. package/lib/common/index.js +0 -8
  104. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  105. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  106. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  107. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  108. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  109. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  110. package/{es/composite-comp/nuri → lib/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  111. package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  112. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  113. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  114. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  115. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  116. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  117. package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  118. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  119. package/{es/composite-comp/nuri → lib/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  120. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  121. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  122. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  123. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  124. package/lib/constants/component-types.js +6 -24
  125. package/lib/constants/index.js +5 -52
  126. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  127. package/lib/core/Designer/ChatRobot/index.js +4 -49
  128. package/lib/core/Designer/ConfigPanel/index.js +0 -6
  129. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  130. package/lib/core/Designer/PageCompList/index.js +1 -1
  131. package/lib/core/Designer/QuickMenuBar/index.js +2 -6
  132. package/lib/core/Designer/ToolBarModal/index.js +1 -5
  133. package/lib/core/Designer/index.js +1 -12
  134. package/lib/core/Renderer/index.js +2 -6
  135. package/lib/decorator/compositeDecorator.js +6 -10
  136. package/lib/decorator/index.js +1 -4
  137. package/lib/decorator/metaDecorator.js +3 -7
  138. package/lib/locale/en/en.json +2 -20
  139. package/lib/locale/es/es.json +2 -20
  140. package/lib/locale/id/id.json +2 -20
  141. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  142. package/lib/mobx/index.js +3 -9
  143. package/lib/utils/androidUtil.js +2 -17
  144. package/lib/utils/businessUtil.js +5 -54
  145. package/lib/utils/commonUtil.js +13 -151
  146. package/lib/utils/coreUtil.js +24 -89
  147. package/package.json +1 -2
  148. package/es/common/CropperModal/index.js +0 -126
  149. package/es/common/CropperModal/index.less +0 -29
  150. package/es/common/LinkModal/AffiliatePlatform/index.js +0 -326
  151. package/es/common/LinkModal/AffiliateStore/index.js +0 -332
  152. package/es/common/ProductModal/SortableImageList/index.js +0 -118
  153. package/es/common/ProductModal/SortableImageList/index.less +0 -3
  154. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  155. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  156. package/es/common/Video/QualityComponent/index.js +0 -169
  157. package/es/common/Video/QualityComponent/index.less +0 -78
  158. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  159. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  160. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  161. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  162. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  163. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  164. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  165. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  166. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  167. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  168. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  169. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  170. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  171. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  172. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  173. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  174. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  175. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  176. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  177. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  178. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  179. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  180. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  181. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  182. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  183. package/es/mobx/UserState.js +0 -144
  184. package/lib/common/CropperModal/index.js +0 -126
  185. package/lib/common/CropperModal/index.less +0 -29
  186. package/lib/common/LinkModal/AffiliatePlatform/index.js +0 -326
  187. package/lib/common/LinkModal/AffiliateStore/index.js +0 -332
  188. package/lib/common/ProductModal/SortableImageList/index.js +0 -118
  189. package/lib/common/ProductModal/SortableImageList/index.less +0 -3
  190. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  191. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  192. package/lib/common/Video/QualityComponent/index.js +0 -169
  193. package/lib/common/Video/QualityComponent/index.less +0 -78
  194. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  195. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  196. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  197. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  198. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  199. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  200. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  201. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  202. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  203. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  204. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  205. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  206. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  207. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  208. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  209. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  210. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  211. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  212. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  213. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  214. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  215. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  216. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  217. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  218. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  219. package/lib/mobx/UserState.js +0 -144
  220. /package/es/common/Video/{RateComponent → components}/index.js +0 -0
  221. /package/es/common/Video/{RateComponent → components}/index.less +0 -0
  222. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  223. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  224. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  225. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  226. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  227. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  228. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  229. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  230. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  231. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  232. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  233. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
  234. /package/lib/common/Video/{RateComponent → components}/index.js +0 -0
  235. /package/lib/common/Video/{RateComponent → components}/index.less +0 -0
  236. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  237. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  238. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  239. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  240. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  241. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  242. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  243. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  244. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  245. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  246. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  247. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
@@ -1,131 +0,0 @@
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 _mobxReact = require("mobx-react");
11
-
12
- var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
-
14
- var _coreUtil = require("../../../../../utils/coreUtil");
15
-
16
- var _Button = _interopRequireDefault(require("../../../../../common/Button"));
17
-
18
- var _defaultJSON = require("../../../components/PersonalInformation/defaultJSON");
19
-
20
- var _locale = require("../../../../../locale");
21
-
22
- var _decorator = require("../../../../../decorator");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
27
-
28
- var __extends = void 0 && (void 0).__extends || function () {
29
- var _extendStatics = function extendStatics(d, b) {
30
- _extendStatics = Object.setPrototypeOf || {
31
- __proto__: []
32
- } instanceof Array && function (d, b) {
33
- d.__proto__ = b;
34
- } || function (d, b) {
35
- for (var p in b) {
36
- if (b.hasOwnProperty(p)) d[p] = b[p];
37
- }
38
- };
39
-
40
- return _extendStatics(d, b);
41
- };
42
-
43
- return function (d, b) {
44
- _extendStatics(d, b);
45
-
46
- function __() {
47
- this.constructor = d;
48
- }
49
-
50
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
- };
52
- }();
53
-
54
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
- var c = arguments.length,
56
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
- d;
58
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
59
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
- }
61
- return c > 3 && r && Object.defineProperty(target, key, r), r;
62
- };
63
-
64
- var notice = 'Please add some Item';
65
-
66
- var ConfigGroup =
67
- /** @class */
68
- function (_super) {
69
- __extends(ConfigGroup, _super);
70
-
71
- function ConfigGroup() {
72
- var _this = _super !== null && _super.apply(this, arguments) || this;
73
-
74
- _this.state = {};
75
-
76
- _this.onClickItem = function (node) {
77
- _this.props.store.setState({
78
- clickedGroup: node.id
79
- });
80
- };
81
-
82
- _this.onAddClick = function () {
83
- var json = (0, _defaultJSON.PersonalInfoGroupSourceJSON)();
84
-
85
- _this.props.source.push(json);
86
-
87
- _this.setState({});
88
-
89
- (0, _coreUtil.renderPreview)();
90
- };
91
-
92
- _this.reRender = function () {
93
- _this.setState({});
94
- };
95
-
96
- return _this;
97
- }
98
-
99
- ConfigGroup.prototype.render = function () {
100
- var _a = this.props,
101
- source = _a.source,
102
- maxNum = _a.maxNum;
103
- return /*#__PURE__*/_react["default"].createElement("div", {
104
- className: "banner_group"
105
- }, /*#__PURE__*/_react["default"].createElement("div", {
106
- className: "node_list"
107
- }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
108
- className: "notice"
109
- }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
110
- onClickItem: this.onClickItem,
111
- reRender: this.reRender,
112
- source: source
113
- })), /*#__PURE__*/_react["default"].createElement("div", {
114
- className: "btn_wrap"
115
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
116
- disabled: source.length >= maxNum,
117
- icon: "icon-add",
118
- onClick: this.onAddClick,
119
- type: "primary"
120
- }, (0, _locale.i18n)('ADD'))));
121
- };
122
-
123
- ConfigGroup.defaultProps = {
124
- source: []
125
- };
126
- ConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ConfigGroup);
127
- return ConfigGroup;
128
- }(_react["default"].Component);
129
-
130
- var _default = ConfigGroup;
131
- exports["default"] = _default;
@@ -1,118 +0,0 @@
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 _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
11
-
12
- var _locale = require("../../../../locale");
13
-
14
- var _common = require("../../../../common");
15
-
16
- var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
-
18
- var _coreUtil = require("../../../../utils/coreUtil");
19
-
20
- var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
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 PersonalInformationConfig =
51
- /** @class */
52
- function (_super) {
53
- __extends(PersonalInformationConfig, _super);
54
-
55
- function PersonalInformationConfig() {
56
- var _this = _super !== null && _super.apply(this, arguments) || this;
57
-
58
- _this.getContentPanel = function () {
59
- var data = _this.props.data;
60
- var source = [{
61
- key: 1,
62
- name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
63
- metaOption: data.login
64
- }];
65
- return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
66
- headerSize: "middle",
67
- onRefresh: function onRefresh() {
68
- return (0, _coreUtil.renderPreview)();
69
- },
70
- source: source,
71
- type: "switch"
72
- });
73
- };
74
-
75
- return _this;
76
- }
77
-
78
- PersonalInformationConfig.prototype.render = function () {
79
- var data = this.props.data;
80
- return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
81
- divider: "bold",
82
- headerSize: "large",
83
- source: [{
84
- key: 'PersonalInformation1',
85
- name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
86
- value: this.getContentPanel()
87
- }, {
88
- key: 'PersonalInformation2',
89
- name: (0, _locale.i18n)('Content'),
90
- value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
91
- maxNum: 4,
92
- source: data.groupSource
93
- }),
94
- metaOption: data.groupSource
95
- }, {
96
- key: 'PersonalInformation3',
97
- name: (0, _locale.i18n)('SPACING'),
98
- value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
99
- data: data.spacing
100
- })
101
- }, {
102
- key: 'PersonalInformation4',
103
- name: (0, _locale.i18n)('BACKGROUND'),
104
- value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
105
- data: data.background
106
- })
107
- }]
108
- }));
109
- };
110
-
111
- PersonalInformationConfig.defaultProps = {
112
- data: {}
113
- };
114
- return PersonalInformationConfig;
115
- }(_react["default"].Component);
116
-
117
- var _default = PersonalInformationConfig;
118
- exports["default"] = _default;
@@ -1,121 +0,0 @@
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 _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
13
-
14
- var _common = require("../../../../common");
15
-
16
- var _coreUtil = require("../../../../utils/coreUtil");
17
-
18
- var _locale = require("../../../../locale");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- var __extends = void 0 && (void 0).__extends || function () {
23
- var _extendStatics = function extendStatics(d, b) {
24
- _extendStatics = Object.setPrototypeOf || {
25
- __proto__: []
26
- } instanceof Array && function (d, b) {
27
- d.__proto__ = b;
28
- } || function (d, b) {
29
- for (var p in b) {
30
- if (b.hasOwnProperty(p)) d[p] = b[p];
31
- }
32
- };
33
-
34
- return _extendStatics(d, b);
35
- };
36
-
37
- return function (d, b) {
38
- _extendStatics(d, b);
39
-
40
- function __() {
41
- this.constructor = d;
42
- }
43
-
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- };
46
- }();
47
-
48
- // import './index.less';
49
- var CommonFunctionsSecondConfig =
50
- /** @class */
51
- function (_super) {
52
- __extends(CommonFunctionsSecondConfig, _super);
53
-
54
- function CommonFunctionsSecondConfig() {
55
- var _this = _super !== null && _super.apply(this, arguments) || this;
56
-
57
- _this.state = {};
58
-
59
- _this.selfRender = function () {
60
- (0, _coreUtil.renderPreview)();
61
-
62
- _this.setState({});
63
- };
64
-
65
- _this.getContentPanel = function (data) {
66
- var source = [{
67
- key: 'secondContent1',
68
- name: (0, _locale.i18n)('Icon'),
69
- value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
70
- data: data.image
71
- }),
72
- metaOption: data.image
73
- }, {
74
- key: 'secondContent2',
75
- name: /*#__PURE__*/_react["default"].createElement("span", {
76
- dangerouslySetInnerHTML: {
77
- __html: data.title.text
78
- }
79
- }),
80
- value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
81
- data: data.title
82
- }),
83
- metaOption: data.title
84
- }];
85
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
86
- headerSize: "middle",
87
- onRefresh: function onRefresh() {
88
- return (0, _coreUtil.renderPreview)();
89
- },
90
- showActiveColor: true,
91
- source: source,
92
- type: "switch"
93
- }));
94
- };
95
-
96
- return _this;
97
- }
98
-
99
- CommonFunctionsSecondConfig.prototype.render = function () {
100
- var panelProps = this.props.panelProps;
101
- return /*#__PURE__*/_react["default"].createElement("div", {
102
- className: "common_functions_second_conf_wrap"
103
- }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
104
- divider: "bold",
105
- headerSize: "large",
106
- source: [{
107
- key: 'secondConfig1',
108
- name: (0, _locale.i18n)('CONTENT'),
109
- value: this.getContentPanel(panelProps, true)
110
- }]
111
- }));
112
- };
113
-
114
- CommonFunctionsSecondConfig.defaultProps = {
115
- panelProps: {}
116
- };
117
- return CommonFunctionsSecondConfig;
118
- }(_react["default"].Component);
119
-
120
- var _default = CommonFunctionsSecondConfig;
121
- exports["default"] = _default;
@@ -1,148 +0,0 @@
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 _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
13
-
14
- var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
15
-
16
- var _common = require("../../../../common");
17
-
18
- var _coreUtil = require("../../../../utils/coreUtil");
19
-
20
- var _index = require("../../../../constants/index");
21
-
22
- var _locale = require("../../../../locale");
23
-
24
- require("./index.less");
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
-
28
- var __extends = void 0 && (void 0).__extends || function () {
29
- var _extendStatics = function extendStatics(d, b) {
30
- _extendStatics = Object.setPrototypeOf || {
31
- __proto__: []
32
- } instanceof Array && function (d, b) {
33
- d.__proto__ = b;
34
- } || function (d, b) {
35
- for (var p in b) {
36
- if (b.hasOwnProperty(p)) d[p] = b[p];
37
- }
38
- };
39
-
40
- return _extendStatics(d, b);
41
- };
42
-
43
- return function (d, b) {
44
- _extendStatics(d, b);
45
-
46
- function __() {
47
- this.constructor = d;
48
- }
49
-
50
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
- };
52
- }();
53
-
54
- var OrdersSecondConfig =
55
- /** @class */
56
- function (_super) {
57
- __extends(OrdersSecondConfig, _super);
58
-
59
- function OrdersSecondConfig() {
60
- var _this = _super !== null && _super.apply(this, arguments) || this;
61
-
62
- _this.state = {};
63
-
64
- _this.selfRender = function () {
65
- (0, _coreUtil.renderPreview)();
66
-
67
- _this.setState({});
68
- };
69
-
70
- _this.getContentPanel = function (data) {
71
- var source = [{
72
- key: 'secondContent1',
73
- name: (0, _locale.i18n)('Icon'),
74
- value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
75
- data: data.image
76
- }),
77
- metaOption: data.image
78
- }, {
79
- key: 'secondContent2',
80
- name: /*#__PURE__*/_react["default"].createElement("span", {
81
- dangerouslySetInnerHTML: {
82
- __html: data.title.text
83
- }
84
- }),
85
- value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
86
- data: data.title
87
- }),
88
- metaOption: data.title
89
- }];
90
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
91
- headerSize: "middle",
92
- onRefresh: function onRefresh() {
93
- return (0, _coreUtil.renderPreview)();
94
- },
95
- showActiveColor: true,
96
- source: source,
97
- type: "switch"
98
- }), /*#__PURE__*/_react["default"].createElement("div", {
99
- className: "sourceOfAmount"
100
- }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
101
- title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
102
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
103
- onChange: function onChange(v) {
104
- data.sourceType = v;
105
- data.title.text = v;
106
-
107
- _this.selfRender();
108
- },
109
- value: data.sourceType
110
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
111
- value: _index.orderStatusType.PAY
112
- }, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
113
- value: _index.orderStatusType.SHIP
114
- }, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
115
- value: _index.orderStatusType.RECEIVE
116
- }, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
117
- value: _index.orderStatusType.DONE
118
- }, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
119
- value: _index.orderStatusType.CANCELLED
120
- }, (0, _locale.i18n)('CANCELLED'))))));
121
- };
122
-
123
- return _this;
124
- }
125
-
126
- OrdersSecondConfig.prototype.render = function () {
127
- var panelProps = this.props.panelProps;
128
- return /*#__PURE__*/_react["default"].createElement("div", {
129
- className: "orders_second_conf_wrap"
130
- }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
131
- divider: "bold",
132
- headerSize: "large",
133
- source: [{
134
- key: 'secondConfig1',
135
- name: (0, _locale.i18n)('CONTENT'),
136
- value: this.getContentPanel(panelProps, true)
137
- }]
138
- }));
139
- };
140
-
141
- OrdersSecondConfig.defaultProps = {
142
- panelProps: {}
143
- };
144
- return OrdersSecondConfig;
145
- }(_react["default"].Component);
146
-
147
- var _default = OrdersSecondConfig;
148
- exports["default"] = _default;
@@ -1,9 +0,0 @@
1
- .orders_second_conf_wrap {
2
-
3
- .sourceOfAmount {
4
- border-top: 1px dashed #D2D9E5;
5
- border-bottom: 1px dashed #D2D9E5;
6
- padding-top: 20px;
7
- padding-bottom: 10px;
8
- }
9
- }
@@ -1,143 +0,0 @@
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 _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
13
-
14
- var _common = require("../../../../common");
15
-
16
- var _coreUtil = require("../../../../utils/coreUtil");
17
-
18
- var _locale = require("../../../../locale");
19
-
20
- var _index = require("../../../../constants/index");
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 PersonalInfoSecondConfig =
53
- /** @class */
54
- function (_super) {
55
- __extends(PersonalInfoSecondConfig, _super);
56
-
57
- function PersonalInfoSecondConfig() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
-
60
- _this.state = {};
61
-
62
- _this.selfRender = function () {
63
- (0, _coreUtil.renderPreview)();
64
-
65
- _this.setState({});
66
- };
67
-
68
- _this.getContentPanel = function (data) {
69
- var source = [{
70
- key: 'secondContent1',
71
- name: /*#__PURE__*/_react["default"].createElement("span", {
72
- dangerouslySetInnerHTML: {
73
- __html: data.title.text
74
- }
75
- }),
76
- value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
77
- data: data.title
78
- }),
79
- metaOption: data.title
80
- }, {
81
- key: 'secondContent2',
82
- name: (0, _locale.i18n)('Number'),
83
- value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
84
- data: data.number
85
- }),
86
- metaOption: data.number
87
- }];
88
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
89
- headerSize: "middle",
90
- onRefresh: function onRefresh() {
91
- return (0, _coreUtil.renderPreview)();
92
- },
93
- showActiveColor: true,
94
- source: source,
95
- type: "switch"
96
- }), /*#__PURE__*/_react["default"].createElement("div", {
97
- className: "sourceOfAmount"
98
- }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
99
- title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
100
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
101
- onChange: function onChange(v) {
102
- data.sourceType = v;
103
-
104
- _this.selfRender();
105
- },
106
- value: data.sourceType
107
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
108
- value: _index.personalInfoType.WISHLIST
109
- }, (0, _locale.i18n)('WISHLIST')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
110
- value: _index.personalInfoType.STORES
111
- }, (0, _locale.i18n)('STORES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
112
- value: _index.personalInfoType.VOUCHERS
113
- }, (0, _locale.i18n)('VOUCHERS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
114
- value: _index.personalInfoType.VIEWED
115
- }, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
116
- };
117
-
118
- return _this;
119
- }
120
-
121
- PersonalInfoSecondConfig.prototype.render = function () {
122
- var panelProps = this.props.panelProps;
123
- return /*#__PURE__*/_react["default"].createElement("div", {
124
- className: "personal_info_second_conf_wrap"
125
- }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
126
- divider: "bold",
127
- headerSize: "large",
128
- source: [{
129
- key: 'secondConfig1',
130
- name: (0, _locale.i18n)('CONTENT'),
131
- value: this.getContentPanel(panelProps, true)
132
- }]
133
- }));
134
- };
135
-
136
- PersonalInfoSecondConfig.defaultProps = {
137
- panelProps: {}
138
- };
139
- return PersonalInfoSecondConfig;
140
- }(_react["default"].Component);
141
-
142
- var _default = PersonalInfoSecondConfig;
143
- exports["default"] = _default;
@@ -1,9 +0,0 @@
1
- .personal_info_second_conf_wrap {
2
-
3
- .sourceOfAmount {
4
- border-top: 1px dashed #D2D9E5;
5
- border-bottom: 1px dashed #D2D9E5;
6
- padding-top: 20px;
7
- padding-bottom: 10px;
8
- }
9
- }