@lancom/shared 0.0.275 → 0.0.277

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.
@@ -140,9 +140,6 @@ export default {
140
140
  exportOrderToShippingService(order, shipment) {
141
141
  return _post(`admin/shop/${order.shop?._id || order.shop}/order/${order._id}/shipment/${shipment._id || shipment.guid}/export-to-shipping-service`, shipment);
142
142
  },
143
- returnShipments(body) {
144
- return _post('admin/shipments/return', body);
145
- },
146
143
  markShipmentAsDispatched(order, shipment) {
147
144
  return _post(`admin/shop/${order.shop?._id || order.shop}/order/${order._id}/shipment/${shipment._id || shipment.guid}/dispatched`, shipment);
148
145
  },
@@ -522,6 +519,12 @@ export default {
522
519
  fetchWarehouseCanonicalProductsLocations(warehouse) {
523
520
  return _get(`admin/warehouses/${warehouse}/locations`);
524
521
  },
522
+ clearhWarehouseCanonicalProductsLocations(ids) {
523
+ return _post('admin/warehouse-locations/clear', ids);
524
+ },
525
+ updatehWarehouseCanonicalProductsLocations(warehouse, locations) {
526
+ return _post(`admin/warehouses/${warehouse}/locations/update`, locations);
527
+ },
525
528
  removeCanonicalProductLocation(location) {
526
529
  return _delete(`admin/locations/${location}`);
527
530
  },
@@ -1,9 +1,6 @@
1
1
  export function convertQuoteToOrder(quote, option) {
2
2
  const files = [quote.file, ...(quote.files || [])].filter(f => !!f);
3
3
  return {
4
- isUrgent: quote.isUrgent,
5
- deliveryBy: quote.deliveryBy,
6
- deliveryAfter: quote.deliveryAfter,
7
4
  referenceField: quote.reference,
8
5
  paymentMethod: option.paymentMethod || 'deposit',
9
6
  billingAddress: quote.address,
@@ -44,7 +44,7 @@
44
44
  background-image: url(../../../static/images/paid.svg);
45
45
  background-repeat: no-repeat;
46
46
  background-position: 0px 0px;
47
- background-size: 500px;
47
+ background-size: contain;
48
48
  }
49
49
  &--small {
50
50
  margin: 0 0;
@@ -50,15 +50,11 @@
50
50
  }
51
51
 
52
52
  .Gallery {
53
- &__wrapper {
54
- position: relative;
55
- }
56
53
  &__big,
57
54
  &__small {
58
55
  overflow: hidden;
59
56
  position: relative;
60
57
  margin: 20px 0;
61
- z-index: 1;
62
58
  }
63
59
  &__zoom {
64
60
  position: absolute;
@@ -199,21 +195,4 @@
199
195
  background-color: $gray;
200
196
  margin-top: 20px;
201
197
  }
202
- &__zoom-image {
203
- position: absolute;
204
- right: -250px;
205
- top: 0;
206
- width: 350px;
207
- height: 350px;
208
- z-index: 2;
209
- background-color: white;
210
- box-shadow: 0 0 10px gray;
211
- overflow: hidden;
212
- pointer-events: none;
213
- img {
214
- position: absolute;
215
- max-width: 800px;
216
- max-height: 800px;
217
- }
218
- }
219
198
  }
@@ -5,10 +5,9 @@
5
5
  <img
6
6
  :src="staticLink(currentImage.large)"
7
7
  :alt="product.name"
8
- class="Gallery__big-image-src"
9
- @mouseenter="startZoom"
10
- @mousemove="updateZoomWithThrottle"
11
- @mouseleave="stopZoom" />
8
+ width="400"
9
+ height="400"
10
+ class="Gallery__big-image-src" />
12
11
  <div
13
12
  v-if="currentImage.print"
14
13
  class="Gallery__big-print">
@@ -38,14 +37,6 @@
38
37
  Next
39
38
  </button>
40
39
  </div>
41
- <div
42
- v-if="isZooming"
43
- class="Gallery__zoom-image">
44
- <img
45
- :src="staticLink(currentImage.large)"
46
- :style="zoomImageStyles"
47
- class="Gallery__zoom-image-src" />
48
- </div>
49
40
  <div class="Gallery__small">
50
41
  <div
51
42
  v-for="(image, index) in visibleImages"
@@ -105,7 +96,6 @@ import { mapGetters, mapActions } from 'vuex';
105
96
  import { staticLink } from '@lancom/shared/assets/js/utils/filters';
106
97
  import { isValidImageTypes } from '@lancom/shared/assets/js/utils/colors';
107
98
  import Price from '@lancom/shared/components/common/price';
108
- import throttle from 'lodash.throttle';
109
99
 
110
100
  export default {
111
101
  name: 'Gallery',
@@ -137,10 +127,7 @@ export default {
137
127
  galerySize: null,
138
128
  backgroundSize: null,
139
129
  backgroundPosition: null,
140
- skipUpdateGallery: false,
141
- zoomImageStyles: null,
142
- isZooming: false,
143
- updateZoomWithThrottle: throttle(this.updateZoom, 50, { trailing: false }),
130
+ skipUpdateGallery: false
144
131
  };
145
132
  },
146
133
  computed: {
@@ -196,22 +183,6 @@ export default {
196
183
  methods: {
197
184
  ...mapActions('product', ['selectColor']),
198
185
  staticLink,
199
- startZoom() {
200
- this.isZooming = true;
201
- },
202
- stopZoom() {
203
- this.isZooming = false;
204
- this.zoomImageStyles = null;
205
- },
206
- updateZoom(e) {
207
- if (this.isZooming) {
208
- const { offsetX, offsetY } = e;
209
- this.zoomImageStyles = {
210
- top: `${-offsetY * 2 + 175}px`,
211
- left: `${-offsetX * 2 + 175}px`
212
- };
213
- }
214
- },
215
186
  goToSlideAndChangeColor(index) {
216
187
  this.skipUpdateGallery = true;
217
188
  const { color } = this.filteredImages[index] || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.275",
3
+ "version": "0.0.277",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {