@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
@@ -58,38 +58,36 @@ var Renderer = function Renderer(props) {
58
58
  outputType = props.outputType,
59
59
  noSetWindow = props.noSetWindow;
60
60
 
61
+ var _a = (0, _react.useState)([]),
62
+ floors = _a[0],
63
+ setFloors = _a[1];
64
+
61
65
  if (!noSetWindow) {
62
66
  setDesignConfig(props);
63
67
  }
64
68
 
65
69
  window.magicDesignPageData = pageData;
66
- var pageBackground = window.magicDesign.pageBackground; // 根据楼层展示设备进行过滤
67
-
68
- var filterCompFloor = function filterCompFloor() {
69
- var source = [];
70
+ var pageBackground = window.magicDesign.pageBackground;
71
+ (0, _react.useEffect)(function () {
72
+ console.log('----pageData change', pageData);
73
+ var filterData = [];
70
74
 
71
75
  if (pageData && pageData.childNodes && pageData.childNodes.length) {
72
- source = pageData.childNodes.filter(function (node) {
76
+ filterData = pageData.childNodes.filter(function (node) {
73
77
  return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
74
78
  });
75
- }
79
+ } // 首页组建分批渲染按5个一组
76
80
 
77
- return source;
78
- };
79
81
 
82
+ setFloors(filterData.slice(0, 5));
83
+ setTimeout(function () {
84
+ setFloors(filterData.slice(0, 10));
85
+ setTimeout(function () {
86
+ setFloors(filterData);
87
+ }, 200);
88
+ }, 200);
89
+ }, [pageData]);
80
90
  (0, _react.useEffect)(function () {
81
- // const data = await fishFetch('/h5/ga/mediaid', {}, 'GET');
82
- (0, _commonUtil.importAsync)('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
83
- window.dataLayer = window.dataLayer || [];
84
-
85
- function gtag() {
86
- dataLayer.push(arguments);
87
- }
88
-
89
- gtag('js', new Date());
90
- gtag('config', 'G-7B9GSSLVX3');
91
- window.gtag = gtag;
92
- });
93
91
  setTimeout(function () {
94
92
  var _a;
95
93
 
@@ -103,10 +101,11 @@ var Renderer = function Renderer(props) {
103
101
  className: "render_wrap",
104
102
  magic_design: "",
105
103
  style: {
104
+ height: '100%',
106
105
  background: pageBackground,
107
106
  overflow: 'auto'
108
107
  }
109
- }, filterCompFloor().map(function (nodeData, moduleIndex) {
108
+ }, floors.length > 0 && floors.map(function (nodeData, moduleIndex) {
110
109
  var Clazz = _componentTypes.componentMap[nodeData.type];
111
110
 
112
111
  if (!Clazz) {
@@ -9,12 +9,25 @@ Object.defineProperty(exports, "compositeDecorator", {
9
9
  return _compositeDecorator["default"];
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "lazy", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _lazyLoadDecorator.lazy;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "lazyDestroy", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _lazyLoadDecorator.lazyDestroy;
22
+ }
23
+ });
12
24
  Object.defineProperty(exports, "metaDecorator", {
13
25
  enumerable: true,
14
26
  get: function get() {
15
27
  return _metaDecorator["default"];
16
28
  }
17
29
  });
30
+ exports.shouldUpdate = shouldUpdate;
18
31
  Object.defineProperty(exports, "updateConfigDecorator", {
19
32
  enumerable: true,
20
33
  get: function get() {
@@ -28,4 +41,28 @@ var _metaDecorator = _interopRequireDefault(require("./metaDecorator"));
28
41
 
29
42
  var _updateConfigDecorator = _interopRequireDefault(require("./updateConfigDecorator"));
30
43
 
31
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
44
+ var _lazyLoadDecorator = require("./lazyLoadDecorator");
45
+
46
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
47
+
48
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
49
+
50
+ /** props 和 state 改变时才会render */
51
+ function shouldUpdate() {
52
+ return function (target, name, descriptor) {
53
+ var fn = descriptor.value;
54
+
55
+ descriptor.value = function (nextProps, nextState) {
56
+ var nowPropsJson = JSON.stringify(nextProps);
57
+ var nowStateJson = JSON.stringify(nextState);
58
+ var should1 = nowPropsJson != this.preProps;
59
+ var should2 = nowStateJson != this.preState;
60
+ this.preProps = nowPropsJson;
61
+ this.preState = nowStateJson;
62
+ var result = should1 || should2;
63
+ return result && fn.apply(this, {
64
+ nextProps: nextProps
65
+ });
66
+ };
67
+ };
68
+ }
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.lazy = lazy;
7
+ exports.lazyDestroy = void 0;
8
+
9
+ /**
10
+ * 组件懒加载
11
+ * @param refName 所需懒加载的组件ref名
12
+ * @returns
13
+ */
14
+ function lazy(refName) {
15
+ return function (target, name, descriptor) {
16
+ var fn = descriptor.value;
17
+
18
+ descriptor.value = function () {
19
+ var _this = this;
20
+
21
+ var rest = [];
22
+
23
+ for (var _i = 0; _i < arguments.length; _i++) {
24
+ rest[_i] = arguments[_i];
25
+ }
26
+
27
+ this.intersectionObserver = new IntersectionObserver(function (entries) {
28
+ if (entries[0].isIntersecting) {
29
+ if (!_this.state.lazyShow) {
30
+ _this.setState({
31
+ lazyShow: true
32
+ });
33
+ }
34
+ }
35
+ }, {
36
+ root: null,
37
+ // threshold: 0.8,
38
+ rootMargin: '0px 0px 100px 0px'
39
+ });
40
+ this.intersectionObserver.observe(this[refName].current);
41
+ /** 监听状态变化 */
42
+
43
+ this._intersectionObserverDestroy = function () {
44
+ _this.intersectionObserver.disconnect(_this[refName].current);
45
+ };
46
+
47
+ fn.apply(this, rest);
48
+ };
49
+ };
50
+ }
51
+ /**
52
+ * 销毁lazy监听
53
+ */
54
+
55
+
56
+ var lazyDestroy = function lazyDestroy(target, name, descriptor) {
57
+ var fn = descriptor.value;
58
+
59
+ descriptor.value = function () {
60
+ var rest = [];
61
+
62
+ for (var _i = 0; _i < arguments.length; _i++) {
63
+ rest[_i] = arguments[_i];
64
+ }
65
+
66
+ if (this._intersectionObserverDestroy) {
67
+ this._intersectionObserverDestroy();
68
+ } // this._intersectionObserverDestroy && this._intersectionObserverDestroy();
69
+
70
+
71
+ fn.apply(this, rest);
72
+ };
73
+ };
74
+
75
+ exports.lazyDestroy = lazyDestroy;
@@ -1,4 +1,9 @@
1
1
  {
2
+ "ADDRESS": "Address",
3
+ "LOCATION_LOGO": "Location Logo",
4
+ "MESSAGE_ICON": "Message icon",
5
+ "CART_ICON": "Cart icon",
6
+ "RECOMMENDED_SIZE": "Recommended Size",
2
7
  "BOLD": "Bold",
3
8
  "SEMIBOLD": "Semibold",
4
9
  "DARK": "Dark",
@@ -49,7 +54,7 @@
49
54
  "ADD_CLICKABLE_AREA": "Add Clickable Area",
50
55
  "ADD_AREA": "Add Area",
51
56
  "CLICKABLE_AREA": "Clickable Area",
52
- "VOUCHER_SUCCESS": "Voucher received successfully!",
57
+ "VOUCHER_SUCCESS": "Coupon received successfully!",
53
58
  "NAVIGATION_NAME": "Navigation Name",
54
59
  "ADD_NAVIGATION": "Add Navigation",
55
60
  "SAVE": "Save",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "ADDRESS": "Address",
3
+ "LOCATION_LOGO": "Location Logo",
4
+ "MESSAGE_ICON": "Message icon",
5
+ "CART_ICON": "Cart icon",
6
+ "RECOMMENDED_SIZE": "Recommended Size",
2
7
  "BOLD": "Bold",
3
8
  "SEMIBOLD": "Semibold",
4
9
  "DARK": "Dark",
@@ -49,7 +54,7 @@
49
54
  "ADD_CLICKABLE_AREA": "Add Clickable Area",
50
55
  "ADD_AREA": "Add Area",
51
56
  "CLICKABLE_AREA": "Clickable Area",
52
- "VOUCHER_SUCCESS": "Voucher received successfully!",
57
+ "VOUCHER_SUCCESS": "Coupon received successfully!",
53
58
  "NAVIGATION_NAME": "Navigation Name",
54
59
  "ADD_NAVIGATION": "Add Navigation",
55
60
  "SAVE": "Guardar",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "ADDRESS": "Address",
3
+ "LOCATION_LOGO": "Location Logo",
4
+ "MESSAGE_ICON": "Message icon",
5
+ "CART_ICON": "Cart icon",
6
+ "RECOMMENDED_SIZE": "Recommended Size",
2
7
  "BOLD": "Bold",
3
8
  "SEMIBOLD": "Semibold",
4
9
  "DARK": "Dark",
@@ -49,7 +54,7 @@
49
54
  "ADD_CLICKABLE_AREA": "Add Clickable Area",
50
55
  "ADD_AREA": "Add Area",
51
56
  "CLICKABLE_AREA": "Clickable Area",
52
- "VOUCHER_SUCCESS": "Voucher received successfully!",
57
+ "VOUCHER_SUCCESS": "Coupon received successfully!",
53
58
  "NAVIGATION_NAME": "Navigation Name",
54
59
  "ADD_NAVIGATION": "Add Navigation",
55
60
  "SAVE": "Save",
@@ -93,6 +93,10 @@ function (_super) {
93
93
  return _this;
94
94
  }
95
95
 
96
+ Button.prototype.shouldComponentUpdate = function () {
97
+ return true;
98
+ };
99
+
96
100
  Button.prototype.render = function () {
97
101
  var _this = this;
98
102
 
@@ -168,6 +172,9 @@ function (_super) {
168
172
  className: '',
169
173
  readonly: false
170
174
  };
175
+
176
+ __decorate([(0, _decorator.shouldUpdate)()], Button.prototype, "shouldComponentUpdate", null);
177
+
171
178
  Button = __decorate([_decorator.metaDecorator], Button);
172
179
  return Button;
173
180
  }(_react.Component);
@@ -21,6 +21,8 @@ var _commonUtil = require("../../../utils/commonUtil");
21
21
 
22
22
  var _decorator = require("../../../decorator");
23
23
 
24
+ var _ImageLazy = _interopRequireDefault(require("../../../common/ImageLazy"));
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
27
 
26
28
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -165,7 +167,8 @@ function (_super) {
165
167
  var _c = this.props,
166
168
  data = _c.data,
167
169
  isBackground = _c.isBackground,
168
- hoverState = _c.hoverState;
170
+ hoverState = _c.hoverState,
171
+ notNeedLazy = _c.notNeedLazy;
169
172
  var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
170
173
  // console.log('--metaImage ', this.props);
171
174
 
@@ -190,7 +193,7 @@ function (_super) {
190
193
  onClick: function onClick() {
191
194
  (0, _coreUtil.clickUrl)(data.content.clickUrl);
192
195
  }
193
- }, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("img", {
196
+ }, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, notNeedLazy ? /*#__PURE__*/_react["default"].createElement("img", {
194
197
  ref: this.imgRef,
195
198
  onLoad: function onLoad() {
196
199
  var scale = _this.imgRef.current.clientWidth / 600;
@@ -203,6 +206,18 @@ function (_super) {
203
206
  onMouseLeave: this.mouseLeaveImg,
204
207
  src: srcImg,
205
208
  style: (0, _commonUtil.pxToRem)(this.getStyle())
209
+ }) : /*#__PURE__*/_react["default"].createElement(_ImageLazy["default"], {
210
+ onLoadFunc: function onLoadFunc(clientWidth) {
211
+ var scale = clientWidth / 600;
212
+
213
+ _this.setState({
214
+ scale: scale
215
+ });
216
+ },
217
+ onMouseEnter: this.mouseEnterImg,
218
+ onMouseLeave: this.mouseLeaveImg,
219
+ src: srcImg,
220
+ style: (0, _commonUtil.pxToRem)(this.getStyle())
206
221
  }), areas && areas.length > 0 && areas.map(function (v, i) {
207
222
  var aStyle = {
208
223
  position: 'absolute',
@@ -230,7 +245,8 @@ function (_super) {
230
245
  isBackground: false,
231
246
  hoverState: false,
232
247
  limitWidthHeight: false,
233
- scale: 1
248
+ scale: 1,
249
+ notNeedLazy: false
234
250
  };
235
251
  Image = __decorate([_decorator.metaDecorator], Image);
236
252
  return Image;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FontFamilyStyle = exports.FontFamilyAttributor = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var FontFamilyAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(FontFamilyAttributor, _super);
44
+
45
+ function FontFamilyAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return FontFamilyAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.FontFamilyAttributor = FontFamilyAttributor;
53
+ var FontFamilyStyle = new FontFamilyAttributor('font-family', 'font-family', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.FontFamilyStyle = FontFamilyStyle;
57
+
58
+ _quill["default"].register('formats/font-family', FontFamilyStyle, true);
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FontStyleAttributor = exports.FontStyle = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var FontStyleAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(FontStyleAttributor, _super);
44
+
45
+ function FontStyleAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return FontStyleAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.FontStyleAttributor = FontStyleAttributor;
53
+ var FontStyle = new FontStyleAttributor('font-style', 'font-style', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.FontStyle = FontStyle;
57
+
58
+ _quill["default"].register('formats/font-style', FontStyle, true);
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FontWeightStyle = exports.FontWeightAttributor = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var FontWeightAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(FontWeightAttributor, _super);
44
+
45
+ function FontWeightAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return FontWeightAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.FontWeightAttributor = FontWeightAttributor;
53
+ var FontWeightStyle = new FontWeightAttributor('font-weight', 'font-weight', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.FontWeightStyle = FontWeightStyle;
57
+
58
+ _quill["default"].register('formats/font-weight', FontWeightStyle, true);
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ListStyleTypeStyle = exports.ListStyleTypeAttributor = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var ListStyleTypeAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(ListStyleTypeAttributor, _super);
44
+
45
+ function ListStyleTypeAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return ListStyleTypeAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.ListStyleTypeAttributor = ListStyleTypeAttributor;
53
+ var ListStyleTypeStyle = new ListStyleTypeAttributor('list-style-type', 'list-style-type', {
54
+ scope: Parchment.Scope.BLOCK
55
+ });
56
+ exports.ListStyleTypeStyle = ListStyleTypeStyle;
57
+
58
+ _quill["default"].register('formats/list-style-type', ListStyleTypeStyle, true);
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextDecorationColorStyle = exports.TextDecorationColorAttributor = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var TextDecorationColorAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(TextDecorationColorAttributor, _super);
44
+
45
+ function TextDecorationColorAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return TextDecorationColorAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.TextDecorationColorAttributor = TextDecorationColorAttributor;
53
+ var TextDecorationColorStyle = new TextDecorationColorAttributor('text-decoration-color', 'text-decoration-color', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.TextDecorationColorStyle = TextDecorationColorStyle;
57
+
58
+ _quill["default"].register('formats/text-decoration-color', TextDecorationColorStyle, true);
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextDecorationStyleStyle = exports.TextDecorationStyleAttributor = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var TextDecorationStyleAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(TextDecorationStyleAttributor, _super);
44
+
45
+ function TextDecorationStyleAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return TextDecorationStyleAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.TextDecorationStyleAttributor = TextDecorationStyleAttributor;
53
+ var TextDecorationStyleStyle = new TextDecorationStyleAttributor('text-decoration-style', 'text-decoration-style', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.TextDecorationStyleStyle = TextDecorationStyleStyle;
57
+
58
+ _quill["default"].register('formats/text-decoration-style', TextDecorationStyleStyle, true);