@fonixtree/magic-design 2.0.206 → 2.0.209
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/common/GroupList/index.js +6 -2
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/es/composite-comp/common/components/ProductItem/index.js +29 -5
- package/es/composite-comp/common/components/ProductItem/index.less +15 -1
- package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/es/constants/component-types.js +10 -4
- package/es/constants/index.js +4 -0
- package/es/core/Designer/ConfigPanel/index.js +1 -0
- package/es/core/Renderer/index.js +4 -2
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/locale/ar/ar.json +4 -0
- package/es/locale/en/en.json +4 -0
- package/es/locale/es/es.json +4 -0
- package/es/locale/mn/mn.json +18 -1
- package/es/meta-comp/components/Text/index.js +17 -4
- package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/es/utils/commonUtil.js +17 -1
- package/es/utils/coreUtil.js +1 -1
- package/lib/common/GroupList/index.js +6 -2
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
- package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
- package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/lib/constants/component-types.js +10 -4
- package/lib/constants/index.js +4 -0
- package/lib/core/Designer/ConfigPanel/index.js +1 -0
- package/lib/core/Renderer/index.js +4 -2
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/locale/ar/ar.json +4 -0
- package/lib/locale/en/en.json +4 -0
- package/lib/locale/es/es.json +4 -0
- package/lib/locale/mn/mn.json +18 -1
- package/lib/meta-comp/components/Text/index.js +17 -4
- package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/lib/utils/commonUtil.js +17 -1
- package/lib/utils/coreUtil.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
|
|
12
|
+
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _defaultJSON = require("../../../components/PersonalInformation/defaultJSON");
|
|
17
|
+
|
|
18
|
+
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
19
|
+
|
|
20
|
+
var _locale = require("../../../../../locale");
|
|
21
|
+
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
+
var c = arguments.length,
|
|
56
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
+
d;
|
|
58
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
59
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
+
}
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var notice = 'Please add some Item';
|
|
65
|
+
|
|
66
|
+
var ImageTextConfigGroup =
|
|
67
|
+
/** @class */
|
|
68
|
+
function (_super) {
|
|
69
|
+
__extends(ImageTextConfigGroup, _super);
|
|
70
|
+
|
|
71
|
+
function ImageTextConfigGroup() {
|
|
72
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
+
|
|
74
|
+
_this.state = {};
|
|
75
|
+
|
|
76
|
+
_this.onClickItem = function (node) {
|
|
77
|
+
_this.props.store.setState({
|
|
78
|
+
clickedGroup: node.id
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.onAddClick = function () {
|
|
83
|
+
var json = (0, _defaultJSON.OrdersGroupSourceJSON)();
|
|
84
|
+
|
|
85
|
+
_this.props.source.push(json);
|
|
86
|
+
|
|
87
|
+
_this.setState({});
|
|
88
|
+
|
|
89
|
+
(0, _coreUtil.renderPreview)();
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
_this.reRender = function () {
|
|
93
|
+
_this.setState({});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return _this;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ImageTextConfigGroup.prototype.render = function () {
|
|
100
|
+
var _a = this.props,
|
|
101
|
+
source = _a.source,
|
|
102
|
+
maxNum = _a.maxNum;
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: "banner_group"
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
className: "node_list"
|
|
107
|
+
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
+
className: "notice"
|
|
109
|
+
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
110
|
+
onClickItem: this.onClickItem,
|
|
111
|
+
reRender: this.reRender,
|
|
112
|
+
source: source
|
|
113
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: "btn_wrap"
|
|
115
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
116
|
+
disabled: source.length >= maxNum,
|
|
117
|
+
icon: "icon-add",
|
|
118
|
+
onClick: this.onAddClick,
|
|
119
|
+
type: "primary"
|
|
120
|
+
}, (0, _locale.i18n)('ADD'))));
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
ImageTextConfigGroup.defaultProps = {
|
|
124
|
+
source: []
|
|
125
|
+
};
|
|
126
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
127
|
+
return ImageTextConfigGroup;
|
|
128
|
+
}(_react["default"].Component);
|
|
129
|
+
|
|
130
|
+
var _default = ImageTextConfigGroup;
|
|
131
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
|
|
12
|
+
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
17
|
+
|
|
18
|
+
var _defaultJSON = require("../../../components/PersonalInformation/defaultJSON");
|
|
19
|
+
|
|
20
|
+
var _locale = require("../../../../../locale");
|
|
21
|
+
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
+
var c = arguments.length,
|
|
56
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
+
d;
|
|
58
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
59
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
+
}
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var notice = 'Please add some Item';
|
|
65
|
+
|
|
66
|
+
var ConfigGroup =
|
|
67
|
+
/** @class */
|
|
68
|
+
function (_super) {
|
|
69
|
+
__extends(ConfigGroup, _super);
|
|
70
|
+
|
|
71
|
+
function ConfigGroup() {
|
|
72
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
+
|
|
74
|
+
_this.state = {};
|
|
75
|
+
|
|
76
|
+
_this.onClickItem = function (node) {
|
|
77
|
+
_this.props.store.setState({
|
|
78
|
+
clickedGroup: node.id
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.onAddClick = function () {
|
|
83
|
+
var json = (0, _defaultJSON.PersonalInfoGroupSourceJSON)();
|
|
84
|
+
|
|
85
|
+
_this.props.source.push(json);
|
|
86
|
+
|
|
87
|
+
_this.setState({});
|
|
88
|
+
|
|
89
|
+
(0, _coreUtil.renderPreview)();
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
_this.reRender = function () {
|
|
93
|
+
_this.setState({});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return _this;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ConfigGroup.prototype.render = function () {
|
|
100
|
+
var _a = this.props,
|
|
101
|
+
source = _a.source,
|
|
102
|
+
maxNum = _a.maxNum;
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: "banner_group"
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
className: "node_list"
|
|
107
|
+
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
+
className: "notice"
|
|
109
|
+
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
110
|
+
onClickItem: this.onClickItem,
|
|
111
|
+
reRender: this.reRender,
|
|
112
|
+
source: source
|
|
113
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: "btn_wrap"
|
|
115
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
116
|
+
disabled: source.length >= maxNum,
|
|
117
|
+
icon: "icon-add",
|
|
118
|
+
onClick: this.onAddClick,
|
|
119
|
+
type: "primary"
|
|
120
|
+
}, (0, _locale.i18n)('ADD'))));
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
ConfigGroup.defaultProps = {
|
|
124
|
+
source: []
|
|
125
|
+
};
|
|
126
|
+
ConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ConfigGroup);
|
|
127
|
+
return ConfigGroup;
|
|
128
|
+
}(_react["default"].Component);
|
|
129
|
+
|
|
130
|
+
var _default = ConfigGroup;
|
|
131
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,127 @@
|
|
|
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 _ConfigDecoration = _interopRequireDefault(require("./ConfigDecoration"));
|
|
11
|
+
|
|
12
|
+
var _OrdersConfigGroup = _interopRequireDefault(require("./OrdersConfigGroup"));
|
|
13
|
+
|
|
14
|
+
var _locale = require("../../../../locale");
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../common");
|
|
17
|
+
|
|
18
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
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 PersonalInformationConfig =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(PersonalInformationConfig, _super);
|
|
56
|
+
|
|
57
|
+
function PersonalInformationConfig() {
|
|
58
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
|
|
60
|
+
_this.getContentPanel = function () {
|
|
61
|
+
var data = _this.props.data;
|
|
62
|
+
var source = [{
|
|
63
|
+
key: 1,
|
|
64
|
+
name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
|
|
65
|
+
metaOption: data.login
|
|
66
|
+
}];
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
68
|
+
headerSize: "middle",
|
|
69
|
+
onRefresh: function onRefresh() {
|
|
70
|
+
return (0, _coreUtil.renderPreview)();
|
|
71
|
+
},
|
|
72
|
+
source: source,
|
|
73
|
+
type: "switch"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
return _this;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
PersonalInformationConfig.prototype.render = function () {
|
|
81
|
+
var data = this.props.data;
|
|
82
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
83
|
+
divider: "bold",
|
|
84
|
+
headerSize: "large",
|
|
85
|
+
source: [{
|
|
86
|
+
key: 'PersonalInformation1',
|
|
87
|
+
name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
|
|
88
|
+
value: this.getContentPanel()
|
|
89
|
+
}, {
|
|
90
|
+
key: 'PersonalInformation2',
|
|
91
|
+
name: (0, _locale.i18n)('FESTIVAL_DECORATION'),
|
|
92
|
+
value: /*#__PURE__*/_react["default"].createElement(_ConfigDecoration["default"], {
|
|
93
|
+
data: data.decorationIcon
|
|
94
|
+
})
|
|
95
|
+
}, // { key: 'PersonalInformation3', name: i18n('CONTENT'), value: <PersonInfoConfigGroup maxNum={4} source={data.groupSource} />, metaOption: data.groupSource },
|
|
96
|
+
{
|
|
97
|
+
key: 'PersonalInformation4',
|
|
98
|
+
name: (0, _locale.i18n)('ORDERS'),
|
|
99
|
+
value: /*#__PURE__*/_react["default"].createElement(_OrdersConfigGroup["default"], {
|
|
100
|
+
maxNum: 5,
|
|
101
|
+
source: data.groupSource2
|
|
102
|
+
}),
|
|
103
|
+
metaOption: data.groupSource2
|
|
104
|
+
}, {
|
|
105
|
+
key: 'PersonalInformation5',
|
|
106
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
107
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
108
|
+
data: data.spacing
|
|
109
|
+
})
|
|
110
|
+
}, {
|
|
111
|
+
key: 'PersonalInformation6',
|
|
112
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
113
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
114
|
+
data: data.background
|
|
115
|
+
})
|
|
116
|
+
}]
|
|
117
|
+
}));
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
PersonalInformationConfig.defaultProps = {
|
|
121
|
+
data: {}
|
|
122
|
+
};
|
|
123
|
+
return PersonalInformationConfig;
|
|
124
|
+
}(_react["default"].Component);
|
|
125
|
+
|
|
126
|
+
var _default = PersonalInformationConfig;
|
|
127
|
+
exports["default"] = _default;
|
|
@@ -75,7 +75,7 @@ function (_super) {
|
|
|
75
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
76
76
|
var _this = this;
|
|
77
77
|
|
|
78
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
78
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
79
|
|
|
80
80
|
var panelProps = this.props.panelProps;
|
|
81
81
|
var source = [{
|
|
@@ -105,6 +105,22 @@ function (_super) {
|
|
|
105
105
|
_this.selfRender();
|
|
106
106
|
},
|
|
107
107
|
value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
|
|
108
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
109
|
+
title: (0, _locale.i18n)('ICON_COLOR')
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
111
|
+
colorType: "rgba",
|
|
112
|
+
onChange: function onChange(v) {
|
|
113
|
+
if ((0, _coreUtil.isPc)()) {
|
|
114
|
+
panelProps.box.iconColor.pc = v;
|
|
115
|
+
} else {
|
|
116
|
+
panelProps.box.iconColor = {
|
|
117
|
+
mobile: v
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
_this.selfRender();
|
|
122
|
+
},
|
|
123
|
+
value: (0, _coreUtil.isPc)() ? (_a = panelProps.box.iconColor) === null || _a === void 0 ? void 0 : _a.pc : (_b = panelProps.box.iconColor) === null || _b === void 0 ? void 0 : _b.mobile
|
|
108
124
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
109
125
|
style: {
|
|
110
126
|
marginTop: 16
|
|
@@ -121,7 +137,7 @@ function (_super) {
|
|
|
121
137
|
|
|
122
138
|
_this.selfRender();
|
|
123
139
|
},
|
|
124
|
-
value: (0, _coreUtil.isPc)() ? (
|
|
140
|
+
value: (0, _coreUtil.isPc)() ? (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.pc : (_f = (_e = panelProps.box) === null || _e === void 0 ? void 0 : _e.backgroundColor) === null || _f === void 0 ? void 0 : _f.mobile
|
|
125
141
|
}))),
|
|
126
142
|
metaOption: panelProps.box,
|
|
127
143
|
toggleType: 'switch'
|
|
@@ -155,25 +171,25 @@ function (_super) {
|
|
|
155
171
|
|
|
156
172
|
_this.selfRender();
|
|
157
173
|
},
|
|
158
|
-
value: (
|
|
174
|
+
value: (_g = panelProps.placeholder) === null || _g === void 0 ? void 0 : _g.text
|
|
159
175
|
}))),
|
|
160
176
|
metaOption: panelProps.placeholder
|
|
161
177
|
}, {
|
|
162
|
-
key: (
|
|
178
|
+
key: (_h = panelProps.cartIcon) === null || _h === void 0 ? void 0 : _h.id,
|
|
163
179
|
name: (0, _locale.i18n)('CART_ICON'),
|
|
164
180
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
165
181
|
data: panelProps.cartIcon
|
|
166
182
|
}),
|
|
167
183
|
metaOption: panelProps.cartIcon
|
|
168
184
|
}, {
|
|
169
|
-
key: (
|
|
185
|
+
key: (_j = panelProps.chatbotIcon) === null || _j === void 0 ? void 0 : _j.id,
|
|
170
186
|
name: (0, _locale.i18n)('CHATBOT_ICON'),
|
|
171
187
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
172
188
|
data: panelProps.chatbotIcon
|
|
173
189
|
}),
|
|
174
190
|
metaOption: panelProps.chatbotIcon
|
|
175
191
|
}, {
|
|
176
|
-
key: (
|
|
192
|
+
key: (_k = panelProps.messageIcon) === null || _k === void 0 ? void 0 : _k.id,
|
|
177
193
|
name: (0, _locale.i18n)('MESSAGE_ICON'),
|
|
178
194
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
179
195
|
data: panelProps.messageIcon
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,7 +17,7 @@ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-pane
|
|
|
15
17
|
|
|
16
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
19
|
|
|
18
|
-
var _ImageConfig =
|
|
20
|
+
var _ImageConfig = _interopRequireWildcard(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
21
23
|
|
|
@@ -23,6 +25,10 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
23
25
|
|
|
24
26
|
var _locale = require("../../../../locale");
|
|
25
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
26
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
33
|
|
|
28
34
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -60,6 +66,18 @@ function (_super) {
|
|
|
60
66
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
SlideImageConfig.prototype.componentDidMount = function () {
|
|
70
|
+
var _a;
|
|
71
|
+
|
|
72
|
+
var data = this.props.data;
|
|
73
|
+
|
|
74
|
+
if (!((_a = data.content) === null || _a === void 0 ? void 0 : _a.moveIcon)) {
|
|
75
|
+
data.content = {
|
|
76
|
+
moveIcon: _ImageConfig.imageJson
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
63
81
|
SlideImageConfig.prototype.render = function () {
|
|
64
82
|
var _a, _b;
|
|
65
83
|
|
|
@@ -123,6 +123,11 @@ function (_super) {
|
|
|
123
123
|
var size = _this.getImageRecommendSize(parentNode.customize);
|
|
124
124
|
|
|
125
125
|
var source = [{
|
|
126
|
+
key: data.adult.id,
|
|
127
|
+
name: (0, _locale.i18n)('ADULT'),
|
|
128
|
+
value: null,
|
|
129
|
+
metaOption: data.adult
|
|
130
|
+
}, {
|
|
126
131
|
key: 'mobileNavSecondContent1',
|
|
127
132
|
name: (0, _locale.i18n)('IMAGE'),
|
|
128
133
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|