@fonixtree/magic-design 0.0.4 → 0.0.7
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/package.json +3 -61
- 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 -299
- package/es/assets/fonts/magic-box-iconfont.css.bak +0 -299
- 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-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 -50
- package/es/assets/less/global.less +0 -8
- package/es/assets/less/index.less +0 -11
- package/es/assets/less/input.less +0 -8
- package/es/assets/less/menu.less +0 -21
- package/es/assets/less/modal.less +0 -16
- package/es/assets/less/select.less +0 -19
- package/es/assets/less/slider.less +0 -21
- package/es/assets/less/switch.less +0 -20
- package/es/assets/less/table.less +0 -40
- 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 -134
- package/es/common/Button/index.less +0 -68
- package/es/common/ButtonIconLayout/index.js +0 -103
- package/es/common/ButtonIconLayout/index.less +0 -53
- package/es/common/Collapse/index.js +0 -384
- 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 -178
- package/es/common/FontStyles/index.less +0 -63
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +0 -210
- 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 -748
- package/es/common/ImageModal/index.less +0 -21
- package/es/common/ImagePicker/index.js +0 -162
- package/es/common/ImagePicker/index.less +0 -104
- 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 -34
- package/es/common/LinkModal/CatgTable/index.js +0 -234
- package/es/common/LinkModal/CouponTable/index.js +0 -299
- package/es/common/LinkModal/CustomTable/index.js +0 -227
- package/es/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/es/common/LinkModal/FunctionTable/index.js +0 -221
- package/es/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/es/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/es/common/LinkModal/index.js +0 -136
- package/es/common/LinkModal/index.less +0 -108
- package/es/common/NewImg/index.js +0 -165
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +0 -760
- package/es/common/ProductModal/index.less +0 -238
- package/es/common/ProductSource/index.js +0 -250
- package/es/common/ProductSource/index.less +0 -12
- 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 -119
- package/es/common/UrlPicker/index.less +0 -72
- package/es/common/index.js +0 -127
- 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 -216
- package/es/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/es/composite-comp/bol/components/Banner/pc/index.js +0 -278
- package/es/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/es/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/es/composite-comp/bol/components/Button/index.js +0 -103
- package/es/composite-comp/bol/components/Button/index.less +0 -47
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +0 -294
- package/es/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +0 -93
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +0 -251
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +0 -81
- package/es/composite-comp/bol/components/Carousel/pc/index.js +0 -250
- package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -81
- 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 -537
- package/es/composite-comp/bol/components/ImageText/index.js +0 -88
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +0 -181
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +0 -288
- package/es/composite-comp/bol/components/ImageText/pc/index.js +0 -155
- package/es/composite-comp/bol/components/ImageText/pc/index.less +0 -106
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/es/composite-comp/bol/components/Newsletter/index.js +0 -127
- package/es/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/es/composite-comp/bol/components/Tag/index.js +0 -107
- package/es/composite-comp/bol/components/Tag/index.less +0 -34
- package/es/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/es/composite-comp/bol/components/Text/index.js +0 -123
- 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 -126
- 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 -225
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +0 -46
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -99
- 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 -67
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -144
- 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 -199
- 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 -136
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -98
- 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 -177
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -89
- package/es/composite-comp/bol/config-panels/DividerConfig/index.js +0 -57
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -144
- 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 -57
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -126
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -196
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -185
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -111
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -57
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -109
- 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 -61
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -99
- 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 -138
- 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 -69
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -151
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -164
- 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 -141
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -99
- 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 -90
- 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 -35
- package/es/composite-comp/common/components/ProductItem/index.js +0 -191
- package/es/composite-comp/common/components/ProductItem/index.less +0 -121
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -109
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -204
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -154
- package/es/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/es/composite-comp/dito/components/FlashDeal/index.js +0 -86
- 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 -436
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -94
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/es/composite-comp/dito/components/Recommend/index.js +0 -86
- 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 -530
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +0 -79
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/es/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/es/composite-comp/dito/components/SearchBar/index.js +0 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -108
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +0 -38
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -143
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -125
- 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 -62
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -118
- 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 -143
- 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/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -62
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -138
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -185
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -3
- package/es/constants/component-types.js +0 -87
- package/es/constants/index.js +0 -144
- package/es/constants/layout.js +0 -120
- 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 -156
- package/es/core/Designer/CompListPanel/index.less +0 -69
- package/es/core/Designer/ConfigPanel/index.js +0 -294
- package/es/core/Designer/ConfigPanel/index.less +0 -139
- package/es/core/Designer/History/index.js +0 -91
- package/es/core/Designer/PageCompList/index.js +0 -266
- package/es/core/Designer/PageCompList/index.less +0 -114
- package/es/core/Designer/QuickMenuBar/index.js +0 -176
- package/es/core/Designer/QuickMenuBar/index.less +0 -67
- package/es/core/Designer/ViewArea/index.js +0 -150
- package/es/core/Designer/ViewArea/index.less +0 -53
- package/es/core/Designer/index.js +0 -454
- package/es/core/Designer/index.less +0 -6
- package/es/core/Renderer/index.js +0 -82
- package/es/decorator/compositeDecorator.js +0 -130
- package/es/decorator/index.js +0 -23
- package/es/decorator/metaDecorator.js +0 -199
- package/es/index.js +0 -27
- package/es/meta-comp/components/Button/index.js +0 -185
- package/es/meta-comp/components/Button/index.less +0 -19
- package/es/meta-comp/components/Image/index.js +0 -171
- package/es/meta-comp/components/Image/index.less +0 -18
- package/es/meta-comp/components/Text/index.js +0 -473
- 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 -87
- package/es/meta-comp/config-panels/ButtonConfig/index.js +0 -353
- package/es/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/es/meta-comp/config-panels/ImageConfig/index.js +0 -204
- package/es/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +0 -327
- package/es/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/es/mobx/Store.js +0 -93
- 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 -269
- package/es/utils/compJsonUtil.js +0 -240
- package/es/utils/coreUtil.js +0 -156
- package/es/utils/currencyUtil.js +0 -190
- package/es/utils/dataTreeUtils.js +0 -105
- 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 -299
- package/lib/assets/fonts/magic-box-iconfont.css.bak +0 -299
- 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-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 -50
- package/lib/assets/less/global.less +0 -8
- package/lib/assets/less/index.less +0 -11
- package/lib/assets/less/input.less +0 -8
- package/lib/assets/less/menu.less +0 -21
- package/lib/assets/less/modal.less +0 -16
- package/lib/assets/less/select.less +0 -19
- package/lib/assets/less/slider.less +0 -21
- package/lib/assets/less/switch.less +0 -20
- package/lib/assets/less/table.less +0 -40
- 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 -134
- package/lib/common/Button/index.less +0 -68
- package/lib/common/ButtonIconLayout/index.js +0 -103
- package/lib/common/ButtonIconLayout/index.less +0 -53
- package/lib/common/Collapse/index.js +0 -384
- 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 -178
- package/lib/common/FontStyles/index.less +0 -63
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +0 -210
- 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 -748
- package/lib/common/ImageModal/index.less +0 -21
- package/lib/common/ImagePicker/index.js +0 -162
- package/lib/common/ImagePicker/index.less +0 -104
- 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 -34
- package/lib/common/LinkModal/CatgTable/index.js +0 -234
- package/lib/common/LinkModal/CouponTable/index.js +0 -299
- package/lib/common/LinkModal/CustomTable/index.js +0 -227
- package/lib/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/lib/common/LinkModal/FunctionTable/index.js +0 -221
- package/lib/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/lib/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/lib/common/LinkModal/index.js +0 -136
- package/lib/common/LinkModal/index.less +0 -108
- package/lib/common/NewImg/index.js +0 -165
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +0 -760
- package/lib/common/ProductModal/index.less +0 -238
- package/lib/common/ProductSource/index.js +0 -250
- package/lib/common/ProductSource/index.less +0 -12
- 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 -119
- package/lib/common/UrlPicker/index.less +0 -72
- package/lib/common/index.js +0 -127
- 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 -216
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/lib/composite-comp/bol/components/Banner/pc/index.js +0 -278
- package/lib/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/lib/composite-comp/bol/components/Button/index.js +0 -103
- package/lib/composite-comp/bol/components/Button/index.less +0 -47
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +0 -294
- package/lib/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +0 -93
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +0 -251
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +0 -81
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +0 -250
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -81
- 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 -537
- package/lib/composite-comp/bol/components/ImageText/index.js +0 -88
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +0 -181
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +0 -288
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +0 -155
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +0 -106
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/lib/composite-comp/bol/components/Newsletter/index.js +0 -127
- package/lib/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/lib/composite-comp/bol/components/Tag/index.js +0 -107
- package/lib/composite-comp/bol/components/Tag/index.less +0 -34
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/lib/composite-comp/bol/components/Text/index.js +0 -123
- 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 -126
- 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 -225
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +0 -46
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -99
- 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 -67
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -144
- 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 -199
- 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 -136
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -98
- 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 -177
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -89
- package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +0 -57
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -144
- 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 -57
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -126
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -196
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -185
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -111
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -57
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -109
- 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 -61
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -99
- 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 -138
- 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 -69
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -151
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -164
- 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 -141
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -99
- 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 -90
- 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 -35
- package/lib/composite-comp/common/components/ProductItem/index.js +0 -191
- package/lib/composite-comp/common/components/ProductItem/index.less +0 -121
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -109
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -204
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -154
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/lib/composite-comp/dito/components/FlashDeal/index.js +0 -86
- 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 -436
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -94
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/lib/composite-comp/dito/components/Recommend/index.js +0 -86
- 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 -530
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +0 -79
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/lib/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/lib/composite-comp/dito/components/SearchBar/index.js +0 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -108
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +0 -38
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -143
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -125
- 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 -62
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -118
- 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 -143
- 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/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -62
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -138
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -185
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -3
- package/lib/constants/component-types.js +0 -87
- package/lib/constants/index.js +0 -144
- package/lib/constants/layout.js +0 -120
- 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 -156
- package/lib/core/Designer/CompListPanel/index.less +0 -69
- package/lib/core/Designer/ConfigPanel/index.js +0 -294
- package/lib/core/Designer/ConfigPanel/index.less +0 -139
- package/lib/core/Designer/History/index.js +0 -91
- package/lib/core/Designer/PageCompList/index.js +0 -266
- package/lib/core/Designer/PageCompList/index.less +0 -114
- package/lib/core/Designer/QuickMenuBar/index.js +0 -176
- package/lib/core/Designer/QuickMenuBar/index.less +0 -67
- package/lib/core/Designer/ViewArea/index.js +0 -150
- package/lib/core/Designer/ViewArea/index.less +0 -53
- package/lib/core/Designer/index.js +0 -454
- package/lib/core/Designer/index.less +0 -6
- package/lib/core/Renderer/index.js +0 -82
- package/lib/decorator/compositeDecorator.js +0 -130
- package/lib/decorator/index.js +0 -23
- package/lib/decorator/metaDecorator.js +0 -199
- package/lib/index.js +0 -27
- package/lib/meta-comp/components/Button/index.js +0 -185
- package/lib/meta-comp/components/Button/index.less +0 -19
- package/lib/meta-comp/components/Image/index.js +0 -171
- package/lib/meta-comp/components/Image/index.less +0 -18
- package/lib/meta-comp/components/Text/index.js +0 -473
- 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 -87
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +0 -353
- package/lib/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -204
- package/lib/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +0 -327
- package/lib/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/lib/mobx/Store.js +0 -93
- 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 -269
- package/lib/utils/compJsonUtil.js +0 -240
- package/lib/utils/coreUtil.js +0 -156
- package/lib/utils/currencyUtil.js +0 -190
- package/lib/utils/dataTreeUtils.js +0 -105
- package/lib/utils/dateUtil.js +0 -70
- package/lib/utils/storeUtil.js +0 -258
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
.m-button-icon-layout {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
|
|
6
|
-
.item-wrap {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
width: 94px;
|
|
11
|
-
height: 50px;
|
|
12
|
-
background: #FFFFFF;
|
|
13
|
-
border: 1px solid #D2D9E5;
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
margin-right: 12px;
|
|
16
|
-
margin-bottom: 12px;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
|
|
19
|
-
// &:nth-child(3) {
|
|
20
|
-
// margin-right: 0;
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
&.active {
|
|
24
|
-
border: 2px solid #2F54EB;
|
|
25
|
-
color: #232F46;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.vertical {
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
|
|
31
|
-
.el:first-child {
|
|
32
|
-
margin-right: 0;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.el:first-child {
|
|
37
|
-
margin-right: 8px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.text {
|
|
41
|
-
font-family: 'Open Sans';
|
|
42
|
-
font-style: normal;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
color: #232F46;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
img {
|
|
49
|
-
height: 20px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
}
|
|
@@ -1,384 +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 = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
|
-
var _mobx = require("../../mobx");
|
|
15
|
-
|
|
16
|
-
var _RcCollapse = _interopRequireWildcard(require("../RcCollapse"));
|
|
17
|
-
|
|
18
|
-
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
19
|
-
|
|
20
|
-
require("./index.less");
|
|
21
|
-
|
|
22
|
-
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); }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
-
__assign = Object.assign || function (t) {
|
|
56
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
-
s = arguments[i];
|
|
58
|
-
|
|
59
|
-
for (var p in s) {
|
|
60
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return t;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return __assign.apply(this, arguments);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
var debug = require('debug')('worker:Collapse'); // @inject('store')
|
|
71
|
-
// @observer
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var CommonCollapse =
|
|
75
|
-
/** @class */
|
|
76
|
-
function (_super) {
|
|
77
|
-
__extends(CommonCollapse, _super);
|
|
78
|
-
|
|
79
|
-
function CommonCollapse() {
|
|
80
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
81
|
-
|
|
82
|
-
_this.state = {
|
|
83
|
-
activeKey: ['1']
|
|
84
|
-
}; // 初始化展开面板
|
|
85
|
-
|
|
86
|
-
_this.initActive = function (props) {
|
|
87
|
-
var _a, _b;
|
|
88
|
-
|
|
89
|
-
var actives = [];
|
|
90
|
-
var type = props.type,
|
|
91
|
-
source = props.source;
|
|
92
|
-
|
|
93
|
-
if (source.length === 0) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (type === 'switch') {
|
|
98
|
-
debug('source', source);
|
|
99
|
-
var first = source.find(function (src) {
|
|
100
|
-
var _a;
|
|
101
|
-
|
|
102
|
-
return (_a = src.metaOption) === null || _a === void 0 ? void 0 : _a.open;
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
if (first && !_mobx.store.clickedMeta) {
|
|
106
|
-
_mobx.store.setState({
|
|
107
|
-
clickedMeta: (_a = first.metaOption) === null || _a === void 0 ? void 0 : _a.id
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
actives.push(((_b = first.metaOption) === null || _b === void 0 ? void 0 : _b.id) || first.key);
|
|
111
|
-
}
|
|
112
|
-
} else {
|
|
113
|
-
var first = source.find(function (src) {
|
|
114
|
-
var _a;
|
|
115
|
-
|
|
116
|
-
return ((_a = src.metaOption) === null || _a === void 0 ? void 0 : _a.open) !== false;
|
|
117
|
-
});
|
|
118
|
-
actives.push(first === null || first === void 0 ? void 0 : first.key);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
_this.setState({
|
|
122
|
-
activeKey: actives
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
_this.onCheckBoxChange = function (e, panelInfo) {
|
|
127
|
-
var _a;
|
|
128
|
-
|
|
129
|
-
var checked = e.target.checked;
|
|
130
|
-
panelInfo.metaOption.open = checked;
|
|
131
|
-
var activeKey = _this.state.activeKey;
|
|
132
|
-
|
|
133
|
-
if (checked) {
|
|
134
|
-
_this.setState({
|
|
135
|
-
activeKey: [((_a = panelInfo.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panelInfo.key]
|
|
136
|
-
});
|
|
137
|
-
} else {
|
|
138
|
-
_this.setState({
|
|
139
|
-
activeKey: activeKey.filter(function (key) {
|
|
140
|
-
return key !== panelInfo.key;
|
|
141
|
-
})
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
_this.props.onRefresh();
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
_this.onSwitchChange = function (checked, panelInfo) {
|
|
149
|
-
var _a;
|
|
150
|
-
|
|
151
|
-
panelInfo.metaOption.open = checked;
|
|
152
|
-
|
|
153
|
-
if (checked) {
|
|
154
|
-
_this.setState({
|
|
155
|
-
activeKey: [((_a = panelInfo.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panelInfo.key]
|
|
156
|
-
});
|
|
157
|
-
} else {
|
|
158
|
-
_this.setState({
|
|
159
|
-
activeKey: []
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
_this.props.onRefresh();
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
_this.getExtraInfo = function (panel) {
|
|
167
|
-
var _a;
|
|
168
|
-
|
|
169
|
-
var activeKey = _this.state.activeKey;
|
|
170
|
-
var type = _this.props.type;
|
|
171
|
-
var toggleType = panel.toggleType,
|
|
172
|
-
key = panel.key;
|
|
173
|
-
var extraType = toggleType || type; // 三角类型折叠
|
|
174
|
-
|
|
175
|
-
if (extraType === 'triangle') {
|
|
176
|
-
if (activeKey.includes(key)) {
|
|
177
|
-
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
178
|
-
color: "#8493AF",
|
|
179
|
-
size: 20,
|
|
180
|
-
type: "icon-up"
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
185
|
-
color: "#8493AF",
|
|
186
|
-
size: 20,
|
|
187
|
-
type: "icon-down"
|
|
188
|
-
});
|
|
189
|
-
} // 箭头类型折叠
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
if (extraType === 'arrow') {
|
|
193
|
-
if (activeKey.includes(key)) {
|
|
194
|
-
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
195
|
-
color: "#8493AF",
|
|
196
|
-
size: 20,
|
|
197
|
-
type: "icon-outlined-up"
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
202
|
-
color: "#8493AF",
|
|
203
|
-
size: 20,
|
|
204
|
-
type: "icon-outlined-down"
|
|
205
|
-
});
|
|
206
|
-
} // switch类型折叠
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (extraType === 'switch') {
|
|
210
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
211
|
-
checked: (_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.open,
|
|
212
|
-
onChange: function onChange(checked) {
|
|
213
|
-
return _this.onSwitchChange(checked, panel);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
} // checkbox类型折叠
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
if (extraType === 'checkbox') {
|
|
220
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
221
|
-
checked: panel.metaOption.open,
|
|
222
|
-
onChange: function onChange(e) {
|
|
223
|
-
return _this.onCheckBoxChange(e, panel);
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
_this.headerMouseEnter = function (panel) {
|
|
230
|
-
var _a;
|
|
231
|
-
|
|
232
|
-
if (_this.props.type !== 'switch') {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
_mobx.store.setState({
|
|
237
|
-
hoveredMeta: (_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id
|
|
238
|
-
});
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
_this.headerMouseLeave = function () {
|
|
242
|
-
if (_this.props.type !== 'switch') {
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
_mobx.store.setState({
|
|
247
|
-
hoveredMeta: ''
|
|
248
|
-
});
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
_this.getHeader = function (panel) {
|
|
252
|
-
var activeKey = _this.state.activeKey;
|
|
253
|
-
var name = panel.name,
|
|
254
|
-
key = panel.key;
|
|
255
|
-
var _a = _this.props,
|
|
256
|
-
headerStyle = _a.headerStyle,
|
|
257
|
-
showActiveColor = _a.showActiveColor;
|
|
258
|
-
var showColor = activeKey.includes(key) && showActiveColor;
|
|
259
|
-
var activeStyle = showColor ? {
|
|
260
|
-
color: '#2F54EB'
|
|
261
|
-
} : {};
|
|
262
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
263
|
-
className: "header_wrap",
|
|
264
|
-
onMouseEnter: function onMouseEnter() {
|
|
265
|
-
return _this.headerMouseEnter(panel);
|
|
266
|
-
},
|
|
267
|
-
onMouseLeave: _this.headerMouseLeave,
|
|
268
|
-
style: __assign(__assign({}, headerStyle), activeStyle)
|
|
269
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, name));
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
_this.panelCollapsible = function (panel) {
|
|
273
|
-
var type = _this.props.type;
|
|
274
|
-
var toggleType = panel.toggleType,
|
|
275
|
-
metaOption = panel.metaOption;
|
|
276
|
-
var extraType = toggleType || type;
|
|
277
|
-
|
|
278
|
-
if (['triangle', 'arrow'].includes(extraType)) {
|
|
279
|
-
return null;
|
|
280
|
-
} else {
|
|
281
|
-
// switch 和checkbox模式只有在开启的状态下才能展开
|
|
282
|
-
if (metaOption === null || metaOption === void 0 ? void 0 : metaOption.open) {
|
|
283
|
-
return 'header';
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
return 'disabled';
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
_this.showHeaderHover = function (panel) {
|
|
291
|
-
var _a;
|
|
292
|
-
|
|
293
|
-
var type = _this.props.type;
|
|
294
|
-
|
|
295
|
-
if (_mobx.store.hoveredMeta === ((_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id) && type === 'switch') {
|
|
296
|
-
return true;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
return false;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
_this.onCollapseChange = function (value) {
|
|
303
|
-
var type = _this.props.type;
|
|
304
|
-
|
|
305
|
-
_this.setState({
|
|
306
|
-
activeKey: value ? [value] : []
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
if (type === 'switch') {
|
|
310
|
-
_mobx.store.setState({
|
|
311
|
-
clickedMeta: value
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
return _this;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
CommonCollapse.prototype.componentWillMount = function () {
|
|
320
|
-
this.initActive(this.props);
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
CommonCollapse.prototype.componentDidMount = function () {
|
|
324
|
-
var _this = this;
|
|
325
|
-
|
|
326
|
-
this.distroy = (0, _mobx.autorun)(function () {
|
|
327
|
-
if (_this.props.type === 'switch' && _mobx.store.clickedMeta) {
|
|
328
|
-
_this.setState({
|
|
329
|
-
activeKey: [_mobx.store.clickedMeta]
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
}; // componentWillReceiveProps(nextProps) {
|
|
334
|
-
// console.log(this.props);
|
|
335
|
-
// console.log(nextProps);
|
|
336
|
-
// this.initActive(nextProps);
|
|
337
|
-
// }
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
CommonCollapse.prototype.componentWillUnmount = function () {
|
|
341
|
-
this.distroy();
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
CommonCollapse.prototype.render = function () {
|
|
345
|
-
var _this = this;
|
|
346
|
-
|
|
347
|
-
var _a = this.props,
|
|
348
|
-
source = _a.source,
|
|
349
|
-
headerSize = _a.headerSize,
|
|
350
|
-
divider = _a.divider;
|
|
351
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
352
|
-
className: "collapse_wrap " + headerSize + "_header " + divider + "_divider"
|
|
353
|
-
}, /*#__PURE__*/_react["default"].createElement(_RcCollapse["default"], {
|
|
354
|
-
accordion: true,
|
|
355
|
-
activeKey: this.state.activeKey // destroyInactivePanel
|
|
356
|
-
,
|
|
357
|
-
onChange: this.onCollapseChange
|
|
358
|
-
}, source.map(function (panel) {
|
|
359
|
-
var _a;
|
|
360
|
-
|
|
361
|
-
return /*#__PURE__*/_react["default"].createElement(_RcCollapse.Panel, {
|
|
362
|
-
key: ((_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panel.key,
|
|
363
|
-
collapsible: _this.panelCollapsible(panel),
|
|
364
|
-
extra: _this.getExtraInfo(panel),
|
|
365
|
-
header: _this.getHeader(panel),
|
|
366
|
-
headerClass: _this.showHeaderHover(panel) ? 'rc-collapse-header-hover' : '',
|
|
367
|
-
showArrow: false
|
|
368
|
-
}, panel.value);
|
|
369
|
-
})));
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
CommonCollapse.defaultProps = {
|
|
373
|
-
type: 'triangle',
|
|
374
|
-
source: [],
|
|
375
|
-
headerStyle: {},
|
|
376
|
-
divider: 'solid',
|
|
377
|
-
headerSize: 'default',
|
|
378
|
-
onRefresh: function onRefresh() {}
|
|
379
|
-
};
|
|
380
|
-
return CommonCollapse;
|
|
381
|
-
}(_react["default"].Component);
|
|
382
|
-
|
|
383
|
-
var _default = CommonCollapse;
|
|
384
|
-
exports["default"] = _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
.collapse_wrap {
|
|
2
|
-
.rc-collapse {
|
|
3
|
-
.rc-collapse-item {
|
|
4
|
-
border-bottom: 1px solid #EDF0F4;
|
|
5
|
-
.rc-collapse-header {
|
|
6
|
-
padding: 0 5px;
|
|
7
|
-
margin: 0 -5px;
|
|
8
|
-
align-items:center;
|
|
9
|
-
.rc-collapse-header-text {
|
|
10
|
-
flex-grow: 1;
|
|
11
|
-
}
|
|
12
|
-
&.rc-collapse-header-hover {
|
|
13
|
-
background: #E9F0FF;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.rc-collapse-content {
|
|
17
|
-
.rc-collapse-content-box {
|
|
18
|
-
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
.header_wrap {
|
|
23
|
-
padding: 20px 0;
|
|
24
|
-
position: relative;
|
|
25
|
-
color: #232F46;
|
|
26
|
-
font-family: 'Open Sans';
|
|
27
|
-
font-style: normal;
|
|
28
|
-
box-sizing: content-box;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
&.bold_divider {
|
|
32
|
-
.rc-collapse {
|
|
33
|
-
.rc-collapse-item {
|
|
34
|
-
border-bottom: 6px solid #EDF0F4;
|
|
35
|
-
border-radius: 2px;
|
|
36
|
-
&:last-child {
|
|
37
|
-
border-bottom: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&.solid_divider{
|
|
43
|
-
.rc-collapse {
|
|
44
|
-
.rc-collapse-item {
|
|
45
|
-
border-bottom: 1px solid #EDF0F4;
|
|
46
|
-
border-radius: 0px;
|
|
47
|
-
&:last-child {
|
|
48
|
-
border-bottom: none;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
&.dashed_divider{
|
|
54
|
-
.rc-collapse {
|
|
55
|
-
.rc-collapse-item {
|
|
56
|
-
border-bottom: 1px dashed #D2D9E5;
|
|
57
|
-
&:last-child {
|
|
58
|
-
border-bottom: none;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.large_header {
|
|
65
|
-
.header_wrap {
|
|
66
|
-
font-size: 18px !important;
|
|
67
|
-
line-height: 26px !important;
|
|
68
|
-
height: 26px !important;
|
|
69
|
-
font-weight: 700 !important;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&.middle_header {
|
|
73
|
-
.header_wrap{
|
|
74
|
-
font-size: 16px !important;
|
|
75
|
-
line-height: 24px !important;
|
|
76
|
-
height: 24px !important;
|
|
77
|
-
font-weight: 600 !important;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
&.small_header {
|
|
82
|
-
.header_wrap {
|
|
83
|
-
font-size: 14px !important;
|
|
84
|
-
line-height: 22px !important;
|
|
85
|
-
height: 22px !important;
|
|
86
|
-
font-weight: 700 !important;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&.default_header {
|
|
90
|
-
.header_wrap {
|
|
91
|
-
font-size: 16px;
|
|
92
|
-
line-height: 24px;
|
|
93
|
-
height: 24px;
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
Binary file
|
|
@@ -1,131 +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 _reactColor = require("react-color");
|
|
11
|
-
|
|
12
|
-
require("./index.less");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
17
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
18
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
19
|
-
__proto__: []
|
|
20
|
-
} instanceof Array && function (d, b) {
|
|
21
|
-
d.__proto__ = b;
|
|
22
|
-
} || function (d, b) {
|
|
23
|
-
for (var p in b) {
|
|
24
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return _extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return function (d, b) {
|
|
32
|
-
_extendStatics(d, b);
|
|
33
|
-
|
|
34
|
-
function __() {
|
|
35
|
-
this.constructor = d;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39
|
-
};
|
|
40
|
-
}();
|
|
41
|
-
|
|
42
|
-
var ColorPicker =
|
|
43
|
-
/** @class */
|
|
44
|
-
function (_super) {
|
|
45
|
-
__extends(ColorPicker, _super);
|
|
46
|
-
|
|
47
|
-
function ColorPicker() {
|
|
48
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
-
|
|
50
|
-
_this.getRgbaStr = function (c) {
|
|
51
|
-
return "rgba(" + c.r + ", " + c.g + ", " + c.b + ", " + c.a + ")";
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
_this.getHexStr = function (c) {
|
|
55
|
-
if (_this.getRgbaStr(c.rgb) === 'rgba(255, 255, 255, 0)') {
|
|
56
|
-
return '';
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return c.hex;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
_this.onChangeColor = function (color) {
|
|
63
|
-
var _a = _this.props,
|
|
64
|
-
type = _a.type,
|
|
65
|
-
onChangeColor = _a.onChangeColor;
|
|
66
|
-
|
|
67
|
-
var _color = type === 'hex' ? _this.getHexStr(color) : _this.getRgbaStr(color.rgb);
|
|
68
|
-
|
|
69
|
-
onChangeColor(_color);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
_this.convertPlacement = function (type) {
|
|
73
|
-
var styleMap = {
|
|
74
|
-
top: {},
|
|
75
|
-
left: {},
|
|
76
|
-
right: {},
|
|
77
|
-
bottom: {},
|
|
78
|
-
topLeft: {},
|
|
79
|
-
topRight: {},
|
|
80
|
-
bottomLeft: {
|
|
81
|
-
right: 0,
|
|
82
|
-
top: '100%'
|
|
83
|
-
},
|
|
84
|
-
bottomRight: {},
|
|
85
|
-
leftTop: {},
|
|
86
|
-
leftBottom: {},
|
|
87
|
-
rightTop: {},
|
|
88
|
-
rightBottom: {}
|
|
89
|
-
};
|
|
90
|
-
return styleMap[type] || {};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
return _this;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
ColorPicker.prototype.render = function () {
|
|
97
|
-
var _a = this.props,
|
|
98
|
-
type = _a.type,
|
|
99
|
-
placement = _a.placement,
|
|
100
|
-
color = _a.color,
|
|
101
|
-
visibility = _a.visibility,
|
|
102
|
-
onClose = _a.onClose;
|
|
103
|
-
var style = this.convertPlacement(placement);
|
|
104
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
-
className: "m-color-picker-panel",
|
|
106
|
-
style: style
|
|
107
|
-
}, visibility && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className: "panel-bg",
|
|
109
|
-
onClick: function onClick() {
|
|
110
|
-
return onClose();
|
|
111
|
-
}
|
|
112
|
-
}), /*#__PURE__*/_react["default"].createElement(_reactColor.SketchPicker, {
|
|
113
|
-
color: color,
|
|
114
|
-
disableAlpha: type == 'hex',
|
|
115
|
-
onChangeComplete: this.onChangeColor,
|
|
116
|
-
presetColors: ['rgba(255,255,255,0)', '#000', '#fff', '#2F54EB', '#FF0000', '#FF7D00', '#FFFF00', '#00FF00', '#0000FF', '#FF00FF', '#EDF0F4', '#d9d9d9']
|
|
117
|
-
})));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
ColorPicker.defaultProps = {
|
|
121
|
-
visibility: false,
|
|
122
|
-
color: '#2F54EB',
|
|
123
|
-
type: 'hex',
|
|
124
|
-
onChangeColor: function onChangeColor() {},
|
|
125
|
-
onClose: function onClose() {}
|
|
126
|
-
};
|
|
127
|
-
return ColorPicker;
|
|
128
|
-
}(_react["default"].Component);
|
|
129
|
-
|
|
130
|
-
var _default = ColorPicker;
|
|
131
|
-
exports["default"] = _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.m-color-picker-panel {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 999;
|
|
4
|
-
|
|
5
|
-
.panel-bg {
|
|
6
|
-
position: fixed;
|
|
7
|
-
z-index: 0;
|
|
8
|
-
top: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
right: 0;
|
|
11
|
-
bottom: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.sketch-picker {
|
|
15
|
-
.flexbox-fix:last-child {
|
|
16
|
-
>div>span>div {
|
|
17
|
-
border-radius: 50px !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
div[title="rgba(255,255,255,0)"] {
|
|
21
|
-
background: url('./imgs/no-color.png') !important;
|
|
22
|
-
background-size: 100% !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
Binary file
|