@fonixtree/magic-design 0.0.27 → 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 (135) 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/ImageText/mobile/index.js +3 -2
  11. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  12. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  13. package/es/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  14. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  15. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  16. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  17. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  18. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -5
  19. package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  20. package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  21. package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  22. package/es/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  23. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  24. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  25. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  26. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  27. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  28. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  29. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  30. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  31. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  32. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  33. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  34. package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  35. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  36. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  37. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  38. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +47 -7
  39. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  40. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  41. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  42. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  43. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +4 -2
  44. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  45. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  46. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  47. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  48. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  49. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  50. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  51. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  52. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  53. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  54. package/es/constants/index.js +5 -1
  55. package/es/core/Designer/CompListPanel/index.js +4 -2
  56. package/es/core/Designer/ConfigPanel/index.js +3 -1
  57. package/es/core/Designer/PageCompList/index.js +7 -5
  58. package/es/core/Designer/QuickMenuBar/index.js +10 -3
  59. package/es/core/Designer/QuickMenuBar/index.less +13 -4
  60. package/es/core/Designer/index.js +24 -6
  61. package/es/locale/en/en.json +121 -0
  62. package/es/locale/id/id.json +121 -0
  63. package/es/locale/index.js +40 -0
  64. package/es/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  65. package/es/meta-comp/config-panels/ImageConfig/index.js +8 -6
  66. package/es/meta-comp/config-panels/TextConfig/index.js +14 -12
  67. package/es/mobx/Store.js +7 -0
  68. package/lib/common/ButtonIconLayout/index.js +4 -2
  69. package/lib/common/ImageModal/index.js +5 -3
  70. package/lib/common/ImagePicker/index.js +6 -4
  71. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -10
  72. package/lib/common/LinkModal/ProductDetailPage/index.js +5 -3
  73. package/lib/common/LinkModal/index.js +7 -5
  74. package/lib/common/ProductModal/index.js +26 -24
  75. package/lib/common/ProductSource/index.js +6 -2
  76. package/lib/common/UrlPicker/index.js +3 -1
  77. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
  78. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  79. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  80. package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  81. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  82. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  83. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  84. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  85. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -5
  86. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  87. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  88. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  89. package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  90. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  91. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  92. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  93. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  94. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  95. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  96. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  97. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  98. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  99. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  100. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  101. package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  102. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  103. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  104. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  105. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +47 -7
  106. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  107. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  108. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  109. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  110. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +4 -2
  111. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  112. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  113. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  114. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  115. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  116. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  117. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  118. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  119. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  120. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  121. package/lib/constants/index.js +5 -1
  122. package/lib/core/Designer/CompListPanel/index.js +4 -2
  123. package/lib/core/Designer/ConfigPanel/index.js +3 -1
  124. package/lib/core/Designer/PageCompList/index.js +7 -5
  125. package/lib/core/Designer/QuickMenuBar/index.js +10 -3
  126. package/lib/core/Designer/QuickMenuBar/index.less +13 -4
  127. package/lib/core/Designer/index.js +24 -6
  128. package/lib/locale/en/en.json +121 -0
  129. package/lib/locale/id/id.json +121 -0
  130. package/lib/locale/index.js +40 -0
  131. package/lib/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  132. package/lib/meta-comp/config-panels/ImageConfig/index.js +8 -6
  133. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -12
  134. package/lib/mobx/Store.js +7 -0
  135. package/package.json +3 -2
@@ -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", {
@@ -47,7 +47,7 @@ var __extends = void 0 && (void 0).__extends || function () {
47
47
 
48
48
  var maxWidthAndHeight = {
49
49
  normal1: 60,
50
- normal2: 375,
50
+ normal2: '100%',
51
51
  normal3: 107,
52
52
  outsideM: 60,
53
53
  centerM: 60
@@ -151,7 +151,8 @@ function (_super) {
151
151
  className: "card-image",
152
152
  data: source.image,
153
153
  limitWidthHeight: true,
154
- maxHeight: 110,
154
+ maxHeight: 60,
155
+ maxWidth: 60,
155
156
  scale: 0.5
156
157
  })), source.text.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
157
158
  className: "card-text",
@@ -19,6 +19,8 @@ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
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 _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); }
@@ -112,7 +114,7 @@ function (_super) {
112
114
  icon: "icon-add",
113
115
  onClick: this.onAddClick,
114
116
  type: "primary"
115
- }, "Add Banner")));
117
+ }, (0, _locale.i18n)('ADD_BANNER'))));
116
118
  };
117
119
 
118
120
  AComponent.defaultProps = {
@@ -15,6 +15,8 @@ var _coreUtil = require("../../../../../utils/coreUtil");
15
15
 
16
16
  var _InputNumber = _interopRequireDefault(require("../../../../../common/InputNumber"));
17
17
 
18
+ var _locale = require("../../../../../locale");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
21
 
20
22
  var __extends = void 0 && (void 0).__extends || function () {
@@ -78,7 +80,7 @@ function (_super) {
78
80
  var setting = this.props.setting;
79
81
 
80
82
  var autoplaySetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
81
- title: "How long between slides (secs)"
83
+ title: (0, _locale.i18n)('HOW_LONG_BETWEEN_SLIDES_(SECS)')
82
84
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
83
85
  maxVal: 60,
84
86
  minVal: 1,
@@ -94,7 +96,7 @@ function (_super) {
94
96
  }));
95
97
 
96
98
  var navigationSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
97
- title: "Navigation arrow"
99
+ title: (0, _locale.i18n)('NAVIGATION_ARROW')
98
100
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
99
101
  needColor: true,
100
102
  onChange: function onChange(value) {
@@ -109,7 +111,7 @@ function (_super) {
109
111
  color: setting.navigation.color
110
112
  }
111
113
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
112
- title: "Selected arrow"
114
+ title: (0, _locale.i18n)('SELECTED_ARROW')
113
115
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
114
116
  needColor: true,
115
117
  onChange: function onChange(value) {
@@ -126,7 +128,7 @@ function (_super) {
126
128
  })));
127
129
 
128
130
  var dotsSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
129
- title: "Slide button"
131
+ title: (0, _locale.i18n)('SLIDE_BUTTON')
130
132
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
131
133
  needColor: true,
132
134
  onChange: function onChange(value) {
@@ -141,7 +143,7 @@ function (_super) {
141
143
  color: setting.dots.color
142
144
  }
143
145
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
144
- title: "Selected button"
146
+ title: (0, _locale.i18n)('SELECTED_BUTTON')
145
147
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
146
148
  needColor: true,
147
149
  onChange: function onChange(value) {
@@ -161,7 +163,7 @@ function (_super) {
161
163
  className: "banner_setting"
162
164
  }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
163
165
  layout: "horizontal",
164
- title: "Banner Height"
166
+ title: (0, _locale.i18n)('BANNER_HEIGHT')
165
167
  }, /*#__PURE__*/_react["default"].createElement(_InputNumber["default"], {
166
168
  max: 1000,
167
169
  onChange: function onChange(v) {
@@ -174,19 +176,19 @@ function (_super) {
174
176
  onRefresh: this.reRender,
175
177
  source: [{
176
178
  key: '1',
177
- name: 'Autoplays',
179
+ name: (0, _locale.i18n)('AUTOPLAYS'),
178
180
  value: autoplaySetting,
179
181
  metaOption: setting.autoplay,
180
182
  toggleType: 'switch'
181
183
  }, {
182
184
  key: '2',
183
- name: 'Show navigation arrow',
185
+ name: (0, _locale.i18n)('SHOW_NAVIGATION_ARROW'),
184
186
  value: navigationSetting,
185
187
  metaOption: setting.navigation,
186
188
  toggleType: 'switch'
187
189
  }, {
188
190
  key: '3',
189
- name: 'Show slide button',
191
+ name: (0, _locale.i18n)('SHOW_SLIDE_BUTTON'),
190
192
  value: dotsSetting,
191
193
  metaOption: setting.dots,
192
194
  toggleType: 'switch'