@fonixtree/magic-design 1.0.131 → 1.0.133
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 +11 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/global.less +1 -0
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +313 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +194 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +176 -0
- package/es/composite-comp/dito/components/News/index.js +84 -0
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +0 -10
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +215 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +146 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +591 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +162 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +117 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +96 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +1 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +140 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +12 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/imgs/mask.svg +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.js +88 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +121 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +20 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +26 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.less +1 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +106 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +156 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +108 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +198 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +357 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +330 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +0 -0
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +16 -0
- package/es/constants/layout.js +34 -2
- package/es/locale/en/en.json +5 -1
- package/es/locale/es/es.json +5 -1
- package/es/locale/id/id.json +5 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +2 -1
- package/es/meta-comp/components/Image/index.js +11 -4
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/utils/commonUtil.js +4 -1
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/global.less +1 -0
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +313 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +194 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +176 -0
- package/lib/composite-comp/dito/components/News/index.js +84 -0
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +0 -10
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +215 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +146 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +591 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +162 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +117 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +96 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +1 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +140 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +12 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/imgs/mask.svg +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.js +88 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +121 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +20 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +26 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.less +1 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +106 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +156 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +108 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +198 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +357 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +330 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +0 -0
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +16 -0
- package/lib/constants/layout.js +34 -2
- package/lib/locale/en/en.json +5 -1
- package/lib/locale/es/es.json +5 -1
- package/lib/locale/id/id.json +5 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +2 -1
- package/lib/meta-comp/components/Image/index.js +11 -4
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/utils/commonUtil.js +4 -1
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
17
|
+
|
|
18
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
|
+
|
|
20
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
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
|
+
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 SlideImageSecondConfig =
|
|
55
|
+
/** @class */
|
|
56
|
+
function (_super) {
|
|
57
|
+
__extends(SlideImageSecondConfig, _super);
|
|
58
|
+
|
|
59
|
+
function SlideImageSecondConfig() {
|
|
60
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
|
|
62
|
+
_this.state = {};
|
|
63
|
+
|
|
64
|
+
_this.reRender = function () {
|
|
65
|
+
(0, _coreUtil.renderPreview)();
|
|
66
|
+
|
|
67
|
+
_this.setState({});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_this.getImageRecommendSize = function (customize) {
|
|
71
|
+
var _a;
|
|
72
|
+
|
|
73
|
+
var obj = null;
|
|
74
|
+
|
|
75
|
+
if ((0, _coreUtil.isPc)()) {
|
|
76
|
+
switch ((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) {
|
|
77
|
+
case 'layout1':
|
|
78
|
+
obj = {
|
|
79
|
+
width: 1280,
|
|
80
|
+
height: 600
|
|
81
|
+
};
|
|
82
|
+
break;
|
|
83
|
+
|
|
84
|
+
case 'layout2':
|
|
85
|
+
obj = {
|
|
86
|
+
width: 640,
|
|
87
|
+
height: 600
|
|
88
|
+
};
|
|
89
|
+
break;
|
|
90
|
+
|
|
91
|
+
case 'layout3':
|
|
92
|
+
obj = {
|
|
93
|
+
width: 410,
|
|
94
|
+
height: 300
|
|
95
|
+
};
|
|
96
|
+
break;
|
|
97
|
+
|
|
98
|
+
default:
|
|
99
|
+
obj = {
|
|
100
|
+
width: 440,
|
|
101
|
+
height: 272
|
|
102
|
+
};
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
obj = {
|
|
107
|
+
width: 343,
|
|
108
|
+
height: 212
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return obj;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
_this.getVideoContent = function () {
|
|
116
|
+
var _a = _this.props,
|
|
117
|
+
panelProps = _a.panelProps,
|
|
118
|
+
parentNode = _a.parentNode;
|
|
119
|
+
|
|
120
|
+
var size = _this.getImageRecommendSize(parentNode.customize);
|
|
121
|
+
|
|
122
|
+
var source = [{
|
|
123
|
+
key: '1',
|
|
124
|
+
name: 'Overlay',
|
|
125
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
126
|
+
data: panelProps.overilay,
|
|
127
|
+
needClickArea: false,
|
|
128
|
+
needHover: false,
|
|
129
|
+
needURL: false,
|
|
130
|
+
recommendImgSize: size
|
|
131
|
+
}),
|
|
132
|
+
metaOption: panelProps.overilay
|
|
133
|
+
}];
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
135
|
+
title: "Select Video"
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
137
|
+
onChange: function onChange(v) {
|
|
138
|
+
panelProps.video.sourceType = v;
|
|
139
|
+
|
|
140
|
+
_this.reRender();
|
|
141
|
+
},
|
|
142
|
+
value: panelProps.video.sourceType
|
|
143
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
144
|
+
value: "Upload"
|
|
145
|
+
}, "Upload"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
146
|
+
value: "URL"
|
|
147
|
+
}, "URL"))), panelProps.video.sourceType === 'URL' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
148
|
+
title: "URL"
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
+
className: "input-url"
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
152
|
+
onChange: function onChange(e) {
|
|
153
|
+
panelProps.video.sourceUrl = e.target.value;
|
|
154
|
+
|
|
155
|
+
_this.reRender();
|
|
156
|
+
},
|
|
157
|
+
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
158
|
+
type: "text",
|
|
159
|
+
value: panelProps.video.sourceUrl
|
|
160
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
|
+
className: "icon-btns"
|
|
162
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
163
|
+
color: "#FF4141",
|
|
164
|
+
onClick: function onClick() {
|
|
165
|
+
panelProps.video.sourceUrl = '';
|
|
166
|
+
|
|
167
|
+
_this.reRender();
|
|
168
|
+
},
|
|
169
|
+
size: "20px",
|
|
170
|
+
type: "icon-delete1"
|
|
171
|
+
})))), panelProps.video.sourceType === 'Upload' && /*#__PURE__*/_react["default"].createElement(_common.VideoUpload, {
|
|
172
|
+
onChange: function onChange(v) {
|
|
173
|
+
panelProps.video.sourceUrl = v;
|
|
174
|
+
|
|
175
|
+
_this.reRender();
|
|
176
|
+
},
|
|
177
|
+
value: panelProps.video.sourceUrl
|
|
178
|
+
}), /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
179
|
+
headerSize: "middle",
|
|
180
|
+
onRefresh: function onRefresh() {
|
|
181
|
+
return (0, _coreUtil.renderPreview)();
|
|
182
|
+
},
|
|
183
|
+
showActiveColor: true,
|
|
184
|
+
source: source,
|
|
185
|
+
type: "switch"
|
|
186
|
+
}));
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
_this.getSettingPanel = function () {
|
|
190
|
+
var panelProps = _this.props.panelProps;
|
|
191
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
192
|
+
layout: "horizontal",
|
|
193
|
+
split: true,
|
|
194
|
+
title: "Progress bar"
|
|
195
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
196
|
+
checked: panelProps.video.progressBar,
|
|
197
|
+
onChange: function onChange(v) {
|
|
198
|
+
panelProps.video.progressBar = v;
|
|
199
|
+
|
|
200
|
+
_this.reRender();
|
|
201
|
+
}
|
|
202
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
203
|
+
layout: "horizontal",
|
|
204
|
+
split: true,
|
|
205
|
+
title: "Play in loop"
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
207
|
+
checked: panelProps.video.loop,
|
|
208
|
+
onChange: function onChange(v) {
|
|
209
|
+
panelProps.video.loop = v;
|
|
210
|
+
|
|
211
|
+
_this.reRender();
|
|
212
|
+
}
|
|
213
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
214
|
+
layout: "horizontal",
|
|
215
|
+
split: true,
|
|
216
|
+
title: "Autoplays"
|
|
217
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
218
|
+
checked: panelProps.video.autoplay,
|
|
219
|
+
onChange: function onChange(v) {
|
|
220
|
+
panelProps.video.autoplay = v;
|
|
221
|
+
|
|
222
|
+
_this.reRender();
|
|
223
|
+
}
|
|
224
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
225
|
+
layout: "horizontal",
|
|
226
|
+
split: true,
|
|
227
|
+
title: "Video Sound"
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
229
|
+
checked: panelProps.video.videoSound,
|
|
230
|
+
onChange: function onChange(v) {
|
|
231
|
+
panelProps.video.videoSound = v;
|
|
232
|
+
|
|
233
|
+
_this.reRender();
|
|
234
|
+
}
|
|
235
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
236
|
+
title: "Play Speed"
|
|
237
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
238
|
+
inputType: "float",
|
|
239
|
+
maxVal: 2,
|
|
240
|
+
minVal: 0.5,
|
|
241
|
+
onChange: function onChange(_a) {
|
|
242
|
+
var count = _a.count;
|
|
243
|
+
panelProps.video.speed = count;
|
|
244
|
+
|
|
245
|
+
_this.reRender();
|
|
246
|
+
},
|
|
247
|
+
value: {
|
|
248
|
+
count: panelProps.video.speed
|
|
249
|
+
}
|
|
250
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
251
|
+
title: "Play Position"
|
|
252
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
253
|
+
onChange: function onChange(v) {
|
|
254
|
+
panelProps.video.playPosition = v;
|
|
255
|
+
|
|
256
|
+
_this.reRender();
|
|
257
|
+
},
|
|
258
|
+
value: panelProps.video.playPosition
|
|
259
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
260
|
+
value: "Play in Box"
|
|
261
|
+
}, "Play in Box"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
262
|
+
value: "Popup"
|
|
263
|
+
}, "Popup"))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
264
|
+
title: "Play button position"
|
|
265
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
266
|
+
onChange: function onChange(v) {
|
|
267
|
+
panelProps.video.playButton = v;
|
|
268
|
+
|
|
269
|
+
_this.reRender();
|
|
270
|
+
},
|
|
271
|
+
value: panelProps.video.playButton
|
|
272
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
273
|
+
value: "Bottom Left"
|
|
274
|
+
}, "Bottom Left"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
275
|
+
value: "Middle"
|
|
276
|
+
}, "Middle"))));
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
_this.getContentPanel = function () {
|
|
280
|
+
var panelProps = _this.props.panelProps;
|
|
281
|
+
var defaultSource = [// { key: 'defaultSource_1', name: i18n('IMAGE'), value: <ImageConfig data={panelProps.image} />, metaOption: panelProps.image },
|
|
282
|
+
{
|
|
283
|
+
key: panelProps.groupName.id,
|
|
284
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
285
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
286
|
+
data: panelProps.groupName
|
|
287
|
+
}),
|
|
288
|
+
metaOption: panelProps.groupName
|
|
289
|
+
}];
|
|
290
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
291
|
+
headerSize: "middle",
|
|
292
|
+
onRefresh: function onRefresh() {
|
|
293
|
+
return (0, _coreUtil.renderPreview)();
|
|
294
|
+
},
|
|
295
|
+
showActiveColor: true,
|
|
296
|
+
source: defaultSource,
|
|
297
|
+
type: "switch"
|
|
298
|
+
}));
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
return _this;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
SlideImageSecondConfig.prototype.render = function () {
|
|
305
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
306
|
+
className: "slide_image_second_conf_wrap"
|
|
307
|
+
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
308
|
+
divider: "bold",
|
|
309
|
+
headerSize: "large",
|
|
310
|
+
source: [{
|
|
311
|
+
key: 'video1',
|
|
312
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
313
|
+
value: this.getVideoContent()
|
|
314
|
+
}, // { key: 'video2', name: i18n('SETTING'), value: this.getSettingPanel() },
|
|
315
|
+
{
|
|
316
|
+
key: 'video2',
|
|
317
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
318
|
+
value: this.getContentPanel()
|
|
319
|
+
}]
|
|
320
|
+
}));
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
SlideImageSecondConfig.defaultProps = {
|
|
324
|
+
panelProps: {}
|
|
325
|
+
};
|
|
326
|
+
return SlideImageSecondConfig;
|
|
327
|
+
}(_react["default"].Component);
|
|
328
|
+
|
|
329
|
+
var _default = SlideImageSecondConfig;
|
|
330
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -61,6 +61,14 @@ var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components
|
|
|
61
61
|
|
|
62
62
|
var _SearchBanner = _interopRequireDefault(require("../composite-comp/dito/components/SearchBanner"));
|
|
63
63
|
|
|
64
|
+
var _GroupedCarousel = _interopRequireDefault(require("../composite-comp/dito/components/GroupedCarousel"));
|
|
65
|
+
|
|
66
|
+
var _SlideImage = _interopRequireDefault(require("../composite-comp/dito/components/SlideImage"));
|
|
67
|
+
|
|
68
|
+
var _SearchDITO = _interopRequireDefault(require("../composite-comp/dito/components/SearchDITO"));
|
|
69
|
+
|
|
70
|
+
var _News = _interopRequireDefault(require("../composite-comp/dito/components/News"));
|
|
71
|
+
|
|
64
72
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
65
73
|
|
|
66
74
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -117,6 +125,14 @@ var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/conf
|
|
|
117
125
|
|
|
118
126
|
var _SearchBannerConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchBannerConfig"));
|
|
119
127
|
|
|
128
|
+
var _GroupedCarouselConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/GroupedCarouselConfig"));
|
|
129
|
+
|
|
130
|
+
var _SlideImageConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SlideImageConfig"));
|
|
131
|
+
|
|
132
|
+
var _SearchDITOConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchDITOConfig"));
|
|
133
|
+
|
|
134
|
+
var _NewsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/NewsConfig"));
|
|
135
|
+
|
|
120
136
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
121
137
|
|
|
122
138
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -155,6 +171,14 @@ var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-
|
|
|
155
171
|
|
|
156
172
|
var _SearchBannerSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SearchBannerSecondConfig"));
|
|
157
173
|
|
|
174
|
+
var _GroupedCarouselSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig"));
|
|
175
|
+
|
|
176
|
+
var _SlideImageSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SlideImageSecondConfig"));
|
|
177
|
+
|
|
178
|
+
var _SearchDITOSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SearchDITOSecondConfig"));
|
|
179
|
+
|
|
180
|
+
var _NewsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/NewsSecondConfig"));
|
|
181
|
+
|
|
158
182
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
159
183
|
|
|
160
184
|
var _a, _b, _c; // 组件
|
|
@@ -163,17 +187,17 @@ var _a, _b, _c; // 组件
|
|
|
163
187
|
/**
|
|
164
188
|
* 渲染组件索引
|
|
165
189
|
*/
|
|
166
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a);
|
|
190
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a);
|
|
167
191
|
/**
|
|
168
192
|
* 一级配置面板索引
|
|
169
193
|
*/
|
|
170
194
|
|
|
171
195
|
exports.componentMap = componentMap;
|
|
172
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b);
|
|
196
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b);
|
|
173
197
|
/**
|
|
174
198
|
* 二级配置面板索引
|
|
175
199
|
*/
|
|
176
200
|
|
|
177
201
|
exports.configPanelMap = configPanelMap;
|
|
178
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c);
|
|
202
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c);
|
|
179
203
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/es/constants/index.js
CHANGED
|
@@ -231,6 +231,22 @@ var compInfoMap = {
|
|
|
231
231
|
SEARCH_BANNER: {
|
|
232
232
|
name: 'Search Banner',
|
|
233
233
|
icon: 'icon-carousel'
|
|
234
|
+
},
|
|
235
|
+
GROUPED_CAROUSEL: {
|
|
236
|
+
name: 'Grouped Carousel',
|
|
237
|
+
icon: 'icon-image-gallery'
|
|
238
|
+
},
|
|
239
|
+
SLIDE_IMAGE: {
|
|
240
|
+
name: 'Slide Image',
|
|
241
|
+
icon: 'icon-three-column'
|
|
242
|
+
},
|
|
243
|
+
SEARCH_DITO: {
|
|
244
|
+
name: 'Search DITO',
|
|
245
|
+
icon: 'icon-carousel'
|
|
246
|
+
},
|
|
247
|
+
NEWS: {
|
|
248
|
+
name: 'News',
|
|
249
|
+
icon: 'icon-filled-image'
|
|
234
250
|
}
|
|
235
251
|
};
|
|
236
252
|
/**
|
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -87,6 +87,14 @@ var _bannerSlideLayout2 = _interopRequireDefault(require("../assets/images/layou
|
|
|
87
87
|
|
|
88
88
|
var _flashDealLayout = _interopRequireDefault(require("../assets/images/layout-icon/flash-deal-layout1.png"));
|
|
89
89
|
|
|
90
|
+
var _groupedCarouselLayout = _interopRequireDefault(require("../assets/images/layout-icon/grouped-carousel-layout1.png"));
|
|
91
|
+
|
|
92
|
+
var _slideImageLayout = _interopRequireDefault(require("../assets/images/layout-icon/slide-image-layout1.png"));
|
|
93
|
+
|
|
94
|
+
var _searchDitoLayout = _interopRequireDefault(require("../assets/images/layout-icon/search-dito-layout1.png"));
|
|
95
|
+
|
|
96
|
+
var _newsLayout = _interopRequireDefault(require("../assets/images/layout-icon/news-layout1.png"));
|
|
97
|
+
|
|
90
98
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
91
99
|
|
|
92
100
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -338,4 +346,28 @@ var flashDealLayout = [{
|
|
|
338
346
|
name: 'layout2',
|
|
339
347
|
image: _layoutImagetextM4["default"]
|
|
340
348
|
}];
|
|
341
|
-
exports.flashDealLayout = flashDealLayout;
|
|
349
|
+
exports.flashDealLayout = flashDealLayout;
|
|
350
|
+
var groupedCarouselLayout = [{
|
|
351
|
+
id: 'layout1',
|
|
352
|
+
name: 'layout1',
|
|
353
|
+
image: _groupedCarouselLayout["default"]
|
|
354
|
+
}];
|
|
355
|
+
exports.groupedCarouselLayout = groupedCarouselLayout;
|
|
356
|
+
var slideImageLayout = [{
|
|
357
|
+
id: 'layout1',
|
|
358
|
+
name: 'layout1',
|
|
359
|
+
image: _slideImageLayout["default"]
|
|
360
|
+
}];
|
|
361
|
+
exports.slideImageLayout = slideImageLayout;
|
|
362
|
+
var searchDitoLayout = [{
|
|
363
|
+
id: 'layout1',
|
|
364
|
+
name: 'layout1',
|
|
365
|
+
image: _searchDitoLayout["default"]
|
|
366
|
+
}];
|
|
367
|
+
exports.searchDitoLayout = searchDitoLayout;
|
|
368
|
+
var newsLayout = [{
|
|
369
|
+
id: 'layout1',
|
|
370
|
+
name: 'layout1',
|
|
371
|
+
image: _newsLayout["default"]
|
|
372
|
+
}];
|
|
373
|
+
exports.newsLayout = newsLayout;
|
package/es/locale/en/en.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"LOGIN_BUTTON": "Login Button",
|
|
3
|
+
"SEARCH_ICON": "Search Icon",
|
|
4
|
+
"NAVIGATION": "Navigation",
|
|
5
|
+
"COLUMN_SPACING": "Column spacing",
|
|
6
|
+
"LINE_SPACING": "Line Spacing",
|
|
2
7
|
"CHATBOT_ICON": "Chatbot icon",
|
|
3
8
|
"FESTIVAL_DECORATION": "Festival Decoration",
|
|
4
9
|
"PRICE_REDUCTION": "Price Reduction",
|
|
@@ -195,7 +200,6 @@
|
|
|
195
200
|
"FONT_FAMILY": "Font Family",
|
|
196
201
|
"FONT_WEIGHT": "Font Weight",
|
|
197
202
|
"FONT_SIZE": "Font Size",
|
|
198
|
-
"LINE_SPACING": "Line Spacing",
|
|
199
203
|
"LINE_COLOR": "Line Color",
|
|
200
204
|
"LINE_WEIGHT": "Line Weight",
|
|
201
205
|
"LINE_STYLE": "Line Style",
|
package/es/locale/es/es.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"LOGIN_BUTTON": "Login Button",
|
|
3
|
+
"SEARCH_ICON": "Search Icon",
|
|
4
|
+
"NAVIGATION": "Navigation",
|
|
5
|
+
"COLUMN_SPACING": "Column spacing",
|
|
6
|
+
"LINE_SPACING": "Espaciado entre líneas",
|
|
2
7
|
"CHATBOT_ICON": "Chatbot icon",
|
|
3
8
|
"FESTIVAL_DECORATION": "Festival Decoration",
|
|
4
9
|
"PRICE_REDUCTION": "Price Reduction",
|
|
@@ -195,7 +200,6 @@
|
|
|
195
200
|
"FONT_FAMILY": "Familia de fuentes",
|
|
196
201
|
"FONT_WEIGHT": "Peso de fuente",
|
|
197
202
|
"FONT_SIZE": "Tamaño de fuente",
|
|
198
|
-
"LINE_SPACING": "Espaciado entre líneas",
|
|
199
203
|
"LINE_COLOR": "Color de línea",
|
|
200
204
|
"LINE_WEIGHT": "Grosor de línea",
|
|
201
205
|
"LINE_STYLE": "Estilo de línea",
|
package/es/locale/id/id.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"LOGIN_BUTTON": "Login Button",
|
|
3
|
+
"SEARCH_ICON": "Search Icon",
|
|
4
|
+
"NAVIGATION": "Navigation",
|
|
5
|
+
"COLUMN_SPACING": "Column spacing",
|
|
6
|
+
"LINE_SPACING": "Line Spacing",
|
|
2
7
|
"CHATBOT_ICON": "Chatbot icon",
|
|
3
8
|
"FESTIVAL_DECORATION": "Festival Decoration",
|
|
4
9
|
"PRICE_REDUCTION": "Price Reduction",
|
|
@@ -195,7 +200,6 @@
|
|
|
195
200
|
"FONT_FAMILY": "Font Family",
|
|
196
201
|
"FONT_WEIGHT": "Font Weight",
|
|
197
202
|
"FONT_SIZE": "Font Size",
|
|
198
|
-
"LINE_SPACING": "Line Spacing",
|
|
199
203
|
"LINE_COLOR": "Line Color",
|
|
200
204
|
"LINE_WEIGHT": "Line Weight",
|
|
201
205
|
"LINE_STYLE": "Line Style",
|
|
@@ -95,7 +95,8 @@ function (_super) {
|
|
|
95
95
|
|
|
96
96
|
var _a = this.props,
|
|
97
97
|
data = _a.data,
|
|
98
|
-
readonly = _a.readonly
|
|
98
|
+
readonly = _a.readonly,
|
|
99
|
+
onTextInput = _a.onTextInput;
|
|
99
100
|
this.preData = JSON.stringify(data);
|
|
100
101
|
this.preDevice = window.magicDesign.device;
|
|
101
102
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -104,6 +105,7 @@ function (_super) {
|
|
|
104
105
|
onInput: function onInput(e) {
|
|
105
106
|
var text = e.target.textContent;
|
|
106
107
|
data.text = text;
|
|
108
|
+
onTextInput(text);
|
|
107
109
|
/** 主动更新历史数据避免render */
|
|
108
110
|
|
|
109
111
|
_this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
|
|
@@ -170,7 +170,8 @@ function (_super) {
|
|
|
170
170
|
Button.defaultProps = {
|
|
171
171
|
data: {},
|
|
172
172
|
className: '',
|
|
173
|
-
readonly: false
|
|
173
|
+
readonly: false,
|
|
174
|
+
onTextInput: function onTextInput() {}
|
|
174
175
|
};
|
|
175
176
|
|
|
176
177
|
__decorate([(0, _decorator.shouldUpdate)()], Button.prototype, "shouldComponentUpdate", null);
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _defaultImg = _interopRequireDefault(require("./image/default-img.png"));
|
|
15
|
+
|
|
14
16
|
var _h5DefImg = _interopRequireDefault(require("./image/h5DefImg.png"));
|
|
15
17
|
|
|
16
18
|
var _pcDefImg = _interopRequireDefault(require("./image/pcDefImg.png"));
|
|
@@ -173,8 +175,10 @@ function (_super) {
|
|
|
173
175
|
var _e = this.props,
|
|
174
176
|
data = _e.data,
|
|
175
177
|
isBackground = _e.isBackground,
|
|
178
|
+
imgCover = _e.imgCover,
|
|
176
179
|
hoverState = _e.hoverState,
|
|
177
|
-
notNeedLazy = _e.notNeedLazy
|
|
180
|
+
notNeedLazy = _e.notNeedLazy,
|
|
181
|
+
square = _e.square;
|
|
178
182
|
var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
|
|
179
183
|
// console.log('--metaImage ', this.props);
|
|
180
184
|
|
|
@@ -188,13 +192,14 @@ function (_super) {
|
|
|
188
192
|
|
|
189
193
|
|
|
190
194
|
if (!srcImg) {
|
|
191
|
-
srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
|
|
195
|
+
srcImg = square ? _defaultImg["default"] : (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
|
|
192
196
|
}
|
|
193
197
|
|
|
194
198
|
var areas = data.content.openHotArea && ((0, _coreUtil.isPc)() ? data.content.pcAreas : data.content.h5Areas);
|
|
195
199
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
196
200
|
className: (0, _classnames["default"])('m-meta-image', {
|
|
197
|
-
backgroundImg: isBackground
|
|
201
|
+
backgroundImg: isBackground,
|
|
202
|
+
cover: imgCover
|
|
198
203
|
}),
|
|
199
204
|
onClick: function onClick() {
|
|
200
205
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
@@ -249,10 +254,12 @@ function (_super) {
|
|
|
249
254
|
hover: {}
|
|
250
255
|
},
|
|
251
256
|
isBackground: false,
|
|
257
|
+
imgCover: false,
|
|
252
258
|
hoverState: false,
|
|
253
259
|
limitWidthHeight: false,
|
|
254
260
|
scale: 1,
|
|
255
|
-
notNeedLazy: false
|
|
261
|
+
notNeedLazy: false,
|
|
262
|
+
square: false
|
|
256
263
|
};
|
|
257
264
|
Image = __decorate([_decorator.metaDecorator], Image);
|
|
258
265
|
return Image;
|