@fonixtree/magic-design 0.1.78 → 0.1.80

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 (317) hide show
  1. package/es/assets/fonts/Trueno-Light.otf +0 -0
  2. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  3. package/es/assets/fonts/TruenoBd.otf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.css +31 -3
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  8. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  10. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  11. package/es/assets/images/base64/index.js +36 -2
  12. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  14. package/es/assets/less/cylon-antd.less +7246 -1686
  15. package/es/assets/less/font.less +22 -0
  16. package/es/common/AffiliateProductModal/index.js +582 -0
  17. package/es/common/AffiliateProductModal/index.less +146 -0
  18. package/es/common/CardCarousel/index.js +171 -0
  19. package/es/common/CardCarousel/index.less +28 -0
  20. package/es/common/GroupList/index.less +3 -0
  21. package/es/common/ImagePicker/index.js +1 -3
  22. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  23. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  24. package/es/common/LinkModal/index.js +14 -2
  25. package/es/common/MyModal/index.js +417 -0
  26. package/es/common/MyModal/index.less +74 -0
  27. package/es/common/ProductModal/index.js +2 -3
  28. package/es/common/ProductSource/index.js +42 -10
  29. package/es/common/UrlPicker/index.js +3 -1
  30. package/es/common/index.js +16 -0
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/Video/index.js +1 -2
  34. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  35. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  36. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  37. package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  38. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  39. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  40. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  41. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  42. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  43. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  44. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  45. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  46. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  47. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  48. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  49. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  50. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  51. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  52. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  53. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  54. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  55. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  56. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  57. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  58. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  59. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  60. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  61. package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  62. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  63. package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
  64. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  65. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  66. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  68. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  69. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  70. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  71. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  72. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  73. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  74. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  75. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  76. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  77. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  78. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  79. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  80. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  81. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  82. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  83. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  84. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  85. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  86. package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  87. package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  88. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  89. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  90. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  91. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  92. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  93. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  94. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  95. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  96. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  97. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  98. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  99. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  100. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  101. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  102. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  103. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  104. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  105. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  106. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  107. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  108. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  109. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  110. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  111. package/es/constants/component-types.js +27 -3
  112. package/es/constants/index.js +26 -1
  113. package/es/constants/layout.js +48 -1
  114. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  115. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  116. package/es/core/Designer/ChatRobot/index.js +36 -14
  117. package/es/core/Designer/ChatRobot/index.less +69 -28
  118. package/es/core/Designer/ConfigPanel/index.js +8 -3
  119. package/es/core/Designer/History/index.js +2 -2
  120. package/es/core/Designer/PageCompList/index.js +8 -5
  121. package/es/core/Designer/QuickMenuBar/index.js +5 -3
  122. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  123. package/es/core/Designer/RenderHtml/index.js +18 -15
  124. package/es/core/Designer/RenderHtml/index.less +1 -1
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  129. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  130. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  133. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  134. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  135. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  140. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  141. package/es/core/Designer/ToolBarModal/index.js +68 -22
  142. package/es/core/Designer/ToolBarModal/index.less +3 -2
  143. package/es/core/Designer/index.js +12 -1
  144. package/es/core/Renderer/index.js +55 -8
  145. package/es/decorator/compositeDecorator.js +23 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Image/index.js +31 -25
  150. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  151. package/es/meta-comp/components/Text/index.js +20 -1
  152. package/es/meta-comp/components/Text/index.less +8 -0
  153. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  154. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  155. package/es/mobx/Frame.js +17 -2
  156. package/es/utils/businessUtil.js +17 -6
  157. package/es/utils/commonUtil.js +54 -4
  158. package/es/utils/currencyUtil.js +9 -2
  159. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  160. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  161. package/lib/assets/fonts/TruenoBd.otf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.css +31 -3
  163. package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
  164. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  165. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  166. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  167. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  168. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  169. package/lib/assets/images/base64/index.js +36 -2
  170. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  171. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  172. package/lib/assets/less/cylon-antd.less +7246 -1686
  173. package/lib/assets/less/font.less +22 -0
  174. package/lib/common/AffiliateProductModal/index.js +582 -0
  175. package/lib/common/AffiliateProductModal/index.less +146 -0
  176. package/lib/common/CardCarousel/index.js +171 -0
  177. package/lib/common/CardCarousel/index.less +28 -0
  178. package/lib/common/GroupList/index.less +3 -0
  179. package/lib/common/ImagePicker/index.js +1 -3
  180. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  181. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  182. package/lib/common/LinkModal/index.js +14 -2
  183. package/lib/common/MyModal/index.js +417 -0
  184. package/lib/common/MyModal/index.less +74 -0
  185. package/lib/common/ProductModal/index.js +2 -3
  186. package/lib/common/ProductSource/index.js +42 -10
  187. package/lib/common/UrlPicker/index.js +3 -1
  188. package/lib/common/index.js +16 -0
  189. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  191. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  192. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  193. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  194. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  195. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  196. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  197. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  198. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  199. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  200. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  201. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  202. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  203. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  204. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  205. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  206. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  207. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  208. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  209. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  210. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  211. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  213. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  214. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  215. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  216. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  217. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  218. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  219. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  220. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  221. package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
  222. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  223. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  224. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  225. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  226. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  227. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  228. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  229. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  230. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  231. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  233. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  234. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  235. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  236. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  237. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  238. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  239. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  240. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  241. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  242. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  243. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  244. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  246. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  247. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  248. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  249. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  250. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  251. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  252. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  253. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  254. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  255. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  256. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  257. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  258. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  259. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  260. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  261. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  262. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  263. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  264. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  265. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  266. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  267. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  268. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  269. package/lib/constants/component-types.js +27 -3
  270. package/lib/constants/index.js +26 -1
  271. package/lib/constants/layout.js +48 -1
  272. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  273. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  274. package/lib/core/Designer/ChatRobot/index.js +36 -14
  275. package/lib/core/Designer/ChatRobot/index.less +69 -28
  276. package/lib/core/Designer/ConfigPanel/index.js +8 -3
  277. package/lib/core/Designer/History/index.js +2 -2
  278. package/lib/core/Designer/PageCompList/index.js +8 -5
  279. package/lib/core/Designer/QuickMenuBar/index.js +5 -3
  280. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  281. package/lib/core/Designer/RenderHtml/index.js +18 -15
  282. package/lib/core/Designer/RenderHtml/index.less +1 -1
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  299. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  300. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  301. package/lib/core/Designer/index.js +12 -1
  302. package/lib/core/Renderer/index.js +55 -8
  303. package/lib/decorator/compositeDecorator.js +23 -0
  304. package/lib/locale/en/en.json +6 -1
  305. package/lib/locale/es/es.json +6 -1
  306. package/lib/locale/id/id.json +6 -1
  307. package/lib/meta-comp/components/Image/index.js +31 -25
  308. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  309. package/lib/meta-comp/components/Text/index.js +20 -1
  310. package/lib/meta-comp/components/Text/index.less +8 -0
  311. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  312. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  313. package/lib/mobx/Frame.js +17 -2
  314. package/lib/utils/businessUtil.js +17 -6
  315. package/lib/utils/commonUtil.js +54 -4
  316. package/lib/utils/currencyUtil.js +9 -2
  317. package/package.json +1 -1
@@ -27,6 +27,12 @@ var _OrderSVG = _interopRequireDefault(require("./images/OrderSVG"));
27
27
 
28
28
  var _UnorderSVG = _interopRequireDefault(require("./images/UnorderSVG"));
29
29
 
30
+ var _AlignLeftSVG = _interopRequireDefault(require("./images/AlignLeftSVG"));
31
+
32
+ var _AlignCenterSVG = _interopRequireDefault(require("./images/AlignCenterSVG"));
33
+
34
+ var _AlignRightSVG = _interopRequireDefault(require("./images/AlignRightSVG"));
35
+
30
36
  var _BulletPicker = _interopRequireDefault(require("./components/BulletPicker"));
31
37
 
32
38
  var _OrderedPicker = _interopRequireDefault(require("./components/OrderedPicker"));
@@ -63,6 +69,22 @@ var __extends = void 0 && (void 0).__extends || function () {
63
69
  };
64
70
  }();
65
71
 
72
+ var __assign = void 0 && (void 0).__assign || function () {
73
+ __assign = Object.assign || function (t) {
74
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
75
+ s = arguments[i];
76
+
77
+ for (var p in s) {
78
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
79
+ }
80
+ }
81
+
82
+ return t;
83
+ };
84
+
85
+ return __assign.apply(this, arguments);
86
+ };
87
+
66
88
  var iconTypeMap = {
67
89
  bold: _BoldSVG["default"],
68
90
  italic: _ItalicSVG["default"],
@@ -94,7 +116,10 @@ var iconTypeMap = {
94
116
  return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], _extends({
95
117
  type: "text-decoration-color"
96
118
  }, props));
97
- }
119
+ },
120
+ alignLeft: _AlignLeftSVG["default"],
121
+ alignCenter: _AlignCenterSVG["default"],
122
+ alignRight: _AlignRightSVG["default"]
98
123
  };
99
124
 
100
125
  var ToolBtn =
@@ -137,10 +162,10 @@ function (_super) {
137
162
  className: (0, _classnames["default"])('tool-btn-wrap', {
138
163
  active: active
139
164
  })
140
- }, iconTypeMap[type]({
165
+ }, iconTypeMap[type](__assign({
141
166
  value: value,
142
167
  onChange: onChange
143
- }));
168
+ }, this.props)));
144
169
  };
145
170
 
146
171
  ToolBtn.defaultProps = {};
@@ -1,5 +1,6 @@
1
1
  .tool-btn-wrap {
2
- width: 26px;
2
+ width: auto;
3
+ min-width: 26px;
3
4
  height: 26px;
4
5
  display: flex;
5
6
  align-items: center;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = void 0;
6
+ exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = exports.OpenSansFontWeightList = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -13,8 +13,6 @@ var _ToolBtn = _interopRequireDefault(require("./ToolBtn"));
13
13
 
14
14
  var _coreUtil = require("../../../utils/coreUtil");
15
15
 
16
- var _UnderlineSelect = _interopRequireDefault(require("../../../meta-comp/config-panels/TextConfig/UnderlineSelect"));
17
-
18
16
  require("./index.less");
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -69,6 +67,17 @@ var fontWeightList = [{
69
67
  value: '700'
70
68
  }];
71
69
  exports.fontWeightList = fontWeightList;
70
+ var OpenSansFontWeightList = [{
71
+ name: 'Regular',
72
+ value: '400'
73
+ }, {
74
+ name: 'Semibold',
75
+ value: '600'
76
+ }, {
77
+ name: 'Bold',
78
+ value: '700'
79
+ }];
80
+ exports.OpenSansFontWeightList = OpenSansFontWeightList;
72
81
 
73
82
  var ToolBarModal =
74
83
  /** @class */
@@ -82,6 +91,7 @@ function (_super) {
82
91
  quillFormat: {}
83
92
  };
84
93
  _this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
94
+ _this.selectedTextLength = 0;
85
95
 
86
96
  _this.setToolBarPosition = function () {
87
97
  var _a = _this.props.quillRef.container.getBoundingClientRect(),
@@ -101,6 +111,8 @@ function (_super) {
101
111
  var range = _this.props.quillRef.getSelection();
102
112
 
103
113
  if (range) {
114
+ _this.selectedTextLength = range.length;
115
+
104
116
  var quillFormat = _this.props.quillRef.getFormat();
105
117
 
106
118
  console.log('quillFormat: ', quillFormat);
@@ -108,6 +120,8 @@ function (_super) {
108
120
  _this.setState({
109
121
  quillFormat: quillFormat
110
122
  });
123
+ } else {
124
+ if (_this.selectedTextLength === 0) _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
111
125
  }
112
126
  };
113
127
 
@@ -146,6 +160,8 @@ function (_super) {
146
160
  _this.props.quillRef.format('font', value);
147
161
  } else if (type == 'font-weight') {
148
162
  _this.props.quillRef.format('font-weight', value);
163
+ } else if (type == 'text-align') {
164
+ _this.props.quillRef.format('text-align', value);
149
165
  } else if (type == 'font-style') {
150
166
  _this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
151
167
  } else if (type == 'font-family') {
@@ -155,22 +171,32 @@ function (_super) {
155
171
 
156
172
  _this.props.quillRef.format('text-decoration-style', value);
157
173
  } else if (type == 'bullet') {
158
- _this.props.quillRef.format('list-style-type', value);
174
+ _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
175
+
176
+ if (!value || value === quillFormat['list-style-type']) {
177
+ _this.props.quillRef.format('list-style-type', '');
159
178
 
160
- if (value === quillFormat['list-style-type']) {
161
179
  _this.props.quillRef.format('list', '');
162
180
  } else {
181
+ _this.props.quillRef.format('list-style-type', value);
182
+
163
183
  _this.props.quillRef.format('list', 'bullet');
164
184
  }
165
185
  } else if (type == 'ordered') {
166
- _this.props.quillRef.format('list-style-type', value);
186
+ _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
187
+
188
+ if (!value || value === quillFormat['list-style-type']) {
189
+ _this.props.quillRef.format('list-style-type', '');
167
190
 
168
- if (value === quillFormat['list-style-type']) {
169
191
  _this.props.quillRef.format('list', '');
170
192
  } else {
193
+ _this.props.quillRef.format('list-style-type', value);
194
+
171
195
  _this.props.quillRef.format('list', 'ordered');
172
196
  }
173
197
  } else if (type == 'text-decoration-color') {
198
+ _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
199
+
174
200
  if (value) {
175
201
  _this.props.quillRef.format('underline', true);
176
202
  } else {
@@ -207,6 +233,9 @@ function (_super) {
207
233
  var _this = this;
208
234
 
209
235
  var quillFormat = this.state.quillFormat;
236
+
237
+ var _fontWeightList = quillFormat['font-family'] === 'OpenSans' ? OpenSansFontWeightList : fontWeightList;
238
+
210
239
  return /*#__PURE__*/_react["default"].createElement("div", {
211
240
  ref: this.toolBarRef,
212
241
  className: "toolbar-wrap"
@@ -241,7 +270,7 @@ function (_super) {
241
270
  width: '150px'
242
271
  },
243
272
  value: quillFormat['font-weight']
244
- }, fontWeightList.map(function (v) {
273
+ }, _fontWeightList.map(function (v) {
245
274
  return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
246
275
  label: v.name,
247
276
  value: v.value
@@ -263,20 +292,7 @@ function (_super) {
263
292
  label: v.name,
264
293
  value: v
265
294
  }, v, "px");
266
- }))), /*#__PURE__*/_react["default"].createElement("div", {
267
- className: "tool-item"
268
- }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
269
- onChange: function onChange(v) {
270
- _this.onToolBtnClick('text-decoration-style', v);
271
- },
272
- placeholder: "Underline Style",
273
- repeatCount: 28,
274
- size: "small",
275
- style: {
276
- width: '140px'
277
- },
278
- value: quillFormat['text-decoration-style']
279
- }))), /*#__PURE__*/_react["default"].createElement("div", {
295
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
280
296
  className: "toolbar-row"
281
297
  }, /*#__PURE__*/_react["default"].createElement("div", {
282
298
  className: "tool-item"
@@ -301,6 +317,10 @@ function (_super) {
301
317
  _this.onToolBtnClick('text-decoration-color', value);
302
318
  },
303
319
  type: "text-decoration-color",
320
+ underlineOnChange: function underlineOnChange(value) {
321
+ return _this.onToolBtnClick('text-decoration-style', value);
322
+ },
323
+ underlineValue: quillFormat['text-decoration-style'],
304
324
  value: {
305
325
  color: quillFormat['text-decoration-color']
306
326
  }
@@ -350,6 +370,32 @@ function (_super) {
350
370
  className: "tooll-line"
351
371
  }), /*#__PURE__*/_react["default"].createElement("div", {
352
372
  className: "tool-item"
373
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
374
+ active: quillFormat['text-align'] === 'left',
375
+ onChange: function onChange() {
376
+ _this.onToolBtnClick('text-align', 'left');
377
+ },
378
+ type: "alignLeft"
379
+ })), /*#__PURE__*/_react["default"].createElement("div", {
380
+ className: "tool-item"
381
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
382
+ active: quillFormat['text-align'] === 'center',
383
+ onChange: function onChange() {
384
+ _this.onToolBtnClick('text-align', 'center');
385
+ },
386
+ type: "alignCenter"
387
+ })), /*#__PURE__*/_react["default"].createElement("div", {
388
+ className: "tool-item"
389
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
390
+ active: quillFormat['text-align'] === 'right',
391
+ onChange: function onChange() {
392
+ _this.onToolBtnClick('text-align', 'right');
393
+ },
394
+ type: "alignRight"
395
+ })), /*#__PURE__*/_react["default"].createElement("div", {
396
+ className: "tooll-line"
397
+ }), /*#__PURE__*/_react["default"].createElement("div", {
398
+ className: "tool-item"
353
399
  }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
354
400
  onChange: function onChange(value) {
355
401
  _this.onToolBtnClick('link', value);
@@ -14,13 +14,14 @@
14
14
 
15
15
  .tool-item {
16
16
  margin: 0 5px;
17
+ display: flex;
17
18
  }
18
19
 
19
20
  .tooll-line {
20
21
  display: inline-flex;
21
22
  width: 1px;
22
- height: 24px;
23
- background-color: rgba(0, 0, 0, .04);
23
+ height: 16px;
24
+ background-color: #C1C9D7;
24
25
  margin: 0 5px;
25
26
  }
26
27
 
@@ -263,6 +263,7 @@ window.magicDesign = {
263
263
 
264
264
  var setDesignConfig = function setDesignConfig(data) {
265
265
  window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
266
+ designMode: true,
266
267
  compWidth: Number(data.compWidth),
267
268
  compSpacing: Number(data.compSpacing),
268
269
  MBaseUrl: data.MBaseUrl || 'operation/v1',
@@ -271,6 +272,13 @@ var setDesignConfig = function setDesignConfig(data) {
271
272
  };
272
273
 
273
274
  var debug = require('debug')('worker:Designer');
275
+
276
+ _antd.message.config({
277
+ getContainer: function getContainer() {
278
+ return document.querySelector('[magic_design]');
279
+ },
280
+ prefixCls: 'cylon-message'
281
+ });
274
282
  /**
275
283
  * @class Designer
276
284
  * 主入口。
@@ -586,6 +594,7 @@ function (_super) {
586
594
  onHtmlBack: _this.onHtmlBack,
587
595
  onHtmlSave: _this.onHtmlSave,
588
596
  outputType: _this.props.outputType,
597
+ pageType: _this.props.pageType,
589
598
  redoDisable: !_this.history.redoAble(),
590
599
  undoDisable: !_this.history.undoAble()
591
600
  });
@@ -744,7 +753,8 @@ function (_super) {
744
753
  pageName = _b.pageName,
745
754
  onCancelPublish = _b.onCancelPublish,
746
755
  leftTitle = _b.leftTitle,
747
- outputType = _b.outputType;
756
+ outputType = _b.outputType,
757
+ pageType = _b.pageType;
748
758
  var renderPagesManage = pagesManager;
749
759
 
750
760
  if (outputType == 'html') {
@@ -768,6 +778,7 @@ function (_super) {
768
778
  onAdd: this.onAdd,
769
779
  pageData: MPageData,
770
780
  pageName: pageName,
781
+ pageType: pageType,
771
782
  renderPagesManage: renderPagesManage,
772
783
  setPageData: this.setPageData
773
784
  }), /*#__PURE__*/_react["default"].createElement(_CompListPanel["default"], {
@@ -15,10 +15,16 @@ var _componentTypes = require("../../constants/component-types");
15
15
 
16
16
  var _coreUtil = require("../../utils/coreUtil");
17
17
 
18
+ var _mobx = require("../../mobx");
19
+
20
+ var _common = require("../../common");
21
+
18
22
  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); }
19
23
 
20
24
  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; }
21
25
 
26
+ 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); }
27
+
22
28
  var __assign = void 0 && (void 0).__assign || function () {
23
29
  __assign = Object.assign || function (t) {
24
30
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -37,11 +43,13 @@ var __assign = void 0 && (void 0).__assign || function () {
37
43
 
38
44
  var setDesignConfig = function setDesignConfig(props) {
39
45
  var config = props.config,
40
- device = props.device;
46
+ device = props.device,
47
+ isPreview = props.isPreview;
41
48
  window.magicDesign = __assign(__assign({
42
49
  pageBackground: '#f2f2f2',
43
50
  mode: 'renderer',
44
51
  device: device,
52
+ designMode: isPreview,
45
53
  navigatePreUrl: ''
46
54
  }, config), {
47
55
  compSpacing: Number(config.compSpacing),
@@ -56,12 +64,17 @@ var setDesignConfig = function setDesignConfig(props) {
56
64
  var Renderer = function Renderer(props) {
57
65
  var pageData = props.pageData,
58
66
  outputType = props.outputType,
59
- noSetWindow = props.noSetWindow;
67
+ noSetWindow = props.noSetWindow,
68
+ isPreview = props.isPreview;
60
69
 
61
70
  var _a = (0, _react.useState)([]),
62
71
  floors = _a[0],
63
72
  setFloors = _a[1];
64
73
 
74
+ var _b = (0, _react.useState)(_mobx.frameStore.modalState),
75
+ modalState = _b[0],
76
+ setModalState = _b[1];
77
+
65
78
  if (!noSetWindow) {
66
79
  setDesignConfig(props);
67
80
  }
@@ -97,14 +110,43 @@ var Renderer = function Renderer(props) {
97
110
  });
98
111
  }, 300);
99
112
  });
113
+ (0, _react.useEffect)(function () {
114
+ var disposer = (0, _mobx.autorun)(function () {
115
+ setModalState(_mobx.frameStore.modalState);
116
+ });
117
+ return function () {
118
+ disposer();
119
+ };
120
+ }, []); // 传入空数组表示仅在组件挂载和卸载时执行
121
+
122
+ /** 弹窗关闭 */
123
+
124
+ var onCloseModal = function onCloseModal() {
125
+ _mobx.frameStore.setState({
126
+ modalState: {
127
+ visible: false
128
+ }
129
+ });
130
+ };
131
+
132
+ var getRestStyle = function getRestStyle() {
133
+ if (modalState.visible) {
134
+ return {
135
+ position: 'relative',
136
+ overflow: 'hidden'
137
+ };
138
+ }
139
+
140
+ return {};
141
+ };
142
+
100
143
  return /*#__PURE__*/_react["default"].createElement("div", {
101
144
  className: "render_wrap",
102
145
  magic_design: "",
103
- style: {
146
+ style: __assign({
104
147
  height: '100%',
105
- background: pageBackground,
106
- overflow: 'auto'
107
- }
148
+ background: pageBackground
149
+ }, getRestStyle())
108
150
  }, floors.length > 0 && floors.map(function (nodeData, moduleIndex) {
109
151
  var Clazz = _componentTypes.componentMap[nodeData.type];
110
152
 
@@ -127,13 +169,18 @@ var Renderer = function Renderer(props) {
127
169
  key: nodeData.id,
128
170
  id: 'node-' + nodeData.id
129
171
  }, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
130
- }));
172
+ }), modalState.visible && /*#__PURE__*/_react["default"].createElement(_common.MyModal, _extends({
173
+ isPreview: isPreview
174
+ }, modalState, {
175
+ onClose: onCloseModal
176
+ })));
131
177
  };
132
178
 
133
179
  Renderer.defaultProps = {
134
180
  pageData: {},
135
181
  device: 'pc',
136
- config: {}
182
+ config: {},
183
+ isPreview: false
137
184
  };
138
185
  var _default = Renderer;
139
186
  exports["default"] = _default;
@@ -153,6 +153,19 @@ function compositeDecorator(WrappedComponent) {
153
153
 
154
154
  if (device === _constants.deviceTypeMap.PC && compWidth && !((_a = spacing === null || spacing === void 0 ? void 0 : spacing.pc) === null || _a === void 0 ? void 0 : _a.fillUp)) {
155
155
  wrapStyle.width = compWidth;
156
+ } // 如果是菜单 则需要设为fixed
157
+
158
+
159
+ if (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION') {
160
+ wrapStyle.position = 'absolute';
161
+ wrapStyle.left = 0;
162
+ wrapStyle.width = '100%';
163
+
164
+ if (nodeData.type === 'HEAD_NAVIGATION') {
165
+ wrapStyle.top = 0;
166
+ } else {
167
+ wrapStyle.bottom = 0;
168
+ }
156
169
  }
157
170
 
158
171
  return wrapStyle;
@@ -228,6 +241,15 @@ function compositeDecorator(WrappedComponent) {
228
241
  });
229
242
  };
230
243
 
244
+ _this.getOuterWrapStyle = function () {
245
+ var nodeData = _this.props.nodeData;
246
+
247
+ if (window.magicDesign.designMode && (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION')) {
248
+ var element = document.querySelector('.phone_view_area .device_border') || document.querySelector('#root .render_wrap');
249
+ element.style.position = 'relative';
250
+ }
251
+ };
252
+
231
253
  return _this;
232
254
  }
233
255
 
@@ -240,6 +262,7 @@ function compositeDecorator(WrappedComponent) {
240
262
  hoveredFloor: _mobx.store.hoveredFloor
241
263
  });
242
264
  });
265
+ this.getOuterWrapStyle();
243
266
  };
244
267
 
245
268
  Wrapper.prototype.componentWillUnmount = function () {
@@ -1,4 +1,10 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
5
+ "TIPS": "Tips",
6
+ "AL": "AL",
7
+ "PEEK": "Peek",
2
8
  "ADDRESS": "Address",
3
9
  "LOCATION_LOGO": "Location Logo",
4
10
  "MESSAGE_ICON": "Message icon",
@@ -9,7 +15,6 @@
9
15
  "DARK": "Dark",
10
16
  "LIGHT": "Light",
11
17
  "URL_IMAGE": "url image",
12
- "AI_IMAGE": "AI Image",
13
18
  "IMAGE_URL": "Image URL",
14
19
  "UPLOAD": "Upload",
15
20
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
@@ -1,4 +1,10 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
5
+ "TIPS": "Tips",
6
+ "AL": "AL",
7
+ "PEEK": "Peek",
2
8
  "ADDRESS": "Address",
3
9
  "LOCATION_LOGO": "Location Logo",
4
10
  "MESSAGE_ICON": "Message icon",
@@ -9,7 +15,6 @@
9
15
  "DARK": "Dark",
10
16
  "LIGHT": "Light",
11
17
  "URL_IMAGE": "url image",
12
- "AI_IMAGE": "AI Image",
13
18
  "IMAGE_URL": "Image URL",
14
19
  "UPLOAD": "Upload",
15
20
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
@@ -1,4 +1,10 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
5
+ "TIPS": "Tips",
6
+ "AL": "AL",
7
+ "PEEK": "Peek",
2
8
  "ADDRESS": "Address",
3
9
  "LOCATION_LOGO": "Location Logo",
4
10
  "MESSAGE_ICON": "Message icon",
@@ -9,7 +15,6 @@
9
15
  "DARK": "Dark",
10
16
  "LIGHT": "Light",
11
17
  "URL_IMAGE": "url image",
12
- "AI_IMAGE": "AI Image",
13
18
  "IMAGE_URL": "Image URL",
14
19
  "UPLOAD": "Upload",
15
20
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
@@ -79,19 +79,21 @@ function (_super) {
79
79
  };
80
80
 
81
81
  _this.getStyle = function () {
82
- var _a = _this.props,
83
- data = _a.data,
84
- hoverState = _a.hoverState,
85
- maxHeight = _a.maxHeight,
86
- maxWidth = _a.maxWidth,
87
- minHeight = _a.minHeight,
88
- minWidth = _a.minWidth,
89
- limitWidthHeight = _a.limitWidthHeight,
90
- scale = _a.scale;
82
+ var _a, _b;
83
+
84
+ var _c = _this.props,
85
+ data = _c.data,
86
+ hoverState = _c.hoverState,
87
+ maxHeight = _c.maxHeight,
88
+ maxWidth = _c.maxWidth,
89
+ minHeight = _c.minHeight,
90
+ minWidth = _c.minWidth,
91
+ limitWidthHeight = _c.limitWidthHeight,
92
+ scale = _c.scale;
91
93
  var hoverImgSrc = _this.state.hoverImgSrc;
92
94
  var obj = {};
93
95
 
94
- if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
96
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
95
97
  // return { transform: `scale(${data.hover.magnification})` };
96
98
  obj.transform = "scale(" + data.hover.magnification + ")";
97
99
  obj.zIndex = '1';
@@ -133,11 +135,13 @@ function (_super) {
133
135
  };
134
136
 
135
137
  _this.mouseEnterImg = function () {
136
- var _a = _this.props,
137
- data = _a.data,
138
- isBackground = _a.isBackground;
138
+ var _a;
139
139
 
140
- if (data.hover.open && !isBackground) {
140
+ var _b = _this.props,
141
+ data = _b.data,
142
+ isBackground = _b.isBackground;
143
+
144
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
141
145
  _this.setState({
142
146
  hoverImgSrc: true
143
147
  });
@@ -145,11 +149,13 @@ function (_super) {
145
149
  };
146
150
 
147
151
  _this.mouseLeaveImg = function () {
148
- var _a = _this.props,
149
- data = _a.data,
150
- isBackground = _a.isBackground;
152
+ var _a;
153
+
154
+ var _b = _this.props,
155
+ data = _b.data,
156
+ isBackground = _b.isBackground;
151
157
 
152
- if (data.hover.open && !isBackground) {
158
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
153
159
  _this.setState({
154
160
  hoverImgSrc: false
155
161
  });
@@ -162,19 +168,19 @@ function (_super) {
162
168
  Image.prototype.render = function () {
163
169
  var _this = this;
164
170
 
165
- var _a, _b;
171
+ var _a, _b, _c, _d;
166
172
 
167
- var _c = this.props,
168
- data = _c.data,
169
- isBackground = _c.isBackground,
170
- hoverState = _c.hoverState,
171
- notNeedLazy = _c.notNeedLazy;
173
+ var _e = this.props,
174
+ data = _e.data,
175
+ isBackground = _e.isBackground,
176
+ hoverState = _e.hoverState,
177
+ notNeedLazy = _e.notNeedLazy;
172
178
  var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
173
179
  // console.log('--metaImage ', this.props);
174
180
 
175
181
  var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
176
182
 
177
- if (data.hover.open && data.hover.backgroundType === 'new' && (hoverState || hoverImgSrc)) {
183
+ if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
178
184
  srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
179
185
  } // if (window.magicDesign.isShop && srcImg?.includes('ecommerce/static')) {
180
186
  // srcImg = srcImg.replace('ecommerce/static', 'static');