@fonixtree/magic-design 0.0.53 → 0.0.55
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/README.md +320 -0
- package/es/common/ImageModal/index.js +27 -22
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +8 -8
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -5
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -5
- package/es/composite-comp/bol/components/Button/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Button/index.js +1 -5
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +17 -17
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -3
- package/es/composite-comp/bol/components/ImageText/pc/index.js +1 -1
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Tag/index.js +1 -5
- package/es/composite-comp/bol/components/Text/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Text/index.js +1 -5
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +5 -3
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +6 -4
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +5 -2
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +3 -3
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +2 -2
- package/es/composite-comp/dito/components/Recommend/index.js +1 -6
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +1 -1
- package/es/core/Designer/index.js +0 -2
- package/es/decorator/compositeDecorator.js +45 -12
- package/es/locale/en/en.json +3 -0
- package/es/locale/es/es.json +3 -0
- package/es/locale/id/id.json +3 -0
- package/es/meta-comp/components/Button/index.js +1 -4
- package/es/meta-comp/components/Button/index.less +1 -1
- package/es/meta-comp/components/Image/index.js +31 -3
- package/es/meta-comp/components/Image/index.less +1 -0
- package/es/meta-comp/components/Text/index.js +1 -4
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +130 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +13 -4
- package/lib/common/ImageModal/index.js +27 -22
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +8 -8
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -5
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -5
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Button/index.js +1 -5
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +17 -17
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -3
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +1 -1
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Tag/index.js +1 -5
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Text/index.js +1 -5
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +5 -3
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +6 -4
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +5 -2
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +3 -3
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +2 -2
- package/lib/composite-comp/dito/components/Recommend/index.js +1 -6
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +1 -1
- package/lib/core/Designer/index.js +0 -2
- package/lib/decorator/compositeDecorator.js +45 -12
- package/lib/locale/en/en.json +3 -0
- package/lib/locale/es/es.json +3 -0
- package/lib/locale/id/id.json +3 -0
- package/lib/meta-comp/components/Button/index.js +1 -4
- package/lib/meta-comp/components/Button/index.less +1 -1
- package/lib/meta-comp/components/Image/index.js +31 -3
- package/lib/meta-comp/components/Image/index.less +1 -0
- package/lib/meta-comp/components/Text/index.js +1 -4
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +130 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +13 -4
- package/package.json +90 -3
package/es/common/index.js
CHANGED
|
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "ImagePicker", {
|
|
|
63
63
|
return _ImagePicker["default"];
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "ImgArea", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _ImgArea["default"];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
66
72
|
Object.defineProperty(exports, "LayoutSelector", {
|
|
67
73
|
enumerable: true,
|
|
68
74
|
get: function get() {
|
|
@@ -124,4 +130,6 @@ var _ButtonIconLayout = _interopRequireDefault(require("./ButtonIconLayout"));
|
|
|
124
130
|
|
|
125
131
|
var _ProductSource = _interopRequireDefault(require("./ProductSource"));
|
|
126
132
|
|
|
133
|
+
var _ImgArea = _interopRequireDefault(require("./ImgArea"));
|
|
134
|
+
|
|
127
135
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,7 +43,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
43
43
|
text: 'Title use, click modify text.',
|
|
44
44
|
specialContent: [],
|
|
45
45
|
content: {
|
|
46
|
-
|
|
46
|
+
sizeType: 'Customize font styles',
|
|
47
47
|
fontFamily: 'Open Sans',
|
|
48
48
|
fontWeight: 700,
|
|
49
49
|
fontSize: 28,
|
|
@@ -65,7 +65,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
65
65
|
specialContent: [],
|
|
66
66
|
text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
|
|
67
67
|
content: {
|
|
68
|
-
|
|
68
|
+
sizeType: 'Customize font styles',
|
|
69
69
|
fontFamily: 'Open Sans',
|
|
70
70
|
fontWeight: 400,
|
|
71
71
|
fontSize: 18,
|
|
@@ -86,7 +86,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
86
86
|
backgroundColor: '#2F54EB'
|
|
87
87
|
},
|
|
88
88
|
buttonText: {
|
|
89
|
-
|
|
89
|
+
sizeType: 'Customize font styles',
|
|
90
90
|
fontFamily: 'Open Sans',
|
|
91
91
|
fontWeight: 600,
|
|
92
92
|
fontSize: 14,
|
|
@@ -122,7 +122,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
122
122
|
backgroundColor: '#0d39ed'
|
|
123
123
|
},
|
|
124
124
|
buttonText: {
|
|
125
|
-
|
|
125
|
+
sizeType: 'Customize font styles',
|
|
126
126
|
fontFamily: 'Open Sans',
|
|
127
127
|
fontWeight: 600,
|
|
128
128
|
fontSize: 14,
|
|
@@ -151,7 +151,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
151
151
|
backgroundColor: '#fff'
|
|
152
152
|
},
|
|
153
153
|
buttonText: {
|
|
154
|
-
|
|
154
|
+
sizeType: 'Customize font styles',
|
|
155
155
|
fontFamily: 'Open Sans',
|
|
156
156
|
fontWeight: 600,
|
|
157
157
|
fontSize: 14,
|
|
@@ -187,7 +187,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
187
187
|
backgroundColor: '#E9F0FF'
|
|
188
188
|
},
|
|
189
189
|
buttonText: {
|
|
190
|
-
|
|
190
|
+
sizeType: 'Customize font styles',
|
|
191
191
|
fontFamily: 'Open Sans',
|
|
192
192
|
fontWeight: 600,
|
|
193
193
|
fontSize: 14,
|
|
@@ -254,12 +254,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
254
254
|
pc: {
|
|
255
255
|
paddingTop: 0,
|
|
256
256
|
paddingBottom: 0,
|
|
257
|
-
marginBottom:
|
|
257
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
258
258
|
},
|
|
259
259
|
mobile: {
|
|
260
260
|
paddingTop: 0,
|
|
261
261
|
paddingBottom: 0,
|
|
262
|
-
marginBottom:
|
|
262
|
+
marginBottom: window.magicDesign.compSpacing
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
};
|
|
@@ -21,8 +21,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
21
21
|
|
|
22
22
|
var _components = require("../../../../../meta-comp/components");
|
|
23
23
|
|
|
24
|
-
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -131,10 +129,8 @@ function (_super) {
|
|
|
131
129
|
autoplay = false;
|
|
132
130
|
}
|
|
133
131
|
|
|
134
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
135
132
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
|
-
className: "m-banner-mobile"
|
|
137
|
-
style: wrapStyle
|
|
133
|
+
className: "m-banner-mobile"
|
|
138
134
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
139
135
|
ref: this.carouselRef,
|
|
140
136
|
afterChange: function afterChange(n) {
|
|
@@ -23,8 +23,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
23
23
|
|
|
24
24
|
var _common = require("../../../../../common");
|
|
25
25
|
|
|
26
|
-
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
27
|
-
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
27
|
|
|
30
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -174,10 +172,8 @@ function (_super) {
|
|
|
174
172
|
autoplay = false;
|
|
175
173
|
}
|
|
176
174
|
|
|
177
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
178
175
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
179
|
-
className: "m-banner-pc"
|
|
180
|
-
style: wrapStyle
|
|
176
|
+
className: "m-banner-pc"
|
|
181
177
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
182
178
|
className: "turnPage leftBtn",
|
|
183
179
|
onClick: function onClick() {
|
|
@@ -90,12 +90,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
90
90
|
pc: {
|
|
91
91
|
paddingTop: 10,
|
|
92
92
|
paddingBottom: 10,
|
|
93
|
-
marginBottom:
|
|
93
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
94
94
|
},
|
|
95
95
|
mobile: {
|
|
96
96
|
paddingTop: 10,
|
|
97
97
|
paddingBottom: 10,
|
|
98
|
-
marginBottom:
|
|
98
|
+
marginBottom: window.magicDesign.compSpacing
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
customize: {
|
|
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
require("./index.less");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -76,11 +74,9 @@ function (_super) {
|
|
|
76
74
|
var _a;
|
|
77
75
|
|
|
78
76
|
var nodeData = this.props.nodeData;
|
|
79
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
80
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
78
|
className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
82
|
-
onClick: this.onComponentClick
|
|
83
|
-
style: wrapStyle
|
|
79
|
+
onClick: this.onComponentClick
|
|
84
80
|
}, nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
81
|
className: "first-button"
|
|
86
82
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
@@ -7,10 +7,6 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
15
11
|
var groupId = (0, _uuid.v4)();
|
|
16
12
|
return {
|
|
@@ -24,8 +20,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
24
20
|
content: {
|
|
25
21
|
h5Name: 'h5Name',
|
|
26
22
|
pcName: 'pcName',
|
|
27
|
-
h5ImgSrc:
|
|
28
|
-
pcImgSrc:
|
|
23
|
+
h5ImgSrc: '',
|
|
24
|
+
pcImgSrc: '',
|
|
29
25
|
clickUrl: ''
|
|
30
26
|
},
|
|
31
27
|
hover: {
|
|
@@ -44,7 +40,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
44
40
|
specialContent: [],
|
|
45
41
|
text: 'Title of this group',
|
|
46
42
|
content: {
|
|
47
|
-
sizeType: '
|
|
43
|
+
sizeType: 'Customize font styles',
|
|
48
44
|
fontFamily: 'Open Sans',
|
|
49
45
|
fontWeight: 600,
|
|
50
46
|
fontSize: 16,
|
|
@@ -67,7 +63,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
67
63
|
specialContent: [],
|
|
68
64
|
text: 'Please enter a description',
|
|
69
65
|
content: {
|
|
70
|
-
sizeType: '
|
|
66
|
+
sizeType: 'Customize font styles',
|
|
71
67
|
fontFamily: 'Open Sans',
|
|
72
68
|
fontWeight: 400,
|
|
73
69
|
fontSize: 14,
|
|
@@ -86,8 +82,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
86
82
|
content: {
|
|
87
83
|
h5Name: '',
|
|
88
84
|
pcName: '',
|
|
89
|
-
h5ImgSrc:
|
|
90
|
-
pcImgSrc:
|
|
85
|
+
h5ImgSrc: '',
|
|
86
|
+
pcImgSrc: '',
|
|
91
87
|
clickUrl: ''
|
|
92
88
|
},
|
|
93
89
|
hover: {
|
|
@@ -109,7 +105,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
109
105
|
backgroundColor: '#E6EAF0'
|
|
110
106
|
},
|
|
111
107
|
buttonText: {
|
|
112
|
-
|
|
108
|
+
sizeType: 'Customize font styles',
|
|
113
109
|
fontFamily: 'Open Sans',
|
|
114
110
|
fontWeight: 600,
|
|
115
111
|
fontSize: 14,
|
|
@@ -145,7 +141,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
145
141
|
backgroundColor: '#E6EAF0'
|
|
146
142
|
},
|
|
147
143
|
buttonText: {
|
|
148
|
-
|
|
144
|
+
sizeType: 'Customize font styles',
|
|
149
145
|
fontFamily: 'Open Sans',
|
|
150
146
|
fontWeight: 600,
|
|
151
147
|
fontSize: 14,
|
|
@@ -174,7 +170,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
174
170
|
backgroundColor: '#E6EAF0'
|
|
175
171
|
},
|
|
176
172
|
buttonText: {
|
|
177
|
-
|
|
173
|
+
sizeType: 'Customize font styles',
|
|
178
174
|
fontFamily: 'Open Sans',
|
|
179
175
|
fontWeight: 600,
|
|
180
176
|
fontSize: 14,
|
|
@@ -210,7 +206,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
210
206
|
backgroundColor: '#E6EAF0'
|
|
211
207
|
},
|
|
212
208
|
buttonText: {
|
|
213
|
-
|
|
209
|
+
sizeType: 'Customize font styles',
|
|
214
210
|
fontFamily: 'Open Sans',
|
|
215
211
|
fontWeight: 600,
|
|
216
212
|
fontSize: 14,
|
|
@@ -266,12 +262,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
266
262
|
pc: {
|
|
267
263
|
paddingTop: 10,
|
|
268
264
|
paddingBottom: 10,
|
|
269
|
-
marginBottom:
|
|
265
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
270
266
|
},
|
|
271
267
|
mobile: {
|
|
272
268
|
paddingTop: 10,
|
|
273
269
|
paddingBottom: 10,
|
|
274
|
-
marginBottom:
|
|
270
|
+
marginBottom: window.magicDesign.compSpacing
|
|
275
271
|
}
|
|
276
272
|
},
|
|
277
273
|
customize: {
|
|
@@ -15,8 +15,6 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
20
|
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); }
|
|
@@ -72,10 +70,7 @@ function (_super) {
|
|
|
72
70
|
|
|
73
71
|
Carousel.prototype.render = function () {
|
|
74
72
|
var nodeData = this.props.nodeData;
|
|
75
|
-
|
|
76
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
-
style: wrapStyle
|
|
78
|
-
}, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
79
74
|
data: nodeData
|
|
80
75
|
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
81
76
|
data: nodeData
|
|
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
50
50
|
pc: {
|
|
51
51
|
paddingTop: 10,
|
|
52
52
|
paddingBottom: 10,
|
|
53
|
-
marginBottom:
|
|
53
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
54
54
|
},
|
|
55
55
|
mobile: {
|
|
56
56
|
paddingTop: 10,
|
|
57
57
|
paddingBottom: 10,
|
|
58
|
-
marginBottom:
|
|
58
|
+
marginBottom: window.magicDesign.compSpacing
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
customize: {
|
|
@@ -39,7 +39,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
39
39
|
specialContent: [],
|
|
40
40
|
text: 'Title of this group',
|
|
41
41
|
content: {
|
|
42
|
-
sizeType: '
|
|
42
|
+
sizeType: 'Customize font styles',
|
|
43
43
|
fontFamily: 'Open Sans',
|
|
44
44
|
fontWeight: 600,
|
|
45
45
|
fontSize: 12,
|
|
@@ -61,7 +61,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
61
61
|
specialContent: [],
|
|
62
62
|
text: 'Please enter a description',
|
|
63
63
|
content: {
|
|
64
|
-
sizeType: '
|
|
64
|
+
sizeType: 'Customize font styles',
|
|
65
65
|
fontFamily: 'Open Sans',
|
|
66
66
|
fontWeight: 400,
|
|
67
67
|
fontSize: 10,
|
|
@@ -82,7 +82,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
82
82
|
backgroundColor: '#2F54EB'
|
|
83
83
|
},
|
|
84
84
|
buttonText: {
|
|
85
|
-
sizeType: '
|
|
85
|
+
sizeType: 'Customize font styles',
|
|
86
86
|
fontFamily: 'Open Sans',
|
|
87
87
|
fontWeight: 400,
|
|
88
88
|
fontSize: 10,
|
|
@@ -104,7 +104,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
104
104
|
backgroundColor: '#0d39ed'
|
|
105
105
|
},
|
|
106
106
|
buttonText: {
|
|
107
|
-
sizeType: '
|
|
107
|
+
sizeType: 'Customize font styles',
|
|
108
108
|
fontFamily: 'Open Sans',
|
|
109
109
|
fontWeight: 600,
|
|
110
110
|
fontSize: 14,
|
|
@@ -137,7 +137,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
137
137
|
backgroundColor: '#fff'
|
|
138
138
|
},
|
|
139
139
|
buttonText: {
|
|
140
|
-
sizeType: '
|
|
140
|
+
sizeType: 'Customize font styles',
|
|
141
141
|
fontFamily: 'Open Sans',
|
|
142
142
|
fontWeight: 400,
|
|
143
143
|
fontSize: 10,
|
|
@@ -159,7 +159,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
159
159
|
backgroundColor: '#E9F0FF'
|
|
160
160
|
},
|
|
161
161
|
buttonText: {
|
|
162
|
-
sizeType: '
|
|
162
|
+
sizeType: 'Customize font styles',
|
|
163
163
|
fontFamily: 'Open Sans',
|
|
164
164
|
fontWeight: 600,
|
|
165
165
|
fontSize: 14,
|
|
@@ -237,7 +237,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
237
237
|
specialContent: [],
|
|
238
238
|
text: '',
|
|
239
239
|
content: {
|
|
240
|
-
sizeType: '
|
|
240
|
+
sizeType: 'Customize font styles',
|
|
241
241
|
fontFamily: 'Open Sans',
|
|
242
242
|
fontWeight: 400,
|
|
243
243
|
fontSize: 18,
|
|
@@ -257,7 +257,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
257
257
|
backgroundColor: '#2F54EB'
|
|
258
258
|
},
|
|
259
259
|
buttonText: {
|
|
260
|
-
sizeType: '
|
|
260
|
+
sizeType: 'Customize font styles',
|
|
261
261
|
fontFamily: 'Open Sans',
|
|
262
262
|
fontWeight: 600,
|
|
263
263
|
fontSize: 14,
|
|
@@ -279,7 +279,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
279
279
|
backgroundColor: '#0d39ed'
|
|
280
280
|
},
|
|
281
281
|
buttonText: {
|
|
282
|
-
sizeType: '
|
|
282
|
+
sizeType: 'Customize font styles',
|
|
283
283
|
fontFamily: 'Open Sans',
|
|
284
284
|
fontWeight: 600,
|
|
285
285
|
fontSize: 14,
|
|
@@ -307,7 +307,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
307
307
|
backgroundColor: '#fff'
|
|
308
308
|
},
|
|
309
309
|
buttonText: {
|
|
310
|
-
sizeType: '
|
|
310
|
+
sizeType: 'Customize font styles',
|
|
311
311
|
fontFamily: 'Open Sans',
|
|
312
312
|
fontWeight: 600,
|
|
313
313
|
fontSize: 14,
|
|
@@ -329,7 +329,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
329
329
|
backgroundColor: '#E9F0FF'
|
|
330
330
|
},
|
|
331
331
|
buttonText: {
|
|
332
|
-
sizeType: '
|
|
332
|
+
sizeType: 'Customize font styles',
|
|
333
333
|
fontFamily: 'Open Sans',
|
|
334
334
|
fontWeight: 600,
|
|
335
335
|
fontSize: 14,
|
|
@@ -370,7 +370,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
370
370
|
// specialContent: [],
|
|
371
371
|
// text: 'Digital Maturity',
|
|
372
372
|
// content: {
|
|
373
|
-
// sizeType: '
|
|
373
|
+
// sizeType: 'Customize font styles',
|
|
374
374
|
// fontFamily: 'Open Sans',
|
|
375
375
|
// fontWeight: 600,
|
|
376
376
|
// fontSize: 28,
|
|
@@ -392,7 +392,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
392
392
|
// specialContent: [],
|
|
393
393
|
// text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
|
|
394
394
|
// content: {
|
|
395
|
-
// sizeType: '
|
|
395
|
+
// sizeType: 'Customize font styles',
|
|
396
396
|
// fontFamily: 'Open Sans',
|
|
397
397
|
// fontWeight: 400,
|
|
398
398
|
// // textAlign: 'center',
|
|
@@ -418,7 +418,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
418
418
|
// backgroundColor: '#2F54EB',
|
|
419
419
|
// },
|
|
420
420
|
// buttonText: {
|
|
421
|
-
// sizeType: '
|
|
421
|
+
// sizeType: 'Customize font styles',
|
|
422
422
|
// fontFamily: 'Open Sans',
|
|
423
423
|
// fontWeight: 600,
|
|
424
424
|
// fontSize: 14,
|
|
@@ -440,7 +440,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
440
440
|
// backgroundColor: '#0d39ed',
|
|
441
441
|
// },
|
|
442
442
|
// buttonText: {
|
|
443
|
-
// sizeType: '
|
|
443
|
+
// sizeType: 'Customize font styles',
|
|
444
444
|
// fontFamily: 'Open Sans',
|
|
445
445
|
// fontWeight: 600,
|
|
446
446
|
// fontSize: 14,
|
|
@@ -468,7 +468,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
468
468
|
// backgroundColor: '#FFFFFF',
|
|
469
469
|
// },
|
|
470
470
|
// buttonText: {
|
|
471
|
-
// sizeType: '
|
|
471
|
+
// sizeType: 'Customize font styles',
|
|
472
472
|
// fontFamily: 'Open Sans',
|
|
473
473
|
// fontWeight: 600,
|
|
474
474
|
// fontSize: 14,
|
|
@@ -490,7 +490,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
490
490
|
// backgroundColor: '#0d39ed',
|
|
491
491
|
// },
|
|
492
492
|
// buttonText: {
|
|
493
|
-
// sizeType: '
|
|
493
|
+
// sizeType: 'Customize font styles',
|
|
494
494
|
// fontFamily: 'Open Sans',
|
|
495
495
|
// fontWeight: 600,
|
|
496
496
|
// fontSize: 14,
|
|
@@ -15,8 +15,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
15
15
|
|
|
16
16
|
var _components = require("../../../../../meta-comp/components");
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
20
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -107,7 +105,7 @@ function (_super) {
|
|
|
107
105
|
var data = this.props.data; // const { ready } = this.state;
|
|
108
106
|
// console.log('----imagetext mobile', data);
|
|
109
107
|
|
|
110
|
-
var wrapStyle =
|
|
108
|
+
var wrapStyle = {};
|
|
111
109
|
wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
|
|
112
110
|
// wrapStyle.backgroundColor = data.background.color;
|
|
113
111
|
// wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
|
|
@@ -122,7 +122,7 @@ function (_super) {
|
|
|
122
122
|
// console.log(data);
|
|
123
123
|
// console.log('====================================');
|
|
124
124
|
|
|
125
|
-
var wrapStyle =
|
|
125
|
+
var wrapStyle = {};
|
|
126
126
|
wrapStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
|
|
127
127
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
128
|
className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
|
|
@@ -111,12 +111,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
111
111
|
pc: {
|
|
112
112
|
paddingTop: 10,
|
|
113
113
|
paddingBottom: 10,
|
|
114
|
-
marginBottom:
|
|
114
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
115
115
|
},
|
|
116
116
|
mobile: {
|
|
117
117
|
paddingTop: 10,
|
|
118
118
|
paddingBottom: 10,
|
|
119
|
-
marginBottom:
|
|
119
|
+
marginBottom: window.magicDesign.compSpacing
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
customize: {
|
|
@@ -19,8 +19,6 @@ var _Text = require("../../../../meta-comp/components/Text");
|
|
|
19
19
|
|
|
20
20
|
require("./index.less");
|
|
21
21
|
|
|
22
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
24
|
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); }
|
|
@@ -90,15 +88,12 @@ function (_super) {
|
|
|
90
88
|
// wrapStyle.backgroundPosition = 'center';
|
|
91
89
|
// }
|
|
92
90
|
|
|
93
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
94
|
-
|
|
95
91
|
var style = __assign({}, (0, _Text.contentStyle)(nodeData.content.inputField.content));
|
|
96
92
|
|
|
97
93
|
Reflect.deleteProperty(style, 'width');
|
|
98
94
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
95
|
className: (0, _classnames["default"])('newsletter-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a[window.magicDesign.device] = true, _a)),
|
|
100
|
-
onClick: this.onComponentClick
|
|
101
|
-
style: wrapStyle
|
|
96
|
+
onClick: this.onComponentClick
|
|
102
97
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
98
|
className: "top-wrap"
|
|
104
99
|
}, nodeData.content.inputField.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -88,12 +88,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
88
88
|
pc: {
|
|
89
89
|
paddingTop: 10,
|
|
90
90
|
paddingBottom: 10,
|
|
91
|
-
marginBottom:
|
|
91
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
92
92
|
},
|
|
93
93
|
mobile: {
|
|
94
94
|
paddingTop: 10,
|
|
95
95
|
paddingBottom: 10,
|
|
96
|
-
marginBottom:
|
|
96
|
+
marginBottom: window.magicDesign.compSpacing
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
customize: {
|
|
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
require("./index.less");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -76,11 +74,9 @@ function (_super) {
|
|
|
76
74
|
var _a;
|
|
77
75
|
|
|
78
76
|
var nodeData = this.props.nodeData;
|
|
79
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
80
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
78
|
className: (0, _classnames["default"])('tag-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
82
|
-
onClick: this.onComponentClick
|
|
83
|
-
style: wrapStyle
|
|
79
|
+
onClick: this.onComponentClick
|
|
84
80
|
}, nodeData.content.image.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
81
|
className: "tag-image"
|
|
86
82
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
@@ -103,7 +103,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
103
103
|
headline: __assign(__assign({}, getDefaultMetaTextJson()), {
|
|
104
104
|
text: 'Title use, click modify text.',
|
|
105
105
|
content: {
|
|
106
|
-
sizeType: '
|
|
106
|
+
sizeType: 'Customize font styles',
|
|
107
107
|
fontFamily: 'Montserrat',
|
|
108
108
|
fontWeight: 600,
|
|
109
109
|
fontSize: 28,
|
|
@@ -130,12 +130,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
130
130
|
pc: {
|
|
131
131
|
paddingTop: 10,
|
|
132
132
|
paddingBottom: 10,
|
|
133
|
-
marginBottom:
|
|
133
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
134
134
|
},
|
|
135
135
|
mobile: {
|
|
136
136
|
paddingTop: 10,
|
|
137
137
|
paddingBottom: 10,
|
|
138
|
-
marginBottom:
|
|
138
|
+
marginBottom: window.magicDesign.compSpacing
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
customize: {
|
|
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
18
|
require("./index.less");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -76,11 +74,9 @@ function (_super) {
|
|
|
76
74
|
var _a;
|
|
77
75
|
|
|
78
76
|
var nodeData = this.props.nodeData;
|
|
79
|
-
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
80
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
78
|
className: "m-text",
|
|
82
|
-
onClick: this.onComponentClick
|
|
83
|
-
style: wrapStyle
|
|
79
|
+
onClick: this.onComponentClick
|
|
84
80
|
}, nodeData.title.headline.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
81
|
className: "title-wrap"
|
|
86
82
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
|
|
|
15
15
|
|
|
16
16
|
var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
17
|
|
|
18
|
+
var _locale = require("../../../../../locale");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -71,21 +73,21 @@ function (_super) {
|
|
|
71
73
|
onRefresh: this.reRender,
|
|
72
74
|
source: [{
|
|
73
75
|
key: '1',
|
|
74
|
-
name: i18n('IMAGE_TAG'),
|
|
76
|
+
name: (0, _locale.i18n)('IMAGE_TAG'),
|
|
75
77
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
76
78
|
data: panelProps.image
|
|
77
79
|
}),
|
|
78
80
|
metaOption: panelProps.image
|
|
79
81
|
}, {
|
|
80
82
|
key: '2',
|
|
81
|
-
name: i18n('BUTTON_TAG'),
|
|
83
|
+
name: (0, _locale.i18n)('BUTTON_TAG'),
|
|
82
84
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
83
85
|
data: panelProps.button
|
|
84
86
|
}),
|
|
85
87
|
metaOption: panelProps.button
|
|
86
88
|
}, {
|
|
87
89
|
key: '3',
|
|
88
|
-
name: i18n('SECONDARY_BUTTON_TAG'),
|
|
90
|
+
name: (0, _locale.i18n)('SECONDARY_BUTTON_TAG'),
|
|
89
91
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
90
92
|
data: panelProps.secondaryButton
|
|
91
93
|
}),
|