@fonixtree/magic-design 2.0.206 → 2.0.209

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 (149) hide show
  1. package/es/common/GroupList/index.js +6 -2
  2. package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  3. package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  4. package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
  5. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  6. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  7. package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  8. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  9. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  10. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  11. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  12. package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  13. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  14. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  15. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  16. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  17. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  18. package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  19. package/es/composite-comp/common/components/ProductItem/index.js +29 -5
  20. package/es/composite-comp/common/components/ProductItem/index.less +15 -1
  21. package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  22. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  23. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  24. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  25. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  26. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  27. package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  28. package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  29. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  30. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  31. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  32. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  33. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  34. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  35. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  36. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  37. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  38. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  39. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  40. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  41. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  42. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  43. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  44. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  45. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  46. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  47. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  48. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  49. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  50. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  51. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  52. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  53. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  54. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  55. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  56. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  57. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  58. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  59. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  60. package/es/constants/component-types.js +10 -4
  61. package/es/constants/index.js +4 -0
  62. package/es/core/Designer/ConfigPanel/index.js +1 -0
  63. package/es/core/Renderer/index.js +4 -2
  64. package/es/decorator/compositeDecorator.js +1 -1
  65. package/es/locale/ar/ar.json +4 -0
  66. package/es/locale/en/en.json +4 -0
  67. package/es/locale/es/es.json +4 -0
  68. package/es/locale/mn/mn.json +18 -1
  69. package/es/meta-comp/components/Text/index.js +17 -4
  70. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  71. package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
  72. package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
  73. package/es/utils/commonUtil.js +17 -1
  74. package/es/utils/coreUtil.js +1 -1
  75. package/lib/common/GroupList/index.js +6 -2
  76. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  77. package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  78. package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
  79. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  80. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  81. package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  82. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  83. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  84. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  85. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  86. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  87. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  88. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  89. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  90. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  91. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  92. package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  93. package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
  94. package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
  95. package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  96. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  97. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  98. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  99. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  100. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  101. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  102. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  103. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  104. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  105. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  106. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  107. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  108. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  109. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  110. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  111. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  112. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  113. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  114. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  115. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  116. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  117. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  118. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  119. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  120. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  121. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  122. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  123. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  124. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  125. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  126. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  127. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  128. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  129. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  130. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  131. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  132. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  133. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  134. package/lib/constants/component-types.js +10 -4
  135. package/lib/constants/index.js +4 -0
  136. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  137. package/lib/core/Renderer/index.js +4 -2
  138. package/lib/decorator/compositeDecorator.js +1 -1
  139. package/lib/locale/ar/ar.json +4 -0
  140. package/lib/locale/en/en.json +4 -0
  141. package/lib/locale/es/es.json +4 -0
  142. package/lib/locale/mn/mn.json +18 -1
  143. package/lib/meta-comp/components/Text/index.js +17 -4
  144. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  145. package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
  146. package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
  147. package/lib/utils/commonUtil.js +17 -1
  148. package/lib/utils/coreUtil.js +1 -1
  149. package/package.json +1 -1
@@ -21,6 +21,7 @@ exports.getUrlParams = void 0;
21
21
  exports.goLogin = goLogin;
22
22
  exports.importAsync = void 0;
23
23
  exports.isLogin = isLogin;
24
+ exports.isPad = void 0;
24
25
  exports.navigateBack = navigateBack;
25
26
  exports.onListenTouch = exports.nextTick = exports.needReverse = exports.navigateTo = void 0;
26
27
  exports.pushGA = pushGA;
@@ -571,6 +572,21 @@ var JsonToUrl = function JsonToUrl(data) {
571
572
 
572
573
  var urlParamsStr = tempArr.join('&');
573
574
  return urlParamsStr;
575
+ };
576
+
577
+ exports.JsonToUrl = JsonToUrl;
578
+
579
+ var isPad = function isPad() {
580
+ var ua = navigator.userAgent;
581
+ var isMac = /Macintosh/i.test(ua);
582
+ var isIOS = /iPad|iPhone|iPod/i.test(ua);
583
+ var isTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0; // iPad检测 (包括iPadOS 13+)
584
+
585
+ if (isMac && isTouch || isIOS) {
586
+ return true;
587
+ }
588
+
589
+ return false;
574
590
  }; // export const jumpUrlConfig = item => {
575
591
  // const { objType, objValue } = item || {};
576
592
  // let jumpUrl = '';
@@ -636,7 +652,7 @@ var JsonToUrl = function JsonToUrl(data) {
636
652
  */
637
653
 
638
654
 
639
- exports.JsonToUrl = JsonToUrl;
655
+ exports.isPad = isPad;
640
656
 
641
657
  var addZero = function addZero(num) {
642
658
  return String(num).length === 1 ? "0" + String(num) : String(num);
@@ -471,7 +471,7 @@ var clickUrl = function clickUrl(url, state) {
471
471
  window.open(link);
472
472
  }
473
473
  } else {
474
- if (isPc()) {
474
+ if (isPc() && link.indexOf('/poster/') === -1) {
475
475
  window.location.href += "web" + link;
476
476
  } else {
477
477
  (0, _commonUtil.navigateTo)(link, state);
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.206",
4
+ "version": "2.0.209",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",