@fonixtree/magic-design 2.0.123 → 2.0.126

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 (73) hide show
  1. package/es/assets/fonts/Inter-Bold.ttf +0 -0
  2. package/es/assets/fonts/Inter-Regular.ttf +0 -0
  3. package/es/assets/fonts/Inter-SemiBold.ttf +0 -0
  4. package/es/assets/less/font.less +22 -1
  5. package/es/assets/less/menu.less +5 -2
  6. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  7. package/es/composite-comp/common/components/MonpayProductItem/index.js +8 -34
  8. package/es/composite-comp/common/components/MonpayProductItem/index.less +17 -12
  9. package/es/composite-comp/common/components/ProductItem/index.js +2 -2
  10. package/es/composite-comp/common/config-panels/InputField/index.js +4 -6
  11. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +3 -1
  12. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +1 -1
  13. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +5 -0
  14. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +38 -25
  15. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +5 -1
  16. package/es/composite-comp/dito/components/SearchBar/pc/index.js +27 -14
  17. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +3 -1
  18. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +20 -0
  19. package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +0 -1
  20. package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +10 -12
  21. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +6 -6
  22. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +1 -3
  23. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +22 -24
  24. package/es/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +5 -9
  25. package/es/composite-comp/monpay/components/MonpaySignBoard/mobile/index.less +1 -1
  26. package/es/constants/index.js +1 -1
  27. package/es/core/Designer/QuickMenuBar/index.js +2 -3
  28. package/es/core/Renderer/index.js +2 -1
  29. package/es/locale/en/en.json +2 -0
  30. package/es/locale/es/es.json +2 -0
  31. package/es/locale/id/id.json +2 -0
  32. package/es/locale/index.js +2 -1
  33. package/es/meta-comp/config-panels/ButtonConfig/index.js +3 -1
  34. package/es/meta-comp/config-panels/TextConfig/index.js +7 -2
  35. package/es/meta-comp/config-panels/TextConfig/index.less +2 -0
  36. package/es/utils/currencyUtil.js +9 -1
  37. package/lib/assets/fonts/Inter-Bold.ttf +0 -0
  38. package/lib/assets/fonts/Inter-Regular.ttf +0 -0
  39. package/lib/assets/fonts/Inter-SemiBold.ttf +0 -0
  40. package/lib/assets/less/font.less +22 -1
  41. package/lib/assets/less/menu.less +5 -2
  42. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  43. package/lib/composite-comp/common/components/MonpayProductItem/index.js +8 -34
  44. package/lib/composite-comp/common/components/MonpayProductItem/index.less +17 -12
  45. package/lib/composite-comp/common/components/ProductItem/index.js +2 -2
  46. package/lib/composite-comp/common/config-panels/InputField/index.js +4 -6
  47. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +3 -1
  48. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +1 -1
  49. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +5 -0
  50. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +38 -25
  51. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +5 -1
  52. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +27 -14
  53. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +3 -1
  54. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +20 -0
  55. package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +0 -1
  56. package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +10 -12
  57. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +6 -6
  58. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +1 -3
  59. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +22 -24
  60. package/lib/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +5 -9
  61. package/lib/composite-comp/monpay/components/MonpaySignBoard/mobile/index.less +1 -1
  62. package/lib/constants/index.js +1 -1
  63. package/lib/core/Designer/QuickMenuBar/index.js +2 -3
  64. package/lib/core/Renderer/index.js +2 -1
  65. package/lib/locale/en/en.json +2 -0
  66. package/lib/locale/es/es.json +2 -0
  67. package/lib/locale/id/id.json +2 -0
  68. package/lib/locale/index.js +2 -1
  69. package/lib/meta-comp/config-panels/ButtonConfig/index.js +3 -1
  70. package/lib/meta-comp/config-panels/TextConfig/index.js +7 -2
  71. package/lib/meta-comp/config-panels/TextConfig/index.less +2 -0
  72. package/lib/utils/currencyUtil.js +9 -1
  73. package/package.json +1 -1
@@ -235,25 +235,27 @@ var defaultData = [{
235
235
  url: _card["default"]
236
236
  },
237
237
  offerName: 'Product Name',
238
- salesPrice: 18000000,
239
- specialPrice: 18000000,
240
- marketPrice: 19000000,
238
+ salesPrice: 10000,
239
+ specialPrice: 8000,
240
+ marketPrice: 20000,
241
241
  salePercent: 500,
242
242
  coupons: [{
243
243
  couponId: '1',
244
- discountMethod: 'DISC'
244
+ discountMethod: 'DISC',
245
+ discountAmount: 30
245
246
  }, {
246
247
  couponId: '2',
247
- discountMethod: 'AMT'
248
+ discountMethod: 'AMT',
249
+ discountAmount: 10000
248
250
  }]
249
251
  }, {
250
252
  imgUrlContent: {
251
253
  url: _card["default"]
252
254
  },
253
255
  offerName: 'Product Name',
254
- salesPrice: 18000000,
255
- specialPrice: 18000000,
256
- marketPrice: 19000000,
256
+ salesPrice: 10000,
257
+ specialPrice: null,
258
+ marketPrice: 20000,
257
259
  salePercent: 500
258
260
  }, {
259
261
  imgUrlContent: {
@@ -263,6 +265,7 @@ var defaultData = [{
263
265
  salesPrice: 18000000,
264
266
  specialPrice: 18000000,
265
267
  marketPrice: 19000000,
268
+ discountPercent: 10,
266
269
  salePercent: 500
267
270
  }, {
268
271
  imgUrlContent: {
@@ -607,8 +610,8 @@ function (_super) {
607
610
  waitForImages: false,
608
611
  useOwnImageLoader: false,
609
612
  margin: {
610
- x: 12,
611
- y: 12
613
+ x: 16,
614
+ y: 16
612
615
  },
613
616
  columns: columns
614
617
  });
@@ -645,18 +648,7 @@ function (_super) {
645
648
  return _this;
646
649
  }
647
650
 
648
- RecommendMobile.prototype.componentDidMount = function () {// const { panelProps } = this.props;
649
- // const source = [];
650
- // panelProps.groupSource.map(m => {
651
- // const show = m.image.open || m.groupName.open;
652
- // if (show) source.push(m);
653
- // });
654
- // this.setState({ groupSource: source }, () => {
655
- // this.initTab(0);
656
- // this.getProductList(0);
657
- // });
658
- // this.listenWidth();
659
- };
651
+ RecommendMobile.prototype.componentDidMount = function () {};
660
652
 
661
653
  RecommendMobile.prototype.componentWillReceiveProps = function (nextProps) {
662
654
  var _this = this;
@@ -805,6 +797,8 @@ function (_super) {
805
797
  key: "macyContainer",
806
798
  className: "macyContainer macyContainer_" + panelProps.id
807
799
  }, _products.map(function (item) {
800
+ var _a;
801
+
808
802
  return /*#__PURE__*/_react["default"].createElement(_MonpayProductItem["default"], {
809
803
  key: item.productId,
810
804
  data: item,
@@ -824,7 +818,8 @@ function (_super) {
824
818
  (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
825
819
  },
826
820
  panelProps: panelProps.content,
827
- showProgress: false
821
+ showProgress: false,
822
+ intelligentType: (_a = groupSource[tabIndex]) === null || _a === void 0 ? void 0 : _a.intelligentType
828
823
  });
829
824
  })), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
830
825
  className: "btnSeeAll",
@@ -837,6 +832,8 @@ function (_super) {
837
832
  }, /*#__PURE__*/_react["default"].createElement("div", {
838
833
  className: "scrollProductList"
839
834
  }, _products.map(function (item) {
835
+ var _a;
836
+
840
837
  return /*#__PURE__*/_react["default"].createElement(_MonpayProductItem["default"], {
841
838
  key: "scroll_" + item.productId,
842
839
  data: item,
@@ -851,7 +848,8 @@ function (_super) {
851
848
  (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
852
849
  },
853
850
  panelProps: panelProps.content,
854
- showProgress: false
851
+ showProgress: false,
852
+ intelligentType: (_a = groupSource[tabIndex]) === null || _a === void 0 ? void 0 : _a.intelligentType
855
853
  });
856
854
  })), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
857
855
  className: "btnSeeAll",
@@ -320,13 +320,14 @@ function (_super) {
320
320
  }
321
321
  };
322
322
 
323
- _this.onShare = function () {};
323
+ _this.onShare = function () {
324
+ if (window.magicDesign.socialShare) window.magicDesign.socialShare('store', window.magicDesign.storeId);
325
+ };
324
326
 
325
327
  return _this;
326
328
  }
327
329
 
328
330
  SignBoardMobile.prototype.componentDidMount = function () {
329
- window.magicDesign.storeId = 2;
330
331
  this.getStoreInfo();
331
332
  };
332
333
 
@@ -350,7 +351,7 @@ function (_super) {
350
351
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
351
352
  onClick: _commonUtil.navigateBack,
352
353
  color: "#000",
353
- size: (0, _commonUtil.convertToRem)(20),
354
+ size: (0, _commonUtil.convertToRem)(16),
354
355
  type: "icon-outlined-left"
355
356
  }), ((_b = (_a = data.content) === null || _a === void 0 ? void 0 : _a.box) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
356
357
  className: "input-wrap",
@@ -373,12 +374,7 @@ function (_super) {
373
374
  size: (0, _commonUtil.convertToRem)(20),
374
375
  fontWeight: 600,
375
376
  type: "icon-search2"
376
- }))), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
377
- color: "#000",
378
- size: (0, _commonUtil.convertToRem)(20),
379
- type: "icon-share-points",
380
- onClick: this.onShare
381
- })), /*#__PURE__*/_react["default"].createElement("div", {
377
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
382
378
  className: "store-info-wrap"
383
379
  }, /*#__PURE__*/_react["default"].createElement("img", {
384
380
  className: "store-logo",
@@ -1,7 +1,6 @@
1
1
  .m-sign-board-wrap .header-wrap {
2
2
  display: flex;
3
3
  align-items: center;
4
- justify-content: space-between;
5
4
  background-color: #fff;
6
5
  padding: 0.16rem 0.4rem;
7
6
  height: 1.14rem;
@@ -14,6 +13,7 @@
14
13
  display: flex;
15
14
  justify-content: space-between;
16
15
  align-items: center;
16
+ margin-left: 0.4rem;
17
17
  }
18
18
  .m-sign-board-wrap .header-wrap .input-wrap input {
19
19
  width: 3.7rem;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.pageStateMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.baseUrlMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
7
7
  var STORAGE_KEY = {
8
- LOCALE: 'magicLocale',
8
+ LOCALE: 'ZSMART_LOCALE',
9
9
  MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
10
10
  MAGIC_RENDER_PAGEDATA: 'MAGIC_RENDER_PAGEDATA',
11
11
  FONIXTREE_AI_IMG_HIS: 'fonixtree_ai_img_his'
@@ -113,7 +113,7 @@ function (_super) {
113
113
  };
114
114
 
115
115
  _this.isShowPublish = function () {
116
- return (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
116
+ return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
117
117
  }; // 审核失败和未审核状态展示 To Review 按钮
118
118
 
119
119
 
@@ -130,11 +130,10 @@ function (_super) {
130
130
  _this.isShowSetTemplate = function () {
131
131
  return _constants.pageStateMap.DRAFT === _this.props.pageState;
132
132
  }; // 拒绝审核 和 草稿状态展示保存按钮
133
- // isShowSave = () => [pageStateMap.REJECTED, pageStateMap.DRAFT].includes(this.props.pageState)
134
133
 
135
134
 
136
135
  _this.isShowSave = function () {
137
- return true;
136
+ return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState) || localStorage.getItem('DEV_MODE') === 'Y';
138
137
  };
139
138
 
140
139
  return _this;
@@ -157,7 +157,8 @@ var Renderer = function Renderer(props) {
157
157
  }
158
158
 
159
159
  return {
160
- overflow: 'auto'
160
+ overflowY: 'auto',
161
+ overflowX: 'hidden'
161
162
  };
162
163
  };
163
164
 
@@ -1,4 +1,6 @@
1
1
  {
2
+ "SEARCH_BAR_PLACEHOLDER": "Search Bar Placeholder",
3
+ "INTER": "Inter",
2
4
  "STORE_SERVICES": "Store services",
3
5
  "SHIP_ON_TIME": "Ship on time",
4
6
  "COMMODITY_QUALITY": "Commodity Quality",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "SEARCH_BAR_PLACEHOLDER": "Search Bar Placeholder",
3
+ "INTER": "Inter",
2
4
  "STORE_SERVICES": "Store services",
3
5
  "SHIP_ON_TIME": "Ship on time",
4
6
  "COMMODITY_QUALITY": "Commodity Quality",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "SEARCH_BAR_PLACEHOLDER": "Search Bar Placeholder",
3
+ "INTER": "Inter",
2
4
  "STORE_SERVICES": "Store services",
3
5
  "SHIP_ON_TIME": "Ship on time",
4
6
  "COMMODITY_QUALITY": "Commodity Quality",
@@ -27,7 +27,8 @@ function i18n(key, args) {
27
27
  args = {};
28
28
  }
29
29
 
30
- var tempString = localeMap[_mobx.store.locale || 'en'][key];
30
+ var locale = localeMap[_mobx.store.locale || 'en'] || _en["default"];
31
+ var tempString = locale[key];
31
32
 
32
33
  if (tempString) {
33
34
  var str_1 = tempString;
@@ -195,7 +195,9 @@ function (_super) {
195
195
  value: "Montserrat"
196
196
  }, (0, _locale.i18n)('MONTSERRAT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
197
197
  value: "Open Sans"
198
- }, (0, _locale.i18n)('OPEN_SANS')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
198
+ }, (0, _locale.i18n)('OPEN_SANS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
199
+ value: "Inter"
200
+ }, (0, _locale.i18n)('INTER')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
199
201
  title: (0, _locale.i18n)('FONT_WEIGHT')
200
202
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
201
203
  onChange: function onChange(v) {
@@ -232,7 +232,9 @@ function (_super) {
232
232
  value: "Montserrat"
233
233
  }, (0, _locale.i18n)('MONTSERRAT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
234
234
  value: "Open Sans"
235
- }, (0, _locale.i18n)('OPEN_SANS')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
235
+ }, (0, _locale.i18n)('OPEN_SANS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
236
+ value: "Inter"
237
+ }, (0, _locale.i18n)('INTER')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
236
238
  title: (0, _locale.i18n)('FONT_WEIGHT')
237
239
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
238
240
  onChange: function onChange(v) {
@@ -360,7 +362,10 @@ function (_super) {
360
362
 
361
363
  return /*#__PURE__*/_react["default"].createElement("div", {
362
364
  ref: this.containerRef,
363
- className: "m-text-config"
365
+ className: "m-text-config",
366
+ style: {
367
+ paddingTop: 0
368
+ }
364
369
  }, /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
365
370
  // headerSize="small"
366
371
  , {
@@ -2,7 +2,9 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding: 0 12px;
5
+ padding-top: 12px;
5
6
  background-color: #F5F6F7;
7
+ border-radius: 6px;
6
8
 
7
9
  .edit-text-btn {
8
10
  margin: 8px auto;
@@ -102,9 +102,17 @@ var formatCurrency = function formatCurrency(num) {
102
102
  exports.formatCurrency = formatCurrency;
103
103
 
104
104
  var formatCurrencyWithSymbol = function formatCurrencyWithSymbol(num) {
105
+ var _a;
106
+
105
107
  var ret = formatCurrency(num);
108
+
109
+ if ((_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.isUnitBehind) {
110
+ return ret + " " + getPricePrefix();
111
+ }
112
+
106
113
  return getPricePrefix() + " " + ret;
107
- };
114
+ }; // Nuri项目使用
115
+
108
116
 
109
117
  exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
110
118
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.123",
4
+ "version": "2.0.126",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",