@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.
@@ -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/page", {
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.list || []);
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 MerchantSalesMobile =
70
+ var LocationMobile =
71
71
  /** @class */
72
72
  function (_super) {
73
- __extends(MerchantSalesMobile, _super);
73
+ __extends(LocationMobile, _super);
74
74
 
75
- function MerchantSalesMobile() {
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
- MerchantSalesMobile.prototype.componentDidMount = function () {};
82
+ LocationMobile.prototype.componentDidMount = function () {};
83
83
 
84
- MerchantSalesMobile.prototype.render = function () {
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
- MerchantSalesMobile.defaultProps = {
126
+ LocationMobile.defaultProps = {
127
127
  panelProps: {}
128
128
  };
129
- return MerchantSalesMobile;
129
+ return LocationMobile;
130
130
  }(_react["default"].Component);
131
131
 
132
- var _default = MerchantSalesMobile;
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 || '17 mins'
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 || '1 km'
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 || '17 mins'
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 || '1 km'
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.12rem;
78
+ margin: 0 0.02rem 0 0.14rem;
76
79
  }
77
80
  .m-store-item-wrap.horizontal {
78
81
  flex-direction: column;
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "All",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "All",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "TODO",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "БҮГД",
4
6
  "CLOSE": "Close",
@@ -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/page", {
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.list || []);
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 MerchantSalesMobile =
70
+ var LocationMobile =
71
71
  /** @class */
72
72
  function (_super) {
73
- __extends(MerchantSalesMobile, _super);
73
+ __extends(LocationMobile, _super);
74
74
 
75
- function MerchantSalesMobile() {
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
- MerchantSalesMobile.prototype.componentDidMount = function () {};
82
+ LocationMobile.prototype.componentDidMount = function () {};
83
83
 
84
- MerchantSalesMobile.prototype.render = function () {
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
- MerchantSalesMobile.defaultProps = {
126
+ LocationMobile.defaultProps = {
127
127
  panelProps: {}
128
128
  };
129
- return MerchantSalesMobile;
129
+ return LocationMobile;
130
130
  }(_react["default"].Component);
131
131
 
132
- var _default = MerchantSalesMobile;
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 || '17 mins'
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 || '1 km'
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 || '17 mins'
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 || '1 km'
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.12rem;
78
+ margin: 0 0.02rem 0 0.14rem;
76
79
  }
77
80
  .m-store-item-wrap.horizontal {
78
81
  flex-direction: column;
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "All",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "All",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "TODO",
4
6
  "CLOSE": "Close",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "KM": "km",
3
+ "MINS": "mins",
2
4
  "NEW": "New",
3
5
  "ALL": "БҮГД",
4
6
  "CLOSE": "Close",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.193",
4
+ "version": "2.0.194",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",