@fonixtree/magic-design 1.0.65 → 1.0.66
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 +6 -62
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
- 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 +2 -36
- package/es/assets/less/button.less +0 -5
- package/es/assets/less/cylon-antd.less +1686 -7246
- package/es/assets/less/font.less +0 -22
- package/es/common/Button/index.less +1 -0
- package/es/common/CountDown/index.js +11 -20
- package/es/common/GroupList/index.js +2 -7
- package/es/common/ImagePicker/index.js +3 -1
- package/es/common/LinkModal/CouponTable/index.js +3 -3
- package/es/common/LinkModal/CustomTable/index.js +0 -1
- package/es/common/LinkModal/FunctionTable/index.js +1 -2
- package/es/common/LinkModal/index.js +2 -14
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +3 -38
- package/es/common/ProductSource/index.js +18 -59
- package/es/common/UrlPicker/index.js +10 -62
- package/es/common/index.js +0 -24
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/es/composite-comp/bol/components/Wallet/index.js +15 -11
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/es/composite-comp/common/components/ProductItem/index.js +20 -22
- package/es/composite-comp/common/components/ProductItem/index.less +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/es/constants/component-types.js +3 -45
- package/es/constants/index.js +5 -74
- package/es/constants/layout.js +1 -48
- package/es/core/Designer/ChatRobot/index.js +17 -84
- package/es/core/Designer/ChatRobot/index.less +28 -69
- package/es/core/Designer/ConfigPanel/index.js +3 -14
- package/es/core/Designer/FonixtreeGpt/index.js +29 -222
- package/es/core/Designer/PageCompList/index.js +5 -6
- package/es/core/Designer/QuickMenuBar/index.js +5 -11
- package/es/core/Designer/QuickMenuBar/index.less +0 -4
- package/es/core/Designer/RenderHtml/index.js +15 -18
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/es/core/Designer/ToolBarModal/index.js +27 -69
- package/es/core/Designer/ToolBarModal/index.less +2 -3
- package/es/core/Designer/index.js +2 -26
- package/es/core/Renderer/index.js +29 -74
- package/es/decorator/compositeDecorator.js +6 -33
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +3 -17
- package/es/locale/es/es.json +3 -17
- package/es/locale/id/id.json +3 -17
- package/es/meta-comp/components/Image/index.js +25 -31
- package/es/meta-comp/components/Text/index.js +1 -4
- package/es/meta-comp/components/Text/index.less +0 -8
- package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/es/mobx/Frame.js +2 -17
- package/es/mobx/index.js +3 -9
- package/es/utils/androidUtil.js +2 -13
- package/es/utils/businessUtil.js +3 -25
- package/es/utils/commonUtil.js +22 -177
- package/es/utils/coreUtil.js +2 -45
- package/es/utils/currencyUtil.js +2 -9
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +6 -62
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
- 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 +2 -36
- package/lib/assets/less/button.less +0 -5
- package/lib/assets/less/cylon-antd.less +1686 -7246
- package/lib/assets/less/font.less +0 -22
- package/lib/common/Button/index.less +1 -0
- package/lib/common/CountDown/index.js +11 -20
- package/lib/common/GroupList/index.js +2 -7
- package/lib/common/ImagePicker/index.js +3 -1
- package/lib/common/LinkModal/CouponTable/index.js +3 -3
- package/lib/common/LinkModal/CustomTable/index.js +0 -1
- package/lib/common/LinkModal/FunctionTable/index.js +1 -2
- package/lib/common/LinkModal/index.js +2 -14
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +3 -38
- package/lib/common/ProductSource/index.js +18 -59
- package/lib/common/UrlPicker/index.js +10 -62
- package/lib/common/index.js +0 -24
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
- package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/lib/constants/component-types.js +3 -45
- package/lib/constants/index.js +5 -74
- package/lib/constants/layout.js +1 -48
- package/lib/core/Designer/ChatRobot/index.js +17 -84
- package/lib/core/Designer/ChatRobot/index.less +28 -69
- package/lib/core/Designer/ConfigPanel/index.js +3 -14
- package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
- package/lib/core/Designer/PageCompList/index.js +5 -6
- package/lib/core/Designer/QuickMenuBar/index.js +5 -11
- package/lib/core/Designer/QuickMenuBar/index.less +0 -4
- package/lib/core/Designer/RenderHtml/index.js +15 -18
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/lib/core/Designer/ToolBarModal/index.js +27 -69
- package/lib/core/Designer/ToolBarModal/index.less +2 -3
- package/lib/core/Designer/index.js +2 -26
- package/lib/core/Renderer/index.js +29 -74
- package/lib/decorator/compositeDecorator.js +6 -33
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +3 -17
- package/lib/locale/es/es.json +3 -17
- package/lib/locale/id/id.json +3 -17
- package/lib/meta-comp/components/Image/index.js +25 -31
- package/lib/meta-comp/components/Text/index.js +1 -4
- package/lib/meta-comp/components/Text/index.less +0 -8
- package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/lib/mobx/Frame.js +2 -17
- package/lib/mobx/index.js +3 -9
- package/lib/utils/androidUtil.js +2 -13
- package/lib/utils/businessUtil.js +3 -25
- package/lib/utils/commonUtil.js +22 -177
- package/lib/utils/coreUtil.js +2 -45
- package/lib/utils/currencyUtil.js +2 -9
- package/package.json +1 -2
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/common/AffiliateProductModal/index.js +0 -582
- package/es/common/AffiliateProductModal/index.less +0 -146
- package/es/common/CardCarousel/index.js +0 -171
- package/es/common/CardCarousel/index.less +0 -28
- package/es/common/CropperModal/index.js +0 -126
- package/es/common/CropperModal/index.less +0 -29
- package/es/common/MyModal/index.js +0 -417
- package/es/common/MyModal/index.less +0 -74
- package/es/common/UrlPicker/AnchorModal/index.js +0 -170
- package/es/common/UrlPicker/AnchorModal/index.less +0 -21
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- 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 +0 -61
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/es/mobx/UserState.js +0 -144
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/common/AffiliateProductModal/index.js +0 -582
- package/lib/common/AffiliateProductModal/index.less +0 -146
- package/lib/common/CardCarousel/index.js +0 -171
- package/lib/common/CardCarousel/index.less +0 -28
- package/lib/common/CropperModal/index.js +0 -126
- package/lib/common/CropperModal/index.less +0 -29
- package/lib/common/MyModal/index.js +0 -417
- package/lib/common/MyModal/index.less +0 -74
- package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
- package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- 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 +0 -61
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/lib/mobx/UserState.js +0 -144
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
require("./index.less");
|
|
11
|
-
|
|
12
|
-
var _common = require("../../../../../common");
|
|
13
|
-
|
|
14
|
-
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
15
|
-
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
-
__proto__: []
|
|
24
|
-
} instanceof Array && function (d, b) {
|
|
25
|
-
d.__proto__ = b;
|
|
26
|
-
} || function (d, b) {
|
|
27
|
-
for (var p in b) {
|
|
28
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return _extendStatics(d, b);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return function (d, b) {
|
|
36
|
-
_extendStatics(d, b);
|
|
37
|
-
|
|
38
|
-
function __() {
|
|
39
|
-
this.constructor = d;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
-
};
|
|
44
|
-
}();
|
|
45
|
-
|
|
46
|
-
var GroupList =
|
|
47
|
-
/** @class */
|
|
48
|
-
function (_super) {
|
|
49
|
-
__extends(GroupList, _super);
|
|
50
|
-
|
|
51
|
-
function GroupList() {
|
|
52
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
-
|
|
54
|
-
_this.state = {
|
|
55
|
-
dragId: ''
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
_this.moveCard = function (dragNodeId, hoverNodeId) {
|
|
59
|
-
var source = _this.props.source;
|
|
60
|
-
var dragIndex = source.findIndex(function (obj) {
|
|
61
|
-
return obj.id === dragNodeId;
|
|
62
|
-
});
|
|
63
|
-
var hoverIndex = source.findIndex(function (obj) {
|
|
64
|
-
return obj.id === hoverNodeId;
|
|
65
|
-
});
|
|
66
|
-
(0, _commonUtil.dragSource)(source, dragIndex, hoverIndex);
|
|
67
|
-
|
|
68
|
-
_this.setState({});
|
|
69
|
-
|
|
70
|
-
(0, _coreUtil.renderPreview)();
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
_this.onDragStart = function (e) {
|
|
74
|
-
_this.setState({
|
|
75
|
-
dragId: e.currentTarget.dataset.nodeid
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
_this.onDragEnter = function (e) {
|
|
80
|
-
var dragId = _this.state.dragId;
|
|
81
|
-
var hoverNodeId = e.currentTarget.dataset.nodeid;
|
|
82
|
-
|
|
83
|
-
if (dragId === hoverNodeId) {
|
|
84
|
-
return;
|
|
85
|
-
} // renderPreview();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_this.moveCard(dragId, hoverNodeId);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
_this.onDragEnd = function () {
|
|
92
|
-
_this.setState({
|
|
93
|
-
dragId: ''
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
_this.copyItem = function (e, item) {
|
|
98
|
-
var source = _this.props.source;
|
|
99
|
-
e.stopPropagation();
|
|
100
|
-
var index = source.findIndex(function (src) {
|
|
101
|
-
return src.id === item.id;
|
|
102
|
-
});
|
|
103
|
-
source.splice(index, 0, (0, _coreUtil.copyNode)(item));
|
|
104
|
-
|
|
105
|
-
_this.setState({});
|
|
106
|
-
|
|
107
|
-
(0, _coreUtil.renderPreview)();
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
_this.deleteItem = function (e, item) {
|
|
111
|
-
e.stopPropagation();
|
|
112
|
-
var source = _this.props.source;
|
|
113
|
-
var index = source.findIndex(function (src) {
|
|
114
|
-
return src.id === item.id;
|
|
115
|
-
});
|
|
116
|
-
source.splice(index, 1);
|
|
117
|
-
|
|
118
|
-
_this.setState({});
|
|
119
|
-
|
|
120
|
-
(0, _coreUtil.renderPreview)();
|
|
121
|
-
|
|
122
|
-
_this.props.reRender();
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
_this.renderCard = function (src) {
|
|
126
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
-
className: "card_wrap"
|
|
128
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
-
className: "name"
|
|
130
|
-
}, src.type));
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
return _this;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
GroupList.prototype.render = function () {
|
|
137
|
-
var _this = this;
|
|
138
|
-
|
|
139
|
-
var _a = this.props,
|
|
140
|
-
source = _a.source,
|
|
141
|
-
onClickItem = _a.onClickItem;
|
|
142
|
-
var dragId = this.state.dragId;
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: "group_list"
|
|
145
|
-
}, source.length > 0 && source.map(function (src, index) {
|
|
146
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
-
key: "card" + src.id,
|
|
148
|
-
className: "group_item",
|
|
149
|
-
"data-nodeid": src.id,
|
|
150
|
-
draggable: "true",
|
|
151
|
-
id: "card" + src.id,
|
|
152
|
-
onClick: function onClick() {
|
|
153
|
-
return onClickItem(src);
|
|
154
|
-
},
|
|
155
|
-
onDragEnd: _this.onDragEnd,
|
|
156
|
-
onDragEnter: _this.onDragEnter,
|
|
157
|
-
onDragOver: function onDragOver(e) {
|
|
158
|
-
e.preventDefault();
|
|
159
|
-
},
|
|
160
|
-
onDragStart: _this.onDragStart,
|
|
161
|
-
style: {
|
|
162
|
-
opacity: src.id === dragId ? '0.4' : '1'
|
|
163
|
-
}
|
|
164
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
-
className: "left"
|
|
166
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
167
|
-
className: "drag-icon",
|
|
168
|
-
color: "#C4C4C4",
|
|
169
|
-
size: "20px",
|
|
170
|
-
type: "icon-drag"
|
|
171
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
|
-
className: "middle_info ml8"
|
|
173
|
-
}, _this.renderCard(src, index))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
-
className: "right"
|
|
175
|
-
}, source.length < 5 && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
176
|
-
className: "icon_copy",
|
|
177
|
-
color: "#232F46",
|
|
178
|
-
onClick: function onClick(e) {
|
|
179
|
-
return _this.copyItem(e, src);
|
|
180
|
-
},
|
|
181
|
-
size: "20px",
|
|
182
|
-
type: "icon-copy"
|
|
183
|
-
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
184
|
-
className: "icon_delete",
|
|
185
|
-
color: "#FF4141",
|
|
186
|
-
onClick: function onClick(e) {
|
|
187
|
-
return _this.deleteItem(e, src);
|
|
188
|
-
},
|
|
189
|
-
size: "20px",
|
|
190
|
-
type: "icon-delete1"
|
|
191
|
-
})));
|
|
192
|
-
}));
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
GroupList.defaultProps = {
|
|
196
|
-
source: [],
|
|
197
|
-
onClickItem: function onClickItem() {}
|
|
198
|
-
};
|
|
199
|
-
return GroupList;
|
|
200
|
-
}(_react["default"].Component);
|
|
201
|
-
|
|
202
|
-
var _default = GroupList;
|
|
203
|
-
exports["default"] = _default;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
.group_list {
|
|
2
|
-
margin-bottom: 12px;
|
|
3
|
-
|
|
4
|
-
.group_item {
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
padding: 12px;
|
|
8
|
-
border-radius: 8px;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
cursor: move;
|
|
11
|
-
|
|
12
|
-
&::after {
|
|
13
|
-
content: ' ';
|
|
14
|
-
position: absolute;
|
|
15
|
-
bottom: 0;
|
|
16
|
-
right: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
height: 1px;
|
|
19
|
-
background-color: #EDF0F4;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.left {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
|
|
26
|
-
.middle_info {
|
|
27
|
-
width: 260px;
|
|
28
|
-
|
|
29
|
-
.card_wrap {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
height: 40px;
|
|
33
|
-
|
|
34
|
-
img {
|
|
35
|
-
height: 40px;
|
|
36
|
-
width: 40px;
|
|
37
|
-
border-radius: 8px;
|
|
38
|
-
object-fit: cover;
|
|
39
|
-
background-color: #EDF0F4;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.name {
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
font-family: 'Open Sans';
|
|
45
|
-
font-style: normal;
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
font-size: 16px;
|
|
48
|
-
line-height: 24px;
|
|
49
|
-
color: #232F46;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
p {
|
|
54
|
-
margin-bottom: 0;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
&:hover {
|
|
63
|
-
background-color: #E9F0FF;
|
|
64
|
-
|
|
65
|
-
.left {
|
|
66
|
-
.middle_info {
|
|
67
|
-
width: 200px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
|
-
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
13
|
-
|
|
14
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
-
|
|
16
|
-
var _decorator = require("../../../../../decorator");
|
|
17
|
-
|
|
18
|
-
var _GroupList = _interopRequireDefault(require("../GroupList"));
|
|
19
|
-
|
|
20
|
-
var _defaultJSON = require("../../../components/MenuNavigation/defaultJSON");
|
|
21
|
-
|
|
22
|
-
var _locale = require("../../../../../locale");
|
|
23
|
-
|
|
24
|
-
require("./index.less");
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
29
|
-
|
|
30
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
-
__proto__: []
|
|
34
|
-
} instanceof Array && function (d, b) {
|
|
35
|
-
d.__proto__ = b;
|
|
36
|
-
} || function (d, b) {
|
|
37
|
-
for (var p in b) {
|
|
38
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return _extendStatics(d, b);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return function (d, b) {
|
|
46
|
-
_extendStatics(d, b);
|
|
47
|
-
|
|
48
|
-
function __() {
|
|
49
|
-
this.constructor = d;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
-
};
|
|
54
|
-
}();
|
|
55
|
-
|
|
56
|
-
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
57
|
-
var c = arguments.length,
|
|
58
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
59
|
-
d;
|
|
60
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
61
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62
|
-
}
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var notice = 'error';
|
|
67
|
-
|
|
68
|
-
var MenuNavConfigImageGroup =
|
|
69
|
-
/** @class */
|
|
70
|
-
function (_super) {
|
|
71
|
-
__extends(MenuNavConfigImageGroup, _super);
|
|
72
|
-
|
|
73
|
-
function MenuNavConfigImageGroup() {
|
|
74
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
-
|
|
76
|
-
_this.state = {};
|
|
77
|
-
|
|
78
|
-
_this.onClickItem = function (node) {
|
|
79
|
-
_this.props.store.setState({
|
|
80
|
-
clickedGroup: node.id
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
_this.reRender = function () {
|
|
85
|
-
(0, _coreUtil.renderPreview)();
|
|
86
|
-
|
|
87
|
-
_this.setState({});
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
_this.onAddClick = function () {
|
|
91
|
-
var _a = _this.props.source,
|
|
92
|
-
source = _a === void 0 ? [] : _a;
|
|
93
|
-
if (source.length > 4) return;
|
|
94
|
-
var json = (0, _defaultJSON.groupSourceMenuJSON)();
|
|
95
|
-
|
|
96
|
-
_this.props.source.push(json);
|
|
97
|
-
|
|
98
|
-
_this.setState({});
|
|
99
|
-
|
|
100
|
-
(0, _coreUtil.renderPreview)();
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return _this;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
MenuNavConfigImageGroup.prototype.render = function () {
|
|
107
|
-
var _a = this.props.source,
|
|
108
|
-
source = _a === void 0 ? [] : _a;
|
|
109
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
className: "menu_navigation_source"
|
|
111
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
className: "node_list"
|
|
113
|
-
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
-
className: "notice"
|
|
115
|
-
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
116
|
-
onClickItem: this.onClickItem,
|
|
117
|
-
reRender: this.reRender,
|
|
118
|
-
source: source
|
|
119
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "btn_wrap"
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
122
|
-
className: source.length === 5 ? 'unable-btn' : '',
|
|
123
|
-
icon: "icon-add",
|
|
124
|
-
onClick: this.onAddClick,
|
|
125
|
-
type: "primary"
|
|
126
|
-
}, (0, _locale.i18n)('ADD_MENU'))));
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
MenuNavConfigImageGroup.defaultProps = {
|
|
130
|
-
source: []
|
|
131
|
-
};
|
|
132
|
-
MenuNavConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], MenuNavConfigImageGroup);
|
|
133
|
-
return MenuNavConfigImageGroup;
|
|
134
|
-
}(_react["default"].Component);
|
|
135
|
-
|
|
136
|
-
var _default = MenuNavConfigImageGroup;
|
|
137
|
-
exports["default"] = _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = MenuNavigationConfig;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _MenuNavConfigImageGroup = _interopRequireDefault(require("./MenuNavConfigImageGroup"));
|
|
11
|
-
|
|
12
|
-
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
|
-
|
|
14
|
-
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
15
|
-
|
|
16
|
-
var _locale = require("../../../../locale");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
function MenuNavigationConfig(props) {
|
|
21
|
-
var data = props.data;
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
23
|
-
divider: "bold",
|
|
24
|
-
headerSize: "large",
|
|
25
|
-
source: [{
|
|
26
|
-
key: 'menuNavigation1',
|
|
27
|
-
name: (0, _locale.i18n)('GROUP'),
|
|
28
|
-
value: /*#__PURE__*/_react["default"].createElement(_MenuNavConfigImageGroup["default"], {
|
|
29
|
-
source: data.groupSource
|
|
30
|
-
})
|
|
31
|
-
}, {
|
|
32
|
-
key: 'menuNavigation2',
|
|
33
|
-
name: (0, _locale.i18n)('BACKGROUND'),
|
|
34
|
-
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
35
|
-
data: data.background
|
|
36
|
-
})
|
|
37
|
-
}],
|
|
38
|
-
type: "triangle"
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
|
-
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
|
-
|
|
14
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
-
|
|
16
|
-
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
17
|
-
|
|
18
|
-
var _defaultJSON = require("../../../components/Orders/defaultJSON");
|
|
19
|
-
|
|
20
|
-
var _locale = require("../../../../../locale");
|
|
21
|
-
|
|
22
|
-
var _decorator = require("../../../../../decorator");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
|
-
|
|
28
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
-
__proto__: []
|
|
32
|
-
} instanceof Array && function (d, b) {
|
|
33
|
-
d.__proto__ = b;
|
|
34
|
-
} || function (d, b) {
|
|
35
|
-
for (var p in b) {
|
|
36
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return _extendStatics(d, b);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return function (d, b) {
|
|
44
|
-
_extendStatics(d, b);
|
|
45
|
-
|
|
46
|
-
function __() {
|
|
47
|
-
this.constructor = d;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
-
};
|
|
52
|
-
}();
|
|
53
|
-
|
|
54
|
-
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
-
var c = arguments.length,
|
|
56
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
-
d;
|
|
58
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
59
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
-
}
|
|
61
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var notice = 'Please add some Item';
|
|
65
|
-
|
|
66
|
-
var ImageTextConfigGroup =
|
|
67
|
-
/** @class */
|
|
68
|
-
function (_super) {
|
|
69
|
-
__extends(ImageTextConfigGroup, _super);
|
|
70
|
-
|
|
71
|
-
function ImageTextConfigGroup() {
|
|
72
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
-
|
|
74
|
-
_this.state = {};
|
|
75
|
-
|
|
76
|
-
_this.onClickItem = function (node) {
|
|
77
|
-
_this.props.store.setState({
|
|
78
|
-
clickedGroup: node.id
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
_this.onAddClick = function () {
|
|
83
|
-
var json = (0, _defaultJSON.OrdersGroupSourceJSON)();
|
|
84
|
-
|
|
85
|
-
_this.props.source.push(json);
|
|
86
|
-
|
|
87
|
-
_this.setState({});
|
|
88
|
-
|
|
89
|
-
(0, _coreUtil.renderPreview)();
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
_this.reRender = function () {
|
|
93
|
-
_this.setState({});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return _this;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
ImageTextConfigGroup.prototype.render = function () {
|
|
100
|
-
var _a = this.props,
|
|
101
|
-
source = _a.source,
|
|
102
|
-
maxNum = _a.maxNum;
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: "banner_group"
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
-
className: "node_list"
|
|
107
|
-
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
-
className: "notice"
|
|
109
|
-
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
110
|
-
onClickItem: this.onClickItem,
|
|
111
|
-
reRender: this.reRender,
|
|
112
|
-
source: source
|
|
113
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
-
className: "btn_wrap"
|
|
115
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
116
|
-
disabled: source.length >= maxNum,
|
|
117
|
-
icon: "icon-add",
|
|
118
|
-
onClick: this.onAddClick,
|
|
119
|
-
type: "primary"
|
|
120
|
-
}, (0, _locale.i18n)('ADD'))));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
ImageTextConfigGroup.defaultProps = {
|
|
124
|
-
source: []
|
|
125
|
-
};
|
|
126
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
127
|
-
return ImageTextConfigGroup;
|
|
128
|
-
}(_react["default"].Component);
|
|
129
|
-
|
|
130
|
-
var _default = ImageTextConfigGroup;
|
|
131
|
-
exports["default"] = _default;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
|
|
11
|
-
|
|
12
|
-
var _locale = require("../../../../locale");
|
|
13
|
-
|
|
14
|
-
var _common = require("../../../../common");
|
|
15
|
-
|
|
16
|
-
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
-
|
|
18
|
-
var _coreUtil = require("../../../../utils/coreUtil");
|
|
19
|
-
|
|
20
|
-
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
-
__proto__: []
|
|
28
|
-
} instanceof Array && function (d, b) {
|
|
29
|
-
d.__proto__ = b;
|
|
30
|
-
} || function (d, b) {
|
|
31
|
-
for (var p in b) {
|
|
32
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return _extendStatics(d, b);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return function (d, b) {
|
|
40
|
-
_extendStatics(d, b);
|
|
41
|
-
|
|
42
|
-
function __() {
|
|
43
|
-
this.constructor = d;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
-
};
|
|
48
|
-
}();
|
|
49
|
-
|
|
50
|
-
var OrdersConfig =
|
|
51
|
-
/** @class */
|
|
52
|
-
function (_super) {
|
|
53
|
-
__extends(OrdersConfig, _super);
|
|
54
|
-
|
|
55
|
-
function OrdersConfig() {
|
|
56
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
|
|
58
|
-
_this.getContentPanel = function () {
|
|
59
|
-
var data = _this.props.data;
|
|
60
|
-
var source = [{
|
|
61
|
-
key: 1,
|
|
62
|
-
name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
|
|
63
|
-
metaOption: data.login
|
|
64
|
-
}];
|
|
65
|
-
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
66
|
-
headerSize: "middle",
|
|
67
|
-
onRefresh: function onRefresh() {
|
|
68
|
-
return (0, _coreUtil.renderPreview)();
|
|
69
|
-
},
|
|
70
|
-
source: source,
|
|
71
|
-
type: "switch"
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
OrdersConfig.prototype.render = function () {
|
|
79
|
-
var data = this.props.data;
|
|
80
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
81
|
-
divider: "bold",
|
|
82
|
-
headerSize: "large",
|
|
83
|
-
source: [{
|
|
84
|
-
key: 'Orders1',
|
|
85
|
-
name: (0, _locale.i18n)('Content'),
|
|
86
|
-
value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
|
|
87
|
-
maxNum: 5,
|
|
88
|
-
source: data.groupSource
|
|
89
|
-
}),
|
|
90
|
-
metaOption: data.groupSource
|
|
91
|
-
}, {
|
|
92
|
-
key: 'Orders2',
|
|
93
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
94
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
95
|
-
data: data.spacing
|
|
96
|
-
})
|
|
97
|
-
}, {
|
|
98
|
-
key: 'Orders3',
|
|
99
|
-
name: (0, _locale.i18n)('BACKGROUND'),
|
|
100
|
-
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
101
|
-
data: data.background
|
|
102
|
-
})
|
|
103
|
-
}]
|
|
104
|
-
}));
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
OrdersConfig.defaultProps = {
|
|
108
|
-
data: {}
|
|
109
|
-
};
|
|
110
|
-
return OrdersConfig;
|
|
111
|
-
}(_react["default"].Component);
|
|
112
|
-
|
|
113
|
-
var _default = OrdersConfig;
|
|
114
|
-
exports["default"] = _default;
|