@fonixtree/magic-design 1.0.5 → 1.0.7

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 (517) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +67 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +67 -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/slider.less +49 -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/ImageModal/index.js +35 -2
  17. package/es/common/ImagePicker/index.js +76 -12
  18. package/es/common/ImagePicker/index.less +1 -0
  19. package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
  20. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  21. package/es/common/LinkModal/CatgTable/index.js +6 -3
  22. package/es/common/LinkModal/CouponTable/index.js +10 -2
  23. package/es/common/LinkModal/FilteredProductModal/index.js +6 -7
  24. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  25. package/es/common/LinkModal/index.js +6 -0
  26. package/es/common/ProductModal/index.js +4 -4
  27. package/es/common/Video/index.js +11 -3
  28. package/es/common/Video/index.less +11 -7
  29. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  30. package/es/composite-comp/bol/components/Banner/index.js +15 -1
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  32. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  33. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  34. package/es/composite-comp/bol/components/Button/index.js +3 -4
  35. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  36. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  37. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  38. package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  39. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  40. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  41. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  42. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  43. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  44. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  45. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  46. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  47. package/es/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  48. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  49. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  50. package/es/composite-comp/bol/components/Location/index.js +100 -0
  51. package/es/composite-comp/bol/components/Location/index.less +15 -0
  52. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  53. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  54. package/es/composite-comp/bol/components/Text/index.js +3 -4
  55. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  56. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  57. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  58. package/es/composite-comp/bol/components/Video/index.js +23 -1
  59. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  60. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  61. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  62. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  63. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  64. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  65. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  66. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  67. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  68. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  69. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  70. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  71. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  72. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  73. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  74. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  75. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  76. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  77. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  78. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  79. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  80. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  81. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  82. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  83. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  84. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  85. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  86. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  87. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  88. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  89. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  90. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  91. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  92. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  93. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  94. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  95. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  96. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  97. package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  98. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  99. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  100. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  101. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  102. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  103. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  104. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  105. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
  106. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -80
  107. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  108. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  109. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  110. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  111. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  112. package/es/constants/component-types.js +10 -2
  113. package/es/constants/index.js +12 -2
  114. package/es/constants/layout.js +21 -1
  115. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  116. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  117. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  118. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  119. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  120. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  121. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  122. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  123. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  124. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  125. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  126. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  127. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  128. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  129. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  130. package/es/core/Designer/AiImageGenerator/index.js +752 -0
  131. package/es/core/Designer/AiImageGenerator/index.less +136 -0
  132. package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  133. package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  134. package/es/core/Designer/ChatRobot/index.js +343 -0
  135. package/es/core/Designer/ChatRobot/index.less +138 -0
  136. package/es/core/Designer/ChatRobot/markdown.less +1 -0
  137. package/es/core/Designer/ConfigPanel/index.js +2 -1
  138. package/es/core/Designer/FonixtreeGpt/index.js +160 -0
  139. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  140. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  141. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  142. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  143. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  144. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  145. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  146. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  147. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  148. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  149. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  150. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  151. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  152. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  153. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  154. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  155. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  156. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  157. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  158. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  159. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  160. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  161. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  162. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  163. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  164. package/es/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  165. package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  166. package/es/core/Designer/TextEditModal/index.js +100 -0
  167. package/es/core/Designer/TextEditModal/index.less +4 -0
  168. package/es/core/Designer/TextEditModal_old/index.js +142 -0
  169. package/es/core/Designer/TextEditModal_old/index.less +25 -0
  170. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  171. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  172. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  173. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  174. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  175. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  176. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  177. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  178. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  179. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  180. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  181. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  182. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  183. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  184. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  185. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  186. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  187. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  188. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  189. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  190. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  191. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  192. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  193. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  194. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  195. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  196. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  197. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  198. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  199. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  200. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  201. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  202. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  203. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  204. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  205. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  206. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  207. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  208. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  209. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  210. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  211. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  212. package/es/core/Designer/ToolBarModal/index.js +354 -0
  213. package/es/core/Designer/ToolBarModal/index.less +32 -0
  214. package/es/core/Designer/index.js +56 -15
  215. package/es/decorator/index.js +38 -1
  216. package/es/decorator/lazyLoadDecorator.js +75 -0
  217. package/es/decorator/metaDecorator.js +1 -1
  218. package/es/locale/en/en.json +10 -0
  219. package/es/locale/es/es.json +10 -0
  220. package/es/locale/id/id.json +10 -0
  221. package/es/meta-comp/components/Button/index.js +7 -0
  222. package/es/meta-comp/components/Image/index.js +19 -3
  223. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  224. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  225. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  226. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  227. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  228. package/es/meta-comp/components/Text/index.js +108 -372
  229. package/es/meta-comp/components/Text/index.less +57 -0
  230. package/es/meta-comp/config-panels/ButtonConfig/index.js +12 -12
  231. package/es/meta-comp/config-panels/ImageConfig/index.js +35 -12
  232. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  233. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  234. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  235. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  236. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  237. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  238. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  239. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  240. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  241. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  242. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  243. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  244. package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  245. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  246. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  247. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  248. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  249. package/es/meta-comp/config-panels/TextConfig/index.js +14 -31
  250. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  251. package/es/mobx/Frame.js +7 -1
  252. package/es/mobx/Store.js +3 -0
  253. package/es/utils/androidUtil.js +8 -1
  254. package/es/utils/businessUtil.js +13 -0
  255. package/es/utils/commonUtil.js +156 -34
  256. package/es/utils/coreUtil.js +18 -4
  257. package/es/utils/currencyUtil.js +8 -8
  258. package/lib/assets/fonts/magic-box-iconfont.css +67 -3
  259. package/lib/assets/fonts/magic-box-iconfont.css.bak +67 -3
  260. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  261. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  262. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  263. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  264. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  265. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  266. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  267. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  268. package/lib/assets/less/slider.less +49 -1
  269. package/lib/common/ColorPicker/index.js +4 -1
  270. package/lib/common/Field/index.js +20 -3
  271. package/lib/common/ImageLazy/index.js +172 -0
  272. package/lib/common/ImageLazy/index.less +0 -0
  273. package/lib/common/ImageModal/index.js +35 -2
  274. package/lib/common/ImagePicker/index.js +76 -12
  275. package/lib/common/ImagePicker/index.less +1 -0
  276. package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
  277. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  278. package/lib/common/LinkModal/CatgTable/index.js +6 -3
  279. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  280. package/lib/common/LinkModal/FilteredProductModal/index.js +6 -7
  281. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  282. package/lib/common/LinkModal/index.js +6 -0
  283. package/lib/common/ProductModal/index.js +4 -4
  284. package/lib/common/Video/index.js +11 -3
  285. package/lib/common/Video/index.less +11 -7
  286. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  287. package/lib/composite-comp/bol/components/Banner/index.js +15 -1
  288. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  289. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  290. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  291. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  292. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  293. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  294. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  295. package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  296. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  297. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  298. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  299. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  300. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  301. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  302. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  303. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  304. package/lib/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  305. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  306. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  307. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  308. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  309. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  310. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  311. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  312. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  313. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  314. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  315. package/lib/composite-comp/bol/components/Video/index.js +23 -1
  316. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  317. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  318. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  319. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  320. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  321. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  322. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  323. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  324. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  325. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  326. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  327. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  328. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  329. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  330. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  331. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  332. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  333. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  334. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  335. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  336. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  337. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  338. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  339. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  340. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  341. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  342. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  343. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  344. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  345. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  346. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  347. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  348. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  349. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  350. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  351. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  352. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  353. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  354. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  355. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  356. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  357. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  358. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  359. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  360. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  361. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  362. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
  363. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -80
  364. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  365. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  366. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  367. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  368. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  369. package/lib/constants/component-types.js +10 -2
  370. package/lib/constants/index.js +12 -2
  371. package/lib/constants/layout.js +21 -1
  372. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  373. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  374. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  375. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  376. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  377. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  378. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  379. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  380. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  381. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  382. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  383. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  384. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  385. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  386. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  387. package/lib/core/Designer/AiImageGenerator/index.js +752 -0
  388. package/lib/core/Designer/AiImageGenerator/index.less +136 -0
  389. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  390. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  391. package/lib/core/Designer/ChatRobot/index.js +343 -0
  392. package/lib/core/Designer/ChatRobot/index.less +138 -0
  393. package/lib/core/Designer/ChatRobot/markdown.less +1 -0
  394. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  395. package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
  396. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  397. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  398. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  399. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  400. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  401. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  402. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  403. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  404. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  405. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  406. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  407. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  408. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  409. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  410. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  411. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  412. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  413. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  414. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  415. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  416. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  417. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  418. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  419. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  420. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  421. package/lib/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  422. package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  423. package/lib/core/Designer/TextEditModal/index.js +100 -0
  424. package/lib/core/Designer/TextEditModal/index.less +4 -0
  425. package/lib/core/Designer/TextEditModal_old/index.js +142 -0
  426. package/lib/core/Designer/TextEditModal_old/index.less +25 -0
  427. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  428. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  429. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  430. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  431. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  432. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  433. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  434. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  435. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  436. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  437. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  438. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  439. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  440. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  441. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  442. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  443. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  444. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  445. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  446. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  447. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  448. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  449. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  450. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  451. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  452. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  453. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  454. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  455. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  456. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  457. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  458. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  459. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  460. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  461. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  462. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  463. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  464. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  465. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  466. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  467. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  468. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  469. package/lib/core/Designer/ToolBarModal/index.js +354 -0
  470. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  471. package/lib/core/Designer/index.js +56 -15
  472. package/lib/decorator/index.js +38 -1
  473. package/lib/decorator/lazyLoadDecorator.js +75 -0
  474. package/lib/decorator/metaDecorator.js +1 -1
  475. package/lib/locale/en/en.json +10 -0
  476. package/lib/locale/es/es.json +10 -0
  477. package/lib/locale/id/id.json +10 -0
  478. package/lib/meta-comp/components/Button/index.js +7 -0
  479. package/lib/meta-comp/components/Image/index.js +19 -3
  480. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  481. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  482. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  483. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  484. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  485. package/lib/meta-comp/components/Text/index.js +108 -372
  486. package/lib/meta-comp/components/Text/index.less +57 -0
  487. package/lib/meta-comp/config-panels/ButtonConfig/index.js +12 -12
  488. package/lib/meta-comp/config-panels/ImageConfig/index.js +35 -12
  489. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  490. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  491. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  492. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  493. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  494. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  495. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  496. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  497. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  498. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  499. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  500. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  501. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  502. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  503. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  504. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  505. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  506. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -31
  507. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  508. package/lib/mobx/Frame.js +7 -1
  509. package/lib/mobx/Store.js +3 -0
  510. package/lib/utils/androidUtil.js +8 -1
  511. package/lib/utils/businessUtil.js +13 -0
  512. package/lib/utils/commonUtil.js +156 -34
  513. package/lib/utils/coreUtil.js +18 -4
  514. package/lib/utils/currencyUtil.js +8 -8
  515. package/package.json +5 -1
  516. package/es/assets/fonts/.DS_Store +0 -0
  517. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,27 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ id: "ne-t-order-list",
16
+ onClick: onChange,
17
+ viewBox: "0 0 256 256",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, /*#__PURE__*/_react["default"].createElement("g", {
20
+ fill: "currentColor",
21
+ fillRule: "nonzero"
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ d: "M215 118c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 138H101c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L101 118h114ZM215 35c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 55H101c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L101 35h114ZM215 201c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 221H101c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L101 201h114ZM65.988 190.061l-.739.79-1.88 2.061-4.394 4.885-6.435 7.205h13.852a9 9 0 0 1 8.996 8.736l.004.265a9 9 0 0 1-8.735 8.996l-.265.004H32.5c-7.762 0-11.883-9.167-6.732-14.973l15.666-17.621 6.446-7.197 3.323-3.665 1.424-1.54.623-.653.408-.407.042-.039c1.203-1.106 1.855-2.536 1.855-4.05 0-3.128-2.87-5.855-6.637-5.855-3.681 0-6.508 2.607-6.632 5.647l-.004.208a9 9 0 1 1-18 0c0-13.281 11.13-23.855 24.636-23.855 13.507 0 24.637 10.574 24.637 23.855 0 6.497-2.703 12.572-7.355 17.003l-.212.2ZM43.206 25.413c5.694-5.302 14.934-1.363 15.13 6.337l.003.25v73a9 9 0 0 1-17.996.265L40.34 105V52.583c-3.556 2.568-8.513 2.208-11.653-.96l-.198-.207a9 9 0 0 1 .247-12.522l.206-.198 14.265-13.283Z"
24
+ })));
25
+ };
26
+
27
+ exports["default"] = _default;
@@ -0,0 +1,31 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ id: "ne-t-strikethrough",
16
+ onClick: onChange,
17
+ viewBox: "0 0 256 256",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, /*#__PURE__*/_react["default"].createElement("g", {
20
+ fill: "currentColor",
21
+ fillRule: "nonzero"
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ d: "M130.439 23.2c26.526 0 50.232 14.436 59.932 36.315 2.238 5.049-.04 10.956-5.089 13.195-5.049 2.238-10.956-.04-13.195-5.089-6.395-14.425-22.81-24.421-41.648-24.421C105.616 43.2 86 60.316 86 80.7c0 4.675 1.014 9.22 2.977 13.492 6.467 14.074 22.493 23.812 40.903 24.005l.559.003c5.523 0 10 4.477 10 10s-4.477 10-10 10c-26.244 0-49.743-14.13-59.635-35.657C67.649 95.677 66 88.286 66 80.7c0-32.083 29.13-57.5 64.439-57.5Z"
24
+ }), /*#__PURE__*/_react["default"].createElement("path", {
25
+ d: "M125.281 118C163.348 118 195 143.176 195 175.5S163.348 233 125.281 233c-29.214 0-55.305-14.9-65.41-37.497-2.254-5.042.005-10.957 5.047-13.211 4.955-2.216 10.753-.072 13.091 4.788l.12.259C84.819 202.3 103.556 213 125.28 213 153.178 213 175 195.643 175 175.5S153.178 138 125.281 138c-5.522 0-10-4.477-10-10s4.478-10 10-10Z"
26
+ }), /*#__PURE__*/_react["default"].createElement("path", {
27
+ d: "M220 118c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L220 138H36c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L36 118h184Z"
28
+ })));
29
+ };
30
+
31
+ exports["default"] = _default;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange,
14
+ color = _a.color;
15
+ return /*#__PURE__*/_react["default"].createElement("svg", {
16
+ id: "ne-t-underline",
17
+ onClick: onChange,
18
+ viewBox: "0 0 256 256",
19
+ xmlns: "http://www.w3.org/2000/svg"
20
+ }, /*#__PURE__*/_react["default"].createElement("g", {
21
+ fill: "currentColor",
22
+ fillRule: "evenodd"
23
+ }, /*#__PURE__*/_react["default"].createElement("path", {
24
+ d: "M184 24c5.43 0 9.848 4.327 9.996 9.72L194 34v94.393C194 161.1 164.16 187 128 187c-35.8 0-65.403-25.385-65.991-57.628l-.009-.98V34c0-5.523 4.477-10 10-10 5.43 0 9.848 4.327 9.996 9.72L82 34v94.393C82 149.375 102.305 167 128 167c25.438 0 45.593-17.274 45.994-37.979l.006-.628V34c0-5.523 4.477-10 10-10Z",
25
+ fillRule: "nonzero"
26
+ }), /*#__PURE__*/_react["default"].createElement("rect", {
27
+ fill: color,
28
+ height: "22",
29
+ rx: "11",
30
+ width: "176",
31
+ x: "40",
32
+ y: "210"
33
+ })));
34
+ };
35
+
36
+ exports["default"] = _default;
@@ -0,0 +1,41 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ id: "ne-t-unorder-list",
16
+ onClick: onChange,
17
+ viewBox: "0 0 256 256",
18
+ xmlns: "http://www.w3.org/2000/svg"
19
+ }, /*#__PURE__*/_react["default"].createElement("g", {
20
+ fill: "currentColor",
21
+ fillRule: "evenodd"
22
+ }, /*#__PURE__*/_react["default"].createElement("g", {
23
+ fillRule: "nonzero"
24
+ }, /*#__PURE__*/_react["default"].createElement("path", {
25
+ d: "M215 118c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 138H96c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L96 118h119ZM215 35c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 55H96c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L96 35h119ZM215 201c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L215 221H96c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L96 201h119Z"
26
+ })), /*#__PURE__*/_react["default"].createElement("circle", {
27
+ cx: "44",
28
+ cy: "45",
29
+ r: "16"
30
+ }), /*#__PURE__*/_react["default"].createElement("circle", {
31
+ cx: "44",
32
+ cy: "128",
33
+ r: "16"
34
+ }), /*#__PURE__*/_react["default"].createElement("circle", {
35
+ cx: "44",
36
+ cy: "211",
37
+ r: "16"
38
+ })));
39
+ };
40
+
41
+ exports["default"] = _default;
@@ -0,0 +1,151 @@
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 _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _BoldSVG = _interopRequireDefault(require("./images/BoldSVG"));
13
+
14
+ var _ItalicSVG = _interopRequireDefault(require("./images/ItalicSVG"));
15
+
16
+ var _StrikeSVG = _interopRequireDefault(require("./images/StrikeSVG"));
17
+
18
+ var _UnderlineSVG = _interopRequireDefault(require("./images/UnderlineSVG"));
19
+
20
+ var _ColorPickerBtn = _interopRequireDefault(require("./components/ColorPickerBtn"));
21
+
22
+ var _LinkBtn = _interopRequireDefault(require("./components/LinkBtn"));
23
+
24
+ var _AlignPicker = _interopRequireDefault(require("./components/AlignPicker"));
25
+
26
+ var _OrderSVG = _interopRequireDefault(require("./images/OrderSVG"));
27
+
28
+ var _UnorderSVG = _interopRequireDefault(require("./images/UnorderSVG"));
29
+
30
+ var _BulletPicker = _interopRequireDefault(require("./components/BulletPicker"));
31
+
32
+ var _OrderedPicker = _interopRequireDefault(require("./components/OrderedPicker"));
33
+
34
+ require("./index.less");
35
+
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37
+
38
+ 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); }
39
+
40
+ var __extends = void 0 && (void 0).__extends || function () {
41
+ var _extendStatics = function extendStatics(d, b) {
42
+ _extendStatics = Object.setPrototypeOf || {
43
+ __proto__: []
44
+ } instanceof Array && function (d, b) {
45
+ d.__proto__ = b;
46
+ } || function (d, b) {
47
+ for (var p in b) {
48
+ if (b.hasOwnProperty(p)) d[p] = b[p];
49
+ }
50
+ };
51
+
52
+ return _extendStatics(d, b);
53
+ };
54
+
55
+ return function (d, b) {
56
+ _extendStatics(d, b);
57
+
58
+ function __() {
59
+ this.constructor = d;
60
+ }
61
+
62
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
+ };
64
+ }();
65
+
66
+ var iconTypeMap = {
67
+ bold: _BoldSVG["default"],
68
+ italic: _ItalicSVG["default"],
69
+ strike: _StrikeSVG["default"],
70
+ underline: _UnderlineSVG["default"],
71
+ listOrder: _OrderSVG["default"],
72
+ listUnOrder: _UnorderSVG["default"],
73
+ background: function background(props) {
74
+ return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], _extends({
75
+ type: "background"
76
+ }, props));
77
+ },
78
+ link: function link(props) {
79
+ return /*#__PURE__*/_react["default"].createElement(_LinkBtn["default"], props);
80
+ },
81
+ color: function color(props) {
82
+ return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], props);
83
+ },
84
+ align: function align(props) {
85
+ return /*#__PURE__*/_react["default"].createElement(_AlignPicker["default"], props);
86
+ },
87
+ bullet: function bullet(props) {
88
+ return /*#__PURE__*/_react["default"].createElement(_BulletPicker["default"], props);
89
+ },
90
+ ordered: function ordered(props) {
91
+ return /*#__PURE__*/_react["default"].createElement(_OrderedPicker["default"], props);
92
+ },
93
+ 'text-decoration-color': function textDecorationColor(props) {
94
+ return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], _extends({
95
+ type: "text-decoration-color"
96
+ }, props));
97
+ }
98
+ };
99
+
100
+ var ToolBtn =
101
+ /** @class */
102
+ function (_super) {
103
+ __extends(ToolBtn, _super);
104
+
105
+ function ToolBtn() {
106
+ var _this = _super !== null && _super.apply(this, arguments) || this;
107
+
108
+ _this.state = {};
109
+ _this.compareData = null;
110
+ return _this;
111
+ }
112
+
113
+ ToolBtn.prototype.shouldComponentUpdate = function (nextProps) {
114
+ var active = nextProps.active,
115
+ value = nextProps.value;
116
+ var compareTarget = JSON.stringify({
117
+ active: active,
118
+ value: value
119
+ });
120
+
121
+ if (this.compareData != compareTarget) {
122
+ this.compareData = compareTarget;
123
+ return true;
124
+ }
125
+
126
+ return false;
127
+ };
128
+
129
+ ToolBtn.prototype.render = function () {
130
+ var _a = this.props,
131
+ active = _a.active,
132
+ _b = _a.type,
133
+ type = _b === void 0 ? 'bold' : _b,
134
+ onChange = _a.onChange,
135
+ value = _a.value;
136
+ return /*#__PURE__*/_react["default"].createElement("div", {
137
+ className: (0, _classnames["default"])('tool-btn-wrap', {
138
+ active: active
139
+ })
140
+ }, iconTypeMap[type]({
141
+ value: value,
142
+ onChange: onChange
143
+ }));
144
+ };
145
+
146
+ ToolBtn.defaultProps = {};
147
+ return ToolBtn;
148
+ }(_react["default"].Component);
149
+
150
+ var _default = ToolBtn;
151
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ .tool-btn-wrap {
2
+ width: 26px;
3
+ height: 26px;
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ cursor: pointer;
8
+ border-radius: 6px;
9
+ padding: 0;
10
+ border: none;
11
+ transition: .2s all linear;
12
+
13
+ &:hover {
14
+ background: #f8f8f8;
15
+ }
16
+
17
+ &.active {
18
+ background: #E7E9E8;
19
+ }
20
+
21
+ svg {
22
+ height: 18px;
23
+ height: 18px;
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _ToolBtn = _interopRequireDefault(require("./ToolBtn"));
13
+
14
+ var _coreUtil = require("../../../utils/coreUtil");
15
+
16
+ var _UnderlineSelect = _interopRequireDefault(require("../../../meta-comp/config-panels/TextConfig/UnderlineSelect"));
17
+
18
+ require("./index.less");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var fontSizeList = [12, 13, 14, 15, 16, 19, 22, 24, 29, 32, 40, 48];
49
+ exports.fontSizeList = fontSizeList;
50
+ var fontFamilyList = [{
51
+ name: 'Montserrat',
52
+ value: 'Montserrat'
53
+ }, {
54
+ name: 'Open Sans',
55
+ value: 'OpenSans'
56
+ }];
57
+ exports.fontFamilyList = fontFamilyList;
58
+ var fontWeightList = [{
59
+ name: 'Regular',
60
+ value: '400'
61
+ }, {
62
+ name: 'Medium',
63
+ value: '500'
64
+ }, {
65
+ name: 'Semibold',
66
+ value: '600'
67
+ }, {
68
+ name: 'Bold',
69
+ value: '700'
70
+ }];
71
+ exports.fontWeightList = fontWeightList;
72
+
73
+ var ToolBarModal =
74
+ /** @class */
75
+ function (_super) {
76
+ __extends(ToolBarModal, _super);
77
+
78
+ function ToolBarModal() {
79
+ var _this = _super !== null && _super.apply(this, arguments) || this;
80
+
81
+ _this.state = {
82
+ quillFormat: {}
83
+ };
84
+ _this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
85
+
86
+ _this.setToolBarPosition = function () {
87
+ var _a = _this.props.quillRef.container.getBoundingClientRect(),
88
+ top = _a.top,
89
+ left = _a.left;
90
+
91
+ var minTop = document.querySelector('.device_border').getBoundingClientRect().top;
92
+ _this.toolBarRef.current.style.top = (top > minTop ? top : minTop) + window.scrollY + 'px';
93
+ _this.toolBarRef.current.style.left = left + window.scrollX + 'px';
94
+ };
95
+
96
+ _this.onContainerScroll = function () {
97
+ _this.setToolBarPosition();
98
+ };
99
+
100
+ _this.onSelectionChange = function () {
101
+ var range = _this.props.quillRef.getSelection();
102
+
103
+ if (range) {
104
+ var quillFormat = _this.props.quillRef.getFormat();
105
+
106
+ console.log('quillFormat: ', quillFormat);
107
+
108
+ _this.setState({
109
+ quillFormat: quillFormat
110
+ });
111
+ }
112
+ };
113
+
114
+ _this.onToolBtnClick = function (type, value) {
115
+ console.log('type: ', type, value);
116
+ window._maginc_clickUrl = _coreUtil.clickUrl;
117
+ var quillFormat = _this.state.quillFormat;
118
+
119
+ if (type == 'bold') {
120
+ _this.props.quillRef.format('bold', !quillFormat['bold']);
121
+ } else if (type == 'italic') {
122
+ _this.props.quillRef.format('italic', !quillFormat['italic']);
123
+ } else if (type == 'strike') {
124
+ _this.props.quillRef.format('strike', !quillFormat['strike']);
125
+ } else if (type == 'underline') {
126
+ _this.props.quillRef.format('underline', !quillFormat['underline']);
127
+ } else if (type == 'color') {
128
+ _this.props.quillRef.format('color', value);
129
+ } else if (type == 'background') {
130
+ _this.props.quillRef.format('background', value);
131
+ } else if (type == 'align') {
132
+ _this.props.quillRef.format('align', value);
133
+ } else if (type == 'listOrder') {
134
+ var currentListType = quillFormat['list'];
135
+
136
+ _this.props.quillRef.format('list', currentListType == 'ordered' ? '' : 'ordered');
137
+ } else if (type == 'listUnOrder') {
138
+ var currentListType = quillFormat['list'];
139
+
140
+ _this.props.quillRef.format('list', currentListType == 'bullet' ? '' : 'bullet');
141
+ } else if (type == 'link') {
142
+ _this.props.quillRef.format('link', JSON.stringify(value));
143
+ } else if (type == 'size') {
144
+ _this.props.quillRef.format('size', value + 'px');
145
+ } else if (type == 'font') {
146
+ _this.props.quillRef.format('font', value);
147
+ } else if (type == 'font-weight') {
148
+ _this.props.quillRef.format('font-weight', value);
149
+ } else if (type == 'font-family') {
150
+ _this.props.quillRef.format('font-family', value);
151
+ } else if (type == 'text-decoration-style') {
152
+ _this.props.quillRef.format('text-decoration-style', value);
153
+ } else if (type == 'bullet') {
154
+ _this.props.quillRef.format('list-style-type', value);
155
+
156
+ _this.props.quillRef.format('list', 'bullet');
157
+ } else if (type == 'ordered') {
158
+ _this.props.quillRef.format('list-style-type', value);
159
+
160
+ _this.props.quillRef.format('list', 'ordered');
161
+ } else if (type == 'text-decoration-color') {
162
+ if (value) {
163
+ _this.props.quillRef.format('underline', true);
164
+ } else {
165
+ _this.props.quillRef.format('underline', false);
166
+
167
+ _this.props.quillRef.format('text-decoration-style', '');
168
+ }
169
+
170
+ _this.props.quillRef.format('text-decoration-color', value);
171
+ }
172
+
173
+ _this.onSelectionChange();
174
+ };
175
+
176
+ return _this;
177
+ }
178
+
179
+ ToolBarModal.prototype.componentDidMount = function () {
180
+ var _a;
181
+
182
+ this.props.quillRef.on('selection-change', this.onSelectionChange);
183
+ (_a = document.querySelector('.device_border')) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', this.onContainerScroll);
184
+ this.setToolBarPosition();
185
+ };
186
+
187
+ ToolBarModal.prototype.componentWillUnmount = function () {
188
+ var _a;
189
+
190
+ this.props.quillRef.off('selection-change', this.onSelectionChange);
191
+ (_a = document.querySelector('.device_border')) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', this.onContainerScroll);
192
+ };
193
+
194
+ ToolBarModal.prototype.render = function () {
195
+ var _this = this;
196
+
197
+ var quillFormat = this.state.quillFormat;
198
+ return /*#__PURE__*/_react["default"].createElement("div", {
199
+ ref: this.toolBarRef,
200
+ className: "toolbar-wrap"
201
+ }, /*#__PURE__*/_react["default"].createElement("div", {
202
+ className: "toolbar-row"
203
+ }, /*#__PURE__*/_react["default"].createElement("div", {
204
+ className: "tool-item"
205
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
206
+ onChange: function onChange(v) {
207
+ _this.onToolBtnClick('font-family', v);
208
+ },
209
+ placeholder: "Font Family",
210
+ size: "small",
211
+ style: {
212
+ width: '150px'
213
+ },
214
+ value: quillFormat['font-family']
215
+ }, fontFamilyList.map(function (v) {
216
+ return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
217
+ label: v.name,
218
+ value: v.value
219
+ }, v.name);
220
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
221
+ className: "tool-item"
222
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
223
+ onChange: function onChange(v) {
224
+ _this.onToolBtnClick('font-weight', v);
225
+ },
226
+ placeholder: "Font Weight",
227
+ size: "small",
228
+ style: {
229
+ width: '150px'
230
+ },
231
+ value: quillFormat['font-weight']
232
+ }, fontWeightList.map(function (v) {
233
+ return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
234
+ label: v.name,
235
+ value: v.value
236
+ }, v.name);
237
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
238
+ className: "tool-item"
239
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
240
+ onChange: function onChange(v) {
241
+ _this.onToolBtnClick('size', v);
242
+ },
243
+ placeholder: "Font Size",
244
+ size: "small",
245
+ style: {
246
+ width: '120px'
247
+ },
248
+ value: quillFormat['size']
249
+ }, fontSizeList.map(function (v) {
250
+ return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
251
+ label: v.name,
252
+ value: v
253
+ }, v, "px");
254
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
255
+ className: "tool-item"
256
+ }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
257
+ onChange: function onChange(v) {
258
+ _this.onToolBtnClick('text-decoration-style', v);
259
+ },
260
+ placeholder: "Underline Style",
261
+ repeatCount: 28,
262
+ size: "small",
263
+ style: {
264
+ width: '140px'
265
+ },
266
+ value: quillFormat['text-decoration-style']
267
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
268
+ className: "toolbar-row"
269
+ }, /*#__PURE__*/_react["default"].createElement("div", {
270
+ className: "tool-item"
271
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
272
+ active: quillFormat['italic'],
273
+ onChange: function onChange() {
274
+ _this.onToolBtnClick('italic');
275
+ },
276
+ type: "italic"
277
+ })), /*#__PURE__*/_react["default"].createElement("div", {
278
+ className: "tool-item"
279
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
280
+ active: quillFormat['strike'],
281
+ onChange: function onChange() {
282
+ _this.onToolBtnClick('strike');
283
+ },
284
+ type: "strike"
285
+ })), /*#__PURE__*/_react["default"].createElement("div", {
286
+ className: "tool-item"
287
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
288
+ onChange: function onChange(value) {
289
+ _this.onToolBtnClick('text-decoration-color', value);
290
+ },
291
+ type: "text-decoration-color",
292
+ value: {
293
+ color: quillFormat['text-decoration-color']
294
+ }
295
+ })), /*#__PURE__*/_react["default"].createElement("div", {
296
+ className: "tooll-line"
297
+ }), /*#__PURE__*/_react["default"].createElement("div", {
298
+ className: "tool-item"
299
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
300
+ onChange: function onChange(value) {
301
+ _this.onToolBtnClick('color', value);
302
+ },
303
+ type: "color",
304
+ value: {
305
+ color: quillFormat['color']
306
+ }
307
+ })), /*#__PURE__*/_react["default"].createElement("div", {
308
+ className: "tool-item"
309
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
310
+ onChange: function onChange(value) {
311
+ _this.onToolBtnClick('background', value);
312
+ },
313
+ type: "background",
314
+ value: {
315
+ color: quillFormat['background']
316
+ }
317
+ })), /*#__PURE__*/_react["default"].createElement("div", {
318
+ className: "tool-item"
319
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
320
+ onChange: function onChange(value) {
321
+ _this.onToolBtnClick('bullet', value);
322
+ },
323
+ type: "bullet",
324
+ value: {
325
+ list: quillFormat['list-style-type']
326
+ }
327
+ })), /*#__PURE__*/_react["default"].createElement("div", {
328
+ className: "tool-item"
329
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
330
+ onChange: function onChange(value) {
331
+ _this.onToolBtnClick('ordered', value);
332
+ },
333
+ type: "ordered",
334
+ value: {
335
+ list: quillFormat['list-style-type']
336
+ }
337
+ })), /*#__PURE__*/_react["default"].createElement("div", {
338
+ className: "tooll-line"
339
+ }), /*#__PURE__*/_react["default"].createElement("div", {
340
+ className: "tool-item"
341
+ }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
342
+ onChange: function onChange(value) {
343
+ _this.onToolBtnClick('link', value);
344
+ },
345
+ type: "link"
346
+ }))));
347
+ };
348
+
349
+ ToolBarModal.defaultProps = {};
350
+ return ToolBarModal;
351
+ }(_react["default"].Component);
352
+
353
+ var _default = ToolBarModal;
354
+ exports["default"] = _default;