@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 +1 -1
- package/src/Shop.vue +7 -4
- package/src/ShopSummary.vue +11 -10
- package/src/Steps/ShopPaymentProvider.vue +7 -0
- package/src/components/CardSelector.vue +3 -1
- package/src/components/PaymentOption.vue +16 -12
- package/src/components/PaymentSelector.vue +4 -2
- package/src/translations/de.js +2 -1
- package/src/translations/en.js +1 -0
- package/src/translations/fr.js +2 -1
package/package.json
CHANGED
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
|
-
|
|
251
|
-
grid-column: auto / span 12;
|
|
252
|
-
}
|
|
255
|
+
|
|
253
256
|
|
|
254
257
|
.last-row {
|
|
255
258
|
grid-row-start: 3;
|
package/src/ShopSummary.vue
CHANGED
|
@@ -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>
|
|
@@ -51,12 +51,14 @@ onMounted(()=>{
|
|
|
51
51
|
|
|
52
52
|
<style scoped>
|
|
53
53
|
sl-radio-group {
|
|
54
|
-
margin-
|
|
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
|
-
|
|
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
|
-
|
|
63
|
-
|
|
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>
|
package/src/translations/de.js
CHANGED
|
@@ -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',
|
package/src/translations/en.js
CHANGED
package/src/translations/fr.js
CHANGED
|
@@ -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 ({
|
|
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.',
|