@fonixtree/magic-design 0.0.28 → 0.0.29

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 (148) hide show
  1. package/es/common/ButtonIconLayout/index.js +4 -2
  2. package/es/common/ImageModal/index.js +5 -3
  3. package/es/common/ImagePicker/index.js +6 -4
  4. package/es/common/LinkModal/FilteredProductModal/index.js +12 -10
  5. package/es/common/LinkModal/ProductDetailPage/index.js +5 -3
  6. package/es/common/LinkModal/index.js +7 -5
  7. package/es/common/ProductModal/index.js +26 -24
  8. package/es/common/ProductSource/index.js +6 -2
  9. package/es/common/UrlPicker/index.js +3 -1
  10. package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
  11. package/es/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
  12. package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -24
  13. package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -8
  14. package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
  15. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  16. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  17. package/es/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  18. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  19. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  20. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  21. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  22. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
  23. package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  24. package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  25. package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  26. package/es/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  27. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  28. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  29. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  30. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  31. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  32. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  33. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  34. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  35. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  36. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  37. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  38. package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  39. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  40. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  41. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  42. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
  43. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  44. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  45. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  46. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  47. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  48. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
  49. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  50. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  51. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  52. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  53. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  54. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  55. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  56. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  57. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  58. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  59. package/es/constants/index.js +1 -1
  60. package/es/core/Designer/CompListPanel/index.js +4 -2
  61. package/es/core/Designer/ConfigPanel/index.js +3 -1
  62. package/es/core/Designer/PageCompList/index.js +4 -4
  63. package/es/core/Designer/QuickMenuBar/index.js +17 -61
  64. package/es/core/Designer/index.js +10 -14
  65. package/es/locale/en/en.json +121 -0
  66. package/es/locale/id/id.json +121 -0
  67. package/es/locale/index.js +12 -5
  68. package/es/meta-comp/components/Image/index.js +0 -5
  69. package/es/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  70. package/es/meta-comp/config-panels/ImageConfig/index.js +8 -6
  71. package/es/meta-comp/config-panels/TextConfig/index.js +14 -12
  72. package/es/mobx/Store.js +2 -2
  73. package/lib/common/ButtonIconLayout/index.js +4 -2
  74. package/lib/common/ImageModal/index.js +5 -3
  75. package/lib/common/ImagePicker/index.js +6 -4
  76. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -10
  77. package/lib/common/LinkModal/ProductDetailPage/index.js +5 -3
  78. package/lib/common/LinkModal/index.js +7 -5
  79. package/lib/common/ProductModal/index.js +26 -24
  80. package/lib/common/ProductSource/index.js +6 -2
  81. package/lib/common/UrlPicker/index.js +3 -1
  82. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
  83. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
  84. package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -24
  85. package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -8
  86. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
  87. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  88. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  89. package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  90. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  91. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  92. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  93. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  94. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
  95. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  96. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  97. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  98. package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  99. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  100. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  101. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  102. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  103. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  104. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  105. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  106. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  107. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  108. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  109. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  110. package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  111. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  112. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  113. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  114. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
  115. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  116. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  117. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  118. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  119. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  120. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
  121. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  122. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  123. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  124. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  125. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  126. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  127. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  128. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  129. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  130. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  131. package/lib/constants/index.js +1 -1
  132. package/lib/core/Designer/CompListPanel/index.js +4 -2
  133. package/lib/core/Designer/ConfigPanel/index.js +3 -1
  134. package/lib/core/Designer/PageCompList/index.js +4 -4
  135. package/lib/core/Designer/QuickMenuBar/index.js +17 -61
  136. package/lib/core/Designer/index.js +10 -14
  137. package/lib/locale/en/en.json +121 -0
  138. package/lib/locale/id/id.json +121 -0
  139. package/lib/locale/index.js +12 -5
  140. package/lib/meta-comp/components/Image/index.js +0 -5
  141. package/lib/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  142. package/lib/meta-comp/config-panels/ImageConfig/index.js +8 -6
  143. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -12
  144. package/lib/mobx/Store.js +2 -2
  145. package/package.json +3 -80
  146. package/README.md +0 -311
  147. package/es/assets/fonts/.DS_Store +0 -0
  148. package/lib/assets/fonts/.DS_Store +0 -0
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
+ var _locale = require("../../locale");
13
+
12
14
  require("./index.less");
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -81,13 +83,13 @@ function (_super) {
81
83
  }
82
84
  }, (item.value === 'right' || item.value === 'bottom') && /*#__PURE__*/_react["default"].createElement("span", {
83
85
  className: "text el"
84
- }, "Text"), icon && /*#__PURE__*/_react["default"].createElement("img", {
86
+ }, (0, _locale.i18n)('TEXT')), icon && /*#__PURE__*/_react["default"].createElement("img", {
85
87
  alt: "",
86
88
  className: "el",
87
89
  src: icon
88
90
  }), (item.value === 'left' || item.value === 'top') && /*#__PURE__*/_react["default"].createElement("span", {
89
91
  className: "text"
90
- }, "Text"));
92
+ }, (0, _locale.i18n)('TEXT')));
91
93
  }));
92
94
  };
93
95
 
@@ -31,6 +31,8 @@ var _commonUtil = require("../../utils/commonUtil");
31
31
 
32
32
  var _dataTreeUtils = _interopRequireDefault(require("../../utils/dataTreeUtils"));
33
33
 
34
+ var _locale = require("../../locale");
35
+
34
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
37
 
36
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -664,7 +666,7 @@ function ImageModal(_a) {
664
666
 
665
667
  return /*#__PURE__*/_react["default"].createElement(_CommonModal["default"], {
666
668
  modalOpts: {
667
- title: 'Image',
669
+ title: (0, _locale.i18n)('IMAGE'),
668
670
  width: modalSize.LARGE
669
671
  },
670
672
  onCancel: onCancel,
@@ -693,7 +695,7 @@ function ImageModal(_a) {
693
695
  onSearch: function onSearch(value) {
694
696
  return handleSearch(value);
695
697
  },
696
- placeholder: "Please Search"
698
+ placeholder: (0, _locale.i18n)('PLEASE_SEARCH')
697
699
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Row, null, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
698
700
  span: 6
699
701
  }, /*#__PURE__*/_react["default"].createElement(_antd.Card, {
@@ -706,7 +708,7 @@ function ImageModal(_a) {
706
708
  className: "search_container"
707
709
  }, /*#__PURE__*/_react["default"].createElement(Search, {
708
710
  onChange: onChange,
709
- placeholder: "Keywrods"
711
+ placeholder: (0, _locale.i18n)('KEYWRODS')
710
712
  })), /*#__PURE__*/_react["default"].createElement(_antd.Tree, treeOpts, renderTreeNodes(treeData)))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
711
713
  span: 18
712
714
  }, /*#__PURE__*/_react["default"].createElement(_antd.Card, {
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  require("./index.less");
11
11
 
12
+ var _locale = require("../../locale");
13
+
12
14
  var _ImageModal = _interopRequireDefault(require("../ImageModal"));
13
15
 
14
16
  var _Iconfont = _interopRequireDefault(require("../Iconfont"));
@@ -113,7 +115,7 @@ function (_super) {
113
115
  onClick: function onClick() {},
114
116
  size: 25,
115
117
  type: "icon-setting"
116
- }), "Edit"), /*#__PURE__*/_react["default"].createElement("span", {
118
+ }), (0, _locale.i18n)('EDIT')), /*#__PURE__*/_react["default"].createElement("span", {
117
119
  className: "line"
118
120
  }), /*#__PURE__*/_react["default"].createElement("div", {
119
121
  className: "btn-del",
@@ -125,11 +127,11 @@ function (_super) {
125
127
  onClick: function onClick() {},
126
128
  size: 25,
127
129
  type: "icon-delete1"
128
- }), "Delete"))) : /*#__PURE__*/_react["default"].createElement("div", {
130
+ }), (0, _locale.i18n)('DELETE')))) : /*#__PURE__*/_react["default"].createElement("div", {
129
131
  className: "no-img"
130
132
  }, /*#__PURE__*/_react["default"].createElement("div", {
131
133
  className: "hint-txt"
132
- }, "Looks like you don't have any images in your gallery. Choose images to feature on this page."), /*#__PURE__*/_react["default"].createElement("div", {
134
+ }, (0, _locale.i18n)('LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_')), /*#__PURE__*/_react["default"].createElement("div", {
133
135
  className: "pick-btn",
134
136
  onClick: function onClick() {
135
137
  _this.setState({
@@ -140,7 +142,7 @@ function (_super) {
140
142
  color: "#FFFFFF",
141
143
  size: 18,
142
144
  type: "icon-add"
143
- }), /*#__PURE__*/_react["default"].createElement("p", null, "Add Image"))), visible && /*#__PURE__*/_react["default"].createElement(_ImageModal["default"], {
145
+ }), /*#__PURE__*/_react["default"].createElement("p", null, (0, _locale.i18n)('ADD_IMAGE')))), visible && /*#__PURE__*/_react["default"].createElement(_ImageModal["default"], {
144
146
  onCancel: function onCancel() {
145
147
  _this.setState({
146
148
  visible: false
@@ -19,6 +19,8 @@ var _businessUtil = require("../../../utils/businessUtil");
19
19
 
20
20
  require("./index.less");
21
21
 
22
+ var _locale = require("../../../locale");
23
+
22
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
25
 
24
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -483,7 +485,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
483
485
  className: "proModalWrap"
484
486
  }, /*#__PURE__*/_react["default"].createElement("div", {
485
487
  className: "info"
486
- }, "The product quantity will be automatically updated with the items that meet the category conditions."), /*#__PURE__*/_react["default"].createElement("div", {
488
+ }, (0, _locale.i18n)('THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS')), /*#__PURE__*/_react["default"].createElement("div", {
487
489
  className: "filteredProductModalContent"
488
490
  }, /*#__PURE__*/_react["default"].createElement("div", {
489
491
  className: "leftCot"
@@ -499,7 +501,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
499
501
  },
500
502
  multiple: true,
501
503
  onChange: onChange,
502
- placeholder: "Please select",
504
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
503
505
  size: "small",
504
506
  treeData: treeData,
505
507
  treeDefaultExpandAll: true,
@@ -510,7 +512,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
510
512
  defaultValue: [],
511
513
  mode: "multiple",
512
514
  onChange: handleBrandChange,
513
- placeholder: "Please select",
515
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
514
516
  size: "small",
515
517
  value: brandId.map(function (v) {
516
518
  return v.value;
@@ -525,7 +527,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
525
527
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
526
528
  defaultValue: [],
527
529
  onChange: handleLabelChange,
528
- placeholder: "Please select",
530
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
529
531
  size: "small",
530
532
  value: labelId.value
531
533
  }, labelData && labelData.length > 0 && labelData.map(function (v) {
@@ -573,7 +575,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
573
575
  onChange: function onChange(e) {
574
576
  setProductName(e.currentTarget.value);
575
577
  },
576
- placeholder: "Please Input",
578
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
577
579
  size: "small",
578
580
  value: productName
579
581
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
@@ -586,16 +588,16 @@ var FilteredProductModal = function FilteredProductModal(props) {
586
588
  key: node.key
587
589
  });
588
590
  },
589
- placeholder: "Please select",
591
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
590
592
  size: "small",
591
593
  value: promotions.value
592
594
  }, /*#__PURE__*/_react["default"].createElement(Option, {
593
595
  key: "2",
594
596
  value: "Flash Sale"
595
- }, "Flash Sale"), /*#__PURE__*/_react["default"].createElement(Option, {
597
+ }, (0, _locale.i18n)('FLASH_SALE')), /*#__PURE__*/_react["default"].createElement(Option, {
596
598
  key: "4",
597
599
  value: "Group By"
598
- }, "Group By"))), /*#__PURE__*/_react["default"].createElement("div", {
600
+ }, (0, _locale.i18n)('GROUP_BY')))), /*#__PURE__*/_react["default"].createElement("div", {
599
601
  className: "buttonStyle"
600
602
  }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
601
603
  onClick: function onClick() {
@@ -615,12 +617,12 @@ var FilteredProductModal = function FilteredProductModal(props) {
615
617
  marginRight: 8
616
618
  },
617
619
  type: "primary"
618
- }, "Search"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
620
+ }, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
619
621
  onClick: function onClick() {
620
622
  reset();
621
623
  },
622
624
  size: "small"
623
- }, "Cancel")))), /*#__PURE__*/_react["default"].createElement("div", {
625
+ }, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement("div", {
624
626
  className: "rightCot"
625
627
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
626
628
  columns: columns,
@@ -11,6 +11,8 @@ var _antd = require("antd");
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  var _commonUtil = require("../../../utils/commonUtil");
15
17
 
16
18
  require("./index.less");
@@ -370,18 +372,18 @@ var ProductDetailPage = function ProductDetailPage(props) {
370
372
  marginRight: 10
371
373
  },
372
374
  type: "primary"
373
- }, "Query"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
375
+ }, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
374
376
  onClick: function onClick() {
375
377
  reset();
376
378
  },
377
379
  size: "small"
378
- }, "Cancel")), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
380
+ }, (0, _locale.i18n)('CANCEL'))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
379
381
  span: 9
380
382
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
381
383
  label: "Brand",
382
384
  name: "brandId"
383
385
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
384
- placeholder: "Please select",
386
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
385
387
  size: "small"
386
388
  }, brandData && brandData.length > 0 && brandData.map(function (v) {
387
389
  return /*#__PURE__*/_react["default"].createElement(Option, {
@@ -23,6 +23,8 @@ var _CatgTable = _interopRequireDefault(require("./CatgTable"));
23
23
 
24
24
  var _CustomTable = _interopRequireDefault(require("./CustomTable"));
25
25
 
26
+ var _locale = require("../../locale");
27
+
26
28
  require("./index.less");
27
29
 
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -65,13 +67,13 @@ var LinkModal = function LinkModal(props) {
65
67
  };
66
68
 
67
69
  return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
68
- cancelText: "Cancel",
70
+ cancelText: (0, _locale.i18n)('CANCEL'),
69
71
  draggable: false,
70
72
  footer: null,
71
73
  okText: "OK",
72
74
  onCancel: onClose,
73
75
  onOk: onConfirm,
74
- title: "URL Setup",
76
+ title: (0, _locale.i18n)('URL_SETUP'),
75
77
  visible: visible,
76
78
  width: "1000",
77
79
  wrapClassName: "linkModal"
@@ -81,7 +83,7 @@ var LinkModal = function LinkModal(props) {
81
83
  className: "linkType"
82
84
  }, /*#__PURE__*/_react["default"].createElement("div", {
83
85
  className: "typeTitle"
84
- }, "Link Type:"), list.map(function (item, index) {
86
+ }, (0, _locale.i18n)('LINK_TYPE'), ":"), list.map(function (item, index) {
85
87
  return /*#__PURE__*/_react["default"].createElement("div", {
86
88
  key: index,
87
89
  className: "typeItem " + (selected === item ? 'selected' : ''),
@@ -125,11 +127,11 @@ var LinkModal = function LinkModal(props) {
125
127
  onClick: function onClick() {
126
128
  return onClose && onClose();
127
129
  }
128
- }, "Cancel"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
130
+ }, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
129
131
  className: "btn-confirm",
130
132
  onClick: onModalSava,
131
133
  type: "primary"
132
- }, "OK")))));
134
+ }, (0, _locale.i18n)('OK'))))));
133
135
  };
134
136
 
135
137
  var _default = LinkModal;
@@ -19,6 +19,8 @@ var _currencyUtil = require("../../utils/currencyUtil");
19
19
 
20
20
  require("./index.less");
21
21
 
22
+ var _locale = require("../../locale");
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -460,7 +462,7 @@ var ProductModal = function ProductModal(props) {
460
462
  };
461
463
 
462
464
  var columns = [{
463
- title: 'Image',
465
+ title: (0, _locale.i18n)('IMAGE'),
464
466
  dataIndex: 'productImageUrl',
465
467
  render: function render(productImageUrl) {
466
468
  return /*#__PURE__*/_react["default"].createElement("span", {
@@ -472,22 +474,22 @@ var ProductModal = function ProductModal(props) {
472
474
  },
473
475
  width: 60
474
476
  }, {
475
- title: 'Product Name',
477
+ title: (0, _locale.i18n)('PRODUCT_NAME'),
476
478
  dataIndex: 'productName',
477
479
  width: 120,
478
480
  ellipsis: true
479
481
  }, {
480
- title: 'Product Code',
482
+ title: (0, _locale.i18n)('PRODUCT_CODE'),
481
483
  dataIndex: 'productCode',
482
484
  width: 120,
483
485
  ellipsis: true
484
486
  }, _defineProperty({
485
- title: 'SKU',
487
+ title: (0, _locale.i18n)('SKU'),
486
488
  dataIndex: 'attrValues',
487
489
  ellipsis: true,
488
490
  width: 100
489
491
  }, "ellipsis", true), {
490
- title: 'Price',
492
+ title: (0, _locale.i18n)('PRICE'),
491
493
  dataIndex: 'salesPrice',
492
494
  width: 100,
493
495
  ellipsis: true,
@@ -495,12 +497,12 @@ var ProductModal = function ProductModal(props) {
495
497
  return /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrencyWithSymbol)(record.specialPriceProd ? record.specialPriceProd.specialPrice : record.salesPrice));
496
498
  }
497
499
  }, {
498
- title: 'Brand',
500
+ title: (0, _locale.i18n)('BRAND'),
499
501
  dataIndex: 'brandName',
500
502
  width: 100,
501
503
  ellipsis: true
502
504
  }, {
503
- title: 'Store',
505
+ title: (0, _locale.i18n)('STORE'),
504
506
  dataIndex: 'storeName',
505
507
  width: 100,
506
508
  ellipsis: true
@@ -517,13 +519,13 @@ var ProductModal = function ProductModal(props) {
517
519
  };
518
520
 
519
521
  return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
520
- cancelText: "Cancel",
522
+ cancelText: (0, _locale.i18n)('CANCEL'),
521
523
  draggable: false,
522
524
  footer: null,
523
525
  okText: "OK",
524
526
  onCancel: closeModal,
525
527
  onOk: handleModalSave,
526
- title: "Product Select",
528
+ title: (0, _locale.i18n)('PRODUCT_SELECT'),
527
529
  visible: visible,
528
530
  width: "1200px",
529
531
  wrapClassName: "modalCot"
@@ -542,7 +544,7 @@ var ProductModal = function ProductModal(props) {
542
544
  onChange: function onChange(value, option) {
543
545
  setSelCatgsList(value);
544
546
  },
545
- placeholder: "Please select",
547
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
546
548
  size: "small",
547
549
  value: selCatgsList
548
550
  }, catgsList.map(function (item) {
@@ -562,7 +564,7 @@ var ProductModal = function ProductModal(props) {
562
564
  onChange: function onChange(value, option) {
563
565
  setSelBrandsList(value);
564
566
  },
565
- placeholder: "Please select",
567
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
566
568
  size: "small",
567
569
  value: selBrandsList
568
570
  }, brandsList.map(function (item, index) {
@@ -578,7 +580,7 @@ var ProductModal = function ProductModal(props) {
578
580
  console.log(v, o, 33);
579
581
  setSelLabelData(o);
580
582
  },
581
- placeholder: "Please Select",
583
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
582
584
  size: "small",
583
585
  value: selLabelData.children
584
586
  }, labelData && labelData.length > 0 && labelData.map(function (v) {
@@ -594,7 +596,7 @@ var ProductModal = function ProductModal(props) {
594
596
  onChange: function onChange(e) {
595
597
  setMinPrice(e.target.value);
596
598
  },
597
- placeholder: "Minimum",
599
+ placeholder: (0, _locale.i18n)('MINIMUM'),
598
600
  size: "small",
599
601
  style: {
600
602
  width: '45%'
@@ -606,7 +608,7 @@ var ProductModal = function ProductModal(props) {
606
608
  onChange: function onChange(e) {
607
609
  setMaxPrice(e.target.value);
608
610
  },
609
- placeholder: "Maximum",
611
+ placeholder: (0, _locale.i18n)('MAXIMUM'),
610
612
  size: "small",
611
613
  style: {
612
614
  width: '45%'
@@ -618,7 +620,7 @@ var ProductModal = function ProductModal(props) {
618
620
  onChange: function onChange(e) {
619
621
  setProductName(e.target.value);
620
622
  },
621
- placeholder: "Please Input",
623
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
622
624
  size: "small",
623
625
  value: productName
624
626
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
@@ -628,7 +630,7 @@ var ProductModal = function ProductModal(props) {
628
630
  onChange: function onChange(e) {
629
631
  setProductCode(e.target.value);
630
632
  },
631
- placeholder: "Please Input",
633
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
632
634
  size: "small",
633
635
  value: productCode
634
636
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
@@ -638,21 +640,21 @@ var ProductModal = function ProductModal(props) {
638
640
  onChange: function onChange(value) {
639
641
  setPromotions(value);
640
642
  },
641
- placeholder: "Please select",
643
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
642
644
  size: "small",
643
645
  value: promotions
644
646
  }, props.type !== 'groupBuy' && /*#__PURE__*/_react["default"].createElement(Option, {
645
647
  value: promType.FLASH_SALE
646
- }, "Flash Sale"), /*#__PURE__*/_react["default"].createElement(Option, {
648
+ }, (0, _locale.i18n)('FLASH_SALE')), /*#__PURE__*/_react["default"].createElement(Option, {
647
649
  value: promType.GROUP_BUY
648
- }, "Group Buy"))), /*#__PURE__*/_react["default"].createElement("div", {
650
+ }, (0, _locale.i18n)('GROUP_BUY')))), /*#__PURE__*/_react["default"].createElement("div", {
649
651
  className: "buttonStyle"
650
652
  }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
651
653
  onClick: function onClick() {
652
654
  reset();
653
655
  },
654
656
  size: "small"
655
- }, "Reset"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
657
+ }, (0, _locale.i18n)('RESET')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
656
658
  onClick: function onClick() {
657
659
  setLoading(true);
658
660
  paginationParams.current = 1;
@@ -675,7 +677,7 @@ var ProductModal = function ProductModal(props) {
675
677
  marginRight: 8
676
678
  },
677
679
  type: "primary"
678
- }, "Query")))), /*#__PURE__*/_react["default"].createElement("div", {
680
+ }, (0, _locale.i18n)('QUERY'))))), /*#__PURE__*/_react["default"].createElement("div", {
679
681
  className: "rightCot"
680
682
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
681
683
  columns: columns,
@@ -730,7 +732,7 @@ var ProductModal = function ProductModal(props) {
730
732
  className: "footer"
731
733
  }, /*#__PURE__*/_react["default"].createElement("div", {
732
734
  className: "total"
733
- }, "Selected", ' ', /*#__PURE__*/_react["default"].createElement("span", {
735
+ }, (0, _locale.i18n)('SELECTED'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
734
736
  className: "totalNum"
735
737
  }, selectedList.length, "/", maxSelect)), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
736
738
  onClick: function onClick() {
@@ -741,11 +743,11 @@ var ProductModal = function ProductModal(props) {
741
743
  marginRight: 10
742
744
  },
743
745
  type: "primary"
744
- }, "OK"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
746
+ }, (0, _locale.i18n)('OK')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
745
747
  onClick: function onClick() {
746
748
  return closeModal && closeModal();
747
749
  }
748
- }, "Cancel")))));
750
+ }, (0, _locale.i18n)('CANCEL'))))));
749
751
  };
750
752
 
751
753
  var _default = ProductModal;
@@ -9,6 +9,8 @@ exports["default"] = ProductSource;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _locale = require("../../locale");
13
+
12
14
  var _commonUtil = require("../../utils/commonUtil");
13
15
 
14
16
  var _Button = _interopRequireDefault(require("../Button"));
@@ -236,9 +238,11 @@ function ProductSource(_a) {
236
238
  }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
237
239
  onClick: onSelectProduct,
238
240
  type: "primary"
239
- }, "Select Product"), /*#__PURE__*/_react["default"].createElement("div", {
241
+ }, (0, _locale.i18n)('SELECT_PRODUCT')), /*#__PURE__*/_react["default"].createElement("div", {
240
242
  className: "total"
241
- }, "Total: ", getLength(), " products"), visible && /*#__PURE__*/_react["default"].createElement(_ProductModal["default"], {
243
+ }, (0, _locale.i18n)('TOTAL_PRODUCTS', {
244
+ count: getLength()
245
+ })), visible && /*#__PURE__*/_react["default"].createElement(_ProductModal["default"], {
242
246
  closeModal: function closeModal() {
243
247
  return setVisbile(false);
244
248
  },
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  require("./index.less");
11
11
 
12
+ var _locale = require("../../locale");
13
+
12
14
  var _LinkModal = _interopRequireDefault(require("../LinkModal"));
13
15
 
14
16
  var _Iconfont = _interopRequireDefault(require("../Iconfont"));
@@ -70,7 +72,7 @@ function (_super) {
70
72
  onChange: function onChange(e) {
71
73
  return _onChange(e.target.value);
72
74
  },
73
- placeholder: "Please add a link",
75
+ placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
74
76
  type: "text",
75
77
  value: value
76
78
  }), /*#__PURE__*/_react["default"].createElement("div", {
@@ -73,11 +73,11 @@ var MOBILE_IMG_SIZE = [{
73
73
  w: 282,
74
74
  h: 212
75
75
  }, {
76
- w: 135,
76
+ w: 125,
77
77
  h: 102
78
78
  }, {
79
- w: 86,
80
- h: 65
79
+ w: 82,
80
+ h: 64.5
81
81
  }, {
82
82
  w: 60,
83
83
  h: 45
@@ -168,8 +168,6 @@ function (_super) {
168
168
  };
169
169
  }
170
170
 
171
- var spacing = data.spacing[window.magicDesign.device];
172
- if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
173
171
  var settings = {
174
172
  className: 'slider-wrap',
175
173
  arrows: false,
@@ -201,7 +199,7 @@ function (_super) {
201
199
  key: item.id,
202
200
  className: "img-wrap"
203
201
  }, item.image.open && /*#__PURE__*/_react["default"].createElement("div", {
204
- className: "img"
202
+ className: "image"
205
203
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
206
204
  data: item.image,
207
205
  isBackground: true,
@@ -1,21 +1,23 @@
1
1
  .m-carousel-mobile {
2
2
  display: flex;
3
3
  position: relative;
4
- margin: 0 auto;
4
+
5
+ .carousel-icon-left {
6
+ float: left;
7
+ margin-left: 15px;
8
+ }
9
+
10
+ .carousel-icon-right {
11
+ float: right;
12
+ margin-right: 15px;
13
+ }
5
14
 
6
15
  .slider-wrap {
7
- width: 100%;
16
+ width: calc(100% - 90px);
8
17
  padding: 30px 0;
9
18
  margin: 0 auto;
10
19
 
11
20
  .img-wrap {
12
- .img {
13
- width: fit-content;
14
- height: fit-content;
15
- display: block;
16
- margin: 0 auto;
17
- }
18
-
19
21
  .title {
20
22
  display: flex;
21
23
  justify-content: center;
@@ -56,29 +56,23 @@ var __extends = void 0 && (void 0).__extends || function () {
56
56
  }();
57
57
 
58
58
  var PC_IMG_SIZE = [{
59
- minW: 806,
60
- maxW: 1072,
61
- maxH: 662
59
+ w: 1072,
60
+ h: 662
62
61
  }, {
63
- minW: 390,
64
- maxW: 524,
65
- maxH: 393
62
+ w: 500,
63
+ h: 393
66
64
  }, {
67
- minW: 258,
68
- maxW: 341,
69
- maxH: 256
65
+ w: 330,
66
+ h: 256
70
67
  }, {
71
- minW: 184,
72
- maxW: 251,
73
- maxH: 188
68
+ w: 240,
69
+ h: 188
74
70
  }, {
75
- minW: 142,
76
- maxW: 195,
77
- maxH: 147
71
+ w: 190,
72
+ h: 147
78
73
  }, {
79
- minW: 124,
80
- maxW: 168,
81
- maxH: 126
74
+ w: 121,
75
+ h: 121
82
76
  }];
83
77
 
84
78
  var CarouselPc =
@@ -153,8 +147,6 @@ function (_super) {
153
147
  };
154
148
  }
155
149
 
156
- var spacing = data.spacing[window.magicDesign.device];
157
- if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
158
150
  var settings = {
159
151
  className: 'slider-wrap',
160
152
  arrows: false,
@@ -195,13 +187,12 @@ function (_super) {
195
187
  key: item.id,
196
188
  className: "img-wrap"
197
189
  }, item.image.open && /*#__PURE__*/_react["default"].createElement("div", {
198
- className: "img"
190
+ className: "image"
199
191
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
200
192
  data: item.image,
201
193
  isBackground: true,
202
- maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
203
- maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
204
- minWidth: PC_IMG_SIZE[colNum - 1].minW
194
+ maxHeight: PC_IMG_SIZE[colNum - 1].h,
195
+ maxWidth: PC_IMG_SIZE[colNum - 1].w
205
196
  })), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && !((0, _coreUtil.isPc)() && item.title.pcText === '') && /*#__PURE__*/_react["default"].createElement("div", {
206
197
  className: "title"
207
198
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
@@ -1,7 +1,6 @@
1
1
  .m-carousel-pc {
2
2
  display: flex;
3
3
  position: relative;
4
- margin: 0 auto;
5
4
 
6
5
  .carousel-icon-left {
7
6
  float: left;
@@ -19,13 +18,6 @@
19
18
  margin: 0 auto;
20
19
 
21
20
  .img-wrap {
22
- .img {
23
- width: fit-content;
24
- height: fit-content;
25
- display: block;
26
- margin: 0 auto;
27
- }
28
-
29
21
  .title {
30
22
  display: flex;
31
23
  justify-content: center;