@fonixtree/magic-design 0.1.76 → 0.1.78

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 (313) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
  9. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  10. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  11. package/es/assets/less/modal.less +1 -1
  12. package/es/common/ColorPicker/index.js +4 -1
  13. package/es/common/Field/index.js +20 -3
  14. package/es/common/ImageLazy/index.js +172 -0
  15. package/es/common/ImageLazy/index.less +0 -0
  16. package/es/common/ImagePicker/index.js +50 -5
  17. package/es/common/ImagePicker/index.less +1 -0
  18. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  19. package/es/common/LinkModal/CatgTable/index.js +1 -1
  20. package/es/common/LinkModal/CouponTable/index.js +10 -2
  21. package/es/common/LinkModal/FilteredProductModal/index.js +12 -9
  22. package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
  23. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  24. package/es/common/LinkModal/index.js +1 -1
  25. package/es/common/ProductModal/index.js +25 -32
  26. package/es/common/Video/index.js +11 -3
  27. package/es/common/Video/index.less +11 -7
  28. package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  29. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  30. package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  31. package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  32. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  33. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  34. package/es/composite-comp/bol/components/ImageText/pc/index.js +95 -3
  35. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  36. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  37. package/es/composite-comp/bol/components/Location/index.js +100 -0
  38. package/es/composite-comp/bol/components/Location/index.less +15 -0
  39. package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  40. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  41. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  42. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  43. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  44. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  45. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  46. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  47. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  48. package/es/composite-comp/common/components/ProductItem/index.js +8 -4
  49. package/es/composite-comp/common/components/ProductItem/index.less +30 -15
  50. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  51. package/es/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  52. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  53. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  54. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  55. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  56. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  57. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
  58. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
  59. package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  60. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  61. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  62. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  63. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  64. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  65. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  66. package/es/constants/component-types.js +10 -2
  67. package/es/constants/index.js +10 -1
  68. package/es/constants/layout.js +21 -1
  69. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  70. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  71. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  72. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  73. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  74. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  75. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  76. package/es/core/Designer/AiImageGenerator/index.js +364 -63
  77. package/es/core/Designer/AiImageGenerator/index.less +70 -46
  78. package/es/core/Designer/ChatRobot/index.js +51 -14
  79. package/es/core/Designer/ChatRobot/index.less +11 -0
  80. package/es/core/Designer/ConfigPanel/index.js +2 -1
  81. package/es/core/Designer/FonixtreeGpt/index.js +32 -171
  82. package/es/core/Designer/LeftTitle/index.js +1 -1
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  84. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  85. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  86. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  87. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  88. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  89. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  90. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  91. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  92. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  93. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  94. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  95. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  96. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  97. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  98. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  99. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  100. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  101. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  102. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  103. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  104. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  105. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  106. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  107. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  108. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  109. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  110. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  111. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  112. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  113. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  114. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  115. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  116. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  117. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  118. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  119. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  120. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  121. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  122. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  123. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  124. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  125. package/es/core/Designer/ToolBarModal/index.js +366 -0
  126. package/es/core/Designer/ToolBarModal/index.less +32 -0
  127. package/es/core/Designer/index.js +33 -10
  128. package/es/core/Renderer/index.js +20 -21
  129. package/es/decorator/index.js +38 -1
  130. package/es/decorator/lazyLoadDecorator.js +75 -0
  131. package/es/locale/en/en.json +6 -1
  132. package/es/locale/es/es.json +6 -1
  133. package/es/locale/id/id.json +6 -1
  134. package/es/meta-comp/components/Button/index.js +7 -0
  135. package/es/meta-comp/components/Image/index.js +19 -3
  136. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  137. package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
  138. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  139. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  140. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  141. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  142. package/es/meta-comp/components/Text/index.js +110 -372
  143. package/es/meta-comp/components/Text/index.less +57 -0
  144. package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  145. package/es/meta-comp/config-panels/ImageConfig/index.js +3 -1
  146. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  147. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  148. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  149. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  150. package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
  151. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  152. package/es/mobx/Frame.js +7 -1
  153. package/es/utils/androidUtil.js +6 -0
  154. package/es/utils/commonUtil.js +35 -7
  155. package/es/utils/coreUtil.js +15 -0
  156. package/es/utils/currencyUtil.js +29 -10
  157. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  158. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  159. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  160. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  161. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  163. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  164. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  165. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  166. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  167. package/lib/assets/less/modal.less +1 -1
  168. package/lib/common/ColorPicker/index.js +4 -1
  169. package/lib/common/Field/index.js +20 -3
  170. package/lib/common/ImageLazy/index.js +172 -0
  171. package/lib/common/ImageLazy/index.less +0 -0
  172. package/lib/common/ImagePicker/index.js +50 -5
  173. package/lib/common/ImagePicker/index.less +1 -0
  174. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  175. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  176. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  177. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -9
  178. package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
  179. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  180. package/lib/common/LinkModal/index.js +1 -1
  181. package/lib/common/ProductModal/index.js +25 -32
  182. package/lib/common/Video/index.js +11 -3
  183. package/lib/common/Video/index.less +11 -7
  184. package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  185. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  186. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  187. package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  188. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  189. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +95 -3
  191. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  192. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  193. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  194. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  195. package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  196. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  197. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  198. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  199. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  200. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  201. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  202. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  203. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  204. package/lib/composite-comp/common/components/ProductItem/index.js +8 -4
  205. package/lib/composite-comp/common/components/ProductItem/index.less +30 -15
  206. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  207. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  208. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  209. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  210. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  211. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  212. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  213. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
  214. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
  215. package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  216. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  217. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  218. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  219. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  220. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  221. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  222. package/lib/constants/component-types.js +10 -2
  223. package/lib/constants/index.js +10 -1
  224. package/lib/constants/layout.js +21 -1
  225. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  226. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  227. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  228. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  229. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  230. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  231. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  232. package/lib/core/Designer/AiImageGenerator/index.js +364 -63
  233. package/lib/core/Designer/AiImageGenerator/index.less +70 -46
  234. package/lib/core/Designer/ChatRobot/index.js +51 -14
  235. package/lib/core/Designer/ChatRobot/index.less +11 -0
  236. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  237. package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
  238. package/lib/core/Designer/LeftTitle/index.js +1 -1
  239. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  240. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  241. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  242. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  243. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  244. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  245. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  246. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  247. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  248. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  249. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  250. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  251. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  252. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  253. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  254. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  255. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  256. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  257. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  258. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  259. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  260. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  261. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  262. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  263. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  264. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  265. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  266. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  267. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  268. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  269. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  270. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  271. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  272. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  273. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  274. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  275. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  276. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  277. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  278. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  279. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  280. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  281. package/lib/core/Designer/ToolBarModal/index.js +366 -0
  282. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  283. package/lib/core/Designer/index.js +33 -10
  284. package/lib/core/Renderer/index.js +20 -21
  285. package/lib/decorator/index.js +38 -1
  286. package/lib/decorator/lazyLoadDecorator.js +75 -0
  287. package/lib/locale/en/en.json +6 -1
  288. package/lib/locale/es/es.json +6 -1
  289. package/lib/locale/id/id.json +6 -1
  290. package/lib/meta-comp/components/Button/index.js +7 -0
  291. package/lib/meta-comp/components/Image/index.js +19 -3
  292. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  293. package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
  294. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  295. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  296. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  297. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  298. package/lib/meta-comp/components/Text/index.js +110 -372
  299. package/lib/meta-comp/components/Text/index.less +57 -0
  300. package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  301. package/lib/meta-comp/config-panels/ImageConfig/index.js +3 -1
  302. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  303. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  304. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  305. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  306. package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
  307. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  308. package/lib/mobx/Frame.js +7 -1
  309. package/lib/utils/androidUtil.js +6 -0
  310. package/lib/utils/commonUtil.js +35 -7
  311. package/lib/utils/coreUtil.js +15 -0
  312. package/lib/utils/currencyUtil.js +29 -10
  313. package/package.json +5 -2
@@ -11,6 +11,8 @@ var _antd = require("antd");
11
11
 
12
12
  require("./index.less");
13
13
 
14
+ var _lodash = require("lodash");
15
+
14
16
  var _locale = require("../../../locale");
15
17
 
16
18
  var _SpacingConfig = _interopRequireDefault(require("../../../composite-comp/common/config-panels/SpacingConfig"));
@@ -104,11 +106,11 @@ function (_super) {
104
106
 
105
107
  _this.updateAttr(data, 'hover', {
106
108
  open: true,
107
- buttonBorder: data.buttonBorder,
108
- buttonIcon: data.buttonIcon,
109
- buttonText: data.buttonText,
109
+ buttonBorder: (0, _lodash.cloneDeep)(data.buttonBorder),
110
+ buttonIcon: (0, _lodash.cloneDeep)(data.buttonIcon),
111
+ buttonText: (0, _lodash.cloneDeep)(data.buttonText),
110
112
  content: {
111
- backgroundColor: data.content.backgroundColor
113
+ backgroundColor: (0, _lodash.cloneDeep)(data.content.backgroundColor)
112
114
  }
113
115
  }); // console.log('--ffd, button hover first click', data);
114
116
 
@@ -162,7 +164,7 @@ function (_super) {
162
164
 
163
165
  var fontSizeKey = window.magicDesign.device == 'pc' ? 'pcFontSize' : 'fontSize';
164
166
 
165
- var ButtonTextSetting = function ButtonTextSetting(data) {
167
+ var ButtonTextSetting = function ButtonTextSetting(_data) {
166
168
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
167
169
  title: (0, _locale.i18n)('FONT_STYLE')
168
170
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
@@ -171,24 +173,24 @@ function (_super) {
171
173
  return t.key == v;
172
174
  });
173
175
 
174
- _extends(data, __assign(__assign({}, findOne), {
176
+ _extends(_data, __assign(__assign({}, findOne), {
175
177
  sizeType: findOne === null || findOne === void 0 ? void 0 : findOne.key
176
178
  }));
177
179
 
178
180
  _this.selfRender();
179
181
  },
180
- value: data.sizeType
182
+ value: _data.sizeType
181
183
  }, _TextConfig.sizeTypeList.map(function (sizeType) {
182
184
  return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
183
185
  value: sizeType.key
184
186
  }, sizeType.key);
185
- }))), data.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
187
+ }))), _data.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
186
188
  title: (0, _locale.i18n)('FONT_FAMILY')
187
189
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
188
190
  onChange: function onChange(v) {
189
- _this.updateAttr(data, 'fontFamily', v);
191
+ _this.updateAttr(_data, 'fontFamily', v);
190
192
  },
191
- value: data.fontFamily
193
+ value: _data.fontFamily
192
194
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
193
195
  value: "Montserrat"
194
196
  }, "Montserrat"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
@@ -197,9 +199,9 @@ function (_super) {
197
199
  title: (0, _locale.i18n)('FONT_WEIGHT')
198
200
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
199
201
  onChange: function onChange(v) {
200
- _this.updateAttr(data, 'fontWeight', v);
202
+ _this.updateAttr(_data, 'fontWeight', v);
201
203
  },
202
- value: data.fontWeight
204
+ value: _data.fontWeight
203
205
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
204
206
  value: 400
205
207
  }, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
@@ -210,34 +212,34 @@ function (_super) {
210
212
  onChange: function onChange(_a) {
211
213
  var count = _a.count;
212
214
 
213
- _this.updateAttr(data, fontSizeKey, count);
215
+ _this.updateAttr(_data, fontSizeKey, count);
214
216
  },
215
217
  unit: "px",
216
218
  value: {
217
- count: data[fontSizeKey]
219
+ count: _data[fontSizeKey]
218
220
  }
219
221
  }))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
220
222
  title: ""
221
223
  }, /*#__PURE__*/_react["default"].createElement(_common.FontStyles, {
222
224
  onChange: function onChange(value) {
223
- _extends(data, value);
225
+ _extends(_data, value);
224
226
 
225
227
  _this.selfRender();
226
228
  },
227
- value: data
229
+ value: _data
228
230
  })));
229
231
  };
230
232
 
231
- var ButtonBorderSetting = function ButtonBorderSetting(data) {
233
+ var ButtonBorderSetting = function ButtonBorderSetting(_data) {
232
234
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
233
235
  split: true,
234
236
  title: (0, _locale.i18n)('BORDER_COLOR')
235
237
  }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
236
238
  colorType: "rgba",
237
239
  onChange: function onChange(value) {
238
- _this.updateAttr(data, 'borderColor', value);
240
+ _this.updateAttr(_data, 'borderColor', value);
239
241
  },
240
- value: data.borderColor
242
+ value: _data.borderColor
241
243
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
242
244
  title: (0, _locale.i18n)('BORDER_RADIUS')
243
245
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
@@ -245,15 +247,15 @@ function (_super) {
245
247
  onChange: function onChange(_a) {
246
248
  var count = _a.count;
247
249
 
248
- _this.updateAttr(data, 'borderRadius', count);
250
+ _this.updateAttr(_data, 'borderRadius', count);
249
251
  },
250
252
  value: {
251
- count: data.borderRadius
253
+ count: _data.borderRadius
252
254
  }
253
255
  })));
254
256
  };
255
257
 
256
- var ButtonIconSetting = function ButtonIconSetting(data) {
258
+ var ButtonIconSetting = function ButtonIconSetting(_data) {
257
259
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
258
260
  title: (0, _locale.i18n)('ICON')
259
261
  }, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
@@ -262,18 +264,18 @@ function (_super) {
262
264
  },
263
265
  onClick: function onClick() {
264
266
  _this.setState({
265
- isHover: data == _this.props.data.hover.buttonIcon
267
+ isHover: _data == _this.props._data.hover.buttonIcon
266
268
  });
267
269
  },
268
- value: data.iconUrl
269
- })), data.iconUrl && /*#__PURE__*/_react["default"].createElement(_common.Field, {
270
+ value: _data.iconUrl
271
+ })), _data.iconUrl && /*#__PURE__*/_react["default"].createElement(_common.Field, {
270
272
  title: (0, _locale.i18n)('ICON_PLACEMENT')
271
273
  }, /*#__PURE__*/_react["default"].createElement(_common.ButtonIconLayout, {
272
- icon: data.iconUrl,
274
+ icon: _data.iconUrl,
273
275
  onChange: function onChange(value) {
274
- return _this.updateAttr(data, 'layout', value);
276
+ return _this.updateAttr(_data, 'layout', value);
275
277
  },
276
- value: data.layout
278
+ value: _data.layout
277
279
  })));
278
280
  };
279
281
 
@@ -319,7 +319,8 @@ function (_super) {
319
319
  data = _a.data,
320
320
  needHover = _a.needHover,
321
321
  needClickArea = _a.needClickArea,
322
- needURL = _a.needURL;
322
+ needURL = _a.needURL,
323
+ recommendImgSize = _a.recommendImgSize;
323
324
  var selectImg = this.getSelectedImg(data);
324
325
 
325
326
  var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
@@ -330,6 +331,7 @@ function (_super) {
330
331
  onChange: function onChange(v, way) {
331
332
  _this.getImg(v, way);
332
333
  },
334
+ recommendImgSize: recommendImgSize,
333
335
  value: selectImg
334
336
  }), needClickArea && selectImg && /*#__PURE__*/_react["default"].createElement(_HotAreaConfig["default"], {
335
337
  imgUrl: selectImg,
@@ -0,0 +1,100 @@
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 _reactQuill = _interopRequireDefault(require("react-quill"));
11
+
12
+ require("react-quill/dist/quill.snow.css");
13
+
14
+ var _antd = require("antd");
15
+
16
+ require("./index.less");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var TextEditModal =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(TextEditModal, _super);
50
+
51
+ function TextEditModal() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {
55
+ value: ''
56
+ };
57
+ _this.reactQuillRef = null;
58
+ _this.quillRef = null;
59
+
60
+ _this.getHtml = function () {
61
+ return _this.quillRef.root.innerHTML;
62
+ };
63
+
64
+ return _this;
65
+ }
66
+
67
+ TextEditModal.prototype.componentDidMount = function () {
68
+ this.quillRef = this.reactQuillRef.getEditor();
69
+ };
70
+
71
+ TextEditModal.prototype.render = function () {
72
+ var _this = this;
73
+
74
+ var _a = this.props,
75
+ onCancel = _a.onCancel,
76
+ onOk = _a.onOk;
77
+ var value = this.state.value;
78
+ return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
79
+ closable: false,
80
+ onCancel: onCancel,
81
+ onOk: onOk,
82
+ visible: true,
83
+ width: 1000
84
+ }, /*#__PURE__*/_react["default"].createElement(_reactQuill["default"], {
85
+ ref: function ref(el) {
86
+ _this.reactQuillRef = el;
87
+ },
88
+ style: {
89
+ height: 600
90
+ },
91
+ value: value
92
+ }));
93
+ };
94
+
95
+ TextEditModal.defaultProps = {};
96
+ return TextEditModal;
97
+ }(_react["default"].Component);
98
+
99
+ var _default = TextEditModal;
100
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ .text-label-content {
2
+ background-color: #f5f6f7;
3
+
4
+ .label-wrap {
5
+ display: flex;
6
+ align-items: center;
7
+ flex-wrap: wrap;
8
+
9
+ .label-item {
10
+ padding: 5px 11px;
11
+ font-size: 14px;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ border-radius: 5px;
16
+ background-color: #fff;
17
+ margin: 8px;
18
+ cursor: pointer;
19
+
20
+ &:hover {
21
+ background-color: #f6f6f7;
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _antd = require("antd");
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ require("./index.less");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ 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); }
17
+
18
+ var __extends = void 0 && (void 0).__extends || function () {
19
+ var _extendStatics = function extendStatics(d, b) {
20
+ _extendStatics = Object.setPrototypeOf || {
21
+ __proto__: []
22
+ } instanceof Array && function (d, b) {
23
+ d.__proto__ = b;
24
+ } || function (d, b) {
25
+ for (var p in b) {
26
+ if (b.hasOwnProperty(p)) d[p] = b[p];
27
+ }
28
+ };
29
+
30
+ return _extendStatics(d, b);
31
+ };
32
+
33
+ return function (d, b) {
34
+ _extendStatics(d, b);
35
+
36
+ function __() {
37
+ this.constructor = d;
38
+ }
39
+
40
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
+ };
42
+ }();
43
+ /* eslint-disable react/no-danger */
44
+
45
+
46
+ var UnderlineSelect =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(UnderlineSelect, _super);
50
+
51
+ function UnderlineSelect() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.containerRef = /*#__PURE__*/_react["default"].createRef();
55
+ return _this;
56
+ }
57
+
58
+ UnderlineSelect.prototype.render = function () {
59
+ var _this = this;
60
+
61
+ var _a = this.props.repeatCount,
62
+ repeatCount = _a === void 0 ? 50 : _a;
63
+ return /*#__PURE__*/_react["default"].createElement("div", {
64
+ ref: this.containerRef,
65
+ className: "underline-select-wrap"
66
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, _extends({
67
+ getPopupContainer: function getPopupContainer() {
68
+ return _this.containerRef.current;
69
+ }
70
+ }, this.props), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
71
+ value: "solid"
72
+ }, /*#__PURE__*/_react["default"].createElement("div", {
73
+ className: "line-config line-solid",
74
+ dangerouslySetInnerHTML: {
75
+ __html: '&nbsp;'.repeat(repeatCount)
76
+ }
77
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
78
+ value: "dashed"
79
+ }, /*#__PURE__*/_react["default"].createElement("div", {
80
+ className: "line-config dashed-line",
81
+ dangerouslySetInnerHTML: {
82
+ __html: '&nbsp;'.repeat(repeatCount)
83
+ }
84
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
85
+ value: "double"
86
+ }, /*#__PURE__*/_react["default"].createElement("div", {
87
+ className: "line-config double-line",
88
+ dangerouslySetInnerHTML: {
89
+ __html: '&nbsp;'.repeat(repeatCount)
90
+ }
91
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
92
+ value: "wavy"
93
+ }, /*#__PURE__*/_react["default"].createElement("div", {
94
+ className: "line-config wavy-line",
95
+ dangerouslySetInnerHTML: {
96
+ __html: '&nbsp;'.repeat(repeatCount)
97
+ }
98
+ }))));
99
+ };
100
+
101
+ UnderlineSelect.defaultProps = {
102
+ repeatCount: 50
103
+ };
104
+ return UnderlineSelect;
105
+ }(_react["default"].Component);
106
+
107
+ var _default = UnderlineSelect;
108
+ exports["default"] = _default;
@@ -0,0 +1,26 @@
1
+ .underline-select-wrap {
2
+ .line-config {
3
+ text-decoration-line: line-through;
4
+ text-decoration-color: #000;
5
+ font-size: 14px;
6
+ font-weight: 600;
7
+
8
+ &.line-solid {
9
+ text-decoration-style: solid;
10
+ }
11
+
12
+ &.dashed-line {
13
+ text-decoration-style: dashed;
14
+ }
15
+
16
+ &.double-line {
17
+ text-decoration-style: double;
18
+ }
19
+
20
+ &.wavy-line {
21
+ text-decoration-style: wavy;
22
+ }
23
+ }
24
+
25
+
26
+ }
@@ -13,6 +13,8 @@ var _antd = require("antd");
13
13
 
14
14
  var _TextLabel = _interopRequireDefault(require("./TextLabel"));
15
15
 
16
+ var _UnderlineSelect = _interopRequireDefault(require("./UnderlineSelect"));
17
+
16
18
  var _coreUtil = require("../../../utils/coreUtil");
17
19
 
18
20
  var _locale = require("../../../locale");
@@ -146,6 +148,7 @@ function (_super) {
146
148
  var _this = _super !== null && _super.apply(this, arguments) || this;
147
149
 
148
150
  _this.state = {};
151
+ _this.containerRef = /*#__PURE__*/_react["default"].createRef();
149
152
 
150
153
  _this.onSizeTypeChange = function (v, obj) {
151
154
  _extends(obj, sizeTypeMap[v]);
@@ -329,42 +332,17 @@ function (_super) {
329
332
  value: data.underline.textDecorationColor
330
333
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
331
334
  title: (0, _locale.i18n)('UNDERLINE_STYLE')
332
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
335
+ }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
333
336
  onChange: function onChange(v) {
334
337
  data.underline.textDecorationStyle = v;
335
338
 
336
339
  _this.selfRender();
337
340
  },
341
+ style: {
342
+ width: '100%'
343
+ },
338
344
  value: data.underline.textDecorationStyle
339
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
340
- value: "solid"
341
- }, /*#__PURE__*/_react["default"].createElement("div", {
342
- className: "line-config line-solid",
343
- dangerouslySetInnerHTML: {
344
- __html: '&nbsp;'.repeat(50)
345
- }
346
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
347
- value: "dashed"
348
- }, /*#__PURE__*/_react["default"].createElement("div", {
349
- className: "line-config dashed-line",
350
- dangerouslySetInnerHTML: {
351
- __html: '&nbsp;'.repeat(50)
352
- }
353
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
354
- value: "double"
355
- }, /*#__PURE__*/_react["default"].createElement("div", {
356
- className: "line-config double-line",
357
- dangerouslySetInnerHTML: {
358
- __html: '&nbsp;'.repeat(50)
359
- }
360
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
361
- value: "wavy"
362
- }, /*#__PURE__*/_react["default"].createElement("div", {
363
- className: "line-config wavy-line",
364
- dangerouslySetInnerHTML: {
365
- __html: '&nbsp;'.repeat(50)
366
- }
367
- }))))),
345
+ }))),
368
346
  metaOption: data.underline,
369
347
  toggleType: 'checkbox'
370
348
  }];
@@ -380,6 +358,7 @@ function (_super) {
380
358
  }
381
359
 
382
360
  return /*#__PURE__*/_react["default"].createElement("div", {
361
+ ref: this.containerRef,
383
362
  className: "m-text-config"
384
363
  }, /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
385
364
  // headerSize="small"
@@ -3,22 +3,18 @@
3
3
  flex-direction: column;
4
4
  padding: 0 12px;
5
5
  background-color: #F5F6F7;
6
- .line-config {
7
- text-decoration-line: line-through;
8
- text-decoration-color: #000;
6
+
7
+ .edit-text-btn {
8
+ margin: 8px auto;
9
+ padding: 6px 16px;
10
+ background-color: #2e54eb;
11
+ color: #fff;
9
12
  font-size: 14px;
10
- font-weight: 600;
11
- }
12
- .line-solid {
13
- text-decoration-style: solid;
14
- }
15
- .dashed-line {
16
- text-decoration-style: dashed;
17
- }
18
- .double-line {
19
- text-decoration-style: double;
20
- }
21
- .wavy-line {
22
- text-decoration-style: wavy;
13
+ border-radius: 8px;
14
+ cursor: pointer;
15
+
16
+ &:hover {
17
+ background-color: #0837f4;
18
+ }
23
19
  }
24
20
  }
package/es/mobx/Frame.js CHANGED
@@ -38,11 +38,17 @@ function () {
38
38
  content: '',
39
39
  okText: 'Ok',
40
40
  cancelText: 'Cancel',
41
+ quillRef: null,
41
42
  onOk: function onOk() {},
42
43
  onCancel: function onCancel() {}
43
44
  };
45
+ this.textModalState = {
46
+ visible: false,
47
+ onOk: function onOk() {}
48
+ };
44
49
  (0, _mobx.makeObservable)(this, {
45
- confirmState: _mobx.observable
50
+ confirmState: _mobx.observable,
51
+ textModalState: _mobx.observable
46
52
  });
47
53
  }
48
54
  /** 修改状态 */
@@ -117,6 +117,12 @@ var sendToApp = function sendToApp(params) {
117
117
  // 对接flutter版本
118
118
  if (window.flutter_inject_js_bridge && window.flutter_inject_js_bridge.postMessage) {
119
119
  window.flutter_inject_js_bridge.postMessage(JSON.stringify(params));
120
+ } // 对接Nuri App
121
+
122
+
123
+ if (window.WebViewJavascriptBridge) {
124
+ window.WebViewJavascriptBridge.callHandler('action', // 调用java的函数名字
125
+ params);
120
126
  } // 对接mpaas版本
121
127
 
122
128
 
@@ -7,7 +7,7 @@ exports.addZero = exports.addUrlQuery = void 0;
7
7
  exports.asyncDataURLtoImage = asyncDataURLtoImage;
8
8
  exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
9
9
  exports.commonFetch = commonFetch;
10
- exports.compatibleNewPageData = void 0;
10
+ exports.convertCount = exports.compatibleNewPageData = void 0;
11
11
  exports.convertImageUrl = convertImageUrl;
12
12
  exports.convertToRem = void 0;
13
13
  exports.copy2ClipBoard = copy2ClipBoard;
@@ -744,12 +744,12 @@ exports.asyncNextTick = asyncNextTick;
744
744
 
745
745
  var convertToRem = function convertToRem(value) {
746
746
  // return value; // PTO项目 解开注释
747
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
747
+ if (window.magicDesign.device === 'pc') {
748
748
  return value + "px";
749
749
  }
750
750
 
751
751
  var baseFont = ensure(function () {
752
- return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px');
752
+ return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
753
753
  }, 50);
754
754
  var pxValue = parseFloat(value);
755
755
  var remValue = pxValue / baseFont; // 假设1rem = 50px
@@ -763,7 +763,7 @@ exports.convertToRem = convertToRem;
763
763
 
764
764
  var pxToRem = function pxToRem(styleObj) {
765
765
  // return styleObj; // PTO项目 解开注释
766
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
766
+ if (window.magicDesign.device === 'pc') {
767
767
  return styleObj;
768
768
  }
769
769
 
@@ -774,9 +774,9 @@ var pxToRem = function pxToRem(styleObj) {
774
774
  var value = styleObj[key];
775
775
 
776
776
  if (typeof value === 'string' && value.endsWith('px')) {
777
- remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
777
+ remObj[key] = convertToRem(value.split('px')[0]);
778
778
  } else if (typeof value === 'number') {
779
- remObj[key] = convertToRem(value);
779
+ remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
780
780
  } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
781
781
  var paddingValues = value.split(' ');
782
782
  var remPaddingValues = paddingValues.map(function (paddingValue) {
@@ -843,6 +843,20 @@ var compatibleNewPageData = function compatibleNewPageData(pageData) {
843
843
  };
844
844
  }
845
845
  }); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
846
+ } // 兼容新功能:SEARCH 新增控制购物车和消息图标的开关
847
+
848
+
849
+ if (child.type === 'SEARCH') {
850
+ if (!child.content.icon.cartIcon || !child.content.icon.messageIcon) {
851
+ child.content.icon.cartIcon = {
852
+ pc: true,
853
+ mobile: false
854
+ };
855
+ child.content.icon.messageIcon = {
856
+ pc: false,
857
+ mobile: true
858
+ };
859
+ }
846
860
  }
847
861
  });
848
862
  }
@@ -870,4 +884,18 @@ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
870
884
  link.click();
871
885
  };
872
886
 
873
- exports.downloadBase64Image = downloadBase64Image;
887
+ exports.downloadBase64Image = downloadBase64Image;
888
+
889
+ var convertCount = function convertCount(value) {
890
+ var newValue = value;
891
+
892
+ if (value >= 1000000) {
893
+ newValue = Number(value / 1000000).toFixed(1) + "M";
894
+ } else if (value >= 1000) {
895
+ newValue = Number(value / 1000).toFixed(1) + "K";
896
+ }
897
+
898
+ return newValue;
899
+ };
900
+
901
+ exports.convertCount = convertCount;