@fonixtree/magic-design 1.0.130 → 1.0.132
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/PersonalInformation/mobile/index.less +4 -3
- 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 +349 -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/PersonalInformation/mobile/index.less +4 -3
- 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 +349 -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,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
|
|
11
|
+
|
|
12
|
+
var _layout = require("../../../../constants/layout");
|
|
13
|
+
|
|
14
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
15
|
+
|
|
16
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
+
|
|
18
|
+
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
19
|
+
|
|
20
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
21
|
+
|
|
22
|
+
var _locale = require("../../../../locale");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var SlideImageConfig =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(SlideImageConfig, _super);
|
|
56
|
+
|
|
57
|
+
function SlideImageConfig() {
|
|
58
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
SlideImageConfig.prototype.render = function () {
|
|
62
|
+
var data = this.props.data;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
64
|
+
divider: "bold",
|
|
65
|
+
headerSize: "large",
|
|
66
|
+
source: [{
|
|
67
|
+
key: '1',
|
|
68
|
+
name: (0, _locale.i18n)('GROUP'),
|
|
69
|
+
value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
|
|
70
|
+
id: data.id,
|
|
71
|
+
source: data.groupSource
|
|
72
|
+
})
|
|
73
|
+
}, {
|
|
74
|
+
key: '2',
|
|
75
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
76
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
77
|
+
configColumnSpace: true,
|
|
78
|
+
configCompSpace: true,
|
|
79
|
+
configLineSpace: true,
|
|
80
|
+
data: data.spacing
|
|
81
|
+
})
|
|
82
|
+
}, {
|
|
83
|
+
key: '3',
|
|
84
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
85
|
+
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
86
|
+
data: data.customize,
|
|
87
|
+
isHideAlign: true,
|
|
88
|
+
layoutSource: _layout.slideImageLayout
|
|
89
|
+
})
|
|
90
|
+
}, {
|
|
91
|
+
key: '4',
|
|
92
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
93
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
94
|
+
data: data.background
|
|
95
|
+
})
|
|
96
|
+
}],
|
|
97
|
+
type: "triangle"
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
SlideImageConfig.defaultProps = {
|
|
102
|
+
data: {}
|
|
103
|
+
};
|
|
104
|
+
return SlideImageConfig;
|
|
105
|
+
}(_react["default"].Component);
|
|
106
|
+
|
|
107
|
+
var _default = SlideImageConfig;
|
|
108
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,198 @@
|
|
|
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 _locale = require("../../../../locale");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
16
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
17
|
+
|
|
18
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
19
|
+
|
|
20
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
|
+
|
|
22
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
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 __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var GroupedCarouselSecondConfig =
|
|
71
|
+
/** @class */
|
|
72
|
+
function (_super) {
|
|
73
|
+
__extends(GroupedCarouselSecondConfig, _super);
|
|
74
|
+
|
|
75
|
+
function GroupedCarouselSecondConfig() {
|
|
76
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
|
|
78
|
+
_this.state = {};
|
|
79
|
+
|
|
80
|
+
_this.getContentPanel = function () {
|
|
81
|
+
var panelProps = _this.props.panelProps;
|
|
82
|
+
var defaultSource = [{
|
|
83
|
+
key: 'defaultSource_1',
|
|
84
|
+
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
85
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
86
|
+
data: panelProps.groupName
|
|
87
|
+
}),
|
|
88
|
+
metaOption: panelProps.groupName
|
|
89
|
+
}, {
|
|
90
|
+
key: 'defaultSource_2',
|
|
91
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
92
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
93
|
+
data: panelProps.image
|
|
94
|
+
}),
|
|
95
|
+
metaOption: panelProps.image
|
|
96
|
+
}, {
|
|
97
|
+
key: 'defaultSource_3',
|
|
98
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
99
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
100
|
+
data: panelProps.title
|
|
101
|
+
}),
|
|
102
|
+
metaOption: panelProps.title
|
|
103
|
+
}, {
|
|
104
|
+
key: 'defaultSource_4',
|
|
105
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
106
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
107
|
+
data: panelProps.text
|
|
108
|
+
}),
|
|
109
|
+
metaOption: panelProps.text
|
|
110
|
+
}, {
|
|
111
|
+
key: 'defaultSource_5',
|
|
112
|
+
name: (0, _locale.i18n)('BUTTON'),
|
|
113
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
114
|
+
data: panelProps.button
|
|
115
|
+
}),
|
|
116
|
+
metaOption: panelProps.button
|
|
117
|
+
}, {
|
|
118
|
+
key: 'defaultSource_6',
|
|
119
|
+
name: (0, _locale.i18n)('SECONDARY_BUTTON'),
|
|
120
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
121
|
+
data: panelProps.secondaryButton
|
|
122
|
+
}),
|
|
123
|
+
metaOption: panelProps.secondaryButton
|
|
124
|
+
}];
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
126
|
+
headerSize: "middle",
|
|
127
|
+
onRefresh: function onRefresh() {
|
|
128
|
+
return (0, _coreUtil.renderPreview)();
|
|
129
|
+
},
|
|
130
|
+
showActiveColor: true,
|
|
131
|
+
source: defaultSource,
|
|
132
|
+
type: "switch"
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
_this.resetHover = function () {
|
|
137
|
+
var panelProps = _this.props.panelProps;
|
|
138
|
+
|
|
139
|
+
if (panelProps.hover.open) {
|
|
140
|
+
panelProps.hover.groupName = __assign(__assign({}, panelProps.hover.groupName), JSON.parse(JSON.stringify(panelProps.groupName)));
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return _this;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
GroupedCarouselSecondConfig.prototype.render = function () {
|
|
148
|
+
var _this = this;
|
|
149
|
+
|
|
150
|
+
var panelProps = this.props.panelProps;
|
|
151
|
+
|
|
152
|
+
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
153
|
+
divider: "dashed",
|
|
154
|
+
noChange: true,
|
|
155
|
+
onRefresh: function onRefresh() {
|
|
156
|
+
return (0, _coreUtil.renderPreview)();
|
|
157
|
+
},
|
|
158
|
+
source: [{
|
|
159
|
+
key: 'hoverSetting_1',
|
|
160
|
+
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
161
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
162
|
+
data: panelProps.hover.groupName
|
|
163
|
+
}),
|
|
164
|
+
metaOption: panelProps.hover.groupName
|
|
165
|
+
}],
|
|
166
|
+
type: "switch"
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "grouped_carousel_second_conf_wrap"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
172
|
+
divider: "bold",
|
|
173
|
+
headerSize: "large",
|
|
174
|
+
onRefresh: function onRefresh() {
|
|
175
|
+
return _this.resetHover();
|
|
176
|
+
},
|
|
177
|
+
source: [{
|
|
178
|
+
key: '1',
|
|
179
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
180
|
+
value: this.getContentPanel()
|
|
181
|
+
}, {
|
|
182
|
+
key: '2',
|
|
183
|
+
name: (0, _locale.i18n)('HOVER'),
|
|
184
|
+
value: hoverPanel,
|
|
185
|
+
metaOption: panelProps.hover,
|
|
186
|
+
toggleType: 'checkbox'
|
|
187
|
+
}]
|
|
188
|
+
}));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
GroupedCarouselSecondConfig.defaultProps = {
|
|
192
|
+
panelProps: {}
|
|
193
|
+
};
|
|
194
|
+
return GroupedCarouselSecondConfig;
|
|
195
|
+
}(_BaseConfig["default"]);
|
|
196
|
+
|
|
197
|
+
var _default = GroupedCarouselSecondConfig;
|
|
198
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -0,0 +1,133 @@
|
|
|
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 _locale = require("../../../../locale");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
16
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
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 NewsSecondConfig =
|
|
55
|
+
/** @class */
|
|
56
|
+
function (_super) {
|
|
57
|
+
__extends(NewsSecondConfig, _super);
|
|
58
|
+
|
|
59
|
+
function NewsSecondConfig() {
|
|
60
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
|
|
62
|
+
_this.state = {};
|
|
63
|
+
|
|
64
|
+
_this.getContentPanel = function () {
|
|
65
|
+
var panelProps = _this.props.panelProps;
|
|
66
|
+
var defaultSource = [{
|
|
67
|
+
key: 'defaultSource_1',
|
|
68
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
69
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
70
|
+
data: panelProps.image
|
|
71
|
+
}),
|
|
72
|
+
metaOption: panelProps.image
|
|
73
|
+
}, {
|
|
74
|
+
key: 'defaultSource_2',
|
|
75
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
76
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
77
|
+
data: panelProps.groupName
|
|
78
|
+
}),
|
|
79
|
+
metaOption: panelProps.groupName
|
|
80
|
+
}, {
|
|
81
|
+
key: 'defaultSource_3',
|
|
82
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
83
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
84
|
+
data: panelProps.text
|
|
85
|
+
}),
|
|
86
|
+
metaOption: panelProps.text
|
|
87
|
+
}];
|
|
88
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
89
|
+
headerSize: "middle",
|
|
90
|
+
onRefresh: function onRefresh() {
|
|
91
|
+
return (0, _coreUtil.renderPreview)();
|
|
92
|
+
},
|
|
93
|
+
showActiveColor: true,
|
|
94
|
+
source: defaultSource,
|
|
95
|
+
type: "switch"
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
NewsSecondConfig.prototype.render = function () {
|
|
103
|
+
var _this = this;
|
|
104
|
+
|
|
105
|
+
var panelProps = this.props.panelProps;
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "news_second_conf_wrap"
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
109
|
+
divider: "bold",
|
|
110
|
+
headerSize: "large",
|
|
111
|
+
onRefresh: function onRefresh() {
|
|
112
|
+
return _this.renderPreview();
|
|
113
|
+
},
|
|
114
|
+
source: [{
|
|
115
|
+
key: '1',
|
|
116
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
117
|
+
value: this.getContentPanel()
|
|
118
|
+
}]
|
|
119
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
className: "line"
|
|
121
|
+
}), /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
122
|
+
data: panelProps.background
|
|
123
|
+
})));
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
NewsSecondConfig.defaultProps = {
|
|
127
|
+
panelProps: {}
|
|
128
|
+
};
|
|
129
|
+
return NewsSecondConfig;
|
|
130
|
+
}(_BaseConfig["default"]);
|
|
131
|
+
|
|
132
|
+
var _default = NewsSecondConfig;
|
|
133
|
+
exports["default"] = _default;
|