@fonixtree/magic-design 0.1.77 → 0.1.79
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.
- package/es/assets/fonts/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +51 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +51 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +36 -2
- package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/assets/less/modal.less +1 -1
- package/es/common/AffiliateProductModal/index.js +582 -0
- package/es/common/AffiliateProductModal/index.less +146 -0
- package/es/common/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/Field/index.js +20 -3
- package/es/common/GroupList/index.less +3 -0
- package/es/common/ImageLazy/index.js +172 -0
- package/es/common/ImageLazy/index.less +0 -0
- package/es/common/ImagePicker/index.js +50 -7
- package/es/common/ImagePicker/index.less +1 -0
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CatgTable/index.js +1 -1
- package/es/common/LinkModal/CouponTable/index.js +10 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +13 -10
- package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +15 -3
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +27 -35
- package/es/common/ProductSource/index.js +42 -10
- package/es/common/UrlPicker/index.js +3 -1
- package/es/common/Video/index.js +11 -3
- package/es/common/Video/index.less +11 -7
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +9 -0
- package/es/composite-comp/bol/components/Carousel/index.js +27 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
- package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/es/composite-comp/bol/components/ImageText/pc/index.js +97 -5
- package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/es/composite-comp/bol/components/Location/index.js +100 -0
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/index.js +11 -15
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/es/composite-comp/common/components/ProductItem/index.js +32 -20
- package/es/composite-comp/common/components/ProductItem/index.less +43 -19
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -12
- package/es/composite-comp/dito/components/Recommend/pc/index.js +14 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/es/constants/component-types.js +35 -3
- package/es/constants/index.js +36 -2
- package/es/constants/layout.js +68 -1
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
- package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
- package/es/core/Designer/AiImageGenerator/index.js +364 -63
- package/es/core/Designer/AiImageGenerator/index.less +70 -46
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +84 -25
- package/es/core/Designer/ChatRobot/index.less +80 -28
- package/es/core/Designer/ConfigPanel/index.js +10 -4
- package/es/core/Designer/FonixtreeGpt/index.js +32 -171
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/LeftTitle/index.js +1 -1
- package/es/core/Designer/PageCompList/index.js +8 -5
- package/es/core/Designer/QuickMenuBar/index.js +5 -3
- package/es/core/Designer/QuickMenuBar/index.less +4 -0
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +117 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +10 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +136 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +126 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +10 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +176 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +412 -0
- package/es/core/Designer/ToolBarModal/index.less +33 -0
- package/es/core/Designer/index.js +45 -11
- package/es/core/Renderer/index.js +75 -29
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/decorator/index.js +38 -1
- package/es/decorator/lazyLoadDecorator.js +75 -0
- package/es/locale/en/en.json +12 -2
- package/es/locale/es/es.json +12 -2
- package/es/locale/id/id.json +12 -2
- package/es/meta-comp/components/Button/index.js +7 -0
- package/es/meta-comp/components/Image/index.js +48 -26
- package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
- package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/es/meta-comp/components/Text/index.js +123 -366
- package/es/meta-comp/components/Text/index.less +65 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/es/meta-comp/config-panels/ImageConfig/index.js +50 -44
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
- package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/es/mobx/Frame.js +22 -1
- package/es/utils/androidUtil.js +6 -0
- package/es/utils/businessUtil.js +17 -6
- package/es/utils/commonUtil.js +87 -9
- package/es/utils/coreUtil.js +15 -0
- package/es/utils/currencyUtil.js +37 -11
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +51 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +51 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +36 -2
- package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/assets/less/modal.less +1 -1
- package/lib/common/AffiliateProductModal/index.js +582 -0
- package/lib/common/AffiliateProductModal/index.less +146 -0
- package/lib/common/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/Field/index.js +20 -3
- package/lib/common/GroupList/index.less +3 -0
- package/lib/common/ImageLazy/index.js +172 -0
- package/lib/common/ImageLazy/index.less +0 -0
- package/lib/common/ImagePicker/index.js +50 -7
- package/lib/common/ImagePicker/index.less +1 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CatgTable/index.js +1 -1
- package/lib/common/LinkModal/CouponTable/index.js +10 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +13 -10
- package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +15 -3
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +27 -35
- package/lib/common/ProductSource/index.js +42 -10
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/common/Video/index.js +11 -3
- package/lib/common/Video/index.less +11 -7
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +9 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +97 -5
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/lib/composite-comp/bol/components/Location/index.js +100 -0
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +32 -20
- package/lib/composite-comp/common/components/ProductItem/index.less +43 -19
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -12
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +14 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/lib/constants/component-types.js +35 -3
- package/lib/constants/index.js +36 -2
- package/lib/constants/layout.js +68 -1
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
- package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
- package/lib/core/Designer/AiImageGenerator/index.js +364 -63
- package/lib/core/Designer/AiImageGenerator/index.less +70 -46
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +84 -25
- package/lib/core/Designer/ChatRobot/index.less +80 -28
- package/lib/core/Designer/ConfigPanel/index.js +10 -4
- package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/LeftTitle/index.js +1 -1
- package/lib/core/Designer/PageCompList/index.js +8 -5
- package/lib/core/Designer/QuickMenuBar/index.js +5 -3
- package/lib/core/Designer/QuickMenuBar/index.less +4 -0
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +117 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +10 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +136 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +126 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +10 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +176 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +412 -0
- package/lib/core/Designer/ToolBarModal/index.less +33 -0
- package/lib/core/Designer/index.js +45 -11
- package/lib/core/Renderer/index.js +75 -29
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/decorator/index.js +38 -1
- package/lib/decorator/lazyLoadDecorator.js +75 -0
- package/lib/locale/en/en.json +12 -2
- package/lib/locale/es/es.json +12 -2
- package/lib/locale/id/id.json +12 -2
- package/lib/meta-comp/components/Button/index.js +7 -0
- package/lib/meta-comp/components/Image/index.js +48 -26
- package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
- package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/lib/meta-comp/components/Text/index.js +123 -366
- package/lib/meta-comp/components/Text/index.less +65 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/lib/meta-comp/config-panels/ImageConfig/index.js +50 -44
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
- package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/lib/mobx/Frame.js +22 -1
- package/lib/utils/androidUtil.js +6 -0
- package/lib/utils/businessUtil.js +17 -6
- package/lib/utils/commonUtil.js +87 -9
- package/lib/utils/coreUtil.js +15 -0
- package/lib/utils/currencyUtil.js +37 -11
- package/package.json +5 -2
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = exports.OpenSansFontWeightList = 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
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var fontSizeList = [12, 13, 14, 15, 16, 19, 22, 24, 29, 32, 40, 48];
|
|
47
|
+
exports.fontSizeList = fontSizeList;
|
|
48
|
+
var fontFamilyList = [{
|
|
49
|
+
name: 'Montserrat',
|
|
50
|
+
value: 'Montserrat'
|
|
51
|
+
}, {
|
|
52
|
+
name: 'Open Sans',
|
|
53
|
+
value: 'OpenSans'
|
|
54
|
+
}];
|
|
55
|
+
exports.fontFamilyList = fontFamilyList;
|
|
56
|
+
var fontWeightList = [{
|
|
57
|
+
name: 'Regular',
|
|
58
|
+
value: '400'
|
|
59
|
+
}, {
|
|
60
|
+
name: 'Medium',
|
|
61
|
+
value: '500'
|
|
62
|
+
}, {
|
|
63
|
+
name: 'Semibold',
|
|
64
|
+
value: '600'
|
|
65
|
+
}, {
|
|
66
|
+
name: 'Bold',
|
|
67
|
+
value: '700'
|
|
68
|
+
}];
|
|
69
|
+
exports.fontWeightList = fontWeightList;
|
|
70
|
+
var OpenSansFontWeightList = [{
|
|
71
|
+
name: 'Regular',
|
|
72
|
+
value: '400'
|
|
73
|
+
}, {
|
|
74
|
+
name: 'Semibold',
|
|
75
|
+
value: '600'
|
|
76
|
+
}, {
|
|
77
|
+
name: 'Bold',
|
|
78
|
+
value: '700'
|
|
79
|
+
}];
|
|
80
|
+
exports.OpenSansFontWeightList = OpenSansFontWeightList;
|
|
81
|
+
|
|
82
|
+
var ToolBarModal =
|
|
83
|
+
/** @class */
|
|
84
|
+
function (_super) {
|
|
85
|
+
__extends(ToolBarModal, _super);
|
|
86
|
+
|
|
87
|
+
function ToolBarModal() {
|
|
88
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
|
|
90
|
+
_this.state = {
|
|
91
|
+
quillFormat: {}
|
|
92
|
+
};
|
|
93
|
+
_this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
|
|
94
|
+
_this.selectedTextLength = 0;
|
|
95
|
+
|
|
96
|
+
_this.setToolBarPosition = function () {
|
|
97
|
+
var _a = _this.props.quillRef.container.getBoundingClientRect(),
|
|
98
|
+
top = _a.top,
|
|
99
|
+
left = _a.left;
|
|
100
|
+
|
|
101
|
+
var minTop = document.querySelector('.device_border').getBoundingClientRect().top;
|
|
102
|
+
_this.toolBarRef.current.style.top = (top > minTop ? top : minTop) + window.scrollY + 'px';
|
|
103
|
+
_this.toolBarRef.current.style.left = left + window.scrollX + 'px';
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
_this.onContainerScroll = function () {
|
|
107
|
+
_this.setToolBarPosition();
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
_this.onSelectionChange = function () {
|
|
111
|
+
var range = _this.props.quillRef.getSelection();
|
|
112
|
+
|
|
113
|
+
if (range) {
|
|
114
|
+
_this.selectedTextLength = range.length;
|
|
115
|
+
|
|
116
|
+
var quillFormat = _this.props.quillRef.getFormat();
|
|
117
|
+
|
|
118
|
+
console.log('quillFormat: ', quillFormat);
|
|
119
|
+
|
|
120
|
+
_this.setState({
|
|
121
|
+
quillFormat: quillFormat
|
|
122
|
+
});
|
|
123
|
+
} else {
|
|
124
|
+
if (_this.selectedTextLength === 0) _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
_this.onToolBtnClick = function (type, value) {
|
|
129
|
+
console.log('type: ', type, value);
|
|
130
|
+
window._maginc_clickUrl = _coreUtil.clickUrl;
|
|
131
|
+
var quillFormat = _this.state.quillFormat;
|
|
132
|
+
|
|
133
|
+
if (type == 'bold') {
|
|
134
|
+
_this.props.quillRef.format('bold', !quillFormat['bold']);
|
|
135
|
+
} else if (type == 'italic') {
|
|
136
|
+
_this.props.quillRef.format('italic', !quillFormat['italic']);
|
|
137
|
+
} else if (type == 'strike') {
|
|
138
|
+
_this.props.quillRef.format('strike', !quillFormat['strike']);
|
|
139
|
+
} else if (type == 'underline') {
|
|
140
|
+
_this.props.quillRef.format('underline', !quillFormat['underline']);
|
|
141
|
+
} else if (type == 'color') {
|
|
142
|
+
_this.props.quillRef.format('color', value);
|
|
143
|
+
} else if (type == 'background') {
|
|
144
|
+
_this.props.quillRef.format('background', value);
|
|
145
|
+
} else if (type == 'align') {
|
|
146
|
+
_this.props.quillRef.format('align', value);
|
|
147
|
+
} else if (type == 'listOrder') {
|
|
148
|
+
var currentListType = quillFormat['list'];
|
|
149
|
+
|
|
150
|
+
_this.props.quillRef.format('list', currentListType == 'ordered' ? '' : 'ordered');
|
|
151
|
+
} else if (type == 'listUnOrder') {
|
|
152
|
+
var currentListType = quillFormat['list'];
|
|
153
|
+
|
|
154
|
+
_this.props.quillRef.format('list', currentListType == 'bullet' ? '' : 'bullet');
|
|
155
|
+
} else if (type == 'link') {
|
|
156
|
+
_this.props.quillRef.format('link', JSON.stringify(value));
|
|
157
|
+
} else if (type == 'size') {
|
|
158
|
+
_this.props.quillRef.format('size', value + 'px');
|
|
159
|
+
} else if (type == 'font') {
|
|
160
|
+
_this.props.quillRef.format('font', value);
|
|
161
|
+
} else if (type == 'font-weight') {
|
|
162
|
+
_this.props.quillRef.format('font-weight', value);
|
|
163
|
+
} else if (type == 'text-align') {
|
|
164
|
+
_this.props.quillRef.format('text-align', value);
|
|
165
|
+
} else if (type == 'font-style') {
|
|
166
|
+
_this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
|
|
167
|
+
} else if (type == 'font-family') {
|
|
168
|
+
_this.props.quillRef.format('font-family', value);
|
|
169
|
+
} else if (type == 'text-decoration-style') {
|
|
170
|
+
_this.props.quillRef.format('underline', true);
|
|
171
|
+
|
|
172
|
+
_this.props.quillRef.format('text-decoration-style', value);
|
|
173
|
+
} else if (type == 'bullet') {
|
|
174
|
+
_this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
175
|
+
|
|
176
|
+
if (!value || value === quillFormat['list-style-type']) {
|
|
177
|
+
_this.props.quillRef.format('list-style-type', '');
|
|
178
|
+
|
|
179
|
+
_this.props.quillRef.format('list', '');
|
|
180
|
+
} else {
|
|
181
|
+
_this.props.quillRef.format('list-style-type', value);
|
|
182
|
+
|
|
183
|
+
_this.props.quillRef.format('list', 'bullet');
|
|
184
|
+
}
|
|
185
|
+
} else if (type == 'ordered') {
|
|
186
|
+
_this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
187
|
+
|
|
188
|
+
if (!value || value === quillFormat['list-style-type']) {
|
|
189
|
+
_this.props.quillRef.format('list-style-type', '');
|
|
190
|
+
|
|
191
|
+
_this.props.quillRef.format('list', '');
|
|
192
|
+
} else {
|
|
193
|
+
_this.props.quillRef.format('list-style-type', value);
|
|
194
|
+
|
|
195
|
+
_this.props.quillRef.format('list', 'ordered');
|
|
196
|
+
}
|
|
197
|
+
} else if (type == 'text-decoration-color') {
|
|
198
|
+
_this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
199
|
+
|
|
200
|
+
if (value) {
|
|
201
|
+
_this.props.quillRef.format('underline', true);
|
|
202
|
+
} else {
|
|
203
|
+
_this.props.quillRef.format('underline', false);
|
|
204
|
+
|
|
205
|
+
_this.props.quillRef.format('text-decoration-style', '');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
_this.props.quillRef.format('text-decoration-color', value);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
_this.onSelectionChange();
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
return _this;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
ToolBarModal.prototype.componentDidMount = function () {
|
|
218
|
+
var _a;
|
|
219
|
+
|
|
220
|
+
this.props.quillRef.on('selection-change', this.onSelectionChange);
|
|
221
|
+
(_a = document.querySelector('.device_border')) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', this.onContainerScroll);
|
|
222
|
+
this.setToolBarPosition();
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
ToolBarModal.prototype.componentWillUnmount = function () {
|
|
226
|
+
var _a;
|
|
227
|
+
|
|
228
|
+
this.props.quillRef.off('selection-change', this.onSelectionChange);
|
|
229
|
+
(_a = document.querySelector('.device_border')) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', this.onContainerScroll);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
ToolBarModal.prototype.render = function () {
|
|
233
|
+
var _this = this;
|
|
234
|
+
|
|
235
|
+
var quillFormat = this.state.quillFormat;
|
|
236
|
+
|
|
237
|
+
var _fontWeightList = quillFormat['font-family'] === 'OpenSans' ? OpenSansFontWeightList : fontWeightList;
|
|
238
|
+
|
|
239
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
|
+
ref: this.toolBarRef,
|
|
241
|
+
className: "toolbar-wrap"
|
|
242
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
className: "toolbar-row"
|
|
244
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
245
|
+
className: "tool-item"
|
|
246
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
247
|
+
onChange: function onChange(v) {
|
|
248
|
+
_this.onToolBtnClick('font-family', v);
|
|
249
|
+
},
|
|
250
|
+
placeholder: "Font Family",
|
|
251
|
+
size: "small",
|
|
252
|
+
style: {
|
|
253
|
+
width: '150px'
|
|
254
|
+
},
|
|
255
|
+
value: quillFormat['font-family']
|
|
256
|
+
}, fontFamilyList.map(function (v) {
|
|
257
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
258
|
+
label: v.name,
|
|
259
|
+
value: v.value
|
|
260
|
+
}, v.name);
|
|
261
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
262
|
+
className: "tool-item"
|
|
263
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
264
|
+
onChange: function onChange(v) {
|
|
265
|
+
_this.onToolBtnClick('font-weight', v);
|
|
266
|
+
},
|
|
267
|
+
placeholder: "Font Weight",
|
|
268
|
+
size: "small",
|
|
269
|
+
style: {
|
|
270
|
+
width: '150px'
|
|
271
|
+
},
|
|
272
|
+
value: quillFormat['font-weight']
|
|
273
|
+
}, _fontWeightList.map(function (v) {
|
|
274
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
275
|
+
label: v.name,
|
|
276
|
+
value: v.value
|
|
277
|
+
}, v.name);
|
|
278
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
|
+
className: "tool-item"
|
|
280
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
281
|
+
onChange: function onChange(v) {
|
|
282
|
+
_this.onToolBtnClick('size', v);
|
|
283
|
+
},
|
|
284
|
+
placeholder: "Font Size",
|
|
285
|
+
size: "small",
|
|
286
|
+
style: {
|
|
287
|
+
width: '120px'
|
|
288
|
+
},
|
|
289
|
+
value: quillFormat['size']
|
|
290
|
+
}, fontSizeList.map(function (v) {
|
|
291
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
292
|
+
label: v.name,
|
|
293
|
+
value: v
|
|
294
|
+
}, v, "px");
|
|
295
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
296
|
+
className: "toolbar-row"
|
|
297
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
298
|
+
className: "tool-item"
|
|
299
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
300
|
+
active: quillFormat['font-style'] === 'italic',
|
|
301
|
+
onChange: function onChange() {
|
|
302
|
+
_this.onToolBtnClick('font-style');
|
|
303
|
+
},
|
|
304
|
+
type: "italic"
|
|
305
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
306
|
+
className: "tool-item"
|
|
307
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
308
|
+
active: quillFormat['strike'],
|
|
309
|
+
onChange: function onChange() {
|
|
310
|
+
_this.onToolBtnClick('strike');
|
|
311
|
+
},
|
|
312
|
+
type: "strike"
|
|
313
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
314
|
+
className: "tool-item"
|
|
315
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
316
|
+
onChange: function onChange(value) {
|
|
317
|
+
_this.onToolBtnClick('text-decoration-color', value);
|
|
318
|
+
},
|
|
319
|
+
type: "text-decoration-color",
|
|
320
|
+
underlineOnChange: function underlineOnChange(value) {
|
|
321
|
+
return _this.onToolBtnClick('text-decoration-style', value);
|
|
322
|
+
},
|
|
323
|
+
underlineValue: quillFormat['text-decoration-style'],
|
|
324
|
+
value: {
|
|
325
|
+
color: quillFormat['text-decoration-color']
|
|
326
|
+
}
|
|
327
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
328
|
+
className: "tooll-line"
|
|
329
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
330
|
+
className: "tool-item"
|
|
331
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
332
|
+
onChange: function onChange(value) {
|
|
333
|
+
_this.onToolBtnClick('color', value);
|
|
334
|
+
},
|
|
335
|
+
type: "color",
|
|
336
|
+
value: {
|
|
337
|
+
color: quillFormat['color']
|
|
338
|
+
}
|
|
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('background', value);
|
|
344
|
+
},
|
|
345
|
+
type: "background",
|
|
346
|
+
value: {
|
|
347
|
+
color: quillFormat['background']
|
|
348
|
+
}
|
|
349
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
|
+
className: "tool-item"
|
|
351
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
352
|
+
onChange: function onChange(value) {
|
|
353
|
+
_this.onToolBtnClick('bullet', value);
|
|
354
|
+
},
|
|
355
|
+
type: "bullet",
|
|
356
|
+
value: {
|
|
357
|
+
list: quillFormat['list-style-type']
|
|
358
|
+
}
|
|
359
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
360
|
+
className: "tool-item"
|
|
361
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
362
|
+
onChange: function onChange(value) {
|
|
363
|
+
_this.onToolBtnClick('ordered', value);
|
|
364
|
+
},
|
|
365
|
+
type: "ordered",
|
|
366
|
+
value: {
|
|
367
|
+
list: quillFormat['list-style-type']
|
|
368
|
+
}
|
|
369
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
370
|
+
className: "tooll-line"
|
|
371
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
372
|
+
className: "tool-item"
|
|
373
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
374
|
+
active: quillFormat['text-align'] === 'left',
|
|
375
|
+
onChange: function onChange() {
|
|
376
|
+
_this.onToolBtnClick('text-align', 'left');
|
|
377
|
+
},
|
|
378
|
+
type: "alignLeft"
|
|
379
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
380
|
+
className: "tool-item"
|
|
381
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
382
|
+
active: quillFormat['text-align'] === 'center',
|
|
383
|
+
onChange: function onChange() {
|
|
384
|
+
_this.onToolBtnClick('text-align', 'center');
|
|
385
|
+
},
|
|
386
|
+
type: "alignCenter"
|
|
387
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
388
|
+
className: "tool-item"
|
|
389
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
390
|
+
active: quillFormat['text-align'] === 'right',
|
|
391
|
+
onChange: function onChange() {
|
|
392
|
+
_this.onToolBtnClick('text-align', 'right');
|
|
393
|
+
},
|
|
394
|
+
type: "alignRight"
|
|
395
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
396
|
+
className: "tooll-line"
|
|
397
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
398
|
+
className: "tool-item"
|
|
399
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
400
|
+
onChange: function onChange(value) {
|
|
401
|
+
_this.onToolBtnClick('link', value);
|
|
402
|
+
},
|
|
403
|
+
type: "link"
|
|
404
|
+
}))));
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
ToolBarModal.defaultProps = {};
|
|
408
|
+
return ToolBarModal;
|
|
409
|
+
}(_react["default"].Component);
|
|
410
|
+
|
|
411
|
+
var _default = ToolBarModal;
|
|
412
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.toolbar-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
border-bottom: 1px solid rgba(0, 0, 0, .04);
|
|
4
|
+
border-top: 1px solid rgba(0, 0, 0, .04);
|
|
5
|
+
position: absolute;
|
|
6
|
+
border-radius: 6px;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
z-index: 999;
|
|
10
|
+
background: #fff;
|
|
11
|
+
transform: translateY(calc(-100% - 1px));
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
padding: 3px 0;
|
|
14
|
+
|
|
15
|
+
.tool-item {
|
|
16
|
+
margin: 0 5px;
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tooll-line {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
width: 1px;
|
|
23
|
+
height: 16px;
|
|
24
|
+
background-color: #C1C9D7;
|
|
25
|
+
margin: 0 5px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.toolbar-row {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
height: 35px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -35,7 +35,7 @@ var _LeftTitle = _interopRequireDefault(require("./LeftTitle"));
|
|
|
35
35
|
|
|
36
36
|
var _RenderHtml = _interopRequireDefault(require("./RenderHtml"));
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _ToolBarModal = _interopRequireDefault(require("./ToolBarModal"));
|
|
39
39
|
|
|
40
40
|
var _componentTypes = require("../../constants/component-types");
|
|
41
41
|
|
|
@@ -43,14 +43,14 @@ var _mobx = require("../../mobx");
|
|
|
43
43
|
|
|
44
44
|
var _constants = require("../../constants");
|
|
45
45
|
|
|
46
|
-
require("./index.less");
|
|
47
|
-
|
|
48
46
|
var _common = require("../../common");
|
|
49
47
|
|
|
50
48
|
var _storeUtil = require("../../utils/storeUtil");
|
|
51
49
|
|
|
52
50
|
var _commonUtil = require("../../utils/commonUtil");
|
|
53
51
|
|
|
52
|
+
require("./index.less");
|
|
53
|
+
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
55
|
|
|
56
56
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -263,6 +263,7 @@ window.magicDesign = {
|
|
|
263
263
|
|
|
264
264
|
var setDesignConfig = function setDesignConfig(data) {
|
|
265
265
|
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
|
|
266
|
+
designMode: true,
|
|
266
267
|
compWidth: Number(data.compWidth),
|
|
267
268
|
compSpacing: Number(data.compSpacing),
|
|
268
269
|
MBaseUrl: data.MBaseUrl || 'operation/v1',
|
|
@@ -271,6 +272,13 @@ var setDesignConfig = function setDesignConfig(data) {
|
|
|
271
272
|
};
|
|
272
273
|
|
|
273
274
|
var debug = require('debug')('worker:Designer');
|
|
275
|
+
|
|
276
|
+
_antd.message.config({
|
|
277
|
+
getContainer: function getContainer() {
|
|
278
|
+
return document.querySelector('[magic_design]');
|
|
279
|
+
},
|
|
280
|
+
prefixCls: 'cylon-message'
|
|
281
|
+
});
|
|
274
282
|
/**
|
|
275
283
|
* @class Designer
|
|
276
284
|
* 主入口。
|
|
@@ -510,6 +518,9 @@ function (_super) {
|
|
|
510
518
|
break;
|
|
511
519
|
|
|
512
520
|
case _constants.quickMenuCode.SAVE:
|
|
521
|
+
/** 如果保存则重置为mobile,同一移动端截图 #10504010 */
|
|
522
|
+
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
|
|
523
|
+
|
|
513
524
|
onSave(handleParams);
|
|
514
525
|
break;
|
|
515
526
|
|
|
@@ -583,6 +594,7 @@ function (_super) {
|
|
|
583
594
|
onHtmlBack: _this.onHtmlBack,
|
|
584
595
|
onHtmlSave: _this.onHtmlSave,
|
|
585
596
|
outputType: _this.props.outputType,
|
|
597
|
+
pageType: _this.props.pageType,
|
|
586
598
|
redoDisable: !_this.history.redoAble(),
|
|
587
599
|
undoDisable: !_this.history.undoAble()
|
|
588
600
|
});
|
|
@@ -608,6 +620,18 @@ function (_super) {
|
|
|
608
620
|
});
|
|
609
621
|
};
|
|
610
622
|
|
|
623
|
+
_this.onEditModalOk = function (html) {
|
|
624
|
+
var _a;
|
|
625
|
+
|
|
626
|
+
(_a = _mobx.frameStore.textModalState) === null || _a === void 0 ? void 0 : _a.onOk(html);
|
|
627
|
+
|
|
628
|
+
_mobx.frameStore.setState({
|
|
629
|
+
textModalState: {
|
|
630
|
+
visible: false
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
|
|
611
635
|
(0, _commonUtil.ensure)(function () {
|
|
612
636
|
return window._MAGIC_VERSION = '0.1.49';
|
|
613
637
|
});
|
|
@@ -630,7 +654,11 @@ function (_super) {
|
|
|
630
654
|
_this.state = {
|
|
631
655
|
MPageData: MPageData,
|
|
632
656
|
device: _constants.deviceTypeMap.PHONE,
|
|
633
|
-
appointmentVisible: false
|
|
657
|
+
appointmentVisible: false,
|
|
658
|
+
showEditModal: false,
|
|
659
|
+
textModalState: {
|
|
660
|
+
quillRef: null
|
|
661
|
+
}
|
|
634
662
|
};
|
|
635
663
|
setDesignConfig(__assign(__assign({}, config), {
|
|
636
664
|
outputType: outputType
|
|
@@ -658,7 +686,8 @@ function (_super) {
|
|
|
658
686
|
|
|
659
687
|
this.destory = (0, _mobx.autorun)(function () {
|
|
660
688
|
var stateObj = {
|
|
661
|
-
imgGenVisible: _mobx.store.imgGenVisible
|
|
689
|
+
imgGenVisible: _mobx.store.imgGenVisible,
|
|
690
|
+
textModalState: _mobx.frameStore.textModalState
|
|
662
691
|
};
|
|
663
692
|
|
|
664
693
|
if (_this.state.locale != _mobx.store.locale) {
|
|
@@ -716,14 +745,16 @@ function (_super) {
|
|
|
716
745
|
var _a = this.state,
|
|
717
746
|
MPageData = _a.MPageData,
|
|
718
747
|
device = _a.device,
|
|
719
|
-
appointmentVisible = _a.appointmentVisible
|
|
748
|
+
appointmentVisible = _a.appointmentVisible,
|
|
749
|
+
textModalState = _a.textModalState;
|
|
720
750
|
var _b = this.props,
|
|
721
751
|
pagesManager = _b.pagesManager,
|
|
722
752
|
compSource = _b.compSource,
|
|
723
753
|
pageName = _b.pageName,
|
|
724
754
|
onCancelPublish = _b.onCancelPublish,
|
|
725
755
|
leftTitle = _b.leftTitle,
|
|
726
|
-
outputType = _b.outputType
|
|
756
|
+
outputType = _b.outputType,
|
|
757
|
+
pageType = _b.pageType;
|
|
727
758
|
var renderPagesManage = pagesManager;
|
|
728
759
|
|
|
729
760
|
if (outputType == 'html') {
|
|
@@ -735,18 +766,19 @@ function (_super) {
|
|
|
735
766
|
return /*#__PURE__*/_react["default"].createElement(_mobxReact.Provider, {
|
|
736
767
|
store: _mobx.store
|
|
737
768
|
}, /*#__PURE__*/_react["default"].createElement(_antd.ConfigProvider, {
|
|
738
|
-
getPopupContainer: function getPopupContainer(
|
|
739
|
-
return
|
|
769
|
+
getPopupContainer: function getPopupContainer() {
|
|
770
|
+
return document.querySelector('[magic_design]');
|
|
740
771
|
},
|
|
741
772
|
prefixCls: "cylon"
|
|
742
773
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
743
774
|
magic_design: ""
|
|
744
775
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
745
776
|
className: "designer-wrap"
|
|
746
|
-
}, /*#__PURE__*/_react["default"].createElement(_ChatRobot["default"], null), /*#__PURE__*/_react["default"].createElement(_PageCompList["default"], {
|
|
777
|
+
}, window.magicDesign.needAi && /*#__PURE__*/_react["default"].createElement(_ChatRobot["default"], null), /*#__PURE__*/_react["default"].createElement(_PageCompList["default"], {
|
|
747
778
|
onAdd: this.onAdd,
|
|
748
779
|
pageData: MPageData,
|
|
749
780
|
pageName: pageName,
|
|
781
|
+
pageType: pageType,
|
|
750
782
|
renderPagesManage: renderPagesManage,
|
|
751
783
|
setPageData: this.setPageData
|
|
752
784
|
}), /*#__PURE__*/_react["default"].createElement(_CompListPanel["default"], {
|
|
@@ -777,7 +809,9 @@ function (_super) {
|
|
|
777
809
|
},
|
|
778
810
|
onConfirm: this.onAppointmentConfirm,
|
|
779
811
|
visible: appointmentVisible
|
|
780
|
-
})
|
|
812
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.SystemNotification, null)), textModalState.quillRef && /*#__PURE__*/_react["default"].createElement(_ToolBarModal["default"], {
|
|
813
|
+
quillRef: textModalState.quillRef
|
|
814
|
+
})), /*#__PURE__*/_react["default"].createElement(_RenderHtml["default"], {
|
|
781
815
|
ref: this.renderHtmlRef
|
|
782
816
|
}));
|
|
783
817
|
};
|