@fonixtree/magic-design 2.0.83 → 2.0.85
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 +2 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +8 -4
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +6 -4
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +2 -5
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +4 -4
- package/es/composite-comp/dito/components/Orders/mobile/index.js +19 -8
- package/es/composite-comp/dito/components/Orders/mobile/index.less +13 -9
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +6 -6
- package/es/composite-comp/dito/components/PersonalInformation/index.js +1 -1
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +38 -9
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +20 -18
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +4 -1
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +1 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +4 -1
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +1 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +4 -4
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +2 -2
- package/es/constants/index.js +5 -5
- package/es/core/Designer/ConfigPanel/index.js +1 -1
- package/es/locale/en/en.json +5 -5
- package/es/locale/es/es.json +5 -5
- package/es/locale/id/id.json +5 -5
- package/es/utils/commonUtil.js +1 -1
- package/lib/common/GroupList/index.js +2 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +8 -4
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +6 -4
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +2 -5
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +4 -4
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +19 -8
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +13 -9
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +6 -6
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +1 -1
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +38 -9
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +20 -18
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +4 -1
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +1 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +4 -1
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +1 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +4 -4
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +2 -2
- package/lib/constants/index.js +5 -5
- package/lib/core/Designer/ConfigPanel/index.js +1 -1
- package/lib/locale/en/en.json +5 -5
- package/lib/locale/es/es.json +5 -5
- package/lib/locale/id/id.json +5 -5
- package/lib/utils/commonUtil.js +1 -1
- package/package.json +1 -1
|
@@ -97,7 +97,9 @@ function (_super) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
ImageTextConfigGroup.prototype.render = function () {
|
|
100
|
-
var
|
|
100
|
+
var _a = this.props,
|
|
101
|
+
source = _a.source,
|
|
102
|
+
maxNum = _a.maxNum;
|
|
101
103
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
104
|
className: "banner_group"
|
|
103
105
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -111,6 +113,7 @@ function (_super) {
|
|
|
111
113
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
114
|
className: "btn_wrap"
|
|
113
115
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
116
|
+
disabled: source.length >= maxNum,
|
|
114
117
|
icon: "icon-add",
|
|
115
118
|
onClick: this.onAddClick,
|
|
116
119
|
type: "primary"
|
package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js
CHANGED
|
@@ -97,7 +97,9 @@ function (_super) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
ConfigGroup.prototype.render = function () {
|
|
100
|
-
var
|
|
100
|
+
var _a = this.props,
|
|
101
|
+
source = _a.source,
|
|
102
|
+
maxNum = _a.maxNum;
|
|
101
103
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
104
|
className: "banner_group"
|
|
103
105
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -111,6 +113,7 @@ function (_super) {
|
|
|
111
113
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
114
|
className: "btn_wrap"
|
|
113
115
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
116
|
+
disabled: source.length >= maxNum,
|
|
114
117
|
icon: "icon-add",
|
|
115
118
|
onClick: this.onAddClick,
|
|
116
119
|
type: "primary"
|
|
@@ -114,10 +114,10 @@ function (_super) {
|
|
|
114
114
|
}, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
115
115
|
value: _index.orderStatusType.RECEIVE
|
|
116
116
|
}, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
117
|
-
value: _index.orderStatusType.
|
|
118
|
-
}, (0, _locale.i18n)('
|
|
119
|
-
value: _index.orderStatusType.
|
|
120
|
-
}, (0, _locale.i18n)('
|
|
117
|
+
value: _index.orderStatusType.DONE
|
|
118
|
+
}, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
119
|
+
value: _index.orderStatusType.CANCELLED
|
|
120
|
+
}, (0, _locale.i18n)('CANCELLED'))))));
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
return _this;
|
package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js
CHANGED
|
@@ -109,8 +109,8 @@ function (_super) {
|
|
|
109
109
|
}, (0, _locale.i18n)('WISHLIST')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
110
110
|
value: _index.personalInfoType.STORES
|
|
111
111
|
}, (0, _locale.i18n)('STORES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
112
|
-
value: _index.personalInfoType.
|
|
113
|
-
}, (0, _locale.i18n)('
|
|
112
|
+
value: _index.personalInfoType.VOUCHERS
|
|
113
|
+
}, (0, _locale.i18n)('VOUCHERS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
114
114
|
value: _index.personalInfoType.VIEWED
|
|
115
115
|
}, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
|
|
116
116
|
};
|
package/lib/constants/index.js
CHANGED
|
@@ -46,17 +46,17 @@ var walletType = {
|
|
|
46
46
|
};
|
|
47
47
|
exports.walletType = walletType;
|
|
48
48
|
var orderStatusType = {
|
|
49
|
-
PAY: 'To
|
|
49
|
+
PAY: 'To Pay',
|
|
50
50
|
SHIP: 'To Ship',
|
|
51
51
|
RECEIVE: 'To Receive',
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
DONE: 'Done',
|
|
53
|
+
CANCELLED: 'Cancelled'
|
|
54
54
|
};
|
|
55
55
|
exports.orderStatusType = orderStatusType;
|
|
56
56
|
var personalInfoType = {
|
|
57
57
|
WISHLIST: 'Wishlist',
|
|
58
58
|
STORES: 'Stores',
|
|
59
|
-
|
|
59
|
+
VOUCHERS: 'Vouchers',
|
|
60
60
|
VIEWED: 'Recently Viewed'
|
|
61
61
|
};
|
|
62
62
|
exports.personalInfoType = personalInfoType;
|
|
@@ -212,7 +212,7 @@ var compInfoMap = {
|
|
|
212
212
|
name: 'Menu Navigation',
|
|
213
213
|
icon: 'icon-footer'
|
|
214
214
|
},
|
|
215
|
-
|
|
215
|
+
PERSONAL_INFOMATION: {
|
|
216
216
|
name: 'Personal Information',
|
|
217
217
|
icon: 'icon-account'
|
|
218
218
|
},
|
|
@@ -131,7 +131,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
131
131
|
groupName = panelProps.button.text;
|
|
132
132
|
break;
|
|
133
133
|
|
|
134
|
-
case '
|
|
134
|
+
case 'PERSONAL_INFOMATION':
|
|
135
135
|
case 'ORDERS':
|
|
136
136
|
groupName = panelProps.sourceType;
|
|
137
137
|
break;
|
package/lib/locale/en/en.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"CANCELLED": "Cancelled",
|
|
3
|
+
"DONE": "Done",
|
|
4
4
|
"TO_RECEIVE": "To Receive",
|
|
5
5
|
"TO_SHIP": "To ship",
|
|
6
|
-
"TO_PAY": "To
|
|
6
|
+
"TO_PAY": "To Pay",
|
|
7
7
|
"VIEW_ALL_ORDERS": "View All Orders",
|
|
8
|
-
"ORDERS": "
|
|
8
|
+
"ORDERS": "Orders",
|
|
9
9
|
"RECENTLY_VIEWED": "Recently Viewed",
|
|
10
|
-
"
|
|
10
|
+
"VOUCHERS": "Vouchers",
|
|
11
11
|
"STORES": "Stores",
|
|
12
12
|
"WISHLIST": "Wishlist",
|
|
13
13
|
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"CANCELLED": "Cancelled",
|
|
3
|
+
"DONE": "Done",
|
|
4
4
|
"TO_RECEIVE": "To Receive",
|
|
5
5
|
"TO_SHIP": "To ship",
|
|
6
|
-
"TO_PAY": "To
|
|
6
|
+
"TO_PAY": "To Pay",
|
|
7
7
|
"VIEW_ALL_ORDERS": "View All Orders",
|
|
8
|
-
"ORDERS": "
|
|
8
|
+
"ORDERS": "Orders",
|
|
9
9
|
"RECENTLY_VIEWED": "Recently Viewed",
|
|
10
|
-
"
|
|
10
|
+
"VOUCHERS": "Vouchers",
|
|
11
11
|
"STORES": "Stores",
|
|
12
12
|
"WISHLIST": "Wishlist",
|
|
13
13
|
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"CANCELLED": "Cancelled",
|
|
3
|
+
"DONE": "Done",
|
|
4
4
|
"TO_RECEIVE": "To Receive",
|
|
5
5
|
"TO_SHIP": "To ship",
|
|
6
|
-
"TO_PAY": "To
|
|
6
|
+
"TO_PAY": "To Pay",
|
|
7
7
|
"VIEW_ALL_ORDERS": "View All Orders",
|
|
8
|
-
"ORDERS": "
|
|
8
|
+
"ORDERS": "Orders",
|
|
9
9
|
"RECENTLY_VIEWED": "Recently Viewed",
|
|
10
|
-
"
|
|
10
|
+
"VOUCHERS": "Vouchers",
|
|
11
11
|
"STORES": "Stores",
|
|
12
12
|
"WISHLIST": "Wishlist",
|
|
13
13
|
"IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -752,7 +752,7 @@ function pushGA(data, eventName) {
|
|
|
752
752
|
elementName: data.elementName
|
|
753
753
|
};
|
|
754
754
|
console.log('GA push', eventName, eventData);
|
|
755
|
-
window.gtag('event', eventName, eventData);
|
|
755
|
+
if (window.gtag) window.gtag('event', eventName, eventData);
|
|
756
756
|
}
|
|
757
757
|
} catch (error) {
|
|
758
758
|
console.error(error);
|