@fonixtree/magic-design 0.1.93 → 0.2.2
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/magic-box-iconfont.css +7 -35
- package/es/assets/fonts/magic-box-iconfont.css.bak +4 -8
- 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/less/button.less +0 -5
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/AffiliateProductModal/index.less +1 -1
- 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/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +1 -1
- package/es/common/LinkModal/CustomTable/index.js +0 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +106 -82
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +60 -115
- package/es/common/LinkModal/ProductDetailPage/index.less +1 -6
- package/es/common/LinkModal/SelectVideoModal/index.js +2 -3
- package/es/common/LinkModal/index.js +5 -20
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +124 -181
- package/es/common/ProductModal/index.less +1 -7
- package/es/common/ProductSource/index.js +21 -81
- package/es/common/UrlPicker/index.js +10 -51
- package/es/common/Video/index.js +86 -142
- package/es/common/VideoUpload/index.js +1 -1
- package/es/common/index.js +0 -8
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -4
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/{lib/composite-comp/nuri → es/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
- package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
- package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
- package/{lib/composite-comp/nuri → es/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
- package/es/constants/component-types.js +6 -24
- package/es/constants/index.js +5 -52
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
- package/es/core/Designer/ChatRobot/index.js +4 -49
- package/es/core/Designer/ConfigPanel/index.js +0 -6
- package/es/core/Designer/FonixtreeGpt/index.js +29 -222
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +2 -6
- package/es/core/Designer/ToolBarModal/index.js +1 -5
- package/es/core/Designer/index.js +1 -12
- package/es/core/Renderer/index.js +2 -6
- package/es/decorator/compositeDecorator.js +6 -10
- package/es/decorator/index.js +1 -4
- package/es/decorator/metaDecorator.js +3 -7
- package/es/locale/en/en.json +2 -20
- package/es/locale/es/es.json +2 -20
- package/es/locale/id/id.json +2 -20
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/index.js +3 -9
- package/es/utils/androidUtil.js +2 -17
- package/es/utils/businessUtil.js +5 -54
- package/es/utils/commonUtil.js +13 -151
- package/es/utils/coreUtil.js +24 -89
- package/lib/assets/fonts/magic-box-iconfont.css +7 -35
- package/lib/assets/fonts/magic-box-iconfont.css.bak +4 -8
- 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/less/button.less +0 -5
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/AffiliateProductModal/index.less +1 -1
- 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/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +1 -1
- package/lib/common/LinkModal/CustomTable/index.js +0 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +106 -82
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +60 -115
- package/lib/common/LinkModal/ProductDetailPage/index.less +1 -6
- package/lib/common/LinkModal/SelectVideoModal/index.js +2 -3
- package/lib/common/LinkModal/index.js +5 -20
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +124 -181
- package/lib/common/ProductModal/index.less +1 -7
- package/lib/common/ProductSource/index.js +21 -81
- package/lib/common/UrlPicker/index.js +10 -51
- package/lib/common/Video/index.js +86 -142
- package/lib/common/VideoUpload/index.js +1 -1
- package/lib/common/index.js +0 -8
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -4
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/{es/composite-comp/nuri → lib/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
- package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
- package/{es/composite-comp/nuri → lib/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
- package/lib/constants/component-types.js +6 -24
- package/lib/constants/index.js +5 -52
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
- package/lib/core/Designer/ChatRobot/index.js +4 -49
- package/lib/core/Designer/ConfigPanel/index.js +0 -6
- package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +2 -6
- package/lib/core/Designer/ToolBarModal/index.js +1 -5
- package/lib/core/Designer/index.js +1 -12
- package/lib/core/Renderer/index.js +2 -6
- package/lib/decorator/compositeDecorator.js +6 -10
- package/lib/decorator/index.js +1 -4
- package/lib/decorator/metaDecorator.js +3 -7
- package/lib/locale/en/en.json +2 -20
- package/lib/locale/es/es.json +2 -20
- package/lib/locale/id/id.json +2 -20
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/index.js +3 -9
- package/lib/utils/androidUtil.js +2 -17
- package/lib/utils/businessUtil.js +5 -54
- package/lib/utils/commonUtil.js +13 -151
- package/lib/utils/coreUtil.js +24 -89
- package/package.json +1 -2
- package/es/common/CropperModal/index.js +0 -126
- package/es/common/CropperModal/index.less +0 -29
- package/es/common/LinkModal/AffiliatePlatform/index.js +0 -326
- package/es/common/LinkModal/AffiliateStore/index.js +0 -332
- package/es/common/ProductModal/SortableImageList/index.js +0 -118
- package/es/common/ProductModal/SortableImageList/index.less +0 -3
- package/es/common/UrlPicker/AnchorModal/index.js +0 -170
- package/es/common/UrlPicker/AnchorModal/index.less +0 -21
- package/es/common/Video/QualityComponent/index.js +0 -169
- package/es/common/Video/QualityComponent/index.less +0 -78
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
- 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 -113
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- 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 -350
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- 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 -592
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
- 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/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/CommonFunctionsSecondConfig/index.js +0 -121
- 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/mobx/UserState.js +0 -144
- package/lib/common/CropperModal/index.js +0 -126
- package/lib/common/CropperModal/index.less +0 -29
- package/lib/common/LinkModal/AffiliatePlatform/index.js +0 -326
- package/lib/common/LinkModal/AffiliateStore/index.js +0 -332
- package/lib/common/ProductModal/SortableImageList/index.js +0 -118
- package/lib/common/ProductModal/SortableImageList/index.less +0 -3
- package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
- package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
- package/lib/common/Video/QualityComponent/index.js +0 -169
- package/lib/common/Video/QualityComponent/index.less +0 -78
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
- 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 -113
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- 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 -350
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- 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 -592
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
- 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/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/CommonFunctionsSecondConfig/index.js +0 -121
- 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/mobx/UserState.js +0 -144
- /package/es/common/Video/{RateComponent → components}/index.js +0 -0
- /package/es/common/Video/{RateComponent → components}/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
- /package/lib/common/Video/{RateComponent → components}/index.js +0 -0
- /package/lib/common/Video/{RateComponent → components}/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDefaultJSON = exports.CommonFunctionsGroupSourceJSON = void 0;
|
|
7
|
-
|
|
8
|
-
var _uuid = require("uuid");
|
|
9
|
-
|
|
10
|
-
var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(text, url) {
|
|
11
|
-
var groupId = (0, _uuid.v4)();
|
|
12
|
-
return {
|
|
13
|
-
id: groupId,
|
|
14
|
-
title: {
|
|
15
|
-
parentId: groupId,
|
|
16
|
-
id: (0, _uuid.v4)(),
|
|
17
|
-
open: true,
|
|
18
|
-
type: 'TEXT',
|
|
19
|
-
specialContent: [],
|
|
20
|
-
text: text || 'Chat With Us',
|
|
21
|
-
content: {
|
|
22
|
-
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily: 'Open Sans',
|
|
24
|
-
fontWeight: 600,
|
|
25
|
-
fontSize: 14,
|
|
26
|
-
color: '#2C2C2C',
|
|
27
|
-
width: 0,
|
|
28
|
-
textAlign: 'center',
|
|
29
|
-
clickUrl: {
|
|
30
|
-
name: url,
|
|
31
|
-
value: url
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
underline: {
|
|
35
|
-
open: false,
|
|
36
|
-
textDecorationColor: '',
|
|
37
|
-
textDecorationStyle: 'solid'
|
|
38
|
-
},
|
|
39
|
-
vertical: {}
|
|
40
|
-
},
|
|
41
|
-
image: {
|
|
42
|
-
parentId: groupId,
|
|
43
|
-
id: (0, _uuid.v4)(),
|
|
44
|
-
open: true,
|
|
45
|
-
type: 'IMAGE',
|
|
46
|
-
content: {
|
|
47
|
-
h5Name: 'name2',
|
|
48
|
-
pcName: 'name2',
|
|
49
|
-
h5ImgSrc: '',
|
|
50
|
-
pcImgSrc: '',
|
|
51
|
-
clickUrl: ''
|
|
52
|
-
},
|
|
53
|
-
hover: {
|
|
54
|
-
open: false,
|
|
55
|
-
backgroundType: 'enlarge',
|
|
56
|
-
magnification: 1.5,
|
|
57
|
-
pcImgHoverUrl: '',
|
|
58
|
-
h5ImgHoverUrl: ''
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
exports.CommonFunctionsGroupSourceJSON = CommonFunctionsGroupSourceJSON;
|
|
65
|
-
|
|
66
|
-
var getDefaultJSON = function getDefaultJSON() {
|
|
67
|
-
return {
|
|
68
|
-
id: (0, _uuid.v4)(),
|
|
69
|
-
type: 'COMMON_FUNCTIONS',
|
|
70
|
-
groupSource: [CommonFunctionsGroupSourceJSON('Address', '/address/manage'), CommonFunctionsGroupSourceJSON('Policies', '/account/policies'), CommonFunctionsGroupSourceJSON('Security Center', '/account/security'), CommonFunctionsGroupSourceJSON('Chat With Us', '/new-chat')],
|
|
71
|
-
spacing: {
|
|
72
|
-
pc: {
|
|
73
|
-
paddingTop: 0,
|
|
74
|
-
paddingBottom: 0,
|
|
75
|
-
marginBottom: 0
|
|
76
|
-
},
|
|
77
|
-
mobile: {
|
|
78
|
-
paddingTop: 0,
|
|
79
|
-
paddingBottom: 0,
|
|
80
|
-
marginBottom: 0
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
background: {
|
|
84
|
-
opacity: 100,
|
|
85
|
-
color: '#FFFFFF',
|
|
86
|
-
image: '',
|
|
87
|
-
bgType: 'color'
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
-
|
|
12
|
-
var _defaultJSON = require("./defaultJSON");
|
|
13
|
-
|
|
14
|
-
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
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); }
|
|
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 __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
51
|
-
var c = arguments.length,
|
|
52
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
53
|
-
d;
|
|
54
|
-
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--) {
|
|
55
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
56
|
-
}
|
|
57
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var CommonFunctions =
|
|
61
|
-
/** @class */
|
|
62
|
-
function (_super) {
|
|
63
|
-
__extends(CommonFunctions, _super);
|
|
64
|
-
|
|
65
|
-
function CommonFunctions() {
|
|
66
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
CommonFunctions.prototype.render = function () {
|
|
70
|
-
var nodeData = this.props.nodeData;
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
72
|
-
data: nodeData
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
CommonFunctions.defaultProps = {};
|
|
77
|
-
CommonFunctions.type = 'COMMON_FUNCTIONS';
|
|
78
|
-
CommonFunctions.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
79
|
-
CommonFunctions = __decorate([_compositeDecorator["default"]], CommonFunctions);
|
|
80
|
-
return CommonFunctions;
|
|
81
|
-
}(_react.Component);
|
|
82
|
-
|
|
83
|
-
var _default = CommonFunctions;
|
|
84
|
-
exports["default"] = _default;
|
|
@@ -1,113 +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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _components = require("../../../../../meta-comp/components");
|
|
13
|
-
|
|
14
|
-
var _common = require("../../../../../common");
|
|
15
|
-
|
|
16
|
-
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
17
|
-
|
|
18
|
-
require("./index.less");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
-
__proto__: []
|
|
26
|
-
} instanceof Array && function (d, b) {
|
|
27
|
-
d.__proto__ = b;
|
|
28
|
-
} || function (d, b) {
|
|
29
|
-
for (var p in b) {
|
|
30
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return _extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return function (d, b) {
|
|
38
|
-
_extendStatics(d, b);
|
|
39
|
-
|
|
40
|
-
function __() {
|
|
41
|
-
this.constructor = d;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
-
};
|
|
46
|
-
}();
|
|
47
|
-
|
|
48
|
-
var CommonFunctionsMobile =
|
|
49
|
-
/** @class */
|
|
50
|
-
function (_super) {
|
|
51
|
-
__extends(CommonFunctionsMobile, _super);
|
|
52
|
-
|
|
53
|
-
function CommonFunctionsMobile() {
|
|
54
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
-
|
|
56
|
-
_this.state = {};
|
|
57
|
-
|
|
58
|
-
_this.onItemClick = function (item) {
|
|
59
|
-
if ((0, _commonUtil.checkLogin)(true, '/main/account')) {
|
|
60
|
-
var url = (0, _commonUtil.ensure)(function () {
|
|
61
|
-
return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
|
|
62
|
-
}, '');
|
|
63
|
-
(0, _commonUtil.navigateTo)(url);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
CommonFunctionsMobile.prototype.render = function () {
|
|
71
|
-
var _this = this;
|
|
72
|
-
|
|
73
|
-
var data = this.props.data;
|
|
74
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
-
className: (0, _classnames["default"])('common-functions-mobile')
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement("ul", null, data.groupSource.map(function (item) {
|
|
77
|
-
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
78
|
-
key: item.id,
|
|
79
|
-
onClick: function onClick() {
|
|
80
|
-
return _this.onItemClick(item);
|
|
81
|
-
}
|
|
82
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
-
className: "content-wrap",
|
|
84
|
-
style: {
|
|
85
|
-
pointerEvents: window.magicDesign.mode == 'designer' ? 'auto' : 'none'
|
|
86
|
-
}
|
|
87
|
-
}, item.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
88
|
-
className: "img",
|
|
89
|
-
data: item.image,
|
|
90
|
-
disabled: true,
|
|
91
|
-
maxWidth: "100%"
|
|
92
|
-
}), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
93
|
-
className: "title",
|
|
94
|
-
data: item.title,
|
|
95
|
-
onTextInput: function onTextInput(text) {
|
|
96
|
-
item.title.text = text;
|
|
97
|
-
}
|
|
98
|
-
})), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
99
|
-
color: "#C7C7C7",
|
|
100
|
-
size: 14,
|
|
101
|
-
type: "icon-outlined-right"
|
|
102
|
-
}));
|
|
103
|
-
})));
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
CommonFunctionsMobile.defaultProps = {
|
|
107
|
-
data: {}
|
|
108
|
-
};
|
|
109
|
-
return CommonFunctionsMobile;
|
|
110
|
-
}(_react["default"].Component);
|
|
111
|
-
|
|
112
|
-
var _default = CommonFunctionsMobile;
|
|
113
|
-
exports["default"] = _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.common-functions-mobile {
|
|
2
|
-
padding: 0.32rem 0;
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
}
|
|
6
|
-
.common-functions-mobile ul {
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
}
|
|
10
|
-
.common-functions-mobile ul li {
|
|
11
|
-
padding: 0.24rem 0.32rem;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
align-items: center;
|
|
16
|
-
}
|
|
17
|
-
.common-functions-mobile ul li .content-wrap {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
}
|
|
21
|
-
.common-functions-mobile ul li .content-wrap .img {
|
|
22
|
-
width: 0.56rem;
|
|
23
|
-
height: 0.56rem;
|
|
24
|
-
margin-right: 0.08rem;
|
|
25
|
-
}
|
|
26
|
-
.common-functions-mobile ul li .content-wrap .title {
|
|
27
|
-
font-size: 0.28rem;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
line-height: 0.4rem;
|
|
30
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDefaultJSON = exports.OrdersGroupSourceJSON = void 0;
|
|
7
|
-
|
|
8
|
-
var _uuid = require("uuid");
|
|
9
|
-
|
|
10
|
-
var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
|
|
11
|
-
var groupId = (0, _uuid.v4)();
|
|
12
|
-
return {
|
|
13
|
-
id: groupId,
|
|
14
|
-
title: {
|
|
15
|
-
parentId: groupId,
|
|
16
|
-
id: (0, _uuid.v4)(),
|
|
17
|
-
open: true,
|
|
18
|
-
type: 'TEXT',
|
|
19
|
-
specialContent: [],
|
|
20
|
-
text: text || 'Name',
|
|
21
|
-
content: {
|
|
22
|
-
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily: 'Open Sans',
|
|
24
|
-
fontWeight: 400,
|
|
25
|
-
fontSize: 12,
|
|
26
|
-
color: '#2C2C2C',
|
|
27
|
-
width: 0,
|
|
28
|
-
textAlign: 'center'
|
|
29
|
-
},
|
|
30
|
-
underline: {
|
|
31
|
-
open: false,
|
|
32
|
-
textDecorationColor: '',
|
|
33
|
-
textDecorationStyle: 'solid'
|
|
34
|
-
},
|
|
35
|
-
vertical: {}
|
|
36
|
-
},
|
|
37
|
-
image: {
|
|
38
|
-
parentId: groupId,
|
|
39
|
-
id: (0, _uuid.v4)(),
|
|
40
|
-
open: true,
|
|
41
|
-
type: 'IMAGE',
|
|
42
|
-
content: {
|
|
43
|
-
h5Name: 'name2',
|
|
44
|
-
pcName: 'name2',
|
|
45
|
-
h5ImgSrc: '',
|
|
46
|
-
pcImgSrc: '',
|
|
47
|
-
clickUrl: ''
|
|
48
|
-
},
|
|
49
|
-
hover: {
|
|
50
|
-
open: false,
|
|
51
|
-
backgroundType: 'enlarge',
|
|
52
|
-
magnification: 1.5,
|
|
53
|
-
pcImgHoverUrl: '',
|
|
54
|
-
h5ImgHoverUrl: ''
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
sourceType: text
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
|
|
62
|
-
|
|
63
|
-
var getDefaultJSON = function getDefaultJSON() {
|
|
64
|
-
return {
|
|
65
|
-
id: (0, _uuid.v4)(),
|
|
66
|
-
type: 'ORDERS',
|
|
67
|
-
groupSource: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive'), OrdersGroupSourceJSON('Done'), OrdersGroupSourceJSON('Cancelled')],
|
|
68
|
-
spacing: {
|
|
69
|
-
pc: {
|
|
70
|
-
paddingTop: 0,
|
|
71
|
-
paddingBottom: 0,
|
|
72
|
-
marginBottom: 0
|
|
73
|
-
},
|
|
74
|
-
mobile: {
|
|
75
|
-
paddingTop: 0,
|
|
76
|
-
paddingBottom: 0,
|
|
77
|
-
marginBottom: 0
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
background: {
|
|
81
|
-
opacity: 100,
|
|
82
|
-
color: '#FFFFFF',
|
|
83
|
-
image: '',
|
|
84
|
-
bgType: 'color'
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
-
|
|
12
|
-
var _defaultJSON = require("./defaultJSON");
|
|
13
|
-
|
|
14
|
-
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
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); }
|
|
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 __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
51
|
-
var c = arguments.length,
|
|
52
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
53
|
-
d;
|
|
54
|
-
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--) {
|
|
55
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
56
|
-
}
|
|
57
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var Orders =
|
|
61
|
-
/** @class */
|
|
62
|
-
function (_super) {
|
|
63
|
-
__extends(Orders, _super);
|
|
64
|
-
|
|
65
|
-
function Orders() {
|
|
66
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
Orders.prototype.render = function () {
|
|
70
|
-
var nodeData = this.props.nodeData;
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
72
|
-
data: nodeData
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
Orders.defaultProps = {};
|
|
77
|
-
Orders.type = 'ORDERS';
|
|
78
|
-
Orders.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
79
|
-
Orders = __decorate([_compositeDecorator["default"]], Orders);
|
|
80
|
-
return Orders;
|
|
81
|
-
}(_react.Component);
|
|
82
|
-
|
|
83
|
-
var _default = Orders;
|
|
84
|
-
exports["default"] = _default;
|