@fonixtree/magic-design 0.0.78 → 0.0.80
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 +24 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +24 -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/layout-navigation-normal.png +0 -0
- package/es/assets/less/common.less +2 -2
- 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 +1 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +3 -3
- 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/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/es/composite-comp/bol/components/Banner/pc/index.js +3 -6
- 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 +1 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +2 -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/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
- 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 +4 -6
- 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 +141 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -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 -0
- 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 +141 -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/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.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.less +9 -9
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- 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 +578 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -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 +131 -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 +478 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/es/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +59 -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 +12 -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/index.js +16 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -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 +13 -3
- package/es/constants/index.js +20 -2
- package/es/constants/layout.js +34 -8
- package/es/core/Designer/CompListPanel/index.js +8 -33
- 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 +72 -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 +13 -3
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/core/Designer/ViewArea/index.js +20 -6
- package/es/core/Designer/index.js +43 -37
- package/es/core/Renderer/index.js +21 -5
- package/es/decorator/compositeDecorator.js +45 -12
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +4 -3
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +14 -1
- package/es/locale/es/es.json +14 -1
- package/es/locale/id/id.json +14 -1
- 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/index.js +39 -8
- package/es/meta-comp/components/Image/index.less +7 -4
- package/es/meta-comp/components/Text/index.js +28 -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 +15 -6
- package/es/mobx/Store.js +6 -10
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +24 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +24 -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/layout-navigation-normal.png +0 -0
- package/lib/assets/less/common.less +2 -2
- 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 +1 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +3 -3
- 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/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -6
- 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 +1 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +2 -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/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
- 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 +4 -6
- 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 +141 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -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 -0
- 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 +141 -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/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.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.less +9 -9
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- 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 +578 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -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 +131 -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 +478 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +59 -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 +12 -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/index.js +16 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -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 +13 -3
- package/lib/constants/index.js +20 -2
- package/lib/constants/layout.js +34 -8
- package/lib/core/Designer/CompListPanel/index.js +8 -33
- 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 +72 -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 +13 -3
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/core/Designer/ViewArea/index.js +20 -6
- package/lib/core/Designer/index.js +43 -37
- package/lib/core/Renderer/index.js +21 -5
- package/lib/decorator/compositeDecorator.js +45 -12
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +4 -3
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +14 -1
- package/lib/locale/es/es.json +14 -1
- package/lib/locale/id/id.json +14 -1
- 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/index.js +39 -8
- package/lib/meta-comp/components/Image/index.less +7 -4
- package/lib/meta-comp/components/Text/index.js +28 -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 +15 -6
- package/lib/mobx/Store.js +6 -10
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
require("./index.less");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -76,20 +74,16 @@ function (_super) {
|
|
|
76
74
|
var _a;
|
|
77
75
|
|
|
78
76
|
var nodeData = this.props.nodeData;
|
|
79
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
80
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
78
|
className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
82
|
-
onClick: this.onComponentClick
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
91
|
-
data: nodeData.content.secondaryButton
|
|
92
|
-
})));
|
|
79
|
+
onClick: this.onComponentClick
|
|
80
|
+
}, nodeData.groupSource && nodeData.groupSource.map(function (m) {
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
className: "secondary-button"
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
84
|
+
data: m.button
|
|
85
|
+
}));
|
|
86
|
+
}));
|
|
93
87
|
};
|
|
94
88
|
|
|
95
89
|
Button.defaultProps = {};
|
|
@@ -7,10 +7,6 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
15
11
|
var groupId = (0, _uuid.v4)();
|
|
16
12
|
return {
|
|
@@ -24,8 +20,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
24
20
|
content: {
|
|
25
21
|
h5Name: 'h5Name',
|
|
26
22
|
pcName: 'pcName',
|
|
27
|
-
h5ImgSrc:
|
|
28
|
-
pcImgSrc:
|
|
23
|
+
h5ImgSrc: '',
|
|
24
|
+
pcImgSrc: '',
|
|
29
25
|
clickUrl: ''
|
|
30
26
|
},
|
|
31
27
|
hover: {
|
|
@@ -44,7 +40,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
44
40
|
specialContent: [],
|
|
45
41
|
text: 'Title of this group',
|
|
46
42
|
content: {
|
|
47
|
-
sizeType: '
|
|
43
|
+
sizeType: 'Customize font styles',
|
|
48
44
|
fontFamily: 'Open Sans',
|
|
49
45
|
fontWeight: 600,
|
|
50
46
|
fontSize: 16,
|
|
@@ -67,7 +63,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
67
63
|
specialContent: [],
|
|
68
64
|
text: 'Please enter a description',
|
|
69
65
|
content: {
|
|
70
|
-
sizeType: '
|
|
66
|
+
sizeType: 'Customize font styles',
|
|
71
67
|
fontFamily: 'Open Sans',
|
|
72
68
|
fontWeight: 400,
|
|
73
69
|
fontSize: 14,
|
|
@@ -86,8 +82,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
86
82
|
content: {
|
|
87
83
|
h5Name: '',
|
|
88
84
|
pcName: '',
|
|
89
|
-
h5ImgSrc:
|
|
90
|
-
pcImgSrc:
|
|
85
|
+
h5ImgSrc: '',
|
|
86
|
+
pcImgSrc: '',
|
|
91
87
|
clickUrl: ''
|
|
92
88
|
},
|
|
93
89
|
hover: {
|
|
@@ -109,7 +105,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
109
105
|
backgroundColor: '#E6EAF0'
|
|
110
106
|
},
|
|
111
107
|
buttonText: {
|
|
112
|
-
|
|
108
|
+
sizeType: 'Customize font styles',
|
|
113
109
|
fontFamily: 'Open Sans',
|
|
114
110
|
fontWeight: 600,
|
|
115
111
|
fontSize: 14,
|
|
@@ -145,7 +141,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
145
141
|
backgroundColor: '#E6EAF0'
|
|
146
142
|
},
|
|
147
143
|
buttonText: {
|
|
148
|
-
|
|
144
|
+
sizeType: 'Customize font styles',
|
|
149
145
|
fontFamily: 'Open Sans',
|
|
150
146
|
fontWeight: 600,
|
|
151
147
|
fontSize: 14,
|
|
@@ -174,7 +170,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
174
170
|
backgroundColor: '#E6EAF0'
|
|
175
171
|
},
|
|
176
172
|
buttonText: {
|
|
177
|
-
|
|
173
|
+
sizeType: 'Customize font styles',
|
|
178
174
|
fontFamily: 'Open Sans',
|
|
179
175
|
fontWeight: 600,
|
|
180
176
|
fontSize: 14,
|
|
@@ -210,7 +206,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
210
206
|
backgroundColor: '#E6EAF0'
|
|
211
207
|
},
|
|
212
208
|
buttonText: {
|
|
213
|
-
|
|
209
|
+
sizeType: 'Customize font styles',
|
|
214
210
|
fontFamily: 'Open Sans',
|
|
215
211
|
fontWeight: 600,
|
|
216
212
|
fontSize: 14,
|
|
@@ -266,12 +262,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
266
262
|
pc: {
|
|
267
263
|
paddingTop: 10,
|
|
268
264
|
paddingBottom: 10,
|
|
269
|
-
marginBottom:
|
|
265
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
270
266
|
},
|
|
271
267
|
mobile: {
|
|
272
268
|
paddingTop: 10,
|
|
273
269
|
paddingBottom: 10,
|
|
274
|
-
marginBottom:
|
|
270
|
+
marginBottom: window.magicDesign.compSpacing
|
|
275
271
|
}
|
|
276
272
|
},
|
|
277
273
|
customize: {
|
|
@@ -15,8 +15,6 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
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
|
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); }
|
|
@@ -72,10 +70,7 @@ function (_super) {
|
|
|
72
70
|
|
|
73
71
|
Carousel.prototype.render = function () {
|
|
74
72
|
var nodeData = this.props.nodeData;
|
|
75
|
-
|
|
76
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
-
style: wrapStyle
|
|
78
|
-
}, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
79
74
|
data: nodeData
|
|
80
75
|
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
81
76
|
data: nodeData
|
|
@@ -177,18 +177,15 @@ function (_super) {
|
|
|
177
177
|
autoplay: data.setting.autoplay.open,
|
|
178
178
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
179
179
|
speed: 500,
|
|
180
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
180
181
|
slidesToShow: colNum,
|
|
181
|
-
slidesToScroll:
|
|
182
|
+
slidesToScroll: 1,
|
|
182
183
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
183
184
|
_this.setState({
|
|
184
185
|
sliderIndex: newIndex
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
|
-
};
|
|
188
|
-
// fontSize: data.setting.navigation.size,
|
|
189
|
-
// color: data.setting.navigation.color,
|
|
190
|
-
// };
|
|
191
|
-
|
|
188
|
+
};
|
|
192
189
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
193
190
|
className: "m-carousel-mobile",
|
|
194
191
|
style: bgStyle
|
|
@@ -204,7 +201,6 @@ function (_super) {
|
|
|
204
201
|
className: "img"
|
|
205
202
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
206
203
|
data: item.image,
|
|
207
|
-
isBackground: true,
|
|
208
204
|
maxHeight: MOBILE_IMG_SIZE[colNum - 1].h,
|
|
209
205
|
maxWidth: MOBILE_IMG_SIZE[colNum - 1].w
|
|
210
206
|
})), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -225,7 +221,7 @@ function (_super) {
|
|
|
225
221
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
226
222
|
data: item.secondButtonTag
|
|
227
223
|
}))));
|
|
228
|
-
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
|
+
})), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
225
|
className: "swiper-ban"
|
|
230
226
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
231
227
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -153,8 +153,6 @@ function (_super) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
157
|
-
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
158
156
|
var settings = {
|
|
159
157
|
className: 'slider-wrap',
|
|
160
158
|
arrows: false,
|
|
@@ -162,8 +160,9 @@ function (_super) {
|
|
|
162
160
|
autoplay: data.setting.autoplay.open,
|
|
163
161
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
164
162
|
speed: 500,
|
|
163
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
165
164
|
slidesToShow: colNum,
|
|
166
|
-
slidesToScroll:
|
|
165
|
+
slidesToScroll: 1,
|
|
167
166
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
168
167
|
_this.setState({
|
|
169
168
|
sliderIndex: newIndex
|
|
@@ -174,9 +173,15 @@ function (_super) {
|
|
|
174
173
|
fontSize: data.setting.navigation.size,
|
|
175
174
|
color: data.setting.navigation.color
|
|
176
175
|
};
|
|
176
|
+
var spacing = data.spacing[window.magicDesign.device];
|
|
177
177
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
178
|
className: "m-carousel-pc",
|
|
179
179
|
style: bgStyle
|
|
180
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
+
className: "content",
|
|
182
|
+
style: {
|
|
183
|
+
width: spacing.contentWidth ? 'fit-content' : '100%'
|
|
184
|
+
}
|
|
180
185
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
181
186
|
className: "carousel-icon-left",
|
|
182
187
|
onClick: function onClick() {
|
|
@@ -186,7 +191,11 @@ function (_super) {
|
|
|
186
191
|
onMouseLeave: this.mouseLeaveBtn,
|
|
187
192
|
style: navStyle,
|
|
188
193
|
type: "icon-left"
|
|
189
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
194
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
|
+
style: {
|
|
196
|
+
width: spacing.contentWidth || 'calc(100% - 52px)'
|
|
197
|
+
}
|
|
198
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
190
199
|
ref: function ref(slider) {
|
|
191
200
|
return _this.sliderRef = slider;
|
|
192
201
|
}
|
|
@@ -198,7 +207,6 @@ function (_super) {
|
|
|
198
207
|
className: "img"
|
|
199
208
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
200
209
|
data: item.image,
|
|
201
|
-
isBackground: true,
|
|
202
210
|
maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
|
|
203
211
|
maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
|
|
204
212
|
minWidth: PC_IMG_SIZE[colNum - 1].minW
|
|
@@ -220,7 +228,7 @@ function (_super) {
|
|
|
220
228
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
221
229
|
data: item.secondButtonTag
|
|
222
230
|
}))));
|
|
223
|
-
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
231
|
+
}))), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
232
|
className: "swiper-ban"
|
|
225
233
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
226
234
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -245,7 +253,7 @@ function (_super) {
|
|
|
245
253
|
onMouseLeave: this.mouseLeaveBtn,
|
|
246
254
|
style: navStyle,
|
|
247
255
|
type: "icon-right"
|
|
248
|
-
}));
|
|
256
|
+
})));
|
|
249
257
|
};
|
|
250
258
|
|
|
251
259
|
CarouselPc.defaultProps = {
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
.m-carousel-pc {
|
|
2
|
-
display: flex;
|
|
3
2
|
position: relative;
|
|
4
|
-
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
.content {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
}
|
|
5
11
|
|
|
6
12
|
.carousel-icon-left {
|
|
7
13
|
float: left;
|
|
8
|
-
margin-left:
|
|
14
|
+
margin-left: 10px;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.carousel-icon-right {
|
|
12
18
|
float: right;
|
|
13
|
-
margin-right:
|
|
19
|
+
margin-right: 10px;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.slider-wrap {
|
|
17
|
-
width:
|
|
23
|
+
width: 100%;
|
|
18
24
|
padding: 30px 0;
|
|
19
25
|
margin: 0 auto;
|
|
20
26
|
|
|
@@ -65,6 +71,8 @@
|
|
|
65
71
|
position: absolute;
|
|
66
72
|
width: 100%;
|
|
67
73
|
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
68
76
|
display: flex;
|
|
69
77
|
align-items: center;
|
|
70
78
|
justify-content: center;
|
|
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
50
50
|
pc: {
|
|
51
51
|
paddingTop: 10,
|
|
52
52
|
paddingBottom: 10,
|
|
53
|
-
marginBottom:
|
|
53
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
54
54
|
},
|
|
55
55
|
mobile: {
|
|
56
56
|
paddingTop: 10,
|
|
57
57
|
paddingBottom: 10,
|
|
58
|
-
marginBottom:
|
|
58
|
+
marginBottom: window.magicDesign.compSpacing
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
customize: {
|
|
@@ -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,13 +38,13 @@ 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,
|
|
@@ -55,13 +60,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
55
60
|
},
|
|
56
61
|
text: {
|
|
57
62
|
parentId: groupId,
|
|
58
|
-
id:
|
|
63
|
+
id: textId,
|
|
59
64
|
open: true,
|
|
60
65
|
type: 'TEXT',
|
|
61
66
|
specialContent: [],
|
|
62
67
|
text: 'Please enter a description',
|
|
63
68
|
content: {
|
|
64
|
-
sizeType: '
|
|
69
|
+
sizeType: 'Customize font styles',
|
|
65
70
|
fontFamily: 'Open Sans',
|
|
66
71
|
fontWeight: 400,
|
|
67
72
|
fontSize: 10,
|
|
@@ -73,7 +78,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
73
78
|
},
|
|
74
79
|
button: {
|
|
75
80
|
parentId: groupId,
|
|
76
|
-
id:
|
|
81
|
+
id: buttonId,
|
|
77
82
|
open: true,
|
|
78
83
|
type: 'BUTTON',
|
|
79
84
|
text: 'Button',
|
|
@@ -82,7 +87,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
82
87
|
backgroundColor: '#2F54EB'
|
|
83
88
|
},
|
|
84
89
|
buttonText: {
|
|
85
|
-
sizeType: '
|
|
90
|
+
sizeType: 'Customize font styles',
|
|
86
91
|
fontFamily: 'Open Sans',
|
|
87
92
|
fontWeight: 400,
|
|
88
93
|
fontSize: 10,
|
|
@@ -104,7 +109,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
104
109
|
backgroundColor: '#0d39ed'
|
|
105
110
|
},
|
|
106
111
|
buttonText: {
|
|
107
|
-
sizeType: '
|
|
112
|
+
sizeType: 'Customize font styles',
|
|
108
113
|
fontFamily: 'Open Sans',
|
|
109
114
|
fontWeight: 600,
|
|
110
115
|
fontSize: 14,
|
|
@@ -128,7 +133,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
128
133
|
},
|
|
129
134
|
secondButton: {
|
|
130
135
|
parentId: groupId,
|
|
131
|
-
id:
|
|
136
|
+
id: secButtonId,
|
|
132
137
|
open: true,
|
|
133
138
|
type: 'BUTTON',
|
|
134
139
|
text: 'More',
|
|
@@ -137,7 +142,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
137
142
|
backgroundColor: '#fff'
|
|
138
143
|
},
|
|
139
144
|
buttonText: {
|
|
140
|
-
sizeType: '
|
|
145
|
+
sizeType: 'Customize font styles',
|
|
141
146
|
fontFamily: 'Open Sans',
|
|
142
147
|
fontWeight: 400,
|
|
143
148
|
fontSize: 10,
|
|
@@ -159,7 +164,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
159
164
|
backgroundColor: '#E9F0FF'
|
|
160
165
|
},
|
|
161
166
|
buttonText: {
|
|
162
|
-
sizeType: '
|
|
167
|
+
sizeType: 'Customize font styles',
|
|
163
168
|
fontFamily: 'Open Sans',
|
|
164
169
|
fontWeight: 600,
|
|
165
170
|
fontSize: 14,
|
|
@@ -191,7 +196,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
191
196
|
open: false,
|
|
192
197
|
image: {
|
|
193
198
|
parentId: groupId,
|
|
194
|
-
id:
|
|
199
|
+
id: imageId,
|
|
195
200
|
open: false,
|
|
196
201
|
type: 'IMAGE',
|
|
197
202
|
content: {
|
|
@@ -211,7 +216,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
211
216
|
},
|
|
212
217
|
title: {
|
|
213
218
|
parentId: groupId,
|
|
214
|
-
id:
|
|
219
|
+
id: titleId,
|
|
215
220
|
open: true,
|
|
216
221
|
type: 'TEXT',
|
|
217
222
|
specialContent: [],
|
|
@@ -231,13 +236,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
231
236
|
vertical: {}
|
|
232
237
|
},
|
|
233
238
|
text: {
|
|
234
|
-
id:
|
|
239
|
+
id: textId,
|
|
235
240
|
open: true,
|
|
236
241
|
type: 'TEXT',
|
|
237
242
|
specialContent: [],
|
|
238
243
|
text: '',
|
|
239
244
|
content: {
|
|
240
|
-
sizeType: '
|
|
245
|
+
sizeType: 'Customize font styles',
|
|
241
246
|
fontFamily: 'Open Sans',
|
|
242
247
|
fontWeight: 400,
|
|
243
248
|
fontSize: 18,
|
|
@@ -248,7 +253,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
248
253
|
vertical: {}
|
|
249
254
|
},
|
|
250
255
|
button: {
|
|
251
|
-
id:
|
|
256
|
+
id: buttonId,
|
|
252
257
|
open: true,
|
|
253
258
|
type: 'BUTTON',
|
|
254
259
|
text: 'Button',
|
|
@@ -257,7 +262,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
257
262
|
backgroundColor: '#2F54EB'
|
|
258
263
|
},
|
|
259
264
|
buttonText: {
|
|
260
|
-
sizeType: '
|
|
265
|
+
sizeType: 'Customize font styles',
|
|
261
266
|
fontFamily: 'Open Sans',
|
|
262
267
|
fontWeight: 600,
|
|
263
268
|
fontSize: 14,
|
|
@@ -279,7 +284,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
279
284
|
backgroundColor: '#0d39ed'
|
|
280
285
|
},
|
|
281
286
|
buttonText: {
|
|
282
|
-
sizeType: '
|
|
287
|
+
sizeType: 'Customize font styles',
|
|
283
288
|
fontFamily: 'Open Sans',
|
|
284
289
|
fontWeight: 600,
|
|
285
290
|
fontSize: 14,
|
|
@@ -298,7 +303,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
298
303
|
}
|
|
299
304
|
},
|
|
300
305
|
secondButton: {
|
|
301
|
-
id:
|
|
306
|
+
id: secButtonId,
|
|
302
307
|
open: true,
|
|
303
308
|
type: 'BUTTON',
|
|
304
309
|
text: 'More',
|
|
@@ -307,7 +312,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
307
312
|
backgroundColor: '#fff'
|
|
308
313
|
},
|
|
309
314
|
buttonText: {
|
|
310
|
-
sizeType: '
|
|
315
|
+
sizeType: 'Customize font styles',
|
|
311
316
|
fontFamily: 'Open Sans',
|
|
312
317
|
fontWeight: 600,
|
|
313
318
|
fontSize: 14,
|
|
@@ -329,7 +334,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
329
334
|
backgroundColor: '#E9F0FF'
|
|
330
335
|
},
|
|
331
336
|
buttonText: {
|
|
332
|
-
sizeType: '
|
|
337
|
+
sizeType: 'Customize font styles',
|
|
333
338
|
fontFamily: 'Open Sans',
|
|
334
339
|
fontWeight: 600,
|
|
335
340
|
fontSize: 14,
|
|
@@ -363,151 +368,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
363
368
|
return {
|
|
364
369
|
id: (0, _uuid.v4)(),
|
|
365
370
|
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
371
|
spacing: {
|
|
512
372
|
pc: {
|
|
513
373
|
paddingTop: 10,
|