@fonixtree/magic-design 2.0.97 → 2.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +19 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
- package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/es/common/Collapse/index.js +10 -8
- package/es/common/FontStyles/index.less +3 -1
- package/es/common/MonpayCountDown/index.js +160 -0
- package/es/common/PopUpModal/index.less +79 -0
- package/es/common/PopUpModal1/style.less +56 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/es/common/ProductFilterModal/index.less +72 -0
- package/es/common/RatingText/index.js +105 -0
- package/es/common/RatingText/index.less +12 -0
- package/es/common/Tag/index.less +16 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
- package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
- package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
- package/es/composite-comp/common/components/ProductItem/index.js +5 -11
- package/es/composite-comp/common/components/ProductItem/index.less +10 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
- package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
- package/es/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/es/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/es/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/es/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
- package/es/constants/component-types.js +25 -3
- package/es/constants/index.js +42 -3
- package/es/constants/layout.js +43 -4
- package/es/core/Designer/ConfigPanel/index.js +1 -1
- package/es/core/Designer/index.js +5 -2
- package/es/locale/en/en.json +21 -0
- package/es/locale/es/es.json +21 -0
- package/es/locale/id/id.json +21 -0
- package/es/utils/dateUtil.js +13 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +19 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
- package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/lib/common/Collapse/index.js +10 -8
- package/lib/common/FontStyles/index.less +3 -1
- package/lib/common/MonpayCountDown/index.js +160 -0
- package/lib/common/PopUpModal/index.less +79 -0
- package/lib/common/PopUpModal1/style.less +56 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/lib/common/ProductFilterModal/index.less +72 -0
- package/lib/common/RatingText/index.js +105 -0
- package/lib/common/RatingText/index.less +12 -0
- package/lib/common/Tag/index.less +16 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
- package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
- package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
- package/lib/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/lib/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/lib/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/lib/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
- package/lib/constants/component-types.js +25 -3
- package/lib/constants/index.js +42 -3
- package/lib/constants/layout.js +43 -4
- package/lib/core/Designer/ConfigPanel/index.js +1 -1
- package/lib/core/Designer/index.js +5 -2
- package/lib/locale/en/en.json +21 -0
- package/lib/locale/es/es.json +21 -0
- package/lib/locale/id/id.json +21 -0
- package/lib/utils/dateUtil.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,258 @@
|
|
|
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 _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _AIRecommendation = _interopRequireDefault(require("./AIRecommendation"));
|
|
13
|
+
|
|
14
|
+
var _locale = require("../../../../locale");
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../common");
|
|
17
|
+
|
|
18
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
|
+
|
|
20
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
21
|
+
|
|
22
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
23
|
+
|
|
24
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
25
|
+
|
|
26
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
27
|
+
|
|
28
|
+
require("./index.less");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
33
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
34
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
35
|
+
__proto__: []
|
|
36
|
+
} instanceof Array && function (d, b) {
|
|
37
|
+
d.__proto__ = b;
|
|
38
|
+
} || function (d, b) {
|
|
39
|
+
for (var p in b) {
|
|
40
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return _extendStatics(d, b);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
return function (d, b) {
|
|
48
|
+
_extendStatics(d, b);
|
|
49
|
+
|
|
50
|
+
function __() {
|
|
51
|
+
this.constructor = d;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55
|
+
};
|
|
56
|
+
}();
|
|
57
|
+
|
|
58
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
59
|
+
__assign = Object.assign || function (t) {
|
|
60
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61
|
+
s = arguments[i];
|
|
62
|
+
|
|
63
|
+
for (var p in s) {
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return t;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return __assign.apply(this, arguments);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var RecommendSecondConfig =
|
|
75
|
+
/** @class */
|
|
76
|
+
function (_super) {
|
|
77
|
+
__extends(RecommendSecondConfig, _super);
|
|
78
|
+
|
|
79
|
+
function RecommendSecondConfig() {
|
|
80
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
81
|
+
|
|
82
|
+
_this.state = {};
|
|
83
|
+
|
|
84
|
+
_this.hasSource = function (type) {
|
|
85
|
+
if (!window.systemParams || !window.systemParams.recommendSource) {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (window.systemParams.recommendSource && window.systemParams.recommendSource.includes(type)) {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return false;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
_this.getContentPanel = function () {
|
|
97
|
+
var panelProps = _this.props.panelProps;
|
|
98
|
+
|
|
99
|
+
var productSource = /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "sourceOfProduct"
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
102
|
+
title: (0, _locale.i18n)('SOURCE_OF_PRODUCT')
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
104
|
+
onChange: function onChange(v) {
|
|
105
|
+
panelProps.sourceType = v;
|
|
106
|
+
|
|
107
|
+
_this.selfRender();
|
|
108
|
+
},
|
|
109
|
+
value: panelProps.sourceType
|
|
110
|
+
}, _this.hasSource('P') && /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
111
|
+
value: "select"
|
|
112
|
+
}, (0, _locale.i18n)('SELECT_PRODUCT')), _this.hasSource('A') && /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
113
|
+
value: "recommend"
|
|
114
|
+
}, (0, _locale.i18n)('AI_RECOMMENDATION')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: "greyBg"
|
|
116
|
+
}, panelProps.sourceType === 'select' && /*#__PURE__*/_react["default"].createElement(_common.ProductSource, {
|
|
117
|
+
onChange: function onChange(ids, type) {
|
|
118
|
+
panelProps.prodIds = ids;
|
|
119
|
+
panelProps.prodType = type;
|
|
120
|
+
|
|
121
|
+
_this.selfRender();
|
|
122
|
+
},
|
|
123
|
+
prodType: panelProps.prodType,
|
|
124
|
+
value: panelProps.prodIds
|
|
125
|
+
}), panelProps.sourceType === 'recommend' && /*#__PURE__*/_react["default"].createElement(_AIRecommendation["default"], {
|
|
126
|
+
onChange: function onChange(val) {
|
|
127
|
+
panelProps.intelligentType = val.intelligentType;
|
|
128
|
+
panelProps.intelligentValue = val.intelligentValue;
|
|
129
|
+
|
|
130
|
+
_this.selfRender();
|
|
131
|
+
},
|
|
132
|
+
value: {
|
|
133
|
+
intelligentType: panelProps.intelligentType,
|
|
134
|
+
intelligentValue: panelProps.intelligentValue
|
|
135
|
+
}
|
|
136
|
+
}), panelProps.sourceType === 'recommend' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
137
|
+
title: (0, _locale.i18n)('PRODUCT_QUANTITY')
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Radio.Group, {
|
|
139
|
+
onChange: function onChange(e) {
|
|
140
|
+
panelProps.maxProdNum = e.target.value;
|
|
141
|
+
|
|
142
|
+
_this.selfRender();
|
|
143
|
+
},
|
|
144
|
+
value: panelProps.maxProdNum
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
146
|
+
value: 4
|
|
147
|
+
}, "\u22644"), /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
148
|
+
value: 10
|
|
149
|
+
}, "\u226410"), /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
150
|
+
value: 20
|
|
151
|
+
}, "\u226420"), /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
152
|
+
value: 50
|
|
153
|
+
}, "\u226450")))));
|
|
154
|
+
|
|
155
|
+
var defaultSource = [{
|
|
156
|
+
key: 'defaultSource_1',
|
|
157
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
158
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
159
|
+
data: panelProps.image
|
|
160
|
+
}),
|
|
161
|
+
metaOption: panelProps.image
|
|
162
|
+
}, {
|
|
163
|
+
key: 'defaultSource_2',
|
|
164
|
+
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
165
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
166
|
+
data: panelProps.groupName
|
|
167
|
+
}),
|
|
168
|
+
metaOption: panelProps.groupName
|
|
169
|
+
}, {
|
|
170
|
+
key: 'defaultSource_3',
|
|
171
|
+
name: (0, _locale.i18n)('SEE_ALL'),
|
|
172
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
173
|
+
data: panelProps.seeAll
|
|
174
|
+
}),
|
|
175
|
+
metaOption: panelProps.seeAll
|
|
176
|
+
}];
|
|
177
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
178
|
+
headerSize: "middle",
|
|
179
|
+
onRefresh: function onRefresh() {
|
|
180
|
+
return (0, _coreUtil.renderPreview)();
|
|
181
|
+
},
|
|
182
|
+
showActiveColor: true,
|
|
183
|
+
source: defaultSource,
|
|
184
|
+
type: "switch"
|
|
185
|
+
}), productSource);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
_this.resetHover = function () {
|
|
189
|
+
var panelProps = _this.props.panelProps;
|
|
190
|
+
|
|
191
|
+
if (panelProps.hover.open) {
|
|
192
|
+
panelProps.hover.image = __assign(__assign({}, panelProps.hover.image), JSON.parse(JSON.stringify(panelProps.image)));
|
|
193
|
+
panelProps.hover.groupName = __assign(__assign({}, panelProps.hover.groupName), JSON.parse(JSON.stringify(panelProps.groupName)));
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
RecommendSecondConfig.prototype.render = function () {
|
|
201
|
+
var _this = this;
|
|
202
|
+
|
|
203
|
+
var panelProps = this.props.panelProps;
|
|
204
|
+
|
|
205
|
+
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
206
|
+
divider: "dashed",
|
|
207
|
+
noChange: true,
|
|
208
|
+
onRefresh: function onRefresh() {
|
|
209
|
+
return (0, _coreUtil.renderPreview)();
|
|
210
|
+
},
|
|
211
|
+
source: [{
|
|
212
|
+
key: 'hoverSetting_1',
|
|
213
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
214
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
215
|
+
data: panelProps.hover.image
|
|
216
|
+
}),
|
|
217
|
+
metaOption: panelProps.hover.image
|
|
218
|
+
}, {
|
|
219
|
+
key: 'hoverSetting_2',
|
|
220
|
+
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
221
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
222
|
+
data: panelProps.hover.groupName
|
|
223
|
+
}),
|
|
224
|
+
metaOption: panelProps.hover.groupName
|
|
225
|
+
}],
|
|
226
|
+
type: "switch"
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
|
+
className: "recommend_second_conf_wrap"
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
232
|
+
divider: "bold",
|
|
233
|
+
headerSize: "large",
|
|
234
|
+
onRefresh: function onRefresh() {
|
|
235
|
+
return _this.resetHover();
|
|
236
|
+
},
|
|
237
|
+
source: [{
|
|
238
|
+
key: '1',
|
|
239
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
240
|
+
value: this.getContentPanel()
|
|
241
|
+
}, {
|
|
242
|
+
key: '2',
|
|
243
|
+
name: (0, _locale.i18n)('HOVER'),
|
|
244
|
+
value: hoverPanel,
|
|
245
|
+
metaOption: panelProps.hover,
|
|
246
|
+
toggleType: 'checkbox'
|
|
247
|
+
}]
|
|
248
|
+
}));
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
RecommendSecondConfig.defaultProps = {
|
|
252
|
+
panelProps: {}
|
|
253
|
+
};
|
|
254
|
+
return RecommendSecondConfig;
|
|
255
|
+
}(_BaseConfig["default"]);
|
|
256
|
+
|
|
257
|
+
var _default = RecommendSecondConfig;
|
|
258
|
+
exports["default"] = _default;
|
|
@@ -59,6 +59,16 @@ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/
|
|
|
59
59
|
|
|
60
60
|
var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
|
|
61
61
|
|
|
62
|
+
var _MonpayRecommend = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayRecommend"));
|
|
63
|
+
|
|
64
|
+
var _MonpayFlashDeal = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayFlashDeal"));
|
|
65
|
+
|
|
66
|
+
var _InterestProducts = _interopRequireDefault(require("../composite-comp/monpay/components/InterestProducts"));
|
|
67
|
+
|
|
68
|
+
var _Bundle = _interopRequireDefault(require("../composite-comp/monpay/components/Bundle"));
|
|
69
|
+
|
|
70
|
+
var _MerchantSales = _interopRequireDefault(require("../composite-comp/monpay/components/MerchantSales"));
|
|
71
|
+
|
|
62
72
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
63
73
|
|
|
64
74
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -113,6 +123,16 @@ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/confi
|
|
|
113
123
|
|
|
114
124
|
var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
|
|
115
125
|
|
|
126
|
+
var _MonpayRecommendConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayRecommendConfig"));
|
|
127
|
+
|
|
128
|
+
var _MonpayFlashDealConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayFlashDealConfig"));
|
|
129
|
+
|
|
130
|
+
var _InterestProductsConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/InterestProductsConfig"));
|
|
131
|
+
|
|
132
|
+
var _BundleConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/BundleConfig"));
|
|
133
|
+
|
|
134
|
+
var _MerchantSalesConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MerchantSalesConfig"));
|
|
135
|
+
|
|
116
136
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
117
137
|
|
|
118
138
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -151,6 +171,8 @@ var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito
|
|
|
151
171
|
|
|
152
172
|
var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
|
|
153
173
|
|
|
174
|
+
var _MonpayRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig"));
|
|
175
|
+
|
|
154
176
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
155
177
|
|
|
156
178
|
var _a, _b, _c; // 组件
|
|
@@ -159,17 +181,17 @@ var _a, _b, _c; // 组件
|
|
|
159
181
|
/**
|
|
160
182
|
* 渲染组件索引
|
|
161
183
|
*/
|
|
162
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
|
|
184
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
|
|
163
185
|
/**
|
|
164
186
|
* 一级配置面板索引
|
|
165
187
|
*/
|
|
166
188
|
|
|
167
189
|
exports.componentMap = componentMap;
|
|
168
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
|
|
190
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
|
|
169
191
|
/**
|
|
170
192
|
* 二级配置面板索引
|
|
171
193
|
*/
|
|
172
194
|
|
|
173
195
|
exports.configPanelMap = configPanelMap;
|
|
174
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
|
|
196
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
|
|
175
197
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/es/constants/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
|
|
6
|
+
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
8
|
LOCALE: 'magicLocale',
|
|
9
9
|
MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
|
|
@@ -146,6 +146,10 @@ var compInfoMap = {
|
|
|
146
146
|
name: 'Flash Deal',
|
|
147
147
|
icon: 'icon-flash-deal'
|
|
148
148
|
},
|
|
149
|
+
MONPAY_FLASH_DEAL: {
|
|
150
|
+
name: 'Monpay Flash Deal',
|
|
151
|
+
icon: 'icon-flash-deal'
|
|
152
|
+
},
|
|
149
153
|
GROUP_BUY: {
|
|
150
154
|
name: 'Group Buy',
|
|
151
155
|
icon: 'icon-group-buy'
|
|
@@ -178,6 +182,22 @@ var compInfoMap = {
|
|
|
178
182
|
name: 'Affiliate Recommend',
|
|
179
183
|
icon: 'icon-forms'
|
|
180
184
|
},
|
|
185
|
+
MONPAY_RECOMMEND: {
|
|
186
|
+
name: 'Monpay Recommend',
|
|
187
|
+
icon: 'icon-forms'
|
|
188
|
+
},
|
|
189
|
+
INTEREST_PRODUCTS: {
|
|
190
|
+
name: 'Interest Products',
|
|
191
|
+
icon: 'icon-interests'
|
|
192
|
+
},
|
|
193
|
+
BUNDLE: {
|
|
194
|
+
name: 'Bundle',
|
|
195
|
+
icon: 'icon-bundle'
|
|
196
|
+
},
|
|
197
|
+
MERCHANT_SALES: {
|
|
198
|
+
name: 'Merchant Sales',
|
|
199
|
+
icon: 'icon-sale'
|
|
200
|
+
},
|
|
181
201
|
DIVIDER: {
|
|
182
202
|
name: 'Divider',
|
|
183
203
|
icon: 'icon-divider-1'
|
|
@@ -310,6 +330,25 @@ var tempTypeMap = {
|
|
|
310
330
|
exports.tempTypeMap = tempTypeMap;
|
|
311
331
|
var STORE_KEY = {
|
|
312
332
|
// 是否从sf app跳转
|
|
313
|
-
IS_FROM_SF: 'isFromSf'
|
|
333
|
+
IS_FROM_SF: 'isFromSf',
|
|
334
|
+
|
|
335
|
+
/** 订单来源 */
|
|
336
|
+
SOURCE_TYPE: 'SOURCE_TYPE',
|
|
337
|
+
|
|
338
|
+
/** 确认订单商品信息 */
|
|
339
|
+
CHECKOUT_ORDER: 'orderItems'
|
|
340
|
+
};
|
|
341
|
+
/** 订单来源 */
|
|
342
|
+
|
|
343
|
+
exports.STORE_KEY = STORE_KEY;
|
|
344
|
+
var ORDER_TYPE = {
|
|
345
|
+
GWCGM: {
|
|
346
|
+
KEY: 'GWCGM',
|
|
347
|
+
VALUE: '购物车购买'
|
|
348
|
+
},
|
|
349
|
+
LJGM: {
|
|
350
|
+
KEY: 'LJGM',
|
|
351
|
+
VALUE: '商品详情购买'
|
|
352
|
+
}
|
|
314
353
|
};
|
|
315
|
-
exports.
|
|
354
|
+
exports.ORDER_TYPE = ORDER_TYPE;
|
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.monpayRecommendLayoutMobile = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -59,6 +59,14 @@ var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-
|
|
|
59
59
|
|
|
60
60
|
var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
|
|
61
61
|
|
|
62
|
+
var _layoutRecommendMobile = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-1.png"));
|
|
63
|
+
|
|
64
|
+
var _layoutRecommendMobile2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-2.png"));
|
|
65
|
+
|
|
66
|
+
var _layoutRecommendMobile3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-3.png"));
|
|
67
|
+
|
|
68
|
+
var _layoutRecommendMobile4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-4.png"));
|
|
69
|
+
|
|
62
70
|
var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
|
|
63
71
|
|
|
64
72
|
var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
|
|
@@ -81,6 +89,10 @@ var _layoutNavigationTile = _interopRequireDefault(require("../assets/images/lay
|
|
|
81
89
|
|
|
82
90
|
var _layoutNavigationNormal = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-normal.png"));
|
|
83
91
|
|
|
92
|
+
var _bannerSlideLayout = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout1.png"));
|
|
93
|
+
|
|
94
|
+
var _bannerSlideLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout2.png"));
|
|
95
|
+
|
|
84
96
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
85
97
|
|
|
86
98
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -214,6 +226,24 @@ var recommendLayoutMobile = [{
|
|
|
214
226
|
image: _layoutRecommend5["default"]
|
|
215
227
|
}];
|
|
216
228
|
exports.recommendLayoutMobile = recommendLayoutMobile;
|
|
229
|
+
var monpayRecommendLayoutMobile = [{
|
|
230
|
+
id: 'layout1',
|
|
231
|
+
name: 'layout1',
|
|
232
|
+
image: _layoutRecommendMobile["default"]
|
|
233
|
+
}, {
|
|
234
|
+
id: 'layout2',
|
|
235
|
+
name: 'layout2',
|
|
236
|
+
image: _layoutRecommendMobile2["default"]
|
|
237
|
+
}, {
|
|
238
|
+
id: 'layout3',
|
|
239
|
+
name: 'layout3',
|
|
240
|
+
image: _layoutRecommendMobile3["default"]
|
|
241
|
+
}, {
|
|
242
|
+
id: 'layout4',
|
|
243
|
+
name: 'layout4',
|
|
244
|
+
image: _layoutRecommendMobile4["default"]
|
|
245
|
+
}];
|
|
246
|
+
exports.monpayRecommendLayoutMobile = monpayRecommendLayoutMobile;
|
|
217
247
|
var recommendLayoutPc = [{
|
|
218
248
|
id: 'layout1',
|
|
219
249
|
name: 'layout1',
|
|
@@ -236,8 +266,7 @@ var affiliateLayoutMobile = [{
|
|
|
236
266
|
id: 'layout2',
|
|
237
267
|
name: 'layout2',
|
|
238
268
|
image: _layoutRecommend2["default"]
|
|
239
|
-
},
|
|
240
|
-
{
|
|
269
|
+
}, {
|
|
241
270
|
id: 'layout4',
|
|
242
271
|
name: 'layout4',
|
|
243
272
|
image: _layoutRecommend4["default"]
|
|
@@ -312,4 +341,14 @@ var pcNavigationLayout = [{
|
|
|
312
341
|
name: 'normal',
|
|
313
342
|
image: _layoutNavigationNormal["default"]
|
|
314
343
|
}];
|
|
315
|
-
exports.pcNavigationLayout = pcNavigationLayout;
|
|
344
|
+
exports.pcNavigationLayout = pcNavigationLayout;
|
|
345
|
+
var bannerSlideLayout = [{
|
|
346
|
+
id: 'layout1',
|
|
347
|
+
name: 'layout1',
|
|
348
|
+
image: _bannerSlideLayout["default"]
|
|
349
|
+
}, {
|
|
350
|
+
id: 'layout2',
|
|
351
|
+
name: 'layout2',
|
|
352
|
+
image: _bannerSlideLayout2["default"]
|
|
353
|
+
}];
|
|
354
|
+
exports.bannerSlideLayout = bannerSlideLayout;
|
|
@@ -115,7 +115,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
115
115
|
|
|
116
116
|
case 'RECOMMEND':
|
|
117
117
|
case 'AFFILIATE_RECOMMEND':
|
|
118
|
-
|
|
118
|
+
case 'MONPAY_RECOMMEND':
|
|
119
119
|
groupName = panelProps.groupName.text;
|
|
120
120
|
break;
|
|
121
121
|
|
|
@@ -529,9 +529,12 @@ function (_super) {
|
|
|
529
529
|
|
|
530
530
|
case _constants.quickMenuCode.SAVE:
|
|
531
531
|
/** 如果保存则重置为mobile,同一移动端截图 #10504010 */
|
|
532
|
-
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
|
|
532
|
+
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE); // onSave(handleParams);
|
|
533
|
+
|
|
533
534
|
|
|
534
|
-
onSave(handleParams)
|
|
535
|
+
onSave(__assign(__assign({}, handleParams), {
|
|
536
|
+
device: _constants.deviceTypeMap.PHONE
|
|
537
|
+
}));
|
|
535
538
|
break;
|
|
536
539
|
|
|
537
540
|
case _constants.quickMenuCode.MODE_PC:
|
package/es/locale/en/en.json
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SORT_BY": "Sort by",
|
|
3
|
+
"PROMOTION": "Promotion",
|
|
4
|
+
"HIGHEST_RATED": "Highest rated",
|
|
5
|
+
"MOST_SOLD": "Most sold",
|
|
6
|
+
"LOWEST_PRICE": "Lowest price",
|
|
7
|
+
"EARLIEST": "Earliest",
|
|
8
|
+
"BUY_NOW": "Buy Now",
|
|
9
|
+
"TOTAL": "Total",
|
|
10
|
+
"RECENTLY": "Recently",
|
|
11
|
+
"COUPON": "Coupon",
|
|
12
|
+
"HEADER_IMAGE": "Header Image",
|
|
13
|
+
"ACTIVITY_LABEL": "Activity Label",
|
|
14
|
+
"STOCK": "Stock",
|
|
15
|
+
"DISCOUNT_LABEL": "Discount Label",
|
|
16
|
+
"SESSION_TIME": "Session Time",
|
|
17
|
+
"NUMBER": "Number",
|
|
18
|
+
"COUNTDOWN": "Countdown",
|
|
19
|
+
"FILTER": "Filter",
|
|
20
|
+
"SOLD": "Sold",
|
|
21
|
+
"EVALUATION_SCORE": "Evaluation Score",
|
|
22
|
+
"SEARCH_BAR_KEYWORD": "Search Bar Keyword",
|
|
2
23
|
"BOX_BACKGROUND": "Box Background",
|
|
3
24
|
"BOX_COLOR": "Box Color",
|
|
4
25
|
"PROGRESS_BAR_COLOR": "Progress Bar Color",
|
package/es/locale/es/es.json
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SORT_BY": "Sort by",
|
|
3
|
+
"PROMOTION": "Promotion",
|
|
4
|
+
"HIGHEST_RATED": "Highest rated",
|
|
5
|
+
"MOST_SOLD": "Most sold",
|
|
6
|
+
"LOWEST_PRICE": "Lowest price",
|
|
7
|
+
"EARLIEST": "Earliest",
|
|
8
|
+
"BUY_NOW": "Buy Now",
|
|
9
|
+
"TOTAL": "Total",
|
|
10
|
+
"RECENTLY": "Recently",
|
|
11
|
+
"COUPON": "Coupon",
|
|
12
|
+
"HEADER_IMAGE": "Header Image",
|
|
13
|
+
"ACTIVITY_LABEL": "Activity Label",
|
|
14
|
+
"STOCK": "Stock",
|
|
15
|
+
"DISCOUNT_LABEL": "Discount Label",
|
|
16
|
+
"SESSION_TIME": "Session Time",
|
|
17
|
+
"NUMBER": "Number",
|
|
18
|
+
"COUNTDOWN": "Countdown",
|
|
19
|
+
"FILTER": "Filter",
|
|
20
|
+
"SOLD": "Sold",
|
|
21
|
+
"EVALUATION_SCORE": "Evaluation Score",
|
|
22
|
+
"SEARCH_BAR_KEYWORD": "Search Bar Keyword",
|
|
2
23
|
"BOX_BACKGROUND": "Box Background",
|
|
3
24
|
"BOX_COLOR": "Box Color",
|
|
4
25
|
"PROGRESS_BAR_COLOR": "Progress Bar Color",
|
package/es/locale/id/id.json
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SORT_BY": "Sort by",
|
|
3
|
+
"PROMOTION": "Promotion",
|
|
4
|
+
"HIGHEST_RATED": "Highest rated",
|
|
5
|
+
"MOST_SOLD": "Most sold",
|
|
6
|
+
"LOWEST_PRICE": "Lowest price",
|
|
7
|
+
"EARLIEST": "Earliest",
|
|
8
|
+
"BUY_NOW": "Buy Now",
|
|
9
|
+
"TOTAL": "Total",
|
|
10
|
+
"RECENTLY": "Recently",
|
|
11
|
+
"COUPON": "Coupon",
|
|
12
|
+
"HEADER_IMAGE": "Header Image",
|
|
13
|
+
"ACTIVITY_LABEL": "Activity Label",
|
|
14
|
+
"STOCK": "Stock",
|
|
15
|
+
"DISCOUNT_LABEL": "Discount Label",
|
|
16
|
+
"SESSION_TIME": "Session Time",
|
|
17
|
+
"NUMBER": "Number",
|
|
18
|
+
"COUNTDOWN": "Countdown",
|
|
19
|
+
"FILTER": "Filter",
|
|
20
|
+
"SOLD": "Sold",
|
|
21
|
+
"EVALUATION_SCORE": "Evaluation Score",
|
|
22
|
+
"SEARCH_BAR_KEYWORD": "Search Bar Keyword",
|
|
2
23
|
"BOX_BACKGROUND": "Box Background",
|
|
3
24
|
"BOX_COLOR": "Box Color",
|
|
4
25
|
"PROGRESS_BAR_COLOR": "Progress Bar Color",
|
package/es/utils/dateUtil.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.formatDateTime = exports.formatDateMinute = exports.formatDate = void 0;
|
|
7
7
|
exports.formatDayMonth = formatDayMonth;
|
|
8
|
+
exports.formatDayMonthTime = formatDayMonthTime;
|
|
8
9
|
exports.newDate = void 0;
|
|
9
10
|
|
|
10
11
|
var _moment = _interopRequireDefault(require("moment"));
|
|
@@ -66,5 +67,17 @@ function formatDayMonth(date, fmt) {
|
|
|
66
67
|
return '';
|
|
67
68
|
}
|
|
68
69
|
|
|
70
|
+
return (0, _moment["default"])(newDate(date)).format(fmt);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function formatDayMonthTime(date, fmt) {
|
|
74
|
+
if (fmt === void 0) {
|
|
75
|
+
fmt = 'DD MMM HH:mm';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (!date) {
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
|
|
69
82
|
return (0, _moment["default"])(newDate(date)).format(fmt);
|
|
70
83
|
}
|
|
Binary file
|