@viur/shop-components 0.1.20 → 0.1.21

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.20",
3
+ "version": "0.1.21",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
package/src/Shop.vue CHANGED
@@ -110,7 +110,7 @@ const state = reactive({
110
110
  onBeforeMount(()=>{
111
111
  getTranslations([props.language], "viur.shop.*").then((resp)=>{
112
112
  state.translationsLoaded = true
113
- })
113
+ })
114
114
  shopStore.state.language = props.language
115
115
  shopStore.state.showNodes = props.showCartNodes
116
116
  shopStore.state.debug = props.debug
@@ -213,6 +213,11 @@ watch(()=>shopStore.state.currentTab, (newVal,oldVal)=>{
213
213
  display: flex;
214
214
  flex-direction: column;
215
215
  grid-column: auto / span 12;
216
+
217
+ &.full-width {
218
+ grid-column: auto / span 12;
219
+ }
220
+
216
221
  @media (min-width: 1024px) {
217
222
  grid-column: auto / span var(--shop-main-columns);
218
223
  }
@@ -247,9 +252,7 @@ watch(()=>shopStore.state.currentTab, (newVal,oldVal)=>{
247
252
  grid-row-start: 2;
248
253
  }
249
254
 
250
- .full-width {
251
- grid-column: auto / span 12;
252
- }
255
+
253
256
 
254
257
  .last-row {
255
258
  grid-row-start: 3;
@@ -27,16 +27,6 @@
27
27
  <sl-format-number lang="de" type="currency" currency="EUR" :value="state.shippingTotal">
28
28
  </sl-format-number>
29
29
  </div>
30
- <div class="viur-shop-cart-sidebar-info viur-shop-cart-shipping-item" v-if="shopStore.state.order?.cart?.dest?.shipping">
31
- <span v-html="$t('viur.shop.summary_delivery_time')"></span>
32
- <span>
33
- {{
34
- shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range ?
35
- shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range :
36
- 0
37
- }} {{ shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range === 1 ? "Tag" : "Tage" }}
38
- </span>
39
- </div>
40
30
  <div class="viur-shop-cart-sidebar-info" v-if="shopStore.state.cartRoot.discount">
41
31
  <span v-html="$t('viur.shop.summary_discount')"></span>
42
32
  <sl-format-number lang="de" type="currency" currency="EUR" :value="state.discount">
@@ -58,6 +48,17 @@
58
48
  <sl-format-number lang="de" type="currency" currency="EUR" :value="vatObj.value">
59
49
  </sl-format-number>
60
50
  </div>
51
+ <div class="viur-shop-cart-sidebar-info viur-shop-cart-shipping-item" v-if="shopStore.state.order?.cart?.dest?.shipping">
52
+ <span v-html="$t('viur.shop.summary_delivery_time')"></span>
53
+ <span>
54
+ {{
55
+ shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range ?
56
+ shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range :
57
+ 0
58
+ }} {{ shopStore.state.order?.cart?.dest?.shipping?.dest?.delivery_time_range === 1 ? "Tag" : "Tage" }}
59
+ </span>
60
+ </div>
61
+
61
62
  <slot name="action-buttons" >
62
63
  <div class="viur-shop-cart-sidebar-btn-wrap" v-if="false && !shopStore.state.order?.['is_paid']">
63
64
  <sl-button variant="success" size="large">{{ $t("shop.summary_checkout") }}</sl-button>
@@ -68,3 +68,10 @@ onBeforeMount(()=>{
68
68
  })
69
69
  })
70
70
  </script>
71
+
72
+ <style scoped>
73
+ sl-radio-group {
74
+ margin-bottom: var(--ignt-spacing-medium);
75
+ margin-top: var(--ignt-spacing-medium);
76
+ }
77
+ </style>
@@ -51,12 +51,14 @@ onMounted(()=>{
51
51
 
52
52
  <style scoped>
53
53
  sl-radio-group {
54
- margin-top: var(--ignt-spacing-small);
54
+ margin-bottom: var(--ignt-spacing-medium);
55
+ margin-top: var(--ignt-spacing-medium);
55
56
  }
56
57
 
57
58
  sl-card {
58
59
  width: calc(100% - 6px);
59
60
  margin-left: 3px;
61
+ margin-top: var(--ignt-spacing-small);
60
62
  &[selected]::part(base){
61
63
  border:1px solid var(--sl-color-primary-500);
62
64
  box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color);
@@ -55,21 +55,25 @@
55
55
  </script>
56
56
 
57
57
  <style scoped>
58
- .payment-selection{
58
+ sl-details {
59
+ margin-top: var(--ignt-spacing-small);
60
+ }
61
+
62
+ .payment-selection {
59
63
  display: flex;
64
+ align-items: center;
65
+ flex-wrap: nowrap;
66
+ flex-direction: row;
67
+ align-content: center;
68
+ justify-content: space-between;
69
+ width: 100%;
70
+
71
+ .start {
72
+ display: flex;
60
73
  align-items: center;
61
74
  flex-wrap: nowrap;
62
- flex-direction: row;
63
- align-content: center;
64
- justify-content: space-between;
65
- width: 100%;
66
-
67
- .start{
68
- display: flex;
69
- align-items: center;
70
- flex-wrap: nowrap;
71
- gap:10px;
72
- }
75
+ gap:10px;
76
+ }
73
77
  }
74
78
 
75
79
  .simple::part(content){
@@ -11,7 +11,7 @@
11
11
  @change="optionChanged"
12
12
 
13
13
  >
14
-
14
+
15
15
  </payment-option>
16
16
 
17
17
  </sl-details-group>
@@ -51,5 +51,7 @@ function optionChanged(type){
51
51
  </script>
52
52
 
53
53
  <style scoped>
54
-
54
+ sl-radio-group {
55
+ margin-bottom: var(--ignt-spacing-small);
56
+ }
55
57
  </style>
@@ -15,7 +15,7 @@ export default {
15
15
  'order_ready_to_ship': 'Ihre Bestellung ist fertig für den Versand.',
16
16
  'cart_empty': 'Es befinden sich noch keine Artikel im Warenkorb.',
17
17
  'order_summary': 'Bestellzusammenfassung',
18
- 'deliverytime': 'Lieferzeit',
18
+ 'deliverytime': 'Voraussichtliche Lieferzeit',
19
19
  'day': 'Tag | Tage',
20
20
  'availability': 'Verfügbarkeit',
21
21
  'quantity': 'Anzahl',
@@ -25,6 +25,7 @@ export default {
25
25
  'payment': 'Zahlung',
26
26
  'pay': 'Bezahlen',
27
27
  'next': 'weiter',
28
+ 'edit': 'bearbeiten',
28
29
  'add_discount': 'Hinzufügen',
29
30
  'add_discount_placeholder': 'Dein Rabattcode',
30
31
  'use_shipping_as_billing_address': 'Lieferung zur Rechnungsadresse',
@@ -25,6 +25,7 @@ export default {
25
25
  'payment': 'Payment',
26
26
  'pay': 'Pay',
27
27
  'next': 'next',
28
+ 'edit': 'edit',
28
29
  'add_discount': 'Add',
29
30
  'add_discount_placeholder': 'Your discount code',
30
31
  'use_shipping_as_billing_address': 'Use shipping address as billing address',
@@ -25,6 +25,7 @@ export default {
25
25
  'payment': 'Paiement',
26
26
  'pay': 'Payer',
27
27
  'next': 'continuer',
28
+ 'edit': 'éditer',
28
29
  'add_discount': 'Valider',
29
30
  'add_discount_placeholder': 'Votre code promo',
30
31
  'use_shipping_as_billing_address': 'Livraison à l\'adresse de facturation',
@@ -39,7 +40,7 @@ export default {
39
40
  'summary_discount': 'Vous économisez sur votre achat',
40
41
  'summary_checkout': 'Acheter cet article',
41
42
  'summary_total': 'Montant total',
42
- 'summary_vat': 'TVA incluse ({vat_percentage})',
43
+ 'summary_vat': 'TVA incluse ({percentage})',
43
44
  'discount_not_found': 'Ce code promo n’existe pas.',
44
45
  'discount_not_active': 'Ce code promo n’est pas actif.',
45
46
  'discount_not_available': 'Ce code promo n’est pas valable pour ce pays.',