@fonixtree/magic-design 1.0.67 → 1.0.69
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/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +62 -6
- package/es/assets/fonts/magic-box-iconfont.css.bak +35 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +36 -2
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/assets/less/button.less +5 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/common/AffiliateProductModal/index.js +582 -0
- package/es/common/AffiliateProductModal/index.less +146 -0
- package/es/common/Button/index.less +0 -1
- package/es/common/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/CountDown/index.js +20 -11
- package/es/common/CropperModal/index.js +126 -0
- package/es/common/CropperModal/index.less +29 -0
- package/es/common/GroupList/index.js +7 -2
- package/es/common/ImagePicker/index.js +1 -3
- package/es/common/LinkModal/CouponTable/index.js +3 -3
- package/es/common/LinkModal/CustomTable/index.js +1 -0
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +38 -3
- package/es/common/ProductSource/index.js +59 -18
- package/es/common/UrlPicker/AnchorModal/index.js +170 -0
- package/es/common/UrlPicker/AnchorModal/index.less +21 -0
- package/es/common/UrlPicker/index.js +52 -9
- package/es/common/index.js +24 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/index.js +11 -15
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ProductItem/index.js +22 -20
- package/es/composite-comp/common/components/ProductItem/index.less +2 -12
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/es/composite-comp/dito/components/Orders/index.js +84 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +345 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.less +82 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +587 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +133 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -5
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/es/constants/component-types.js +45 -3
- package/es/constants/index.js +74 -5
- package/es/constants/layout.js +48 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +84 -17
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/ConfigPanel/index.js +14 -3
- package/es/core/Designer/FonixtreeGpt/index.js +222 -29
- package/es/core/Designer/PageCompList/index.js +6 -5
- package/es/core/Designer/QuickMenuBar/index.js +11 -5
- package/es/core/Designer/QuickMenuBar/index.less +4 -0
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/es/core/Designer/ToolBarModal/index.js +68 -22
- package/es/core/Designer/ToolBarModal/index.less +3 -2
- package/es/core/Designer/index.js +26 -2
- package/es/core/Renderer/index.js +76 -29
- package/es/decorator/compositeDecorator.js +33 -6
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +17 -3
- package/es/locale/es/es.json +17 -3
- package/es/locale/id/id.json +17 -3
- package/es/meta-comp/components/Image/index.js +31 -25
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/index.js +4 -1
- package/es/meta-comp/components/Text/index.less +8 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/es/mobx/Frame.js +17 -2
- package/es/mobx/UserState.js +144 -0
- package/es/mobx/index.js +9 -3
- package/es/utils/androidUtil.js +13 -2
- package/es/utils/businessUtil.js +25 -3
- package/es/utils/commonUtil.js +177 -22
- package/es/utils/coreUtil.js +45 -2
- package/es/utils/currencyUtil.js +9 -2
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +62 -6
- package/lib/assets/fonts/magic-box-iconfont.css.bak +35 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +36 -2
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/assets/less/button.less +5 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/common/AffiliateProductModal/index.js +582 -0
- package/lib/common/AffiliateProductModal/index.less +146 -0
- package/lib/common/Button/index.less +0 -1
- package/lib/common/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/CountDown/index.js +20 -11
- package/lib/common/CropperModal/index.js +126 -0
- package/lib/common/CropperModal/index.less +29 -0
- package/lib/common/GroupList/index.js +7 -2
- package/lib/common/ImagePicker/index.js +1 -3
- package/lib/common/LinkModal/CouponTable/index.js +3 -3
- package/lib/common/LinkModal/CustomTable/index.js +1 -0
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +38 -3
- package/lib/common/ProductSource/index.js +59 -18
- package/lib/common/UrlPicker/AnchorModal/index.js +170 -0
- package/lib/common/UrlPicker/AnchorModal/index.less +21 -0
- package/lib/common/UrlPicker/index.js +52 -9
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +22 -20
- package/lib/composite-comp/common/components/ProductItem/index.less +2 -12
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/lib/composite-comp/dito/components/Orders/index.js +84 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +345 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +82 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +587 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +133 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -5
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/lib/constants/component-types.js +45 -3
- package/lib/constants/index.js +74 -5
- package/lib/constants/layout.js +48 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +84 -17
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/ConfigPanel/index.js +14 -3
- package/lib/core/Designer/FonixtreeGpt/index.js +222 -29
- package/lib/core/Designer/PageCompList/index.js +6 -5
- package/lib/core/Designer/QuickMenuBar/index.js +11 -5
- package/lib/core/Designer/QuickMenuBar/index.less +4 -0
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/lib/core/Designer/ToolBarModal/index.js +68 -22
- package/lib/core/Designer/ToolBarModal/index.less +3 -2
- package/lib/core/Designer/index.js +26 -2
- package/lib/core/Renderer/index.js +76 -29
- package/lib/decorator/compositeDecorator.js +33 -6
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +17 -3
- package/lib/locale/es/es.json +17 -3
- package/lib/locale/id/id.json +17 -3
- package/lib/meta-comp/components/Image/index.js +31 -25
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/index.js +4 -1
- package/lib/meta-comp/components/Text/index.less +8 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/lib/mobx/Frame.js +17 -2
- package/lib/mobx/UserState.js +144 -0
- package/lib/mobx/index.js +9 -3
- package/lib/utils/androidUtil.js +13 -2
- package/lib/utils/businessUtil.js +25 -3
- package/lib/utils/commonUtil.js +177 -22
- package/lib/utils/coreUtil.js +45 -2
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +2 -1
|
@@ -87,7 +87,11 @@ function compositeDecorator(WrappedComponent) {
|
|
|
87
87
|
}; // 复合组件点击事件
|
|
88
88
|
|
|
89
89
|
_this.onCompositeCompClick = function (event) {
|
|
90
|
-
|
|
90
|
+
if (window.magicDesign.mode === 'renderer') {
|
|
91
|
+
return;
|
|
92
|
+
} // 触发左侧楼层的滚动
|
|
93
|
+
|
|
94
|
+
|
|
91
95
|
if (document.getElementById("card" + _this.props.nodeData.id)) {
|
|
92
96
|
document.getElementById("card" + _this.props.nodeData.id).scrollIntoView({
|
|
93
97
|
behavior: 'smooth'
|
|
@@ -115,19 +119,20 @@ function compositeDecorator(WrappedComponent) {
|
|
|
115
119
|
device = _b.device,
|
|
116
120
|
compWidth = _b.compWidth;
|
|
117
121
|
var zIndex = '0';
|
|
122
|
+
var position = 'relative';
|
|
118
123
|
|
|
119
|
-
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
|
|
124
|
+
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'ORDERS') {
|
|
120
125
|
zIndex = '1';
|
|
121
126
|
} // 解决pc导航hover上去,类目被下面组件遮罩的问题
|
|
122
127
|
|
|
123
128
|
|
|
124
|
-
if (nodeData.type === 'PC_NAVIGATION') {
|
|
129
|
+
if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION') {
|
|
125
130
|
zIndex = '2';
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
var wrapStyle = {
|
|
129
134
|
border: 'none',
|
|
130
|
-
position:
|
|
135
|
+
position: position,
|
|
131
136
|
zIndex: zIndex,
|
|
132
137
|
margin: '0 auto'
|
|
133
138
|
}; // 复合组件内边距
|
|
@@ -153,6 +158,19 @@ function compositeDecorator(WrappedComponent) {
|
|
|
153
158
|
|
|
154
159
|
if (device === _constants.deviceTypeMap.PC && compWidth && !((_a = spacing === null || spacing === void 0 ? void 0 : spacing.pc) === null || _a === void 0 ? void 0 : _a.fillUp)) {
|
|
155
160
|
wrapStyle.width = compWidth;
|
|
161
|
+
} // 如果是菜单 则需要设为fixed
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
if (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION') {
|
|
165
|
+
wrapStyle.position = 'absolute';
|
|
166
|
+
wrapStyle.left = 0;
|
|
167
|
+
wrapStyle.width = '100%';
|
|
168
|
+
|
|
169
|
+
if (nodeData.type === 'HEAD_NAVIGATION') {
|
|
170
|
+
wrapStyle.top = 0;
|
|
171
|
+
} else {
|
|
172
|
+
wrapStyle.bottom = 0;
|
|
173
|
+
}
|
|
156
174
|
}
|
|
157
175
|
|
|
158
176
|
return wrapStyle;
|
|
@@ -192,8 +210,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
192
210
|
};
|
|
193
211
|
|
|
194
212
|
_this.getWrapStyle = function () {
|
|
195
|
-
var mode = window.magicDesign.mode;
|
|
196
|
-
|
|
213
|
+
var mode = window.magicDesign.mode;
|
|
197
214
|
var style = {
|
|
198
215
|
position: 'relative',
|
|
199
216
|
zIndex: '1'
|
|
@@ -228,6 +245,15 @@ function compositeDecorator(WrappedComponent) {
|
|
|
228
245
|
});
|
|
229
246
|
};
|
|
230
247
|
|
|
248
|
+
_this.getOuterWrapStyle = function () {
|
|
249
|
+
var nodeData = _this.props.nodeData;
|
|
250
|
+
|
|
251
|
+
if (window.magicDesign.designMode && (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION')) {
|
|
252
|
+
var element = document.querySelector('.phone_view_area .device_border') || document.querySelector('#root .render_wrap');
|
|
253
|
+
element.style.position = 'relative';
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
231
257
|
return _this;
|
|
232
258
|
}
|
|
233
259
|
|
|
@@ -240,6 +266,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
240
266
|
hoveredFloor: _mobx.store.hoveredFloor
|
|
241
267
|
});
|
|
242
268
|
});
|
|
269
|
+
this.getOuterWrapStyle();
|
|
243
270
|
};
|
|
244
271
|
|
|
245
272
|
Wrapper.prototype.componentWillUnmount = function () {
|
|
@@ -95,7 +95,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
95
95
|
GAData = _c.GAData;
|
|
96
96
|
(0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
|
|
97
97
|
elementId: data.id,
|
|
98
|
-
elementName: data.text || GAData.groupName
|
|
98
|
+
elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
|
|
99
99
|
}));
|
|
100
100
|
return;
|
|
101
101
|
} // 组织冒泡
|
package/lib/locale/en/en.json
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SUBMIT": "Submit",
|
|
3
|
+
"CANCELLED": "Cancelled",
|
|
4
|
+
"DONE": "Done",
|
|
5
|
+
"TO_RECEIVE": "To Receive",
|
|
6
|
+
"TO_SHIP": "To ship",
|
|
7
|
+
"TO_PAY": "To Pay",
|
|
8
|
+
"VIEW_ALL_ORDERS": "View All Orders",
|
|
9
|
+
"ORDERS": "Orders",
|
|
10
|
+
"RECENTLY_VIEWED": "Recently Viewed",
|
|
11
|
+
"VOUCHERS": "Vouchers",
|
|
12
|
+
"STORES": "Stores",
|
|
13
|
+
"WISHLIST": "Wishlist",
|
|
14
|
+
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
|
15
|
+
"ADD": "Add",
|
|
16
|
+
"LOGIN_OR_REGISTER": "Login or Register",
|
|
17
|
+
"ANCHOR": "Anchor",
|
|
2
18
|
"PUSH": "Push",
|
|
3
19
|
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
20
|
"DISPLAY_PAGE": "Display page",
|
|
@@ -17,7 +33,6 @@
|
|
|
17
33
|
"DARK": "Dark",
|
|
18
34
|
"LIGHT": "Light",
|
|
19
35
|
"URL_IMAGE": "url image",
|
|
20
|
-
"AI_IMAGE": "AI Image",
|
|
21
36
|
"IMAGE_URL": "Image URL",
|
|
22
37
|
"UPLOAD": "Upload",
|
|
23
38
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -62,7 +77,7 @@
|
|
|
62
77
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
63
78
|
"ADD_AREA": "Add Area",
|
|
64
79
|
"CLICKABLE_AREA": "Clickable Area",
|
|
65
|
-
"VOUCHER_SUCCESS": "
|
|
80
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
66
81
|
"NAVIGATION_NAME": "Navigation Name",
|
|
67
82
|
"ADD_NAVIGATION": "Add Navigation",
|
|
68
83
|
"SAVE": "Save",
|
|
@@ -114,7 +129,6 @@
|
|
|
114
129
|
"MOVE_DOWN": "Move Down",
|
|
115
130
|
"COPY": "Copy",
|
|
116
131
|
"DELETE": "Delete",
|
|
117
|
-
"DONE": "Done",
|
|
118
132
|
"ADD_COMPONENT": "Add Component",
|
|
119
133
|
"ALL": "ALL",
|
|
120
134
|
"HOT": "Hot",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SUBMIT": "Submit",
|
|
3
|
+
"CANCELLED": "Cancelled",
|
|
4
|
+
"DONE": "Hecho",
|
|
5
|
+
"TO_RECEIVE": "To Receive",
|
|
6
|
+
"TO_SHIP": "To ship",
|
|
7
|
+
"TO_PAY": "To Pay",
|
|
8
|
+
"VIEW_ALL_ORDERS": "View All Orders",
|
|
9
|
+
"ORDERS": "Orders",
|
|
10
|
+
"RECENTLY_VIEWED": "Recently Viewed",
|
|
11
|
+
"VOUCHERS": "Vouchers",
|
|
12
|
+
"STORES": "Stores",
|
|
13
|
+
"WISHLIST": "Wishlist",
|
|
14
|
+
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
|
15
|
+
"ADD": "Add",
|
|
16
|
+
"LOGIN_OR_REGISTER": "Login or Register",
|
|
17
|
+
"ANCHOR": "Anchor",
|
|
2
18
|
"PUSH": "Push",
|
|
3
19
|
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
20
|
"DISPLAY_PAGE": "Display page",
|
|
@@ -17,7 +33,6 @@
|
|
|
17
33
|
"DARK": "Dark",
|
|
18
34
|
"LIGHT": "Light",
|
|
19
35
|
"URL_IMAGE": "url image",
|
|
20
|
-
"AI_IMAGE": "AI Image",
|
|
21
36
|
"IMAGE_URL": "Image URL",
|
|
22
37
|
"UPLOAD": "Upload",
|
|
23
38
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -62,7 +77,7 @@
|
|
|
62
77
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
63
78
|
"ADD_AREA": "Add Area",
|
|
64
79
|
"CLICKABLE_AREA": "Clickable Area",
|
|
65
|
-
"VOUCHER_SUCCESS": "
|
|
80
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
66
81
|
"NAVIGATION_NAME": "Navigation Name",
|
|
67
82
|
"ADD_NAVIGATION": "Add Navigation",
|
|
68
83
|
"SAVE": "Guardar",
|
|
@@ -114,7 +129,6 @@
|
|
|
114
129
|
"MOVE_DOWN": "Mover hacia abajo",
|
|
115
130
|
"COPY": "Copiar",
|
|
116
131
|
"DELETE": "Eliminar",
|
|
117
|
-
"DONE": "Hecho",
|
|
118
132
|
"ADD_COMPONENT": "Agregar Componente",
|
|
119
133
|
"ALL": "TODO",
|
|
120
134
|
"HOT": "Caliente",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"SUBMIT": "Submit",
|
|
3
|
+
"CANCELLED": "Cancelled",
|
|
4
|
+
"DONE": "Done",
|
|
5
|
+
"TO_RECEIVE": "To Receive",
|
|
6
|
+
"TO_SHIP": "To ship",
|
|
7
|
+
"TO_PAY": "To Pay",
|
|
8
|
+
"VIEW_ALL_ORDERS": "View All Orders",
|
|
9
|
+
"ORDERS": "Orders",
|
|
10
|
+
"RECENTLY_VIEWED": "Recently Viewed",
|
|
11
|
+
"VOUCHERS": "Vouchers",
|
|
12
|
+
"STORES": "Stores",
|
|
13
|
+
"WISHLIST": "Wishlist",
|
|
14
|
+
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
|
15
|
+
"ADD": "Add",
|
|
16
|
+
"LOGIN_OR_REGISTER": "Login or Register",
|
|
17
|
+
"ANCHOR": "Anchor",
|
|
2
18
|
"PUSH": "Push",
|
|
3
19
|
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
20
|
"DISPLAY_PAGE": "Display page",
|
|
@@ -17,7 +33,6 @@
|
|
|
17
33
|
"DARK": "Dark",
|
|
18
34
|
"LIGHT": "Light",
|
|
19
35
|
"URL_IMAGE": "url image",
|
|
20
|
-
"AI_IMAGE": "AI Image",
|
|
21
36
|
"IMAGE_URL": "Image URL",
|
|
22
37
|
"UPLOAD": "Upload",
|
|
23
38
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -62,7 +77,7 @@
|
|
|
62
77
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
63
78
|
"ADD_AREA": "Add Area",
|
|
64
79
|
"CLICKABLE_AREA": "Clickable Area",
|
|
65
|
-
"VOUCHER_SUCCESS": "
|
|
80
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
66
81
|
"NAVIGATION_NAME": "Navigation Name",
|
|
67
82
|
"ADD_NAVIGATION": "Add Navigation",
|
|
68
83
|
"SAVE": "Save",
|
|
@@ -114,7 +129,6 @@
|
|
|
114
129
|
"MOVE_DOWN": "Move Down",
|
|
115
130
|
"COPY": "Copy",
|
|
116
131
|
"DELETE": "Delete",
|
|
117
|
-
"DONE": "Done",
|
|
118
132
|
"ADD_COMPONENT": "Add Component",
|
|
119
133
|
"ALL": "ALL",
|
|
120
134
|
"HOT": "Hot",
|
|
@@ -79,19 +79,21 @@ function (_super) {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
_this.getStyle = function () {
|
|
82
|
-
var _a
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
var _a, _b;
|
|
83
|
+
|
|
84
|
+
var _c = _this.props,
|
|
85
|
+
data = _c.data,
|
|
86
|
+
hoverState = _c.hoverState,
|
|
87
|
+
maxHeight = _c.maxHeight,
|
|
88
|
+
maxWidth = _c.maxWidth,
|
|
89
|
+
minHeight = _c.minHeight,
|
|
90
|
+
minWidth = _c.minWidth,
|
|
91
|
+
limitWidthHeight = _c.limitWidthHeight,
|
|
92
|
+
scale = _c.scale;
|
|
91
93
|
var hoverImgSrc = _this.state.hoverImgSrc;
|
|
92
94
|
var obj = {};
|
|
93
95
|
|
|
94
|
-
if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
96
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
95
97
|
// return { transform: `scale(${data.hover.magnification})` };
|
|
96
98
|
obj.transform = "scale(" + data.hover.magnification + ")";
|
|
97
99
|
obj.zIndex = '1';
|
|
@@ -133,11 +135,13 @@ function (_super) {
|
|
|
133
135
|
};
|
|
134
136
|
|
|
135
137
|
_this.mouseEnterImg = function () {
|
|
136
|
-
var _a
|
|
137
|
-
data = _a.data,
|
|
138
|
-
isBackground = _a.isBackground;
|
|
138
|
+
var _a;
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
var _b = _this.props,
|
|
141
|
+
data = _b.data,
|
|
142
|
+
isBackground = _b.isBackground;
|
|
143
|
+
|
|
144
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
|
|
141
145
|
_this.setState({
|
|
142
146
|
hoverImgSrc: true
|
|
143
147
|
});
|
|
@@ -145,11 +149,13 @@ function (_super) {
|
|
|
145
149
|
};
|
|
146
150
|
|
|
147
151
|
_this.mouseLeaveImg = function () {
|
|
148
|
-
var _a
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
var _a;
|
|
153
|
+
|
|
154
|
+
var _b = _this.props,
|
|
155
|
+
data = _b.data,
|
|
156
|
+
isBackground = _b.isBackground;
|
|
151
157
|
|
|
152
|
-
if (data.hover.open && !isBackground) {
|
|
158
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
|
|
153
159
|
_this.setState({
|
|
154
160
|
hoverImgSrc: false
|
|
155
161
|
});
|
|
@@ -162,19 +168,19 @@ function (_super) {
|
|
|
162
168
|
Image.prototype.render = function () {
|
|
163
169
|
var _this = this;
|
|
164
170
|
|
|
165
|
-
var _a, _b;
|
|
171
|
+
var _a, _b, _c, _d;
|
|
166
172
|
|
|
167
|
-
var
|
|
168
|
-
data =
|
|
169
|
-
isBackground =
|
|
170
|
-
hoverState =
|
|
171
|
-
notNeedLazy =
|
|
173
|
+
var _e = this.props,
|
|
174
|
+
data = _e.data,
|
|
175
|
+
isBackground = _e.isBackground,
|
|
176
|
+
hoverState = _e.hoverState,
|
|
177
|
+
notNeedLazy = _e.notNeedLazy;
|
|
172
178
|
var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
|
|
173
179
|
// console.log('--metaImage ', this.props);
|
|
174
180
|
|
|
175
181
|
var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
|
|
176
182
|
|
|
177
|
-
if (data.hover.open && data.hover.backgroundType === 'new' && (hoverState || hoverImgSrc)) {
|
|
183
|
+
if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
|
|
178
184
|
srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
|
|
179
185
|
} // if (window.magicDesign.isShop && srcImg?.includes('ecommerce/static')) {
|
|
180
186
|
// srcImg = srcImg.replace('ecommerce/static', 'static');
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextAlignStyleAttributor = exports.TextAlignStyle = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextAlignStyleAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextAlignStyleAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextAlignStyleAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextAlignStyleAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextAlignStyleAttributor = TextAlignStyleAttributor;
|
|
53
|
+
var TextAlignStyle = new TextAlignStyleAttributor('text-align', 'text-align', {
|
|
54
|
+
scope: Parchment.Scope.BLOCK_BLOT
|
|
55
|
+
});
|
|
56
|
+
exports.TextAlignStyle = TextAlignStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-align', TextAlignStyle, true);
|
|
@@ -19,6 +19,8 @@ require("./formats/textDecorationColor");
|
|
|
19
19
|
|
|
20
20
|
require("./formats/fontStyle");
|
|
21
21
|
|
|
22
|
+
require("./formats/textAlign");
|
|
23
|
+
|
|
22
24
|
require("./formats/listStyleTypeStyle");
|
|
23
25
|
|
|
24
26
|
require("./formats/textDecorationStyle");
|
|
@@ -169,7 +171,8 @@ function (_super) {
|
|
|
169
171
|
setTimeout(function () {
|
|
170
172
|
_mobx.frameStore.setState({
|
|
171
173
|
textModalState: {
|
|
172
|
-
quillRef: _this.quillRef
|
|
174
|
+
quillRef: _this.quillRef,
|
|
175
|
+
close: _this.onEditorClose
|
|
173
176
|
}
|
|
174
177
|
});
|
|
175
178
|
}, 100);
|
|
@@ -202,7 +202,7 @@ function (_super) {
|
|
|
202
202
|
function ImageConfig() {
|
|
203
203
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
204
204
|
|
|
205
|
-
_this.onClick = function (
|
|
205
|
+
_this.onClick = function () {// console.log(event);
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
_this.getImg = function (v, way) {
|
|
@@ -320,7 +320,8 @@ function (_super) {
|
|
|
320
320
|
needHover = _a.needHover,
|
|
321
321
|
needClickArea = _a.needClickArea,
|
|
322
322
|
needURL = _a.needURL,
|
|
323
|
-
recommendImgSize = _a.recommendImgSize
|
|
323
|
+
recommendImgSize = _a.recommendImgSize,
|
|
324
|
+
onlySpecificCode = _a.onlySpecificCode;
|
|
324
325
|
var selectImg = this.getSelectedImg(data);
|
|
325
326
|
|
|
326
327
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
@@ -348,51 +349,10 @@ function (_super) {
|
|
|
348
349
|
|
|
349
350
|
_this.selfRender();
|
|
350
351
|
},
|
|
352
|
+
onlySpecificCode: onlySpecificCode,
|
|
351
353
|
value: data.content.clickUrl
|
|
352
354
|
})));
|
|
353
355
|
|
|
354
|
-
var HoverSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
355
|
-
split: data.hover.backgroundType === 'new',
|
|
356
|
-
title: (0, _locale.i18n)('IMAGE')
|
|
357
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
358
|
-
className: "hoverSelect",
|
|
359
|
-
onChange: function onChange(v) {
|
|
360
|
-
data.hover.backgroundType = v;
|
|
361
|
-
|
|
362
|
-
_this.selfRender();
|
|
363
|
-
},
|
|
364
|
-
size: "large",
|
|
365
|
-
value: data.hover.backgroundType
|
|
366
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
367
|
-
value: "enlarge"
|
|
368
|
-
}, (0, _locale.i18n)('ENLARGE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
369
|
-
value: "new"
|
|
370
|
-
}, (0, _locale.i18n)('NEW_IMAGE')))), data.hover.backgroundType === 'enlarge' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
371
|
-
title: (0, _locale.i18n)('MAGNIFICATION')
|
|
372
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
373
|
-
inputType: "float",
|
|
374
|
-
maxVal: 3,
|
|
375
|
-
minVal: 1,
|
|
376
|
-
onChange: function onChange(v) {
|
|
377
|
-
data.hover.magnification = v.count;
|
|
378
|
-
|
|
379
|
-
_this.selfRender();
|
|
380
|
-
},
|
|
381
|
-
step: 0.25,
|
|
382
|
-
value: {
|
|
383
|
-
count: data.hover.magnification
|
|
384
|
-
}
|
|
385
|
-
})), data.hover.backgroundType === 'new' && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
386
|
-
imageSelectedWay: data.hover.imageSelectedWay || {
|
|
387
|
-
pc: '',
|
|
388
|
-
mobile: ''
|
|
389
|
-
},
|
|
390
|
-
onChange: function onChange(v, way) {
|
|
391
|
-
return _this.getImgHoverUrl(v, way);
|
|
392
|
-
},
|
|
393
|
-
value: (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl
|
|
394
|
-
}));
|
|
395
|
-
|
|
396
356
|
var imageSource = [{
|
|
397
357
|
key: '1',
|
|
398
358
|
name: (0, _locale.i18n)('CONTENT'),
|
|
@@ -400,6 +360,50 @@ function (_super) {
|
|
|
400
360
|
}];
|
|
401
361
|
|
|
402
362
|
if (needHover) {
|
|
363
|
+
console.log('needHover', needHover);
|
|
364
|
+
|
|
365
|
+
var HoverSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
366
|
+
split: data.hover.backgroundType === 'new',
|
|
367
|
+
title: (0, _locale.i18n)('IMAGE')
|
|
368
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
369
|
+
className: "hoverSelect",
|
|
370
|
+
onChange: function onChange(v) {
|
|
371
|
+
data.hover.backgroundType = v;
|
|
372
|
+
|
|
373
|
+
_this.selfRender();
|
|
374
|
+
},
|
|
375
|
+
size: "large",
|
|
376
|
+
value: data.hover.backgroundType
|
|
377
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
378
|
+
value: "enlarge"
|
|
379
|
+
}, (0, _locale.i18n)('ENLARGE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
380
|
+
value: "new"
|
|
381
|
+
}, (0, _locale.i18n)('NEW_IMAGE')))), data.hover.backgroundType === 'enlarge' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
382
|
+
title: (0, _locale.i18n)('MAGNIFICATION')
|
|
383
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
384
|
+
inputType: "float",
|
|
385
|
+
maxVal: 3,
|
|
386
|
+
minVal: 1,
|
|
387
|
+
onChange: function onChange(v) {
|
|
388
|
+
data.hover.magnification = v.count;
|
|
389
|
+
|
|
390
|
+
_this.selfRender();
|
|
391
|
+
},
|
|
392
|
+
step: 0.25,
|
|
393
|
+
value: {
|
|
394
|
+
count: data.hover.magnification
|
|
395
|
+
}
|
|
396
|
+
})), data.hover.backgroundType === 'new' && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
397
|
+
imageSelectedWay: data.hover.imageSelectedWay || {
|
|
398
|
+
pc: '',
|
|
399
|
+
mobile: ''
|
|
400
|
+
},
|
|
401
|
+
onChange: function onChange(v, way) {
|
|
402
|
+
return _this.getImgHoverUrl(v, way);
|
|
403
|
+
},
|
|
404
|
+
value: (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl
|
|
405
|
+
}));
|
|
406
|
+
|
|
403
407
|
imageSource.push({
|
|
404
408
|
key: '5',
|
|
405
409
|
name: (0, _locale.i18n)('HOVER'),
|
package/lib/mobx/Frame.js
CHANGED
|
@@ -42,13 +42,28 @@ function () {
|
|
|
42
42
|
onOk: function onOk() {},
|
|
43
43
|
onCancel: function onCancel() {}
|
|
44
44
|
};
|
|
45
|
+
/* 移动端 Modal弹窗 */
|
|
46
|
+
|
|
47
|
+
this.modalState = {
|
|
48
|
+
visible: false,
|
|
49
|
+
hideCancel: true,
|
|
50
|
+
title: '',
|
|
51
|
+
message: '',
|
|
52
|
+
messageImg: '',
|
|
53
|
+
confirmText: 'YES',
|
|
54
|
+
cancelText: 'NO',
|
|
55
|
+
onConfirm: function onConfirm() {},
|
|
56
|
+
onCancel: function onCancel() {}
|
|
57
|
+
};
|
|
45
58
|
this.textModalState = {
|
|
46
59
|
visible: false,
|
|
47
|
-
onOk: function onOk() {}
|
|
60
|
+
onOk: function onOk() {},
|
|
61
|
+
close: function close() {}
|
|
48
62
|
};
|
|
49
63
|
(0, _mobx.makeObservable)(this, {
|
|
50
64
|
confirmState: _mobx.observable,
|
|
51
|
-
textModalState: _mobx.observable
|
|
65
|
+
textModalState: _mobx.observable,
|
|
66
|
+
modalState: _mobx.observable
|
|
52
67
|
});
|
|
53
68
|
}
|
|
54
69
|
/** 修改状态 */
|