@fonixtree/magic-design 0.0.102 → 0.0.104
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/magic-box-iconfont.css +28 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +28 -12
- 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/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/button.less +23 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/datepicker.less +11 -0
- package/es/assets/less/index.less +2 -1
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Collapse/index.js +14 -4
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +31 -26
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +3 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/SystemNotification/Confirm/index.js +263 -0
- package/es/common/SystemNotification/Confirm/index.less +33 -0
- package/es/common/SystemNotification/index.js +115 -0
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/es/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +9 -9
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +22 -9
- package/es/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/es/composite-comp/bol/components/Carousel/pc/index.less +29 -16
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +1 -1
- package/es/composite-comp/common/components/ProductItem/index.js +26 -6
- package/es/composite-comp/common/components/ProductItem/index.less +11 -10
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +567 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/es/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +15 -3
- package/es/constants/index.js +21 -2
- package/es/constants/layout.js +35 -14
- package/es/core/Designer/AppointmentModal/index.js +87 -0
- package/es/core/Designer/AppointmentModal/index.less +23 -0
- package/es/core/Designer/CompListPanel/CompCard/index.js +3 -1
- package/es/core/Designer/CompListPanel/index.js +11 -36
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +73 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +42 -4
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +38 -4
- package/es/core/Designer/QuickMenuBar/index.less +34 -0
- package/es/core/Designer/ViewArea/index.js +48 -8
- package/es/core/Designer/ViewArea/index.less +40 -4
- package/es/core/Designer/index.js +93 -41
- package/es/core/Renderer/index.js +23 -5
- package/es/decorator/compositeDecorator.js +147 -17
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +41 -8
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +21 -3
- package/es/locale/es/es.json +19 -1
- package/es/locale/id/id.json +21 -3
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- package/es/meta-comp/components/Image/index.js +47 -8
- package/es/meta-comp/components/Image/index.less +7 -3
- package/es/meta-comp/components/Text/index.js +38 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/es/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/es/mobx/Frame.js +64 -0
- package/es/mobx/Store.js +9 -10
- package/es/mobx/index.js +9 -3
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +28 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -12
- 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/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/button.less +23 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/datepicker.less +11 -0
- package/lib/assets/less/index.less +2 -1
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +31 -26
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +3 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/SystemNotification/Confirm/index.js +263 -0
- package/lib/common/SystemNotification/Confirm/index.less +33 -0
- package/lib/common/SystemNotification/index.js +115 -0
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/lib/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +9 -9
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +22 -9
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +29 -16
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +26 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +11 -10
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +567 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +15 -3
- package/lib/constants/index.js +21 -2
- package/lib/constants/layout.js +35 -14
- package/lib/core/Designer/AppointmentModal/index.js +87 -0
- package/lib/core/Designer/AppointmentModal/index.less +23 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.js +3 -1
- package/lib/core/Designer/CompListPanel/index.js +11 -36
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +73 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +42 -4
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +38 -4
- package/lib/core/Designer/QuickMenuBar/index.less +34 -0
- package/lib/core/Designer/ViewArea/index.js +48 -8
- package/lib/core/Designer/ViewArea/index.less +40 -4
- package/lib/core/Designer/index.js +93 -41
- package/lib/core/Renderer/index.js +23 -5
- package/lib/decorator/compositeDecorator.js +147 -17
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +41 -8
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +21 -3
- package/lib/locale/es/es.json +19 -1
- package/lib/locale/id/id.json +21 -3
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- package/lib/meta-comp/components/Image/index.js +47 -8
- package/lib/meta-comp/components/Image/index.less +7 -3
- package/lib/meta-comp/components/Text/index.js +38 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/lib/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/lib/mobx/Frame.js +64 -0
- package/lib/mobx/Store.js +9 -10
- package/lib/mobx/index.js +9 -3
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -9,12 +9,17 @@ var _uuid = require("uuid");
|
|
|
9
9
|
|
|
10
10
|
var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
11
11
|
var groupId = (0, _uuid.v4)();
|
|
12
|
+
var imageId = (0, _uuid.v4)();
|
|
13
|
+
var titleId = (0, _uuid.v4)();
|
|
14
|
+
var textId = (0, _uuid.v4)();
|
|
15
|
+
var buttonId = (0, _uuid.v4)();
|
|
16
|
+
var secButtonId = (0, _uuid.v4)();
|
|
12
17
|
return {
|
|
13
18
|
id: groupId,
|
|
14
19
|
image: {
|
|
15
20
|
parentId: groupId,
|
|
16
|
-
id:
|
|
17
|
-
open:
|
|
21
|
+
id: imageId,
|
|
22
|
+
open: true,
|
|
18
23
|
type: 'IMAGE',
|
|
19
24
|
content: {
|
|
20
25
|
h5Name: 'name2',
|
|
@@ -33,18 +38,17 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
33
38
|
},
|
|
34
39
|
title: {
|
|
35
40
|
parentId: groupId,
|
|
36
|
-
id:
|
|
41
|
+
id: titleId,
|
|
37
42
|
open: true,
|
|
38
43
|
type: 'TEXT',
|
|
39
44
|
specialContent: [],
|
|
40
45
|
text: 'Title of this group',
|
|
41
46
|
content: {
|
|
42
|
-
sizeType: '
|
|
47
|
+
sizeType: 'Customize font styles',
|
|
43
48
|
fontFamily: 'Open Sans',
|
|
44
49
|
fontWeight: 600,
|
|
45
50
|
fontSize: 12,
|
|
46
|
-
color: '#232F46'
|
|
47
|
-
width: 0
|
|
51
|
+
color: '#232F46'
|
|
48
52
|
},
|
|
49
53
|
underline: {
|
|
50
54
|
open: false,
|
|
@@ -55,25 +59,24 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
55
59
|
},
|
|
56
60
|
text: {
|
|
57
61
|
parentId: groupId,
|
|
58
|
-
id:
|
|
62
|
+
id: textId,
|
|
59
63
|
open: true,
|
|
60
64
|
type: 'TEXT',
|
|
61
65
|
specialContent: [],
|
|
62
66
|
text: 'Please enter a description',
|
|
63
67
|
content: {
|
|
64
|
-
sizeType: '
|
|
68
|
+
sizeType: 'Customize font styles',
|
|
65
69
|
fontFamily: 'Open Sans',
|
|
66
70
|
fontWeight: 400,
|
|
67
71
|
fontSize: 10,
|
|
68
|
-
color: '#8493AF'
|
|
69
|
-
width: 0
|
|
72
|
+
color: '#8493AF'
|
|
70
73
|
},
|
|
71
74
|
underline: {},
|
|
72
75
|
vertical: {}
|
|
73
76
|
},
|
|
74
77
|
button: {
|
|
75
78
|
parentId: groupId,
|
|
76
|
-
id:
|
|
79
|
+
id: buttonId,
|
|
77
80
|
open: true,
|
|
78
81
|
type: 'BUTTON',
|
|
79
82
|
text: 'Button',
|
|
@@ -82,7 +85,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
82
85
|
backgroundColor: '#2F54EB'
|
|
83
86
|
},
|
|
84
87
|
buttonText: {
|
|
85
|
-
sizeType: '
|
|
88
|
+
sizeType: 'Customize font styles',
|
|
86
89
|
fontFamily: 'Open Sans',
|
|
87
90
|
fontWeight: 400,
|
|
88
91
|
fontSize: 10,
|
|
@@ -98,13 +101,27 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
98
101
|
iconUrl: '',
|
|
99
102
|
layout: 'right'
|
|
100
103
|
},
|
|
104
|
+
spacing: {
|
|
105
|
+
pc: {
|
|
106
|
+
paddingTop: 6,
|
|
107
|
+
paddingBottom: 6,
|
|
108
|
+
paddingLeft: 10,
|
|
109
|
+
paddingRight: 10
|
|
110
|
+
},
|
|
111
|
+
mobile: {
|
|
112
|
+
paddingTop: 6,
|
|
113
|
+
paddingBottom: 6,
|
|
114
|
+
paddingLeft: 10,
|
|
115
|
+
paddingRight: 10
|
|
116
|
+
}
|
|
117
|
+
},
|
|
101
118
|
hover: {
|
|
102
119
|
open: false,
|
|
103
120
|
content: {
|
|
104
121
|
backgroundColor: '#0d39ed'
|
|
105
122
|
},
|
|
106
123
|
buttonText: {
|
|
107
|
-
sizeType: '
|
|
124
|
+
sizeType: 'Customize font styles',
|
|
108
125
|
fontFamily: 'Open Sans',
|
|
109
126
|
fontWeight: 600,
|
|
110
127
|
fontSize: 14,
|
|
@@ -120,15 +137,11 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
120
137
|
iconUrl: '',
|
|
121
138
|
layout: 'right'
|
|
122
139
|
}
|
|
123
|
-
},
|
|
124
|
-
spacing: {
|
|
125
|
-
pc: {},
|
|
126
|
-
mobile: {}
|
|
127
140
|
}
|
|
128
141
|
},
|
|
129
142
|
secondButton: {
|
|
130
143
|
parentId: groupId,
|
|
131
|
-
id:
|
|
144
|
+
id: secButtonId,
|
|
132
145
|
open: true,
|
|
133
146
|
type: 'BUTTON',
|
|
134
147
|
text: 'More',
|
|
@@ -137,7 +150,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
137
150
|
backgroundColor: '#fff'
|
|
138
151
|
},
|
|
139
152
|
buttonText: {
|
|
140
|
-
sizeType: '
|
|
153
|
+
sizeType: 'Customize font styles',
|
|
141
154
|
fontFamily: 'Open Sans',
|
|
142
155
|
fontWeight: 400,
|
|
143
156
|
fontSize: 10,
|
|
@@ -153,13 +166,27 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
153
166
|
iconUrl: '',
|
|
154
167
|
layout: 'right'
|
|
155
168
|
},
|
|
169
|
+
spacing: {
|
|
170
|
+
pc: {
|
|
171
|
+
paddingTop: 6,
|
|
172
|
+
paddingBottom: 6,
|
|
173
|
+
paddingLeft: 10,
|
|
174
|
+
paddingRight: 10
|
|
175
|
+
},
|
|
176
|
+
mobile: {
|
|
177
|
+
paddingTop: 6,
|
|
178
|
+
paddingBottom: 6,
|
|
179
|
+
paddingLeft: 10,
|
|
180
|
+
paddingRight: 10
|
|
181
|
+
}
|
|
182
|
+
},
|
|
156
183
|
hover: {
|
|
157
184
|
open: false,
|
|
158
185
|
content: {
|
|
159
186
|
backgroundColor: '#E9F0FF'
|
|
160
187
|
},
|
|
161
188
|
buttonText: {
|
|
162
|
-
sizeType: '
|
|
189
|
+
sizeType: 'Customize font styles',
|
|
163
190
|
fontFamily: 'Open Sans',
|
|
164
191
|
fontWeight: 600,
|
|
165
192
|
fontSize: 14,
|
|
@@ -175,10 +202,6 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
175
202
|
iconUrl: '',
|
|
176
203
|
layout: 'right'
|
|
177
204
|
}
|
|
178
|
-
},
|
|
179
|
-
spacing: {
|
|
180
|
-
pc: {},
|
|
181
|
-
mobile: {}
|
|
182
205
|
}
|
|
183
206
|
},
|
|
184
207
|
background: {
|
|
@@ -191,7 +214,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
191
214
|
open: false,
|
|
192
215
|
image: {
|
|
193
216
|
parentId: groupId,
|
|
194
|
-
id:
|
|
217
|
+
id: imageId,
|
|
195
218
|
open: false,
|
|
196
219
|
type: 'IMAGE',
|
|
197
220
|
content: {
|
|
@@ -211,7 +234,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
211
234
|
},
|
|
212
235
|
title: {
|
|
213
236
|
parentId: groupId,
|
|
214
|
-
id:
|
|
237
|
+
id: titleId,
|
|
215
238
|
open: true,
|
|
216
239
|
type: 'TEXT',
|
|
217
240
|
specialContent: [],
|
|
@@ -231,13 +254,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
231
254
|
vertical: {}
|
|
232
255
|
},
|
|
233
256
|
text: {
|
|
234
|
-
id:
|
|
257
|
+
id: textId,
|
|
235
258
|
open: true,
|
|
236
259
|
type: 'TEXT',
|
|
237
260
|
specialContent: [],
|
|
238
261
|
text: '',
|
|
239
262
|
content: {
|
|
240
|
-
sizeType: '
|
|
263
|
+
sizeType: 'Customize font styles',
|
|
241
264
|
fontFamily: 'Open Sans',
|
|
242
265
|
fontWeight: 400,
|
|
243
266
|
fontSize: 18,
|
|
@@ -248,7 +271,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
248
271
|
vertical: {}
|
|
249
272
|
},
|
|
250
273
|
button: {
|
|
251
|
-
id:
|
|
274
|
+
id: buttonId,
|
|
252
275
|
open: true,
|
|
253
276
|
type: 'BUTTON',
|
|
254
277
|
text: 'Button',
|
|
@@ -257,7 +280,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
257
280
|
backgroundColor: '#2F54EB'
|
|
258
281
|
},
|
|
259
282
|
buttonText: {
|
|
260
|
-
sizeType: '
|
|
283
|
+
sizeType: 'Customize font styles',
|
|
261
284
|
fontFamily: 'Open Sans',
|
|
262
285
|
fontWeight: 600,
|
|
263
286
|
fontSize: 14,
|
|
@@ -279,7 +302,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
279
302
|
backgroundColor: '#0d39ed'
|
|
280
303
|
},
|
|
281
304
|
buttonText: {
|
|
282
|
-
sizeType: '
|
|
305
|
+
sizeType: 'Customize font styles',
|
|
283
306
|
fontFamily: 'Open Sans',
|
|
284
307
|
fontWeight: 600,
|
|
285
308
|
fontSize: 14,
|
|
@@ -298,7 +321,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
298
321
|
}
|
|
299
322
|
},
|
|
300
323
|
secondButton: {
|
|
301
|
-
id:
|
|
324
|
+
id: secButtonId,
|
|
302
325
|
open: true,
|
|
303
326
|
type: 'BUTTON',
|
|
304
327
|
text: 'More',
|
|
@@ -307,7 +330,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
307
330
|
backgroundColor: '#fff'
|
|
308
331
|
},
|
|
309
332
|
buttonText: {
|
|
310
|
-
sizeType: '
|
|
333
|
+
sizeType: 'Customize font styles',
|
|
311
334
|
fontFamily: 'Open Sans',
|
|
312
335
|
fontWeight: 600,
|
|
313
336
|
fontSize: 14,
|
|
@@ -329,7 +352,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
329
352
|
backgroundColor: '#E9F0FF'
|
|
330
353
|
},
|
|
331
354
|
buttonText: {
|
|
332
|
-
sizeType: '
|
|
355
|
+
sizeType: 'Customize font styles',
|
|
333
356
|
fontFamily: 'Open Sans',
|
|
334
357
|
fontWeight: 600,
|
|
335
358
|
fontSize: 14,
|
|
@@ -363,151 +386,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
363
386
|
return {
|
|
364
387
|
id: (0, _uuid.v4)(),
|
|
365
388
|
type: 'IMAGE_TEXT',
|
|
366
|
-
// headline: {
|
|
367
|
-
// id: uuidv4(),
|
|
368
|
-
// open: true,
|
|
369
|
-
// type: 'TEXT',
|
|
370
|
-
// specialContent: [],
|
|
371
|
-
// text: 'Digital Maturity',
|
|
372
|
-
// content: {
|
|
373
|
-
// sizeType: 'Headline 1',
|
|
374
|
-
// fontFamily: 'Open Sans',
|
|
375
|
-
// fontWeight: 600,
|
|
376
|
-
// fontSize: 28,
|
|
377
|
-
// color: '#232F46',
|
|
378
|
-
// width: 0,
|
|
379
|
-
// },
|
|
380
|
-
// underline: {
|
|
381
|
-
// open: false,
|
|
382
|
-
// textDecorationColor: '',
|
|
383
|
-
// textDecorationStyle: 'solid',
|
|
384
|
-
// },
|
|
385
|
-
// vertical: {
|
|
386
|
-
// },
|
|
387
|
-
// },
|
|
388
|
-
// subtitle: {
|
|
389
|
-
// id: uuidv4(),
|
|
390
|
-
// open: true,
|
|
391
|
-
// type: 'TEXT',
|
|
392
|
-
// specialContent: [],
|
|
393
|
-
// text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
|
|
394
|
-
// content: {
|
|
395
|
-
// sizeType: 'Headline 1',
|
|
396
|
-
// fontFamily: 'Open Sans',
|
|
397
|
-
// fontWeight: 400,
|
|
398
|
-
// // textAlign: 'center',
|
|
399
|
-
// fontSize: 16,
|
|
400
|
-
// color: '#232F46',
|
|
401
|
-
// width: 0,
|
|
402
|
-
// },
|
|
403
|
-
// underline: {
|
|
404
|
-
// open: false,
|
|
405
|
-
// textDecorationColor: '',
|
|
406
|
-
// textDecorationStyle: 'solid',
|
|
407
|
-
// },
|
|
408
|
-
// vertical: {
|
|
409
|
-
// },
|
|
410
|
-
// },
|
|
411
|
-
// button: {
|
|
412
|
-
// id: uuidv4(),
|
|
413
|
-
// open: true,
|
|
414
|
-
// type: 'BUTTON',
|
|
415
|
-
// text: 'Button',
|
|
416
|
-
// content: {
|
|
417
|
-
// url: '',
|
|
418
|
-
// backgroundColor: '#2F54EB',
|
|
419
|
-
// },
|
|
420
|
-
// buttonText: {
|
|
421
|
-
// sizeType: 'Headline 1',
|
|
422
|
-
// fontFamily: 'Open Sans',
|
|
423
|
-
// fontWeight: 600,
|
|
424
|
-
// fontSize: 14,
|
|
425
|
-
// fontStyle: 'normal',
|
|
426
|
-
// color: '#fff',
|
|
427
|
-
// },
|
|
428
|
-
// buttonBorder: {
|
|
429
|
-
// open: true,
|
|
430
|
-
// borderColor: '',
|
|
431
|
-
// borderRadius: 6,
|
|
432
|
-
// },
|
|
433
|
-
// buttonIcon: {
|
|
434
|
-
// iconUrl: '',
|
|
435
|
-
// layout: 'right',
|
|
436
|
-
// },
|
|
437
|
-
// hover: {
|
|
438
|
-
// open: false,
|
|
439
|
-
// content: {
|
|
440
|
-
// backgroundColor: '#0d39ed',
|
|
441
|
-
// },
|
|
442
|
-
// buttonText: {
|
|
443
|
-
// sizeType: 'Headline 1',
|
|
444
|
-
// fontFamily: 'Open Sans',
|
|
445
|
-
// fontWeight: 600,
|
|
446
|
-
// fontSize: 14,
|
|
447
|
-
// fontStyle: 'normal',
|
|
448
|
-
// color: '#fff',
|
|
449
|
-
// },
|
|
450
|
-
// buttonBorder: {
|
|
451
|
-
// open: true,
|
|
452
|
-
// borderColor: '',
|
|
453
|
-
// borderRadius: 6,
|
|
454
|
-
// },
|
|
455
|
-
// buttonIcon: {
|
|
456
|
-
// iconUrl: '',
|
|
457
|
-
// layout: 'right',
|
|
458
|
-
// },
|
|
459
|
-
// },
|
|
460
|
-
// },
|
|
461
|
-
// secondButton: {
|
|
462
|
-
// id: uuidv4(),
|
|
463
|
-
// open: false,
|
|
464
|
-
// type: 'BUTTON',
|
|
465
|
-
// text: 'Button',
|
|
466
|
-
// content: {
|
|
467
|
-
// url: '',
|
|
468
|
-
// backgroundColor: '#FFFFFF',
|
|
469
|
-
// },
|
|
470
|
-
// buttonText: {
|
|
471
|
-
// sizeType: 'Headline 1',
|
|
472
|
-
// fontFamily: 'Open Sans',
|
|
473
|
-
// fontWeight: 600,
|
|
474
|
-
// fontSize: 14,
|
|
475
|
-
// fontStyle: 'normal',
|
|
476
|
-
// color: '#2F54EB',
|
|
477
|
-
// },
|
|
478
|
-
// buttonBorder: {
|
|
479
|
-
// open: true,
|
|
480
|
-
// borderColor: '#2F54EB',
|
|
481
|
-
// borderRadius: 6,
|
|
482
|
-
// },
|
|
483
|
-
// buttonIcon: {
|
|
484
|
-
// iconUrl: '',
|
|
485
|
-
// layout: 'right',
|
|
486
|
-
// },
|
|
487
|
-
// hover: {
|
|
488
|
-
// open: false,
|
|
489
|
-
// content: {
|
|
490
|
-
// backgroundColor: '#0d39ed',
|
|
491
|
-
// },
|
|
492
|
-
// buttonText: {
|
|
493
|
-
// sizeType: 'Headline 1',
|
|
494
|
-
// fontFamily: 'Open Sans',
|
|
495
|
-
// fontWeight: 600,
|
|
496
|
-
// fontSize: 14,
|
|
497
|
-
// fontStyle: 'normal',
|
|
498
|
-
// color: '#fff',
|
|
499
|
-
// },
|
|
500
|
-
// buttonBorder: {
|
|
501
|
-
// open: true,
|
|
502
|
-
// borderColor: '',
|
|
503
|
-
// borderRadius: 6,
|
|
504
|
-
// },
|
|
505
|
-
// buttonIcon: {
|
|
506
|
-
// iconUrl: '',
|
|
507
|
-
// layout: 'right',
|
|
508
|
-
// },
|
|
509
|
-
// },
|
|
510
|
-
// },
|
|
511
389
|
spacing: {
|
|
512
390
|
pc: {
|
|
513
391
|
paddingTop: 10,
|
|
@@ -15,8 +15,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
15
15
|
|
|
16
16
|
var _components = require("../../../../../meta-comp/components");
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
20
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -104,10 +102,9 @@ function (_super) {
|
|
|
104
102
|
ImageTextMobile.prototype.render = function () {
|
|
105
103
|
var _this = this;
|
|
106
104
|
|
|
107
|
-
var data = this.props.data; //
|
|
108
|
-
// console.log('----imagetext mobile', data);
|
|
105
|
+
var data = this.props.data; // console.log('----imagetext mobile', data);
|
|
109
106
|
|
|
110
|
-
var wrapStyle =
|
|
107
|
+
var wrapStyle = {};
|
|
111
108
|
wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
|
|
112
109
|
// wrapStyle.backgroundColor = data.background.color;
|
|
113
110
|
// wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
|
|
@@ -126,6 +123,7 @@ function (_super) {
|
|
|
126
123
|
cardBtnStyle.justifyContent = _AlignSelector.alignItemMap[data.customize.align];
|
|
127
124
|
}
|
|
128
125
|
|
|
126
|
+
console.log('source', data);
|
|
129
127
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
128
|
className: (0, _classnames["default"])('image-text-mobile', data.customize.layout.h5Layout),
|
|
131
129
|
style: wrapStyle
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
}
|
|
60
60
|
.card-btn-wrap {
|
|
61
61
|
display: flex;
|
|
62
|
-
.card-
|
|
63
|
-
margin-
|
|
62
|
+
.card-second-btn {
|
|
63
|
+
margin-left: 12px;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
}
|
|
95
95
|
.card-btn-wrap {
|
|
96
96
|
display: flex;
|
|
97
|
-
.card-
|
|
98
|
-
margin-
|
|
97
|
+
.card-second-btn {
|
|
98
|
+
margin-left: 12px;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
flex-direction: column;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.card-second-btn {
|
|
139
|
-
margin-
|
|
138
|
+
.card-first-btn, .card-second-btn {
|
|
139
|
+
margin-bottom: 8px;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
.card-margin-bottom {
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
}
|
|
171
171
|
.card-btn-wrap {
|
|
172
172
|
display: flex;
|
|
173
|
-
.card-
|
|
174
|
-
margin-
|
|
173
|
+
.card-second-btn {
|
|
174
|
+
margin-left: 12px;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
@@ -11,6 +11,8 @@ require("./index.less");
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
|
|
14
16
|
var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
15
17
|
|
|
16
18
|
var _components = require("../../../../../meta-comp/components");
|
|
@@ -63,7 +65,7 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
63
65
|
|
|
64
66
|
var maxWidthAndHeight = {
|
|
65
67
|
normal: 410,
|
|
66
|
-
outside:
|
|
68
|
+
outside: 86,
|
|
67
69
|
center: 410
|
|
68
70
|
};
|
|
69
71
|
|
|
@@ -76,17 +78,26 @@ function (_super) {
|
|
|
76
78
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
77
79
|
|
|
78
80
|
_this.state = {
|
|
79
|
-
hoverIndex: -1
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
hoverIndex: -1,
|
|
82
|
+
currentMaxWidth: 410
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
_this.listenCardWidth = function () {
|
|
86
|
+
var _a;
|
|
87
|
+
|
|
88
|
+
var data = _this.props.data;
|
|
89
|
+
|
|
90
|
+
try {
|
|
91
|
+
var cardWidth = ((_a = document.querySelector('.group-wrap .one-card')) === null || _a === void 0 ? void 0 : _a.offsetWidth) - 48;
|
|
92
|
+
var maxLayoutWidth = maxWidthAndHeight[data.customize.layout.pcLayout];
|
|
93
|
+
|
|
94
|
+
_this.setState({
|
|
95
|
+
currentMaxWidth: Math.min(cardWidth, maxLayoutWidth)
|
|
96
|
+
});
|
|
97
|
+
} catch (error) {
|
|
98
|
+
console.log(error);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
90
101
|
|
|
91
102
|
_this.calcWidth = function (num) {
|
|
92
103
|
return (100 - (num - 1) * 2) / num + "%";
|
|
@@ -114,15 +125,32 @@ function (_super) {
|
|
|
114
125
|
return _this;
|
|
115
126
|
}
|
|
116
127
|
|
|
128
|
+
ImageTextPc.prototype.componentDidMount = function () {
|
|
129
|
+
var data = this.props.data;
|
|
130
|
+
this.layout = data.customize.layout.pcLayout;
|
|
131
|
+
this.listenCardWidth();
|
|
132
|
+
window.addEventListener('resize', (0, _lodash.debounce)(this.listenCardWidth));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
ImageTextPc.prototype.componentWillUnmount = function () {
|
|
136
|
+
window.removeEventListener('resize', this.listenCardWidth);
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
ImageTextPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
140
|
+
if (nextProps.data.customize.layout.pcLayout !== this.layout) {
|
|
141
|
+
this.layout = nextProps.data.customize.layout.pcLayout;
|
|
142
|
+
this.listenCardWidth();
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
117
146
|
ImageTextPc.prototype.render = function () {
|
|
118
147
|
var _this = this;
|
|
119
148
|
|
|
120
149
|
var data = this.props.data;
|
|
121
|
-
var
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
150
|
+
var _a = this.state,
|
|
151
|
+
hoverIndex = _a.hoverIndex,
|
|
152
|
+
currentMaxWidth = _a.currentMaxWidth;
|
|
153
|
+
var wrapStyle = {};
|
|
126
154
|
wrapStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
|
|
127
155
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
156
|
className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
|
|
@@ -156,7 +184,7 @@ function (_super) {
|
|
|
156
184
|
data: hoverIndex == i ? source.hover.image : source.image,
|
|
157
185
|
limitWidthHeight: true,
|
|
158
186
|
maxHeight: maxWidthAndHeight[data.customize.layout.pcLayout],
|
|
159
|
-
maxWidth:
|
|
187
|
+
maxWidth: currentMaxWidth,
|
|
160
188
|
scale: 0.5
|
|
161
189
|
})), (source.title.open && data.customize.layout.pcLayout !== 'center' && hoverIndex != i || hoverIndex == i && source.hover.title.open && data.customize.layout.pcLayout !== 'center') && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
162
190
|
className: "card-title",
|
|
@@ -30,7 +30,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
|
|
|
30
30
|
return {
|
|
31
31
|
id: (0, _uuid.v4)(),
|
|
32
32
|
open: true,
|
|
33
|
-
type: '
|
|
33
|
+
type: 'TEXT',
|
|
34
34
|
specialContent: [],
|
|
35
35
|
text: 'Thank you for you subscription',
|
|
36
36
|
content: {
|
|
@@ -111,12 +111,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
111
111
|
pc: {
|
|
112
112
|
paddingTop: 10,
|
|
113
113
|
paddingBottom: 10,
|
|
114
|
-
marginBottom:
|
|
114
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
115
115
|
},
|
|
116
116
|
mobile: {
|
|
117
117
|
paddingTop: 10,
|
|
118
118
|
paddingBottom: 10,
|
|
119
|
-
marginBottom:
|
|
119
|
+
marginBottom: window.magicDesign.compSpacing
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
customize: {
|