@viur/shop-components 0.1.16 → 0.1.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,7 +7,7 @@
7
7
  :skelkey="state.skelkey"
8
8
  :values="{'address_type':state.address_type, 'customer_type':'private'}"
9
9
  :useCategories="false"
10
- :layout="AddressFormLayout"
10
+ :layout="shopStore.state.UserDataLayout"
11
11
  @change="formChange"
12
12
  :default-language="state.language"
13
13
  error-style="decent"
@@ -18,7 +18,6 @@
18
18
  <script setup>
19
19
  import {computed, reactive, watch} from 'vue'
20
20
  import LoadingHandler from './LoadingHandler.vue';
21
- import AddressFormLayout from './AddressFormLayout.vue';
22
21
  import ViForm from "@viur/vue-utils/forms/ViForm.vue";
23
22
  import {useViurShopStore} from "../shop";
24
23
  import {useAddress} from "../composables/address";
@@ -91,4 +90,4 @@ watch(()=>addressState.billingIsShipping, (newVal,oldVal)=>{
91
90
 
92
91
  <style scoped>
93
92
 
94
- </style>
93
+ </style>
package/src/shop.js CHANGED
@@ -3,6 +3,7 @@ import { reactive, computed, watch, shallowRef } from "vue";
3
3
  import {ShopCart, ShopUserDataGuest, ShopShippingMethod, ShopPaymentProvider, ShopOrderComplete, ShopOrderConfirm} from './Steps/index'
4
4
  import { defineStore } from "pinia";
5
5
  import { useUrlSearchParams } from '@vueuse/core'
6
+ import AddressFormLayout from './components/AddressFormLayout.vue';
6
7
 
7
8
  import { Request } from "@viur/vue-utils";
8
9
 
@@ -119,8 +120,8 @@ export const useViurShopStore = defineStore("viurshopStore", () => {
119
120
 
120
121
 
121
122
  //checkout
122
- paymentProviderData:null
123
-
123
+ paymentProviderData:null,
124
+ UserDataLayout: shallowRef(AddressFormLayout)
124
125
  })
125
126
 
126
127
  function addTab({name, component, displayname, iconname, iconlibrary,active})