@fonixtree/magic-design 0.0.71 → 0.0.73
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/README.md +320 -0
- package/package.json +88 -5
- package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/es/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +0 -319
- package/es/assets/fonts/magic-box-iconfont.css.bak +0 -319
- package/es/assets/fonts/magic-box-iconfont.js +0 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +0 -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/icon/index.js +0 -68
- package/es/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/es/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/es/assets/images/layout-icon/dividerLayout.svg +0 -4
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-newline.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-tile.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-1.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +0 -7
- package/es/assets/less/button.less +0 -9
- package/es/assets/less/common.less +0 -82
- package/es/assets/less/cylon-antd.less +0 -32534
- package/es/assets/less/font.less +0 -48
- package/es/assets/less/form.less +0 -9
- package/es/assets/less/global.less +0 -8
- package/es/assets/less/index.less +0 -12
- package/es/assets/less/input.less +0 -19
- package/es/assets/less/menu.less +0 -21
- package/es/assets/less/modal.less +0 -24
- package/es/assets/less/select.less +0 -32
- package/es/assets/less/slider.less +0 -21
- package/es/assets/less/switch.less +0 -20
- package/es/assets/less/table.less +0 -52
- package/es/assets/less/variables.less +0 -4
- package/es/common/AlignSelector/index.js +0 -104
- package/es/common/AlignSelector/index.less +0 -28
- package/es/common/Button/index.js +0 -135
- package/es/common/Button/index.less +0 -73
- package/es/common/ButtonIconLayout/index.js +0 -105
- package/es/common/ButtonIconLayout/index.less +0 -55
- package/es/common/Collapse/index.js +0 -394
- package/es/common/Collapse/index.less +0 -97
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/es/common/ColorPicker/index.js +0 -131
- package/es/common/ColorPicker/index.less +0 -26
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +0 -114
- package/es/common/ColorPickerInput/index.less +0 -50
- package/es/common/CountDown/index.js +0 -151
- package/es/common/CountDown/index.less +0 -23
- package/es/common/Field/index.js +0 -80
- package/es/common/Field/index.less +0 -37
- package/es/common/FontStyles/index.js +0 -197
- package/es/common/FontStyles/index.less +0 -63
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +0 -209
- package/es/common/GroupList/index.less +0 -85
- package/es/common/IconPicker/index.js +0 -147
- package/es/common/IconPicker/index.less +0 -46
- package/es/common/Iconfont/index.js +0 -148
- package/es/common/Iconfont/index.less +0 -20
- package/es/common/ImageModal/CommonModal/const.js +0 -22
- package/es/common/ImageModal/CommonModal/index.js +0 -46
- package/es/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/es/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/es/common/ImageModal/const.js +0 -24
- package/es/common/ImageModal/index.js +0 -755
- package/es/common/ImageModal/index.less +0 -26
- package/es/common/ImagePicker/index.js +0 -164
- package/es/common/ImagePicker/index.less +0 -104
- package/es/common/ImgArea/components/Crop.js +0 -267
- package/es/common/ImgArea/components/Icons.js +0 -44
- package/es/common/ImgArea/components/MultiCrops.js +0 -210
- package/es/common/ImgArea/index.js +0 -11
- package/es/common/InputNumber/index.js +0 -91
- package/es/common/InputNumber/index.less +0 -33
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/common/LayoutSelector/index.js +0 -111
- package/es/common/LayoutSelector/index.less +0 -37
- package/es/common/LinkModal/BundleCampaign/index.js +0 -390
- package/es/common/LinkModal/BundleCampaign/index.less +0 -17
- package/es/common/LinkModal/CatgTable/index.js +0 -234
- package/es/common/LinkModal/CouponTable/index.js +0 -302
- package/es/common/LinkModal/CustomTable/index.js +0 -228
- package/es/common/LinkModal/FilteredProductModal/index.js +0 -692
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -125
- package/es/common/LinkModal/FunctionTable/index.js +0 -224
- package/es/common/LinkModal/ProductDetailPage/index.js +0 -496
- package/es/common/LinkModal/ProductDetailPage/index.less +0 -12
- package/es/common/LinkModal/index.js +0 -144
- package/es/common/LinkModal/index.less +0 -103
- package/es/common/MagicLink/index.js +0 -89
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/NewImg/index.js +0 -165
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +0 -793
- package/es/common/ProductModal/index.less +0 -145
- package/es/common/ProductSource/index.js +0 -254
- package/es/common/ProductSource/index.less +0 -14
- package/es/common/RcCollapse/Collapse.js +0 -240
- package/es/common/RcCollapse/Panel.js +0 -193
- package/es/common/RcCollapse/PanelContent.js +0 -59
- package/es/common/RcCollapse/index.js +0 -15
- package/es/common/RcCollapse/index.less +0 -108
- package/es/common/RcCollapse/interface.js +0 -1
- package/es/common/RcCollapse/motion.less +0 -12
- package/es/common/RcCollapse/motionUtil.js +0 -44
- package/es/common/Slider/index.js +0 -151
- package/es/common/Slider/index.less +0 -45
- package/es/common/SwitchCollapse/index.js +0 -216
- package/es/common/SwitchCollapse/index.less +0 -40
- package/es/common/UrlPicker/index.js +0 -125
- package/es/common/UrlPicker/index.less +0 -83
- package/es/common/index.js +0 -135
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/es/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/Banner/index.js +0 -89
- package/es/composite-comp/bol/components/Banner/mobile/index.js +0 -210
- package/es/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/es/composite-comp/bol/components/Banner/pc/index.js +0 -275
- package/es/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/es/composite-comp/bol/components/Button/defaultJSON.js +0 -84
- package/es/composite-comp/bol/components/Button/index.js +0 -97
- package/es/composite-comp/bol/components/Button/index.less +0 -48
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +0 -290
- package/es/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +0 -88
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +0 -254
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +0 -79
- package/es/composite-comp/bol/components/Carousel/pc/index.js +0 -266
- package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -97
- package/es/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/es/composite-comp/bol/components/Divider/index.js +0 -101
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/es/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +0 -84
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -83
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +0 -73
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +0 -404
- package/es/composite-comp/bol/components/ImageText/index.js +0 -88
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +0 -190
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +0 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +0 -214
- package/es/composite-comp/bol/components/ImageText/pc/index.less +0 -116
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/es/composite-comp/bol/components/Newsletter/index.js +0 -122
- package/es/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +0 -102
- package/es/composite-comp/bol/components/Tag/index.js +0 -101
- package/es/composite-comp/bol/components/Tag/index.less +0 -35
- package/es/composite-comp/bol/components/Text/defaultJSON.js +0 -155
- package/es/composite-comp/bol/components/Text/index.js +0 -119
- package/es/composite-comp/bol/components/Text/index.less +0 -61
- package/es/composite-comp/bol/components/Text/slice.svg +0 -1
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -130
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -227
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +0 -48
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -69
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -148
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -201
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -72
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -100
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -179
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -91
- package/es/composite-comp/bol/config-panels/DividerConfig/index.js +0 -59
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -146
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -59
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -130
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -200
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -187
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -113
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -59
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -101
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -64
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -101
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -142
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -71
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -153
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -159
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +0 -82
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -191
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +0 -103
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -101
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -92
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +0 -3
- package/es/composite-comp/common/components/ImageLabel/index.js +0 -90
- package/es/composite-comp/common/components/ImageLabel/index.less +0 -39
- package/es/composite-comp/common/components/ProductItem/index.js +0 -209
- package/es/composite-comp/common/components/ProductItem/index.less +0 -156
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -111
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -265
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -173
- package/es/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -243
- package/es/composite-comp/dito/components/FlashDeal/index.js +0 -90
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -454
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -99
- 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 +0 -578
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +0 -93
- package/es/composite-comp/dito/components/MobileNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -127
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +0 -38
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
- package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +0 -312
- package/es/composite-comp/dito/components/Recommend/index.js +0 -90
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +0 -669
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +0 -87
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/index.js +0 -757
- package/es/composite-comp/dito/components/Recommend/pc/index.less +0 -121
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -80
- package/es/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/es/composite-comp/dito/components/SearchBar/index.js +0 -91
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -294
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +0 -48
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -155
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -127
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -82
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +0 -126
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +0 -184
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -120
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -145
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -141
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -177
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +0 -111
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +0 -433
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -244
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -15
- package/es/constants/component-types.js +0 -103
- package/es/constants/index.js +0 -170
- package/es/constants/layout.js +0 -188
- package/es/core/Designer/CompListPanel/CompCard/index.js +0 -42
- package/es/core/Designer/CompListPanel/CompCard/index.less +0 -69
- package/es/core/Designer/CompListPanel/index.js +0 -133
- package/es/core/Designer/CompListPanel/index.less +0 -69
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
- package/es/core/Designer/ConfigPanel/index.js +0 -349
- package/es/core/Designer/ConfigPanel/index.less +0 -143
- package/es/core/Designer/History/index.js +0 -97
- package/es/core/Designer/PageCompList/index.js +0 -278
- package/es/core/Designer/PageCompList/index.less +0 -139
- package/es/core/Designer/QuickMenuBar/index.js +0 -192
- package/es/core/Designer/QuickMenuBar/index.less +0 -76
- package/es/core/Designer/ViewArea/index.js +0 -164
- package/es/core/Designer/ViewArea/index.less +0 -53
- package/es/core/Designer/index.js +0 -487
- package/es/core/Designer/index.less +0 -6
- package/es/core/Renderer/index.js +0 -97
- package/es/decorator/compositeDecorator.js +0 -163
- package/es/decorator/index.js +0 -31
- package/es/decorator/metaDecorator.js +0 -199
- package/es/decorator/updateConfigDecorator.js +0 -76
- package/es/index.js +0 -29
- package/es/locale/en/en.json +0 -141
- package/es/locale/es/es.json +0 -141
- package/es/locale/id/id.json +0 -141
- package/es/locale/index.js +0 -45
- package/es/meta-comp/components/Button/index.js +0 -212
- package/es/meta-comp/components/Button/index.less +0 -28
- package/es/meta-comp/components/Image/image/default-img.png +0 -0
- package/es/meta-comp/components/Image/index.js +0 -230
- package/es/meta-comp/components/Image/index.less +0 -23
- package/es/meta-comp/components/Text/index.js +0 -494
- package/es/meta-comp/components/Text/index.less +0 -38
- package/es/meta-comp/components/index.js +0 -31
- package/es/meta-comp/config-panels/BaseConfig.js +0 -85
- package/es/meta-comp/config-panels/ButtonConfig/index.js +0 -368
- package/es/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
- package/es/meta-comp/config-panels/ImageConfig/index.js +0 -419
- package/es/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +0 -369
- package/es/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/es/mobx/Store.js +0 -98
- package/es/mobx/index.js +0 -36
- package/es/utils/androidUtil.js +0 -113
- package/es/utils/businessUtil.js +0 -235
- package/es/utils/commonUtil.js +0 -289
- package/es/utils/compJsonUtil.js +0 -240
- package/es/utils/coreUtil.js +0 -170
- package/es/utils/currencyUtil.js +0 -190
- package/es/utils/dataTreeUtils.js +0 -134
- package/es/utils/dateUtil.js +0 -70
- package/es/utils/storeUtil.js +0 -258
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/lib/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +0 -319
- package/lib/assets/fonts/magic-box-iconfont.css.bak +0 -319
- package/lib/assets/fonts/magic-box-iconfont.js +0 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +0 -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/icon/index.js +0 -68
- package/lib/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/lib/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/lib/assets/images/layout-icon/dividerLayout.svg +0 -4
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-newline.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-tile.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +0 -7
- package/lib/assets/less/button.less +0 -9
- package/lib/assets/less/common.less +0 -82
- package/lib/assets/less/cylon-antd.less +0 -32534
- package/lib/assets/less/font.less +0 -48
- package/lib/assets/less/form.less +0 -9
- package/lib/assets/less/global.less +0 -8
- package/lib/assets/less/index.less +0 -12
- package/lib/assets/less/input.less +0 -19
- package/lib/assets/less/menu.less +0 -21
- package/lib/assets/less/modal.less +0 -24
- package/lib/assets/less/select.less +0 -32
- package/lib/assets/less/slider.less +0 -21
- package/lib/assets/less/switch.less +0 -20
- package/lib/assets/less/table.less +0 -52
- package/lib/assets/less/variables.less +0 -4
- package/lib/common/AlignSelector/index.js +0 -104
- package/lib/common/AlignSelector/index.less +0 -28
- package/lib/common/Button/index.js +0 -135
- package/lib/common/Button/index.less +0 -73
- package/lib/common/ButtonIconLayout/index.js +0 -105
- package/lib/common/ButtonIconLayout/index.less +0 -55
- package/lib/common/Collapse/index.js +0 -394
- package/lib/common/Collapse/index.less +0 -97
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +0 -131
- package/lib/common/ColorPicker/index.less +0 -26
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +0 -114
- package/lib/common/ColorPickerInput/index.less +0 -50
- package/lib/common/CountDown/index.js +0 -151
- package/lib/common/CountDown/index.less +0 -23
- package/lib/common/Field/index.js +0 -80
- package/lib/common/Field/index.less +0 -37
- package/lib/common/FontStyles/index.js +0 -197
- package/lib/common/FontStyles/index.less +0 -63
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +0 -209
- package/lib/common/GroupList/index.less +0 -85
- package/lib/common/IconPicker/index.js +0 -147
- package/lib/common/IconPicker/index.less +0 -46
- package/lib/common/Iconfont/index.js +0 -148
- package/lib/common/Iconfont/index.less +0 -20
- package/lib/common/ImageModal/CommonModal/const.js +0 -22
- package/lib/common/ImageModal/CommonModal/index.js +0 -46
- package/lib/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/lib/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/lib/common/ImageModal/const.js +0 -24
- package/lib/common/ImageModal/index.js +0 -755
- package/lib/common/ImageModal/index.less +0 -26
- package/lib/common/ImagePicker/index.js +0 -164
- package/lib/common/ImagePicker/index.less +0 -104
- package/lib/common/ImgArea/components/Crop.js +0 -267
- package/lib/common/ImgArea/components/Icons.js +0 -44
- package/lib/common/ImgArea/components/MultiCrops.js +0 -210
- package/lib/common/ImgArea/index.js +0 -11
- package/lib/common/InputNumber/index.js +0 -91
- package/lib/common/InputNumber/index.less +0 -33
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/common/LayoutSelector/index.js +0 -111
- package/lib/common/LayoutSelector/index.less +0 -37
- package/lib/common/LinkModal/BundleCampaign/index.js +0 -390
- package/lib/common/LinkModal/BundleCampaign/index.less +0 -17
- package/lib/common/LinkModal/CatgTable/index.js +0 -234
- package/lib/common/LinkModal/CouponTable/index.js +0 -302
- package/lib/common/LinkModal/CustomTable/index.js +0 -228
- package/lib/common/LinkModal/FilteredProductModal/index.js +0 -692
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -125
- package/lib/common/LinkModal/FunctionTable/index.js +0 -224
- package/lib/common/LinkModal/ProductDetailPage/index.js +0 -496
- package/lib/common/LinkModal/ProductDetailPage/index.less +0 -12
- package/lib/common/LinkModal/index.js +0 -144
- package/lib/common/LinkModal/index.less +0 -103
- package/lib/common/MagicLink/index.js +0 -89
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/NewImg/index.js +0 -165
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +0 -793
- package/lib/common/ProductModal/index.less +0 -145
- package/lib/common/ProductSource/index.js +0 -254
- package/lib/common/ProductSource/index.less +0 -14
- package/lib/common/RcCollapse/Collapse.js +0 -240
- package/lib/common/RcCollapse/Panel.js +0 -193
- package/lib/common/RcCollapse/PanelContent.js +0 -59
- package/lib/common/RcCollapse/index.js +0 -15
- package/lib/common/RcCollapse/index.less +0 -108
- package/lib/common/RcCollapse/interface.js +0 -1
- package/lib/common/RcCollapse/motion.less +0 -12
- package/lib/common/RcCollapse/motionUtil.js +0 -44
- package/lib/common/Slider/index.js +0 -151
- package/lib/common/Slider/index.less +0 -45
- package/lib/common/SwitchCollapse/index.js +0 -216
- package/lib/common/SwitchCollapse/index.less +0 -40
- package/lib/common/UrlPicker/index.js +0 -125
- package/lib/common/UrlPicker/index.less +0 -83
- package/lib/common/index.js +0 -135
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/lib/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/Banner/index.js +0 -89
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +0 -210
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/lib/composite-comp/bol/components/Banner/pc/index.js +0 -275
- package/lib/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +0 -84
- package/lib/composite-comp/bol/components/Button/index.js +0 -97
- package/lib/composite-comp/bol/components/Button/index.less +0 -48
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +0 -290
- package/lib/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +0 -88
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +0 -254
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +0 -79
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +0 -266
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -97
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/lib/composite-comp/bol/components/Divider/index.js +0 -101
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/lib/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +0 -84
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -83
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +0 -73
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +0 -404
- package/lib/composite-comp/bol/components/ImageText/index.js +0 -88
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +0 -190
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +0 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +0 -214
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +0 -116
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/lib/composite-comp/bol/components/Newsletter/index.js +0 -122
- package/lib/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +0 -102
- package/lib/composite-comp/bol/components/Tag/index.js +0 -101
- package/lib/composite-comp/bol/components/Tag/index.less +0 -35
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +0 -155
- package/lib/composite-comp/bol/components/Text/index.js +0 -119
- package/lib/composite-comp/bol/components/Text/index.less +0 -61
- package/lib/composite-comp/bol/components/Text/slice.svg +0 -1
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -130
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -227
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +0 -48
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -69
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -148
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -201
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -72
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -100
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -179
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -91
- package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +0 -59
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -146
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -59
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -130
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -200
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -187
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -113
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -59
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -101
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -64
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -101
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -142
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -71
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -153
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -159
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +0 -82
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -191
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +0 -103
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -101
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -92
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +0 -3
- package/lib/composite-comp/common/components/ImageLabel/index.js +0 -90
- package/lib/composite-comp/common/components/ImageLabel/index.less +0 -39
- package/lib/composite-comp/common/components/ProductItem/index.js +0 -209
- package/lib/composite-comp/common/components/ProductItem/index.less +0 -156
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -111
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -265
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -173
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -243
- package/lib/composite-comp/dito/components/FlashDeal/index.js +0 -90
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -454
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -99
- 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 +0 -578
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +0 -93
- package/lib/composite-comp/dito/components/MobileNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -127
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +0 -38
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
- package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +0 -312
- package/lib/composite-comp/dito/components/Recommend/index.js +0 -90
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +0 -669
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +0 -87
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +0 -757
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +0 -121
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -80
- package/lib/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/lib/composite-comp/dito/components/SearchBar/index.js +0 -91
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -294
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +0 -48
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -155
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -127
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -82
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +0 -126
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +0 -184
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -120
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -145
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -141
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -177
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +0 -111
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +0 -433
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -244
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -15
- package/lib/constants/component-types.js +0 -103
- package/lib/constants/index.js +0 -170
- package/lib/constants/layout.js +0 -188
- package/lib/core/Designer/CompListPanel/CompCard/index.js +0 -42
- package/lib/core/Designer/CompListPanel/CompCard/index.less +0 -69
- package/lib/core/Designer/CompListPanel/index.js +0 -133
- package/lib/core/Designer/CompListPanel/index.less +0 -69
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
- package/lib/core/Designer/ConfigPanel/index.js +0 -349
- package/lib/core/Designer/ConfigPanel/index.less +0 -143
- package/lib/core/Designer/History/index.js +0 -97
- package/lib/core/Designer/PageCompList/index.js +0 -278
- package/lib/core/Designer/PageCompList/index.less +0 -139
- package/lib/core/Designer/QuickMenuBar/index.js +0 -192
- package/lib/core/Designer/QuickMenuBar/index.less +0 -76
- package/lib/core/Designer/ViewArea/index.js +0 -164
- package/lib/core/Designer/ViewArea/index.less +0 -53
- package/lib/core/Designer/index.js +0 -487
- package/lib/core/Designer/index.less +0 -6
- package/lib/core/Renderer/index.js +0 -97
- package/lib/decorator/compositeDecorator.js +0 -163
- package/lib/decorator/index.js +0 -31
- package/lib/decorator/metaDecorator.js +0 -199
- package/lib/decorator/updateConfigDecorator.js +0 -76
- package/lib/index.js +0 -29
- package/lib/locale/en/en.json +0 -141
- package/lib/locale/es/es.json +0 -141
- package/lib/locale/id/id.json +0 -141
- package/lib/locale/index.js +0 -45
- package/lib/meta-comp/components/Button/index.js +0 -212
- package/lib/meta-comp/components/Button/index.less +0 -28
- package/lib/meta-comp/components/Image/image/default-img.png +0 -0
- package/lib/meta-comp/components/Image/index.js +0 -230
- package/lib/meta-comp/components/Image/index.less +0 -23
- package/lib/meta-comp/components/Text/index.js +0 -494
- package/lib/meta-comp/components/Text/index.less +0 -38
- package/lib/meta-comp/components/index.js +0 -31
- package/lib/meta-comp/config-panels/BaseConfig.js +0 -85
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +0 -368
- package/lib/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
- package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -419
- package/lib/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +0 -369
- package/lib/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/lib/mobx/Store.js +0 -98
- package/lib/mobx/index.js +0 -36
- package/lib/utils/androidUtil.js +0 -113
- package/lib/utils/businessUtil.js +0 -235
- package/lib/utils/commonUtil.js +0 -289
- package/lib/utils/compJsonUtil.js +0 -240
- package/lib/utils/coreUtil.js +0 -170
- package/lib/utils/currencyUtil.js +0 -190
- package/lib/utils/dataTreeUtils.js +0 -134
- package/lib/utils/dateUtil.js +0 -70
- package/lib/utils/storeUtil.js +0 -258
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _uuid = require("uuid");
|
|
13
|
-
|
|
14
|
-
var _mobxReact = require("mobx-react");
|
|
15
|
-
|
|
16
|
-
var _antd = require("antd");
|
|
17
|
-
|
|
18
|
-
var _CompListPanel = _interopRequireDefault(require("./CompListPanel"));
|
|
19
|
-
|
|
20
|
-
var _PageCompList = _interopRequireDefault(require("./PageCompList"));
|
|
21
|
-
|
|
22
|
-
var _ConfigPanel = _interopRequireDefault(require("./ConfigPanel"));
|
|
23
|
-
|
|
24
|
-
var _QuickMenuBar = _interopRequireDefault(require("./QuickMenuBar"));
|
|
25
|
-
|
|
26
|
-
var _ViewArea = _interopRequireDefault(require("./ViewArea"));
|
|
27
|
-
|
|
28
|
-
var _History = _interopRequireDefault(require("./History"));
|
|
29
|
-
|
|
30
|
-
var _componentTypes = require("../../constants/component-types");
|
|
31
|
-
|
|
32
|
-
var _mobx = require("../../mobx");
|
|
33
|
-
|
|
34
|
-
var _constants = require("../../constants");
|
|
35
|
-
|
|
36
|
-
require("./index.less");
|
|
37
|
-
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
-
|
|
40
|
-
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); }
|
|
41
|
-
|
|
42
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
45
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
46
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
47
|
-
__proto__: []
|
|
48
|
-
} instanceof Array && function (d, b) {
|
|
49
|
-
d.__proto__ = b;
|
|
50
|
-
} || function (d, b) {
|
|
51
|
-
for (var p in b) {
|
|
52
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return _extendStatics(d, b);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return function (d, b) {
|
|
60
|
-
_extendStatics(d, b);
|
|
61
|
-
|
|
62
|
-
function __() {
|
|
63
|
-
this.constructor = d;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
67
|
-
};
|
|
68
|
-
}();
|
|
69
|
-
|
|
70
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
71
|
-
__assign = Object.assign || function (t) {
|
|
72
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
73
|
-
s = arguments[i];
|
|
74
|
-
|
|
75
|
-
for (var p in s) {
|
|
76
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return t;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return __assign.apply(this, arguments);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
87
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
88
|
-
s += arguments[i].length;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
92
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
93
|
-
r[k] = a[j];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return r;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
window.magicDesign = {
|
|
101
|
-
mode: 'designer',
|
|
102
|
-
device: _constants.deviceTypeMap.PHONE
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
var setDesignConfig = function setDesignConfig(data) {
|
|
106
|
-
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
|
|
107
|
-
MBaseUrl: data.MBaseUrl || ''
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
var debug = require('debug')('worker:Designer');
|
|
112
|
-
/**
|
|
113
|
-
* @class Designer
|
|
114
|
-
* 主入口。
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
var Designer =
|
|
119
|
-
/** @class */
|
|
120
|
-
function (_super) {
|
|
121
|
-
__extends(Designer, _super);
|
|
122
|
-
|
|
123
|
-
function Designer(props) {
|
|
124
|
-
var _this = _super.call(this, props) || this;
|
|
125
|
-
|
|
126
|
-
_this.closeCompList = function () {
|
|
127
|
-
if (_this.compListRef.current.open) {
|
|
128
|
-
_this.compListRef.current.onClose();
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
_this.openCompList = function () {
|
|
133
|
-
return _this.compListRef.current.onOpen();
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
_this.openConfigPanel = function () {
|
|
137
|
-
if (!_this.configRef.current) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
var device = _this.state.device;
|
|
142
|
-
|
|
143
|
-
if (device === _constants.deviceTypeMap.PC) {
|
|
144
|
-
_this.configRef.current.openPcConfig();
|
|
145
|
-
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
_this.configRef.current.openMobileConfig();
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
_this.closeConfigPanel = function () {
|
|
153
|
-
if (!_this.configRef.current) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
var device = _this.state.device;
|
|
158
|
-
|
|
159
|
-
if (!_mobx.store.clickedFloor) {
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
_this.configRef.current.closeSecConfig();
|
|
164
|
-
|
|
165
|
-
if (device === _constants.deviceTypeMap.PC) {
|
|
166
|
-
_this.configRef.current.closePcConfig();
|
|
167
|
-
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
_this.configRef.current.closeMobileConfig();
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
_this.reRenderViewArea = function (e) {
|
|
175
|
-
if (e.changeHistory) {
|
|
176
|
-
_this.history.push(_this.state.MPageData);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
_mobx.store.setState({
|
|
180
|
-
MPageData: _this.state.MPageData
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
_this.setState({});
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
_this.componentClick = function (event) {
|
|
187
|
-
_this.openConfigPanel();
|
|
188
|
-
|
|
189
|
-
_this.onComponentClick(event.data);
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* 楼层 的 新增、删除、拷贝、顺序调整、属性修改时调用
|
|
193
|
-
* @param {*} newPageData 模版信息
|
|
194
|
-
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
_this.setPageData = function (newPageData) {
|
|
198
|
-
var MPageData = _this.history.push(newPageData);
|
|
199
|
-
|
|
200
|
-
_this.setState({
|
|
201
|
-
MPageData: MPageData
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
_mobx.store.setState({
|
|
205
|
-
MPageData: MPageData
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
_this.onSwitchDevice = function (device) {
|
|
210
|
-
if (device === window.magicDesign.device) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
_this.closeConfigPanel();
|
|
215
|
-
|
|
216
|
-
_this.setState(__assign(__assign({}, _this.state), {
|
|
217
|
-
device: device
|
|
218
|
-
}));
|
|
219
|
-
|
|
220
|
-
_this.closeCompList();
|
|
221
|
-
|
|
222
|
-
_mobx.store.setState({
|
|
223
|
-
clickedFloor: ''
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
window.magicDesign.device = device;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
_this.onAdd = function () {
|
|
230
|
-
_this.closeConfigPanel();
|
|
231
|
-
|
|
232
|
-
_this.openCompList();
|
|
233
|
-
|
|
234
|
-
_mobx.store.setState({
|
|
235
|
-
clickedFloor: ''
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
_this.onPropsPanelClose = function () {
|
|
240
|
-
_mobx.store.setState({
|
|
241
|
-
clickedFloor: ''
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
_this.componentScrollTop = function (data) {
|
|
246
|
-
if (document.getElementById("view" + data.id)) {
|
|
247
|
-
document.getElementById("view" + data.id).scrollIntoView({
|
|
248
|
-
behavior: 'smooth'
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
_this.addComponent = function (_a) {
|
|
254
|
-
var type = _a.type,
|
|
255
|
-
terminalType = _a.terminalType;
|
|
256
|
-
var MPageData = _this.state.MPageData;
|
|
257
|
-
var compType = _componentTypes.componentMap[type];
|
|
258
|
-
|
|
259
|
-
if (!compType) {
|
|
260
|
-
debug("Component Type [" + type + "] not find!");
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
var compInst = compType.getDefaultJSON();
|
|
265
|
-
|
|
266
|
-
var newData = __spreadArrays(MPageData, [__assign(__assign({}, compInst), {
|
|
267
|
-
terminalType: terminalType,
|
|
268
|
-
activeTerminal: terminalType
|
|
269
|
-
})]);
|
|
270
|
-
|
|
271
|
-
_this.history.push(newData);
|
|
272
|
-
|
|
273
|
-
_mobx.store.setState({
|
|
274
|
-
MPageData: newData
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
_this.setState({
|
|
278
|
-
MPageData: newData
|
|
279
|
-
}, function () {
|
|
280
|
-
setTimeout(function () {
|
|
281
|
-
// 定位到新增组件
|
|
282
|
-
_this.componentScrollTop(compInst);
|
|
283
|
-
|
|
284
|
-
var evt = new Event('component-click', {
|
|
285
|
-
bubbles: false
|
|
286
|
-
});
|
|
287
|
-
evt.data = compInst;
|
|
288
|
-
window.document.dispatchEvent(evt);
|
|
289
|
-
}, 0);
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
_this.onQuickMenuClick = function (code) {
|
|
294
|
-
var _a = _this.props,
|
|
295
|
-
onPublish = _a.onPublish,
|
|
296
|
-
onSave = _a.onSave,
|
|
297
|
-
onPreviews = _a.onPreviews;
|
|
298
|
-
var _b = _this.state,
|
|
299
|
-
device = _b.device,
|
|
300
|
-
MPageData = _b.MPageData;
|
|
301
|
-
var handleParams = {
|
|
302
|
-
pageData: {
|
|
303
|
-
id: (0, _uuid.v4)(),
|
|
304
|
-
childNodes: MPageData
|
|
305
|
-
},
|
|
306
|
-
device: device
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
var callback = function callback(newPageData) {
|
|
310
|
-
_mobx.store.setState({
|
|
311
|
-
MPageData: newPageData
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
_this.setState({
|
|
315
|
-
MPageData: newPageData
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
switch (code) {
|
|
320
|
-
case _constants.quickMenuCode.UNDO:
|
|
321
|
-
_this.history.undo(callback);
|
|
322
|
-
|
|
323
|
-
break;
|
|
324
|
-
|
|
325
|
-
case _constants.quickMenuCode.REDO:
|
|
326
|
-
_this.history.redo(callback);
|
|
327
|
-
|
|
328
|
-
break;
|
|
329
|
-
|
|
330
|
-
case _constants.quickMenuCode.PUBLISH:
|
|
331
|
-
onPublish(handleParams);
|
|
332
|
-
break;
|
|
333
|
-
|
|
334
|
-
case _constants.quickMenuCode.PREVIEW:
|
|
335
|
-
onPreviews(handleParams);
|
|
336
|
-
break;
|
|
337
|
-
|
|
338
|
-
case _constants.quickMenuCode.SAVE:
|
|
339
|
-
onSave(handleParams);
|
|
340
|
-
break;
|
|
341
|
-
|
|
342
|
-
case _constants.quickMenuCode.MODE_PC:
|
|
343
|
-
_this.onSwitchDevice(_constants.deviceTypeMap.PC);
|
|
344
|
-
|
|
345
|
-
break;
|
|
346
|
-
|
|
347
|
-
case _constants.quickMenuCode.MODE_PHONE:
|
|
348
|
-
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
|
|
349
|
-
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
_this.renderHeader = function () {
|
|
355
|
-
return /*#__PURE__*/_react["default"].createElement(_QuickMenuBar["default"], {
|
|
356
|
-
device: _this.state.device,
|
|
357
|
-
language: _this.props.language,
|
|
358
|
-
onBtnClick: _this.onQuickMenuClick,
|
|
359
|
-
redoDisable: !_this.history.redoAble(),
|
|
360
|
-
undoDisable: !_this.history.undoAble()
|
|
361
|
-
});
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
var pageData = props.pageData,
|
|
365
|
-
config = props.config,
|
|
366
|
-
locale = props.locale;
|
|
367
|
-
var MPageData = pageData.childNodes || [];
|
|
368
|
-
_this.configRef = /*#__PURE__*/_react["default"].createRef(); // this.viewAreaRef = React.createRef();
|
|
369
|
-
|
|
370
|
-
_this.compListRef = /*#__PURE__*/_react["default"].createRef();
|
|
371
|
-
_this.history = new _History["default"](MPageData);
|
|
372
|
-
|
|
373
|
-
_mobx.store.setState({
|
|
374
|
-
MPageData: MPageData,
|
|
375
|
-
locale: locale
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
_this.state = {
|
|
379
|
-
MPageData: MPageData,
|
|
380
|
-
device: _constants.deviceTypeMap.PHONE
|
|
381
|
-
};
|
|
382
|
-
setDesignConfig(config);
|
|
383
|
-
return _this;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
Designer.prototype.componentDidMount = function () {
|
|
387
|
-
var _this = this; // 复合组件点击事件
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
window.document.addEventListener('component-click', this.componentClick); // 复合组件重新渲染事件
|
|
391
|
-
|
|
392
|
-
window.document.addEventListener('render-view', this.reRenderViewArea);
|
|
393
|
-
this.destory = (0, _mobx.autorun)(function () {
|
|
394
|
-
if (_this.state.locale != _mobx.store.locale) {
|
|
395
|
-
_this.setState({
|
|
396
|
-
locale: _mobx.store.locale
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
Designer.prototype.componentWillReceiveProps = function (nextProps) {
|
|
403
|
-
var pageData = nextProps.pageData,
|
|
404
|
-
config = nextProps.config;
|
|
405
|
-
var MPageData = pageData.childNodes || [];
|
|
406
|
-
this.history = new _History["default"](MPageData);
|
|
407
|
-
this.setState({
|
|
408
|
-
MPageData: MPageData
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
_mobx.store.setState({
|
|
412
|
-
MPageData: MPageData
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
setDesignConfig(config);
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
Designer.prototype.componentWillUnmount = function () {
|
|
419
|
-
if (this.destory) this.destory();
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
Designer.prototype.onComponentClick = function (data) {
|
|
423
|
-
if (_mobx.store.clickedFloor === data.id) return;
|
|
424
|
-
|
|
425
|
-
_mobx.store.setState({
|
|
426
|
-
clickedFloor: data.id,
|
|
427
|
-
clickedGroup: null,
|
|
428
|
-
clickedMeta: null
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
Designer.prototype.componentWillUnmount = function () {
|
|
433
|
-
window.document.removeEventListener('component-click', this.componentClick);
|
|
434
|
-
window.document.removeEventListener('render-view', this.reRenderViewArea);
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
Designer.prototype.render = function () {
|
|
438
|
-
var _this = this;
|
|
439
|
-
|
|
440
|
-
var _a = this.state,
|
|
441
|
-
MPageData = _a.MPageData,
|
|
442
|
-
device = _a.device;
|
|
443
|
-
var _b = this.props,
|
|
444
|
-
pagesManager = _b.pagesManager,
|
|
445
|
-
compSource = _b.compSource,
|
|
446
|
-
pageName = _b.pageName;
|
|
447
|
-
return /*#__PURE__*/_react["default"].createElement(_mobxReact.Provider, {
|
|
448
|
-
store: _mobx.store
|
|
449
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.ConfigProvider, {
|
|
450
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
451
|
-
return triggerNode ? triggerNode.parentNode : document.querySelector('[magic_design]');
|
|
452
|
-
}
|
|
453
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
454
|
-
magic_design: ""
|
|
455
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
456
|
-
className: "designer-wrap"
|
|
457
|
-
}, /*#__PURE__*/_react["default"].createElement(_PageCompList["default"], {
|
|
458
|
-
onAdd: this.onAdd,
|
|
459
|
-
pageData: MPageData,
|
|
460
|
-
pageName: pageName,
|
|
461
|
-
renderPagesManage: pagesManager,
|
|
462
|
-
setPageData: this.setPageData
|
|
463
|
-
}), /*#__PURE__*/_react["default"].createElement(_CompListPanel["default"], {
|
|
464
|
-
ref: this.compListRef,
|
|
465
|
-
compSource: compSource,
|
|
466
|
-
onAdd: function onAdd(data) {
|
|
467
|
-
return _this.addComponent(data);
|
|
468
|
-
},
|
|
469
|
-
onClose: this.closeCompList
|
|
470
|
-
}), /*#__PURE__*/_react["default"].createElement(_ConfigPanel["default"], {
|
|
471
|
-
ref: this.configRef,
|
|
472
|
-
device: device,
|
|
473
|
-
onClose: this.onPropsPanelClose,
|
|
474
|
-
pageData: MPageData
|
|
475
|
-
}), /*#__PURE__*/_react["default"].createElement(_ViewArea["default"] // ref={this.viewAreaRef}
|
|
476
|
-
, {
|
|
477
|
-
device: device,
|
|
478
|
-
pageData: MPageData,
|
|
479
|
-
renderHeader: this.renderHeader
|
|
480
|
-
})))));
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
return Designer;
|
|
484
|
-
}(_react.Component);
|
|
485
|
-
|
|
486
|
-
var _default = Designer;
|
|
487
|
-
exports["default"] = _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
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 _componentTypes = require("../../constants/component-types");
|
|
11
|
-
|
|
12
|
-
var _coreUtil = require("../../utils/coreUtil");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
17
|
-
__assign = Object.assign || function (t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
|
|
21
|
-
for (var p in s) {
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return __assign.apply(this, arguments);
|
|
30
|
-
};
|
|
31
|
-
/* eslint-disable consistent-return */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var setDesignConfig = function setDesignConfig(props) {
|
|
35
|
-
var config = props.config,
|
|
36
|
-
device = props.device,
|
|
37
|
-
isShop = props.isShop;
|
|
38
|
-
window.magicDesign = __assign({
|
|
39
|
-
pageBackground: '#f2f2f2',
|
|
40
|
-
compSpacing: '16',
|
|
41
|
-
mode: 'renderer',
|
|
42
|
-
device: device,
|
|
43
|
-
isShop: isShop
|
|
44
|
-
}, config);
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @class Renderer 页面预览器,外部工程使用此类来渲染出页面。
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var Renderer = function Renderer(props) {
|
|
52
|
-
var pageData = props.pageData;
|
|
53
|
-
setDesignConfig(props); // 根据楼层展示设备进行过滤
|
|
54
|
-
|
|
55
|
-
var filterCompFloor = function filterCompFloor() {
|
|
56
|
-
var source = [];
|
|
57
|
-
|
|
58
|
-
if (pageData && pageData.childNodes && pageData.childNodes.length) {
|
|
59
|
-
source = pageData.childNodes.filter(function (node) {
|
|
60
|
-
return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return source;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
-
className: "render_wrap",
|
|
69
|
-
magic_design: "",
|
|
70
|
-
style: {
|
|
71
|
-
background: window.magicDesign.pageBackground
|
|
72
|
-
}
|
|
73
|
-
}, filterCompFloor().map(function (nodeData) {
|
|
74
|
-
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
75
|
-
|
|
76
|
-
if (!Clazz) {
|
|
77
|
-
console.error("[MagicBox] Can not find type " + nodeData.type);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
var newInstanceProps = __assign(__assign({}, nodeData), {
|
|
82
|
-
nodeData: nodeData
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
-
key: nodeData.id
|
|
87
|
-
}, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
Renderer.defaultProps = {
|
|
92
|
-
pageData: {},
|
|
93
|
-
device: 'pc',
|
|
94
|
-
config: {}
|
|
95
|
-
};
|
|
96
|
-
var _default = Renderer;
|
|
97
|
-
exports["default"] = _default;
|