@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
|
@@ -7,7 +7,7 @@ exports["default"] = ButtonConfig;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _ButtonConfigGroup = _interopRequireDefault(require("./ButtonConfigGroup"));
|
|
11
11
|
|
|
12
12
|
var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
|
|
13
13
|
|
|
@@ -33,8 +33,8 @@ function ButtonConfig(props) {
|
|
|
33
33
|
source: [{
|
|
34
34
|
key: '1',
|
|
35
35
|
name: (0, _locale.i18n)('CONTENT'),
|
|
36
|
-
value: /*#__PURE__*/_react["default"].createElement(
|
|
37
|
-
|
|
36
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfigGroup["default"], {
|
|
37
|
+
source: data.groupSource
|
|
38
38
|
})
|
|
39
39
|
}, {
|
|
40
40
|
key: '2',
|
package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -21,6 +21,8 @@ var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("../../../../../locale");
|
|
23
23
|
|
|
24
|
+
var _decorator = require("../../../../../decorator");
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -80,7 +82,7 @@ function (_super) {
|
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
_this.onAddClick = function () {
|
|
83
|
-
var json = (0, _defaultJSON.imagesGroupSourceJSON)(
|
|
85
|
+
var json = (0, _defaultJSON.imagesGroupSourceJSON)(_this.props.id);
|
|
84
86
|
|
|
85
87
|
_this.props.source.push(json);
|
|
86
88
|
|
|
@@ -138,7 +140,7 @@ function (_super) {
|
|
|
138
140
|
AComponent.defaultProps = {
|
|
139
141
|
source: []
|
|
140
142
|
};
|
|
141
|
-
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
|
|
143
|
+
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
|
|
142
144
|
return AComponent;
|
|
143
145
|
}(_react["default"].Component);
|
|
144
146
|
|
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/ImageText/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -120,7 +122,7 @@ function (_super) {
|
|
|
120
122
|
ImageTextConfigGroup.defaultProps = {
|
|
121
123
|
source: []
|
|
122
124
|
};
|
|
123
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
|
|
125
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
124
126
|
return ImageTextConfigGroup;
|
|
125
127
|
}(_react["default"].Component);
|
|
126
128
|
|
|
@@ -164,7 +164,7 @@ function (_super) {
|
|
|
164
164
|
}),
|
|
165
165
|
metaOption: data.groupSource
|
|
166
166
|
}, {
|
|
167
|
-
key: '
|
|
167
|
+
key: 'imageText3',
|
|
168
168
|
name: (0, _locale.i18n)('SPACING'),
|
|
169
169
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
170
170
|
data: data.spacing
|
|
@@ -173,6 +173,7 @@ function (_super) {
|
|
|
173
173
|
key: 'imageText4',
|
|
174
174
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
175
175
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
176
|
+
component: "imageText",
|
|
176
177
|
data: data.customize,
|
|
177
178
|
layoutSource: (0, _coreUtil.isPc)() ? _layout.imageTextLayoutPc : _layout.imageTextLayoutMobile,
|
|
178
179
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../../../locale");
|
|
13
|
+
|
|
12
14
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
15
|
|
|
14
16
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -28,26 +30,26 @@ function NewsletterConfig(props) {
|
|
|
28
30
|
headerSize: "large",
|
|
29
31
|
source: [{
|
|
30
32
|
key: '1',
|
|
31
|
-
name: i18n('CONTENT'),
|
|
33
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
32
34
|
value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
|
|
33
35
|
panelProps: data.content
|
|
34
36
|
})
|
|
35
37
|
}, {
|
|
36
38
|
key: '2',
|
|
37
|
-
name: i18n('SPACING'),
|
|
39
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
38
40
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
39
41
|
data: data.spacing
|
|
40
42
|
})
|
|
41
43
|
}, {
|
|
42
44
|
key: '3',
|
|
43
|
-
name: i18n('CUSTOMIZE'),
|
|
45
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
44
46
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
45
47
|
data: data.customize,
|
|
46
48
|
layoutSource: _layout.newsletterLayout
|
|
47
49
|
})
|
|
48
50
|
}, {
|
|
49
51
|
key: '4',
|
|
50
|
-
name: i18n('BACKGROUND'),
|
|
52
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
51
53
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
52
54
|
data: data.background
|
|
53
55
|
})
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _TagConfigGroup = _interopRequireDefault(require("../TagConfigGroup"));
|
|
11
11
|
|
|
12
12
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
13
|
|
|
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
|
|
|
15
15
|
|
|
16
16
|
var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
17
|
|
|
18
|
+
var _locale = require("../../../../../locale");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -63,7 +65,9 @@ function (_super) {
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
AComponent.prototype.render = function () {
|
|
66
|
-
var
|
|
68
|
+
var _a = this.props,
|
|
69
|
+
panelProps = _a.panelProps,
|
|
70
|
+
groupSource = _a.groupSource;
|
|
67
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
72
|
className: "recommend_content"
|
|
69
73
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
@@ -71,27 +75,15 @@ function (_super) {
|
|
|
71
75
|
onRefresh: this.reRender,
|
|
72
76
|
source: [{
|
|
73
77
|
key: '1',
|
|
74
|
-
name: i18n('IMAGE_TAG'),
|
|
78
|
+
name: (0, _locale.i18n)('IMAGE_TAG'),
|
|
75
79
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
76
80
|
data: panelProps.image
|
|
77
81
|
}),
|
|
78
82
|
metaOption: panelProps.image
|
|
79
|
-
}, {
|
|
80
|
-
key: '2',
|
|
81
|
-
name: i18n('BUTTON_TAG'),
|
|
82
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
83
|
-
data: panelProps.button
|
|
84
|
-
}),
|
|
85
|
-
metaOption: panelProps.button
|
|
86
|
-
}, {
|
|
87
|
-
key: '3',
|
|
88
|
-
name: i18n('SECONDARY_BUTTON_TAG'),
|
|
89
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
90
|
-
data: panelProps.secondaryButton
|
|
91
|
-
}),
|
|
92
|
-
metaOption: panelProps.secondaryButton
|
|
93
83
|
}],
|
|
94
84
|
type: "switch"
|
|
85
|
+
}), /*#__PURE__*/_react["default"].createElement(_TagConfigGroup["default"], {
|
|
86
|
+
source: groupSource
|
|
95
87
|
}));
|
|
96
88
|
};
|
|
97
89
|
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
|
|
12
|
+
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
|
+
|
|
14
|
+
var _defaultJSON = require("../../../components/Tag/defaultJSON");
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
+
|
|
18
|
+
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
19
|
+
|
|
20
|
+
require("./index.less");
|
|
21
|
+
|
|
22
|
+
var _locale = require("../../../../../locale");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
+
var c = arguments.length,
|
|
56
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
+
d;
|
|
58
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
59
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
+
}
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var notice = '';
|
|
65
|
+
|
|
66
|
+
var AComponent =
|
|
67
|
+
/** @class */
|
|
68
|
+
function (_super) {
|
|
69
|
+
__extends(AComponent, _super);
|
|
70
|
+
|
|
71
|
+
function AComponent() {
|
|
72
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
+
|
|
74
|
+
_this.state = {};
|
|
75
|
+
|
|
76
|
+
_this.onClickItem = function (node) {
|
|
77
|
+
_this.props.store.setState({
|
|
78
|
+
clickedGroup: node.id
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.onAddClick = function () {
|
|
83
|
+
var json = (0, _defaultJSON.tagGroupSourceJSON)();
|
|
84
|
+
|
|
85
|
+
_this.props.source.push(json);
|
|
86
|
+
|
|
87
|
+
_this.setState({});
|
|
88
|
+
|
|
89
|
+
(0, _coreUtil.renderPreview)();
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
_this.reRender = function () {
|
|
93
|
+
_this.setState({});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
_this.renderCard = function (src) {
|
|
97
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: "card_wrap"
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "name"
|
|
101
|
+
}, "Button Tag"));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return _this;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
AComponent.prototype.render = function () {
|
|
108
|
+
var _this = this;
|
|
109
|
+
|
|
110
|
+
var source = this.props.source;
|
|
111
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
+
className: "tag_group"
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: "node_list"
|
|
115
|
+
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
className: "notice"
|
|
117
|
+
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
118
|
+
onClickItem: this.onClickItem,
|
|
119
|
+
renderCard: function renderCard(v) {
|
|
120
|
+
return _this.renderCard(v);
|
|
121
|
+
},
|
|
122
|
+
reRender: this.reRender,
|
|
123
|
+
source: source
|
|
124
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: "btn_wrap"
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
127
|
+
icon: "icon-add",
|
|
128
|
+
onClick: this.onAddClick,
|
|
129
|
+
type: "primary"
|
|
130
|
+
}, (0, _locale.i18n)('ADD_TAG'))));
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
AComponent.defaultProps = {
|
|
134
|
+
source: []
|
|
135
|
+
};
|
|
136
|
+
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
|
|
137
|
+
return AComponent;
|
|
138
|
+
}(_react["default"].Component);
|
|
139
|
+
|
|
140
|
+
var _default = AComponent;
|
|
141
|
+
exports["default"] = _default;
|
|
@@ -19,6 +19,8 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
19
19
|
|
|
20
20
|
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
21
21
|
|
|
22
|
+
var _locale = require("../../../../locale");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function TagCompConfig(props) {
|
|
@@ -28,19 +30,20 @@ function TagCompConfig(props) {
|
|
|
28
30
|
headerSize: "large",
|
|
29
31
|
source: [{
|
|
30
32
|
key: '1',
|
|
31
|
-
name: i18n('CONTENT'),
|
|
33
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
32
34
|
value: /*#__PURE__*/_react["default"].createElement(_TagConfigContent["default"], {
|
|
35
|
+
groupSource: data.groupSource,
|
|
33
36
|
panelProps: data.content
|
|
34
37
|
})
|
|
35
38
|
}, {
|
|
36
39
|
key: '2',
|
|
37
|
-
name: i18n('SPACING'),
|
|
40
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
38
41
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
39
42
|
data: data.spacing
|
|
40
43
|
})
|
|
41
44
|
}, {
|
|
42
45
|
key: '3',
|
|
43
|
-
name: i18n('CUSTOMIZE'),
|
|
46
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
44
47
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
45
48
|
data: data.customize,
|
|
46
49
|
layoutSource: [{
|
|
@@ -51,7 +54,7 @@ function TagCompConfig(props) {
|
|
|
51
54
|
})
|
|
52
55
|
}, {
|
|
53
56
|
key: '4',
|
|
54
|
-
name: i18n('BACKGROUND'),
|
|
57
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
55
58
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
56
59
|
data: data.background
|
|
57
60
|
})
|
|
@@ -17,6 +17,8 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
17
17
|
|
|
18
18
|
var _defaultJSON = require("../../../components/Text/defaultJSON");
|
|
19
19
|
|
|
20
|
+
var _decorator = require("../../../../../decorator");
|
|
21
|
+
|
|
20
22
|
require("./index.less");
|
|
21
23
|
|
|
22
24
|
var _locale = require("../../../../../locale");
|
|
@@ -132,7 +134,7 @@ function (_super) {
|
|
|
132
134
|
default_1.defaultProps = {
|
|
133
135
|
source: []
|
|
134
136
|
};
|
|
135
|
-
default_1 = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], default_1);
|
|
137
|
+
default_1 = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], default_1);
|
|
136
138
|
return default_1;
|
|
137
139
|
}(_react["default"].Component);
|
|
138
140
|
|
|
Binary file
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
11
|
+
|
|
12
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
|
+
|
|
14
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../../locale");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var debug = require('debug')('worker:ButtonSecondConfig');
|
|
47
|
+
|
|
48
|
+
var ButtonSecondConfig =
|
|
49
|
+
/** @class */
|
|
50
|
+
function (_super) {
|
|
51
|
+
__extends(ButtonSecondConfig, _super);
|
|
52
|
+
|
|
53
|
+
function ButtonSecondConfig() {
|
|
54
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
|
|
56
|
+
_this.state = {};
|
|
57
|
+
|
|
58
|
+
_this.getContentPanel = function () {
|
|
59
|
+
var panelProps = _this.props.panelProps;
|
|
60
|
+
var source = [{
|
|
61
|
+
key: '1',
|
|
62
|
+
name: (0, _locale.i18n)('BUTTON_TAG'),
|
|
63
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
64
|
+
data: panelProps.button
|
|
65
|
+
}),
|
|
66
|
+
metaOption: panelProps.button
|
|
67
|
+
}];
|
|
68
|
+
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
69
|
+
headerSize: "middle",
|
|
70
|
+
onRefresh: function onRefresh() {
|
|
71
|
+
return (0, _coreUtil.renderPreview)();
|
|
72
|
+
},
|
|
73
|
+
showActiveColor: true,
|
|
74
|
+
source: source,
|
|
75
|
+
type: "switch"
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
ButtonSecondConfig.prototype.render = function () {
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: "button_second_conf_wrap"
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
86
|
+
divider: "bold",
|
|
87
|
+
headerSize: "large",
|
|
88
|
+
source: [{
|
|
89
|
+
key: '1',
|
|
90
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
91
|
+
value: this.getContentPanel()
|
|
92
|
+
}]
|
|
93
|
+
}));
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
ButtonSecondConfig.defaultProps = {
|
|
97
|
+
panelProps: {}
|
|
98
|
+
};
|
|
99
|
+
return ButtonSecondConfig;
|
|
100
|
+
}(_react["default"].Component);
|
|
101
|
+
|
|
102
|
+
var _default = ButtonSecondConfig;
|
|
103
|
+
exports["default"] = _default;
|
|
@@ -85,40 +85,35 @@ function (_super) {
|
|
|
85
85
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
86
86
|
data: panelProps.title
|
|
87
87
|
}),
|
|
88
|
-
metaOption: panelProps.title
|
|
89
|
-
toggleType: 'switch'
|
|
88
|
+
metaOption: panelProps.title
|
|
90
89
|
}, {
|
|
91
90
|
key: '3',
|
|
92
91
|
name: (0, _locale.i18n)('TEXT'),
|
|
93
92
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
94
93
|
data: panelProps.text
|
|
95
94
|
}),
|
|
96
|
-
metaOption: panelProps.text
|
|
97
|
-
toggleType: 'switch'
|
|
95
|
+
metaOption: panelProps.text
|
|
98
96
|
}, {
|
|
99
97
|
key: '4',
|
|
100
98
|
name: (0, _locale.i18n)('IMAGE_TAG'),
|
|
101
99
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
102
100
|
data: panelProps.imageTag
|
|
103
101
|
}),
|
|
104
|
-
metaOption: panelProps.imageTag
|
|
105
|
-
toggleType: 'switch'
|
|
102
|
+
metaOption: panelProps.imageTag
|
|
106
103
|
}, {
|
|
107
104
|
key: '5',
|
|
108
105
|
name: (0, _locale.i18n)('BUTTON_TAG'),
|
|
109
106
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
110
107
|
data: panelProps.buttonTag
|
|
111
108
|
}),
|
|
112
|
-
metaOption: panelProps.buttonTag
|
|
113
|
-
toggleType: 'switch'
|
|
109
|
+
metaOption: panelProps.buttonTag
|
|
114
110
|
}, {
|
|
115
111
|
key: '6',
|
|
116
112
|
name: (0, _locale.i18n)('SECONDARY_BUTTON_TAG'),
|
|
117
113
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
118
114
|
data: panelProps.secondButtonTag
|
|
119
115
|
}),
|
|
120
|
-
metaOption: panelProps.secondButtonTag
|
|
121
|
-
toggleType: 'switch'
|
|
116
|
+
metaOption: panelProps.secondButtonTag
|
|
122
117
|
}];
|
|
123
118
|
|
|
124
119
|
var _textSource = _mobx.store.CarouselStore[panelProps.compId] === 'layout2' ? textSource : [];
|
|
@@ -136,7 +131,8 @@ function (_super) {
|
|
|
136
131
|
}),
|
|
137
132
|
metaOption: panelProps.image,
|
|
138
133
|
toggleType: 'switch'
|
|
139
|
-
}], _textSource)
|
|
134
|
+
}], _textSource),
|
|
135
|
+
type: "switch"
|
|
140
136
|
});
|
|
141
137
|
};
|
|
142
138
|
|
|
@@ -149,8 +145,7 @@ function (_super) {
|
|
|
149
145
|
key: '1',
|
|
150
146
|
name: (0, _locale.i18n)('CONTENT'),
|
|
151
147
|
value: getConfig()
|
|
152
|
-
}]
|
|
153
|
-
type: "triangle"
|
|
148
|
+
}]
|
|
154
149
|
}));
|
|
155
150
|
};
|
|
156
151
|
|
|
@@ -25,6 +25,8 @@ var _coreUtil = require("../../../../utils/coreUtil");
|
|
|
25
25
|
|
|
26
26
|
var _locale = require("../../../../locale");
|
|
27
27
|
|
|
28
|
+
require("./index.less");
|
|
29
|
+
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
31
|
|
|
30
32
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -121,12 +123,15 @@ function (_super) {
|
|
|
121
123
|
}];
|
|
122
124
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
123
125
|
headerSize: "middle",
|
|
126
|
+
noChange: !needHover,
|
|
124
127
|
onRefresh: function onRefresh() {
|
|
125
128
|
return (0, _coreUtil.renderPreview)();
|
|
126
129
|
},
|
|
127
130
|
showActiveColor: true,
|
|
128
131
|
source: source,
|
|
129
132
|
type: "switch"
|
|
133
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
className: "line"
|
|
130
135
|
}), /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
131
136
|
data: data.background
|
|
132
137
|
})));
|
|
@@ -137,12 +142,12 @@ function (_super) {
|
|
|
137
142
|
|
|
138
143
|
if (panelProps.hover.open) {
|
|
139
144
|
var tempObj = {};
|
|
140
|
-
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.button, ['buttonBorder', 'buttonIcon', 'buttonText', 'content', 'open', 'text']));
|
|
145
|
+
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.button, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
|
|
141
146
|
panelProps.hover.button = __assign(__assign({}, panelProps.hover.button), tempObj);
|
|
142
|
-
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.secondButton, ['buttonBorder', 'buttonIcon', 'buttonText', 'content', 'open', 'text']));
|
|
147
|
+
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.secondButton, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
|
|
143
148
|
panelProps.hover.secondButton = __assign(__assign({}, panelProps.hover.secondButton), tempObj);
|
|
144
149
|
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.image, ['content', 'open']));
|
|
145
|
-
panelProps.hover.image = __assign(__assign({}, panelProps.image
|
|
150
|
+
panelProps.hover.image = __assign(__assign({}, panelProps.hover.image), tempObj);
|
|
146
151
|
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.text, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
|
|
147
152
|
panelProps.hover.text = __assign(__assign({}, panelProps.hover.text), tempObj);
|
|
148
153
|
tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.title, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
|
|
@@ -157,7 +162,7 @@ function (_super) {
|
|
|
157
162
|
ImageTextSecondConfig.prototype.render = function () {
|
|
158
163
|
var panelProps = this.props.panelProps;
|
|
159
164
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
|
-
className: "
|
|
165
|
+
className: "imagetext_second_conf_wrap"
|
|
161
166
|
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
162
167
|
divider: "bold",
|
|
163
168
|
headerSize: "large",
|
|
@@ -169,7 +174,7 @@ function (_super) {
|
|
|
169
174
|
}, {
|
|
170
175
|
key: 'imageTextSecondConfig2',
|
|
171
176
|
name: (0, _locale.i18n)('HOVER'),
|
|
172
|
-
value: this.getContentPanel(panelProps.hover
|
|
177
|
+
value: this.getContentPanel(panelProps.hover),
|
|
173
178
|
metaOption: panelProps.hover,
|
|
174
179
|
toggleType: 'switch'
|
|
175
180
|
}]
|