@fonixtree/magic-design 2.0.106 → 2.0.109

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 (93) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/common/LinkModal/AffiliateProductTable/index.js +30 -19
  3. package/es/common/LinkModal/AffiliateStore/index.js +26 -15
  4. package/es/common/LinkModal/BundleCampaign/index.js +31 -20
  5. package/es/common/LinkModal/CatgTable/index.js +14 -7
  6. package/es/common/LinkModal/CouponTable/index.js +14 -7
  7. package/es/common/LinkModal/CustomTable/index.js +15 -7
  8. package/es/common/LinkModal/FilteredProductModal/index.js +44 -29
  9. package/es/common/LinkModal/FunctionTable/index.js +14 -7
  10. package/es/common/LinkModal/MiniAppApi/index.js +12 -4
  11. package/es/common/LinkModal/MiniAppTable/index.js +15 -7
  12. package/es/common/LinkModal/ProductDetailPage/index.js +49 -30
  13. package/es/common/LinkModal/SelectVideoModal/index.js +18 -9
  14. package/es/common/LinkModal/ShareUrl/index.js +11 -3
  15. package/es/common/LinkModal/StoreCatgTable/index.js +11 -3
  16. package/es/common/LinkModal/StoreTable/index.js +26 -15
  17. package/es/common/LinkModal/index.js +56 -24
  18. package/es/common/UrlPicker/index.js +5 -1
  19. package/es/composite-comp/common/components/MonpayProductItem/imgs/coupon-orange.png +0 -0
  20. package/es/composite-comp/common/components/MonpayProductItem/imgs/coupon-red.png +0 -0
  21. package/es/composite-comp/common/components/MonpayProductItem/index.js +33 -2
  22. package/es/composite-comp/common/components/MonpayProductItem/index.less +36 -0
  23. package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
  24. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +1 -0
  25. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +3 -3
  26. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +3 -5
  27. package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +7 -4
  28. package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +2 -1
  29. package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +26 -4
  30. package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +2 -1
  31. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +2 -0
  32. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +4 -2
  33. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +99 -58
  34. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +4 -12
  35. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +1 -1
  36. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -0
  37. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +1 -1
  38. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +7 -6
  39. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +5 -5
  40. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +1 -3
  41. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
  42. package/es/core/SelectUrl/index.js +36 -0
  43. package/es/index.js +24 -0
  44. package/es/locale/en/en.json +1 -1
  45. package/es/locale/id/id.json +1 -1
  46. package/es/meta-comp/config-panels/TextConfig/index.js +1 -0
  47. package/lib/assets/fonts/.DS_Store +0 -0
  48. package/lib/common/LinkModal/AffiliateProductTable/index.js +30 -19
  49. package/lib/common/LinkModal/AffiliateStore/index.js +26 -15
  50. package/lib/common/LinkModal/BundleCampaign/index.js +31 -20
  51. package/lib/common/LinkModal/CatgTable/index.js +14 -7
  52. package/lib/common/LinkModal/CouponTable/index.js +14 -7
  53. package/lib/common/LinkModal/CustomTable/index.js +15 -7
  54. package/lib/common/LinkModal/FilteredProductModal/index.js +44 -29
  55. package/lib/common/LinkModal/FunctionTable/index.js +14 -7
  56. package/lib/common/LinkModal/MiniAppApi/index.js +12 -4
  57. package/lib/common/LinkModal/MiniAppTable/index.js +15 -7
  58. package/lib/common/LinkModal/ProductDetailPage/index.js +49 -30
  59. package/lib/common/LinkModal/SelectVideoModal/index.js +18 -9
  60. package/lib/common/LinkModal/ShareUrl/index.js +11 -3
  61. package/lib/common/LinkModal/StoreCatgTable/index.js +11 -3
  62. package/lib/common/LinkModal/StoreTable/index.js +26 -15
  63. package/lib/common/LinkModal/index.js +56 -24
  64. package/lib/common/UrlPicker/index.js +5 -1
  65. package/lib/composite-comp/common/components/MonpayProductItem/imgs/coupon-orange.png +0 -0
  66. package/lib/composite-comp/common/components/MonpayProductItem/imgs/coupon-red.png +0 -0
  67. package/lib/composite-comp/common/components/MonpayProductItem/index.js +33 -2
  68. package/lib/composite-comp/common/components/MonpayProductItem/index.less +36 -0
  69. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
  70. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +1 -0
  71. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +3 -3
  72. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +3 -5
  73. package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +7 -4
  74. package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +2 -1
  75. package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +26 -4
  76. package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +2 -1
  77. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +2 -0
  78. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +4 -2
  79. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +99 -58
  80. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +4 -12
  81. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +1 -1
  82. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -0
  83. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +1 -1
  84. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +7 -6
  85. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +5 -5
  86. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +1 -3
  87. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
  88. package/lib/core/SelectUrl/index.js +36 -0
  89. package/lib/index.js +24 -0
  90. package/lib/locale/en/en.json +1 -1
  91. package/lib/locale/id/id.json +1 -1
  92. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -0
  93. package/package.json +2 -1
@@ -115,6 +115,7 @@ var getDefaultJSON = function getDefaultJSON() {
115
115
  hover: null
116
116
  },
117
117
  sessionTime: {
118
+ id: (0, _uuid.v4)(),
118
119
  open: false
119
120
  }
120
121
  },
@@ -284,6 +285,7 @@ var getDefaultJSON = function getDefaultJSON() {
284
285
  color: '#FF8650'
285
286
  },
286
287
  stock: {
288
+ id: (0, _uuid.v4)(),
287
289
  open: true
288
290
  }
289
291
  },
@@ -305,7 +305,8 @@ var getDefaultJSON = function getDefaultJSON() {
305
305
  fontFamily: 'Open Sans',
306
306
  fontWeight: 400,
307
307
  fontSize: 10,
308
- color: '#545454'
308
+ color: '#545454',
309
+ urlDisabled: true
309
310
  },
310
311
  underline: {
311
312
  open: false,
@@ -328,7 +329,8 @@ var getDefaultJSON = function getDefaultJSON() {
328
329
  fontFamily: 'Open Sans',
329
330
  fontWeight: 400,
330
331
  fontSize: 10,
331
- color: '#545454'
332
+ color: '#545454',
333
+ urlDisabled: true
332
334
  },
333
335
  underline: {
334
336
  open: false,
@@ -238,9 +238,7 @@ var defaultData = [{
238
238
  salesPrice: 18000000,
239
239
  specialPrice: 18000000,
240
240
  marketPrice: 19000000,
241
- discountPercent: 10,
242
- salePercent: 500,
243
- sppType: '2'
241
+ salePercent: 500
244
242
  }, {
245
243
  imgUrlContent: {
246
244
  url: _card["default"]
@@ -249,9 +247,7 @@ var defaultData = [{
249
247
  salesPrice: 18000000,
250
248
  specialPrice: 18000000,
251
249
  marketPrice: 19000000,
252
- discountPercent: 10,
253
- salePercent: 500,
254
- sppType: '2'
250
+ salePercent: 500
255
251
  }, {
256
252
  imgUrlContent: {
257
253
  url: _card["default"]
@@ -260,9 +256,7 @@ var defaultData = [{
260
256
  salesPrice: 18000000,
261
257
  specialPrice: 18000000,
262
258
  marketPrice: 19000000,
263
- discountPercent: 10,
264
- salePercent: 500,
265
- sppType: '2'
259
+ salePercent: 500
266
260
  }, {
267
261
  imgUrlContent: {
268
262
  url: _card["default"]
@@ -271,9 +265,7 @@ var defaultData = [{
271
265
  salesPrice: 18000000,
272
266
  specialPrice: 18000000,
273
267
  marketPrice: 19000000,
274
- discountPercent: 10,
275
- salePercent: 500,
276
- sppType: '2'
268
+ salePercent: 500
277
269
  }];
278
270
  var LAYOUT_IMAGE_SIZE = {
279
271
  'layout1-2': {
@@ -364,14 +356,14 @@ function (_super) {
364
356
 
365
357
  _this.getProductList = function (index, filterParams) {
366
358
  return __awaiter(_this, void 0, void 0, function () {
367
- var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, _h, pageInfo, serviceIds, brandIds, catgIds, offerAttrValues, e_1, _cache;
359
+ var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, _h, list, serviceIds, brandIds, catgIds, offerAttrValues, _j, pageInfo, serviceIds, brandIds, catgIds, offerAttrValues, _k, pageInfo, serviceIds, brandIds, catgIds, offerAttrValues, e_1, _cache;
368
360
 
369
- var _j, _k, _l;
361
+ var _l, _m, _o;
370
362
 
371
363
  var _this = this;
372
364
 
373
- return __generator(this, function (_m) {
374
- switch (_m.label) {
365
+ return __generator(this, function (_p) {
366
+ switch (_p.label) {
375
367
  case 0:
376
368
  panelProps = this.props.panelProps;
377
369
  groupSource = this.state.groupSource;
@@ -383,7 +375,7 @@ function (_super) {
383
375
 
384
376
  if (cache) {
385
377
  if ("products" + index in cache) {
386
- this.setState((_j = {}, _j["products" + index] = cache["products" + index], _j), function () {
378
+ this.setState((_l = {}, _l["products" + index] = cache["products" + index], _l), function () {
387
379
  _this.resetLayout();
388
380
  });
389
381
  /** 如果数据未过期 */
@@ -397,14 +389,14 @@ function (_super) {
397
389
 
398
390
  _a = groupSource[index] || {}, _b = _a.sourceType, sourceType = _b === void 0 ? '' : _b, _c = _a.prodIds, prodIds = _c === void 0 ? '' : _c, _d = _a.prodType, prodType = _d === void 0 ? '' : _d, _e = _a.intelligentType, intelligentType = _e === void 0 ? '' : _e, _f = _a.intelligentValue, intelligentValue = _f === void 0 ? [] : _f, _g = _a.maxProdNum, maxProdNum = _g === void 0 ? 10 : _g;
399
391
  newData = [];
400
- _m.label = 1;
392
+ _p.label = 1;
401
393
 
402
394
  case 1:
403
- _m.trys.push([1, 14,, 15]);
395
+ _p.trys.push([1, 18,, 19]);
404
396
 
405
397
  if (!(groupSource.length > 0)) return [3
406
398
  /*break*/
407
- , 12];
399
+ , 16];
408
400
  if (!(sourceType === 'select')) return [3
409
401
  /*break*/
410
402
  , 3];
@@ -426,16 +418,16 @@ function (_super) {
426
418
  , (0, _commonUtil.commonFetch)('/designer/v1/h5/products', params, 'GET')];
427
419
 
428
420
  case 2:
429
- res = _m.sent();
421
+ res = _p.sent();
430
422
  newData = __spreadArrays(res.list);
431
423
  return [3
432
424
  /*break*/
433
- , 11];
425
+ , 15];
434
426
 
435
427
  case 3:
436
428
  if (!(sourceType === 'recommend')) return [3
437
429
  /*break*/
438
- , 10];
430
+ , 14];
439
431
  if (!(intelligentType === 'Recently')) return [3
440
432
  /*break*/
441
433
  , 7];
@@ -444,28 +436,75 @@ function (_super) {
444
436
  , 5];
445
437
  return [4
446
438
  /*yield*/
447
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/viewlog/recent/list', {
439
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/viewlog/recent/list', __assign({
448
440
  pageIndex: 1,
449
441
  pageSize: maxProdNum
450
- }, 'GET')];
442
+ }, filterParams), 'GET')];
451
443
 
452
444
  case 4:
453
- res = _m.sent();
454
- newData = __spreadArrays(res.list);
445
+ _h = _p.sent(), list = _h.list, serviceIds = _h.serviceIds, brandIds = _h.brandIds, catgIds = _h.catgIds, offerAttrValues = _h.offerAttrValues;
446
+ this.setState({
447
+ filterObj: {
448
+ serviceIds: serviceIds,
449
+ brandIds: brandIds,
450
+ catgIds: catgIds,
451
+ offerAttrValues: offerAttrValues
452
+ }
453
+ });
454
+ newData = __spreadArrays(list);
455
455
  return [3
456
456
  /*break*/
457
457
  , 6];
458
458
 
459
459
  case 5:
460
460
  newData = defaultData;
461
- _m.label = 6;
461
+ _p.label = 6;
462
462
 
463
463
  case 6:
464
464
  return [3
465
465
  /*break*/
466
- , 9];
466
+ , 13];
467
467
 
468
468
  case 7:
469
+ if (!(intelligentType === 'Coupon')) return [3
470
+ /*break*/
471
+ , 11];
472
+ if (!!(0, _coreUtil.isDesignMode)()) return [3
473
+ /*break*/
474
+ , 9];
475
+ return [4
476
+ /*yield*/
477
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', __assign({
478
+ pageIndex: 1,
479
+ pageSize: maxProdNum,
480
+ qryUserCoupon: true
481
+ }, filterParams), 'POST')];
482
+
483
+ case 8:
484
+ _j = _p.sent(), pageInfo = _j.pageInfo, serviceIds = _j.serviceIds, brandIds = _j.brandIds, catgIds = _j.catgIds, offerAttrValues = _j.offerAttrValues;
485
+ this.setState({
486
+ filterObj: {
487
+ serviceIds: serviceIds,
488
+ brandIds: brandIds,
489
+ catgIds: catgIds,
490
+ offerAttrValues: offerAttrValues
491
+ }
492
+ });
493
+ newData = __spreadArrays(pageInfo.list);
494
+ return [3
495
+ /*break*/
496
+ , 10];
497
+
498
+ case 9:
499
+ newData = defaultData;
500
+ _p.label = 10;
501
+
502
+ case 10:
503
+ return [3
504
+ /*break*/
505
+ , 13];
506
+
507
+ case 11:
469
508
  return [4
470
509
  /*yield*/
471
510
  , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', __assign({
@@ -478,8 +517,8 @@ function (_super) {
478
517
  storeId: window.magicDesign.storeId >= 0 ? window.magicDesign.storeId : ''
479
518
  }, filterParams), 'POST')];
480
519
 
481
- case 8:
482
- _h = _m.sent(), pageInfo = _h.pageInfo, serviceIds = _h.serviceIds, brandIds = _h.brandIds, catgIds = _h.catgIds, offerAttrValues = _h.offerAttrValues;
520
+ case 12:
521
+ _k = _p.sent(), pageInfo = _k.pageInfo, serviceIds = _k.serviceIds, brandIds = _k.brandIds, catgIds = _k.catgIds, offerAttrValues = _k.offerAttrValues;
483
522
  this.setState({
484
523
  filterObj: {
485
524
  serviceIds: serviceIds,
@@ -489,45 +528,45 @@ function (_super) {
489
528
  }
490
529
  });
491
530
  newData = __spreadArrays(pageInfo.list);
492
- _m.label = 9;
531
+ _p.label = 13;
493
532
 
494
- case 9:
533
+ case 13:
495
534
  return [3
496
535
  /*break*/
497
- , 11];
536
+ , 15];
498
537
 
499
- case 10:
538
+ case 14:
500
539
  newData = [];
501
- _m.label = 11;
540
+ _p.label = 15;
502
541
 
503
- case 11:
542
+ case 15:
504
543
  return [3
505
544
  /*break*/
506
- , 13];
545
+ , 17];
507
546
 
508
- case 12:
547
+ case 16:
509
548
  newData = [];
510
- _m.label = 13;
549
+ _p.label = 17;
511
550
 
512
- case 13:
551
+ case 17:
513
552
  return [3
514
553
  /*break*/
515
- , 15];
554
+ , 19];
516
555
 
517
- case 14:
518
- e_1 = _m.sent();
556
+ case 18:
557
+ e_1 = _p.sent();
519
558
  newData = [];
520
559
  return [3
521
560
  /*break*/
522
- , 15];
561
+ , 19];
523
562
 
524
- case 15:
563
+ case 19:
525
564
  if (!(0, _coreUtil.isDesignMode)()) {
526
565
  _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
527
- (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_k = {}, _k["products" + index] = newData, _k.endTime = Date.now() + 3 * 60 * 1000, _k)));
566
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_m = {}, _m["products" + index] = newData, _m.endTime = Date.now() + 3 * 60 * 1000, _m)));
528
567
  }
529
568
 
530
- this.setState((_l = {}, _l["products" + index] = newData, _l), function () {
569
+ this.setState((_o = {}, _o["products" + index] = newData, _o), function () {
531
570
  _this.resetLayout();
532
571
  });
533
572
  return [2
@@ -676,16 +715,18 @@ function (_super) {
676
715
  RecommendMobile.prototype.render = function () {
677
716
  var _this = this;
678
717
 
718
+ var _a;
719
+
679
720
  var panelProps = this.props.panelProps;
680
- var _a = this.state,
681
- tabIndex = _a.tabIndex,
682
- tabLeft = _a.tabLeft,
683
- tabWidth = _a.tabWidth,
684
- groupSource = _a.groupSource,
685
- hideTabs = _a.hideTabs,
686
- contentWidth = _a.contentWidth,
687
- filterObj = _a.filterObj,
688
- searchParams = _a.searchParams;
721
+ var _b = this.state,
722
+ tabIndex = _b.tabIndex,
723
+ tabLeft = _b.tabLeft,
724
+ tabWidth = _b.tabWidth,
725
+ groupSource = _b.groupSource,
726
+ hideTabs = _b.hideTabs,
727
+ contentWidth = _b.contentWidth,
728
+ filterObj = _b.filterObj,
729
+ searchParams = _b.searchParams;
689
730
  var products = this.state["products" + tabIndex] || [];
690
731
 
691
732
  var _products = products.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : products;
@@ -751,7 +792,7 @@ function (_super) {
751
792
  transform: "translateX(" + tabLeft + "px)",
752
793
  background: this.getTabBarActiveColor(panelProps)
753
794
  }
754
- })), /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], {
795
+ })), ((_a = panelProps.content.filter) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], {
755
796
  filterObj: filterObj,
756
797
  onChange: this.onSearchCondChange,
757
798
  value: searchParams
@@ -242,9 +242,7 @@ var defaultData = [{
242
242
  salesPrice: 18000000,
243
243
  specialPrice: 18000000,
244
244
  marketPrice: 19000000,
245
- discountPercent: 10,
246
- salePercent: 500,
247
- sppType: '2'
245
+ salePercent: 500
248
246
  }, {
249
247
  imgUrlContent: {
250
248
  url: _card["default"]
@@ -253,9 +251,7 @@ var defaultData = [{
253
251
  salesPrice: 18000000,
254
252
  specialPrice: 18000000,
255
253
  marketPrice: 19000000,
256
- discountPercent: 10,
257
- salePercent: 500,
258
- sppType: '2'
254
+ salePercent: 500
259
255
  }, {
260
256
  imgUrlContent: {
261
257
  url: _card["default"]
@@ -264,9 +260,7 @@ var defaultData = [{
264
260
  salesPrice: 18000000,
265
261
  specialPrice: 18000000,
266
262
  marketPrice: 19000000,
267
- discountPercent: 10,
268
- salePercent: 500,
269
- sppType: '2'
263
+ salePercent: 500
270
264
  }, {
271
265
  imgUrlContent: {
272
266
  url: _card["default"]
@@ -275,9 +269,7 @@ var defaultData = [{
275
269
  salesPrice: 18000000,
276
270
  specialPrice: 18000000,
277
271
  marketPrice: 19000000,
278
- discountPercent: 10,
279
- salePercent: 500,
280
- sppType: '2'
272
+ salePercent: 500
281
273
  }];
282
274
 
283
275
  var RecommendMobile =
@@ -73,7 +73,7 @@ function (_super) {
73
73
  onRefresh: this.reRender,
74
74
  source: [{
75
75
  key: '1',
76
- name: (0, _locale.i18n)('HEADLINE'),
76
+ name: (0, _locale.i18n)('HEADER_IMAGE'),
77
77
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
78
78
  data: panelProps.headerImage
79
79
  }),
@@ -84,6 +84,7 @@ function (_super) {
84
84
  }, "Sales"))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
85
85
  divider: "bold",
86
86
  headerSize: "middle",
87
+ onRefresh: this.reRender,
87
88
  source: [{
88
89
  key: '1',
89
90
  name: 'Merchant Name',
@@ -73,7 +73,7 @@ function (_super) {
73
73
  onRefresh: this.reRender,
74
74
  source: [{
75
75
  key: '1',
76
- name: (0, _locale.i18n)('HEADLINE'),
76
+ name: (0, _locale.i18n)('HEADER_IMAGE'),
77
77
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
78
78
  data: panelProps.headerImage
79
79
  }),
@@ -93,40 +93,41 @@ function (_super) {
93
93
  headerSize: "middle",
94
94
  onRefresh: this.reRender,
95
95
  source: [{
96
- key: '0',
96
+ key: 'title1',
97
97
  name: (0, _locale.i18n)('DISCOUNT_LABEL'),
98
98
  metaOption: panelProps.discount
99
99
  }, {
100
- key: '1',
100
+ key: 'title2',
101
101
  name: (0, _locale.i18n)('ACTIVITY_LABEL'),
102
102
  value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
103
103
  data: panelProps.label
104
104
  }),
105
105
  metaOption: panelProps.label
106
106
  }, {
107
- key: '2',
107
+ key: 'title3',
108
108
  name: (0, _locale.i18n)('PRODUCT_NAME'),
109
109
  value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
110
110
  data: panelProps.productName
111
111
  }),
112
112
  metaOption: panelProps.productName
113
113
  }, {
114
- key: '3',
114
+ key: 'title4',
115
115
  name: (0, _locale.i18n)('ACTIVITY_PRICE'),
116
116
  value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
117
117
  data: panelProps.activityPrice
118
118
  }),
119
119
  metaOption: panelProps.activityPrice
120
120
  }, {
121
- key: '4',
121
+ key: 'title5',
122
122
  name: (0, _locale.i18n)('SALES_PRICE'),
123
123
  value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
124
124
  data: panelProps.salesPrice
125
125
  }),
126
126
  metaOption: panelProps.salesPrice
127
127
  }, {
128
- key: '5',
128
+ key: 'title6',
129
129
  name: (0, _locale.i18n)('STOCK'),
130
+ value: null,
130
131
  metaOption: panelProps.stock
131
132
  }],
132
133
  type: "switch"
@@ -122,31 +122,31 @@ function (_super) {
122
122
  headerSize: "middle",
123
123
  onRefresh: this.reRender,
124
124
  source: [{
125
- key: '1',
125
+ key: 'title1',
126
126
  name: (0, _locale.i18n)('ICON'),
127
127
  value: iconSetting,
128
128
  metaOption: panelProps.icon
129
129
  }, {
130
- key: '2',
130
+ key: 'title2',
131
131
  name: (0, _locale.i18n)('HEADLINE'),
132
132
  value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
133
133
  data: panelProps.headline
134
134
  }),
135
135
  metaOption: panelProps.headline
136
136
  }, {
137
- key: '3',
137
+ key: 'title3',
138
138
  name: (0, _locale.i18n)('COUNTDOWN'),
139
139
  value: countDownSetting,
140
140
  metaOption: panelProps.countdown
141
141
  }, {
142
- key: '4',
142
+ key: 'title4',
143
143
  name: (0, _locale.i18n)('BUTTON'),
144
144
  value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
145
145
  data: panelProps.button
146
146
  }),
147
147
  metaOption: panelProps.button
148
148
  }, {
149
- key: '5',
149
+ key: 'title5',
150
150
  name: (0, _locale.i18n)('SESSION_TIME'),
151
151
  metaOption: panelProps.sessionTime
152
152
  }],
@@ -74,9 +74,7 @@ function (_super) {
74
74
  source: [{
75
75
  key: '0',
76
76
  name: (0, _locale.i18n)('FILTER'),
77
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
78
- data: panelProps.filter
79
- }),
77
+ value: null,
80
78
  metaOption: panelProps.filter
81
79
  }, {
82
80
  key: '1',
@@ -368,7 +368,7 @@ function (_super) {
368
368
  }, (0, _locale.i18n)('LABEL')), /*#__PURE__*/_react["default"].createElement(Option, {
369
369
  value: "Recently"
370
370
  }, (0, _locale.i18n)('RECENTLY')), /*#__PURE__*/_react["default"].createElement(Option, {
371
- value: "coupon"
371
+ value: "Coupon"
372
372
  }, (0, _locale.i18n)('COUPON')))), intelligentType === 'Category' && /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
373
373
  allowClear: true,
374
374
  dropdownStyle: {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _UrlPicker = _interopRequireDefault(require("../../common/UrlPicker"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+
16
+ var SelectUrl = function SelectUrl(props) {
17
+ console.log(props, 'props');
18
+ var fishFetch = props.fishFetch,
19
+ config = props.config,
20
+ modalConfig = props.modalConfig;
21
+ window.magicDesign.MBaseUrl = config.MBaseUrl;
22
+ window.magicDesign.partyType = config.partyType;
23
+ return /*#__PURE__*/_react["default"].createElement(_UrlPicker["default"], _extends({
24
+ selfFetch: fishFetch
25
+ }, props, {
26
+ modalConfig: modalConfig
27
+ }));
28
+ };
29
+
30
+ SelectUrl.defaultProps = {
31
+ value: '',
32
+ disabled: false,
33
+ onChange: function onChange() {}
34
+ };
35
+ var _default = SelectUrl;
36
+ exports["default"] = _default;
package/es/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "ConfigProvider", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _antd.ConfigProvider;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "Designer", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -15,9 +21,25 @@ Object.defineProperty(exports, "Renderer", {
15
21
  return _Renderer["default"];
16
22
  }
17
23
  });
24
+ Object.defineProperty(exports, "SelectUrl", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _SelectUrl["default"];
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "clickUrl", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _coreUtil.clickUrl;
34
+ }
35
+ });
18
36
 
19
37
  require("./assets/fonts/magic-box-iconfont.css");
20
38
 
39
+ var _antd = require("antd4");
40
+
41
+ var _coreUtil = require("./utils/coreUtil");
42
+
21
43
  require("./assets/less/index.less");
22
44
 
23
45
  require("./assets/less/cylon-antd.less");
@@ -26,4 +48,6 @@ var _Designer = _interopRequireDefault(require("./core/Designer"));
26
48
 
27
49
  var _Renderer = _interopRequireDefault(require("./core/Renderer"));
28
50
 
51
+ var _SelectUrl = _interopRequireDefault(require("./core/SelectUrl"));
52
+
29
53
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -176,7 +176,7 @@
176
176
  "SOURCE_OF_PRODUCT": "Source Of Product",
177
177
  "AI_RECOMMENDATION": "AI Recommendation",
178
178
  "SELECT_PRODUCT": "Select Product",
179
- "PRODUCT_QUANTITY": "Product quantity",
179
+ "PRODUCT_QUANTITY": "Product Quantity",
180
180
  "COLOR": "Color",
181
181
  "AUTOPLAYS": "Autoplays",
182
182
  "SHOW_NAVIGATION_ARROW": "Show navigation arrow",
@@ -176,7 +176,7 @@
176
176
  "SOURCE_OF_PRODUCT": "Source Of Product",
177
177
  "AI_RECOMMENDATION": "AI Recommendation",
178
178
  "SELECT_PRODUCT": "Select Product",
179
- "PRODUCT_QUANTITY": "Product quantity",
179
+ "PRODUCT_QUANTITY": "Product Quantity",
180
180
  "COLOR": "Color",
181
181
  "AUTOPLAYS": "Autoplays",
182
182
  "SHOW_NAVIGATION_ARROW": "Show navigation arrow",
@@ -282,6 +282,7 @@ function (_super) {
282
282
  split: true,
283
283
  title: "URL"
284
284
  }, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
285
+ disabled: textData.urlDisabled,
285
286
  onChange: function onChange(v) {
286
287
  textData.clickUrl = v;
287
288
 
Binary file