@lancom/shared 0.0.295 → 0.0.297

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.
Files changed (43) hide show
  1. package/assets/js/models/product-layers.js +4 -3
  2. package/assets/js/utils/export-print-to-svg.js +12 -20
  3. package/assets/js/utils/fabric/wireframe.js +4 -4
  4. package/assets/js/utils/fabric-helper.js +2 -2
  5. package/assets/js/utils/order.js +6 -3
  6. package/assets/js/utils/prints.js +8 -1
  7. package/assets/js/utils/product.js +11 -2
  8. package/assets/scss/ui_kit/_table.scss +1 -1
  9. package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart-entity-color-simple-products.vue +10 -0
  10. package/components/checkout/cart/cart_shipments_pricing/cart-shipments-pricing.vue +2 -1
  11. package/components/common/price.vue +10 -3
  12. package/components/common/product_side_with_print/product-side-with-print.vue +2 -1
  13. package/components/editor/editor.vue +14 -4
  14. package/components/editor/editor_layers/editor_layers_layer/editor-layers-layer.vue +4 -3
  15. package/components/editor/editor_layers/editor_layers_toolbar/editor-layers-toolbar.vue +2 -2
  16. package/components/editor/editor_print_area_options/editor-print-area-options.scss +3 -2
  17. package/components/editor/editor_print_area_options/editor_print_area_option/editor-print-area-option.scss +8 -0
  18. package/components/editor/editor_print_area_options/editor_print_area_option/editor-print-area-option.vue +10 -5
  19. package/components/editor/editor_product_details/editor-product-details.scss +18 -0
  20. package/components/editor/editor_product_details/editor-product-details.vue +50 -9
  21. package/components/editor/editor_workspace/editor-workspace.scss +4 -4
  22. package/components/editor/editor_workspace/editor-workspace.vue +0 -5
  23. package/components/editor/editor_workspace/editor_workspace_side/editor-workspace-side.scss +12 -0
  24. package/components/editor/editor_workspace/editor_workspace_side/editor-workspace-side.vue +35 -4
  25. package/components/editor/mobile_editor_product_details/mobile-editor-product-details.scss +2 -2
  26. package/components/editor/mobile_editor_product_details/mobile-editor-product-details.vue +4 -6
  27. package/components/order/order_product_prints_preview/order-product-prints-preview.scss +9 -0
  28. package/components/order/order_product_prints_preview/order-product-prints-preview.vue +44 -0
  29. package/components/order/order_view/order-view.vue +8 -1
  30. package/components/order/order_view/order_product_color_simple_products/order-product-color-simple-products.mixin.js +12 -0
  31. package/components/order/order_view/order_product_color_simple_products/order-product-color-simple-products.scss +12 -1
  32. package/components/order/order_view/order_product_color_simple_products/order-product-color-simple-products.vue +30 -3
  33. package/components/order/order_view/order_view_product/order-view-product.vue +23 -2
  34. package/components/product/gallery/gallery.vue +5 -2
  35. package/components/product/product_colors_selector/product-colors-selector.vue +7 -1
  36. package/components/product/product_print_preview/product-print-preview.vue +103 -0
  37. package/components/product/products_size_selector_color/product_size_selector_color/product-size-selector-color.vue +5 -2
  38. package/components/quotes/quote_view/quote-view.vue +9 -2
  39. package/feeds/google-shopping.js +6 -1
  40. package/mixins/add-to-cart.js +4 -1
  41. package/package.json +1 -1
  42. package/store/layers.js +1 -0
  43. package/store/product.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.295",
3
+ "version": "0.0.297",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
package/store/layers.js CHANGED
@@ -19,6 +19,7 @@ export const actions = {
19
19
 
20
20
  export const mutations = {
21
21
  setLayersThumbnail(state, { side, value }) {
22
+ console.log('setLayersThumbnail: ', side, value);
22
23
  Vue.set(state.layerThumbnails, side, value);
23
24
  },
24
25
  setEditableLayer(state, layer) {
package/store/product.js CHANGED
@@ -220,7 +220,8 @@ export const actions = {
220
220
  preselect = true,
221
221
  isEditMode,
222
222
  size,
223
- properties
223
+ properties,
224
+ fileName
224
225
  }
225
226
  ) {
226
227
  const { center: { top, left } } = getters.printArea;
@@ -230,6 +231,7 @@ export const actions = {
230
231
  top,
231
232
  left,
232
233
  isEditMode,
234
+ fileName,
233
235
  url,
234
236
  originalSize: size,
235
237
  sideId: getters.editableSide?.id,