@fonixtree/magic-design 2.0.193 → 2.0.194
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/StoreSource/index.js +3 -2
- package/es/composite-comp/public/components/Location/mobile/index.js +8 -8
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +4 -4
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +4 -1
- package/es/locale/ar/ar.json +2 -0
- package/es/locale/en/en.json +2 -0
- package/es/locale/es/es.json +2 -0
- package/es/locale/mn/mn.json +2 -0
- package/lib/common/StoreSource/index.js +3 -2
- package/lib/composite-comp/public/components/Location/mobile/index.js +8 -8
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +4 -4
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +4 -1
- package/lib/locale/ar/ar.json +2 -0
- package/lib/locale/en/en.json +2 -0
- package/lib/locale/es/es.json +2 -0
- package/lib/locale/mn/mn.json +2 -0
- package/package.json +1 -1
|
@@ -193,14 +193,15 @@ function StoreSource(_a) {
|
|
|
193
193
|
, 2];
|
|
194
194
|
return [4
|
|
195
195
|
/*yield*/
|
|
196
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/
|
|
196
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {
|
|
197
197
|
storeIds: value,
|
|
198
|
+
extOrderType: 1,
|
|
198
199
|
state: 'A'
|
|
199
200
|
}, 'GET')];
|
|
200
201
|
|
|
201
202
|
case 1:
|
|
202
203
|
res = _a.sent();
|
|
203
|
-
setSelectedStores(res
|
|
204
|
+
setSelectedStores(res || []);
|
|
204
205
|
return [3
|
|
205
206
|
/*break*/
|
|
206
207
|
, 3];
|
|
@@ -67,21 +67,21 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
67
67
|
return __assign.apply(this, arguments);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var LocationMobile =
|
|
71
71
|
/** @class */
|
|
72
72
|
function (_super) {
|
|
73
|
-
__extends(
|
|
73
|
+
__extends(LocationMobile, _super);
|
|
74
74
|
|
|
75
|
-
function
|
|
75
|
+
function LocationMobile() {
|
|
76
76
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
|
|
78
78
|
_this.state = {};
|
|
79
79
|
return _this;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
LocationMobile.prototype.componentDidMount = function () {};
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
LocationMobile.prototype.render = function () {
|
|
85
85
|
var _a;
|
|
86
86
|
|
|
87
87
|
var panelProps = this.props.panelProps;
|
|
@@ -123,11 +123,11 @@ function (_super) {
|
|
|
123
123
|
}))));
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
LocationMobile.defaultProps = {
|
|
127
127
|
panelProps: {}
|
|
128
128
|
};
|
|
129
|
-
return
|
|
129
|
+
return LocationMobile;
|
|
130
130
|
}(_react["default"].Component);
|
|
131
131
|
|
|
132
|
-
var _default =
|
|
132
|
+
var _default = LocationMobile;
|
|
133
133
|
exports["default"] = _default;
|
|
@@ -166,13 +166,13 @@ function (_super) {
|
|
|
166
166
|
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
167
167
|
className: "time",
|
|
168
168
|
data: __assign(__assign({}, deliveryTime), {
|
|
169
|
-
text: data.deliveryTime ||
|
|
169
|
+
text: (data.deliveryTime || 17) + " " + (0, _locale.i18n)('MINS')
|
|
170
170
|
}),
|
|
171
171
|
readonly: true
|
|
172
172
|
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
173
173
|
className: "distance",
|
|
174
174
|
data: __assign(__assign({}, distance), {
|
|
175
|
-
text: data.distance ||
|
|
175
|
+
text: (data.distance || 0) + " " + (0, _locale.i18n)('KM')
|
|
176
176
|
}),
|
|
177
177
|
readonly: true
|
|
178
178
|
})))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
@@ -236,7 +236,7 @@ function (_super) {
|
|
|
236
236
|
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
237
237
|
className: "time",
|
|
238
238
|
data: __assign(__assign({}, deliveryTime), {
|
|
239
|
-
text: data.deliveryTime ||
|
|
239
|
+
text: (data.deliveryTime || 17) + " " + (0, _locale.i18n)('MINS')
|
|
240
240
|
}),
|
|
241
241
|
readonly: true
|
|
242
242
|
}), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -244,7 +244,7 @@ function (_super) {
|
|
|
244
244
|
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
245
245
|
className: "distance",
|
|
246
246
|
data: __assign(__assign({}, distance), {
|
|
247
|
-
text: data.distance ||
|
|
247
|
+
text: (data.distance || 0) + " " + (0, _locale.i18n)('KM')
|
|
248
248
|
}),
|
|
249
249
|
readonly: true
|
|
250
250
|
})))));
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
.m-store-item-wrap .content-wrap .sold {
|
|
57
57
|
width: fit-content !important;
|
|
58
58
|
}
|
|
59
|
+
.m-store-item-wrap .content-wrap .score {
|
|
60
|
+
margin-left: -0.2rem;
|
|
61
|
+
}
|
|
59
62
|
.m-store-item-wrap .content-wrap .row {
|
|
60
63
|
display: flex;
|
|
61
64
|
align-items: center;
|
|
@@ -72,7 +75,7 @@
|
|
|
72
75
|
width: 0.02rem;
|
|
73
76
|
height: 0.24rem;
|
|
74
77
|
background-color: #D9D9D9;
|
|
75
|
-
margin: 0 0.
|
|
78
|
+
margin: 0 0.02rem 0 0.14rem;
|
|
76
79
|
}
|
|
77
80
|
.m-store-item-wrap.horizontal {
|
|
78
81
|
flex-direction: column;
|
package/es/locale/ar/ar.json
CHANGED
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/mn/mn.json
CHANGED
|
@@ -193,14 +193,15 @@ function StoreSource(_a) {
|
|
|
193
193
|
, 2];
|
|
194
194
|
return [4
|
|
195
195
|
/*yield*/
|
|
196
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/
|
|
196
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {
|
|
197
197
|
storeIds: value,
|
|
198
|
+
extOrderType: 1,
|
|
198
199
|
state: 'A'
|
|
199
200
|
}, 'GET')];
|
|
200
201
|
|
|
201
202
|
case 1:
|
|
202
203
|
res = _a.sent();
|
|
203
|
-
setSelectedStores(res
|
|
204
|
+
setSelectedStores(res || []);
|
|
204
205
|
return [3
|
|
205
206
|
/*break*/
|
|
206
207
|
, 3];
|
|
@@ -67,21 +67,21 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
67
67
|
return __assign.apply(this, arguments);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var LocationMobile =
|
|
71
71
|
/** @class */
|
|
72
72
|
function (_super) {
|
|
73
|
-
__extends(
|
|
73
|
+
__extends(LocationMobile, _super);
|
|
74
74
|
|
|
75
|
-
function
|
|
75
|
+
function LocationMobile() {
|
|
76
76
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
|
|
78
78
|
_this.state = {};
|
|
79
79
|
return _this;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
LocationMobile.prototype.componentDidMount = function () {};
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
LocationMobile.prototype.render = function () {
|
|
85
85
|
var _a;
|
|
86
86
|
|
|
87
87
|
var panelProps = this.props.panelProps;
|
|
@@ -123,11 +123,11 @@ function (_super) {
|
|
|
123
123
|
}))));
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
LocationMobile.defaultProps = {
|
|
127
127
|
panelProps: {}
|
|
128
128
|
};
|
|
129
|
-
return
|
|
129
|
+
return LocationMobile;
|
|
130
130
|
}(_react["default"].Component);
|
|
131
131
|
|
|
132
|
-
var _default =
|
|
132
|
+
var _default = LocationMobile;
|
|
133
133
|
exports["default"] = _default;
|
|
@@ -166,13 +166,13 @@ function (_super) {
|
|
|
166
166
|
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
167
167
|
className: "time",
|
|
168
168
|
data: __assign(__assign({}, deliveryTime), {
|
|
169
|
-
text: data.deliveryTime ||
|
|
169
|
+
text: (data.deliveryTime || 17) + " " + (0, _locale.i18n)('MINS')
|
|
170
170
|
}),
|
|
171
171
|
readonly: true
|
|
172
172
|
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
173
173
|
className: "distance",
|
|
174
174
|
data: __assign(__assign({}, distance), {
|
|
175
|
-
text: data.distance ||
|
|
175
|
+
text: (data.distance || 0) + " " + (0, _locale.i18n)('KM')
|
|
176
176
|
}),
|
|
177
177
|
readonly: true
|
|
178
178
|
})))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
@@ -236,7 +236,7 @@ function (_super) {
|
|
|
236
236
|
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
237
237
|
className: "time",
|
|
238
238
|
data: __assign(__assign({}, deliveryTime), {
|
|
239
|
-
text: data.deliveryTime ||
|
|
239
|
+
text: (data.deliveryTime || 17) + " " + (0, _locale.i18n)('MINS')
|
|
240
240
|
}),
|
|
241
241
|
readonly: true
|
|
242
242
|
}), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -244,7 +244,7 @@ function (_super) {
|
|
|
244
244
|
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
245
245
|
className: "distance",
|
|
246
246
|
data: __assign(__assign({}, distance), {
|
|
247
|
-
text: data.distance ||
|
|
247
|
+
text: (data.distance || 0) + " " + (0, _locale.i18n)('KM')
|
|
248
248
|
}),
|
|
249
249
|
readonly: true
|
|
250
250
|
})))));
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
.m-store-item-wrap .content-wrap .sold {
|
|
57
57
|
width: fit-content !important;
|
|
58
58
|
}
|
|
59
|
+
.m-store-item-wrap .content-wrap .score {
|
|
60
|
+
margin-left: -0.2rem;
|
|
61
|
+
}
|
|
59
62
|
.m-store-item-wrap .content-wrap .row {
|
|
60
63
|
display: flex;
|
|
61
64
|
align-items: center;
|
|
@@ -72,7 +75,7 @@
|
|
|
72
75
|
width: 0.02rem;
|
|
73
76
|
height: 0.24rem;
|
|
74
77
|
background-color: #D9D9D9;
|
|
75
|
-
margin: 0 0.
|
|
78
|
+
margin: 0 0.02rem 0 0.14rem;
|
|
76
79
|
}
|
|
77
80
|
.m-store-item-wrap.horizontal {
|
|
78
81
|
flex-direction: column;
|
package/lib/locale/ar/ar.json
CHANGED
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/mn/mn.json
CHANGED