@viur/shop-components 0.0.1-dev.60 → 0.0.1-dev.61
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/old/client/HttpClient.js +111 -0
- package/old/client/ViURShopClient.js +472 -0
- package/old/client/index.js +23 -0
- package/old/client/types.js +10 -0
- package/old/components/ExampleUsage.vue +95 -0
- package/old/components/ShopCart.vue +91 -0
- package/old/components/ShopOrderConfirm.vue +311 -0
- package/{src → old}/components/ShopOrderStepper.vue +111 -23
- package/old/components/ShopPaymentProvider.vue +113 -0
- package/old/components/ShopShippingMethod.vue +52 -0
- package/{src/components/ui → old/components}/ShopSummary.vue +28 -35
- package/{src → old}/components/ShopUserData.vue +51 -65
- package/{src → old}/components/cart/CartLeafModel.vue +24 -16
- package/{src → old}/components/cart/CartNode.vue +1 -0
- package/{src → old}/components/cart/CartTree.vue +13 -0
- package/old/components/cart/CartView.vue +82 -0
- package/{src → old}/components/cart/Discount.vue +8 -8
- package/old/components/generic/loadinghandler.vue +76 -0
- package/old/components/paymentProvider/prepayment.vue +0 -0
- package/old/components/paymentProvider/unzerPayment.vue +140 -0
- package/old/components/simple/ShopUserData.vue +161 -0
- package/old/components/simple/SimpleDefaultLayout.vue +116 -0
- package/old/components/ui/generic/CardSelector.vue +52 -0
- package/old/components/ui/generic/CartList.vue +69 -0
- package/old/components/ui/generic/ShippingInfo.vue +56 -0
- package/old/components/ui/generic/alerts/ShopAlert.vue +30 -0
- package/old/components/ui/payment/PaymentOption.vue +79 -0
- package/old/components/ui/payment/PaymentSelector.vue +158 -0
- package/old/components/ui/stepper/StepperItem.vue +90 -0
- package/{src → old}/components/ui/stepper/StepperTab.vue +30 -2
- package/old/components/ui/stepper/StepperTrigger.vue +69 -0
- package/old/components/ui/userdata/AddForm.vue +160 -0
- package/old/components/ui/userdata/AddressBox.vue +137 -0
- package/{src → old}/components/ui/userdata/BaseLayout.vue +15 -32
- package/old/stores/address.js +122 -0
- package/old/stores/cart.js +266 -0
- package/old/stores/message.js +21 -0
- package/old/stores/order.js +202 -0
- package/old/stores/payment.js +79 -0
- package/old/stores/shipping.js +78 -0
- package/package.json +3 -5
- package/src/Shop.vue +212 -0
- package/src/ShopOrderStepper.vue +89 -0
- package/src/ShopSummary.vue +170 -0
- package/src/Steps/ShopCart.vue +60 -0
- package/src/Steps/ShopOrderComplete.vue +24 -0
- package/src/Steps/ShopOrderConfirm.vue +295 -0
- package/src/Steps/ShopPaymentProvider.vue +53 -0
- package/src/Steps/ShopShippingMethod.vue +53 -0
- package/src/Steps/ShopUserDataGuest.vue +78 -0
- package/src/Steps/index.js +15 -0
- package/src/components/AddressForm.vue +84 -0
- package/src/components/AddressFormLayout.vue +107 -0
- package/src/components/CardSelector.vue +68 -0
- package/src/components/CartItem.vue +325 -0
- package/src/components/CartItemSmall.vue +257 -0
- package/src/components/LoadingHandler.vue +76 -0
- package/src/components/PaymentOption.vue +78 -0
- package/src/components/PaymentProviderUnzer.vue +201 -0
- package/src/components/PaymentSelector.vue +55 -0
- package/src/components/ShopAlert.vue +30 -0
- package/src/components/StepperTab.vue +132 -0
- package/src/components/dialogButton.vue +49 -0
- package/src/composables/address.js +95 -0
- package/src/composables/cart.js +132 -0
- package/src/composables/order.js +80 -0
- package/src/composables/payment.js +75 -0
- package/src/composables/shipping.js +32 -0
- package/src/main.js +32 -38
- package/src/shop.js +251 -0
- package/src/translations/de.js +15 -0
- package/src/translations/en.js +5 -0
- package/src/utils.js +49 -0
- package/vite.config.js +0 -2
- package/src/components/ShopCart.vue +0 -512
- package/src/components/ShopOrderConfirm.vue +0 -291
- package/src/components/cart/CartView.vue +0 -723
- package/src/components/order/OrderSidebar.vue +0 -102
- package/src/components/order/category/CategoryList.vue +0 -83
- package/src/components/order/category/CategoryView.vue +0 -143
- package/src/components/order/information/adress/ShippingAdress.vue +0 -143
- package/src/components/order/item/ItemCard.vue +0 -168
- package/src/components/order/item/ItemView.vue +0 -232
- package/src/components/order/process/ConfirmView.vue +0 -312
- package/src/components/order/process/ExampleUsage.vue +0 -113
- package/src/components/order/process/OrderTabHeader.vue +0 -16
- package/src/components/order/process/SelectPaymentProvider.vue +0 -62
- package/src/components/order/process/Shipping.vue +0 -46
- package/src/components/ui/generic/ArticleList.vue +0 -222
- package/src/components/ui/generic/ExamplePagination.vue +0 -236
- package/src/components/ui/generic/alerts/ShopAlert.vue +0 -19
- package/src/components/ui/generic/makeData.js +0 -39
- package/src/components/ui/stepper/StepperItem.vue +0 -39
- package/src/components/ui/stepper/StepperTrigger.vue +0 -35
- package/src/components/ui/userdata/AddForm.vue +0 -125
- package/src/components/ui/userdata/AddressBox.vue +0 -117
- package/src/router/index.js +0 -103
- package/src/stores/cart.js +0 -336
- package/src/views/ViewMissing.vue +0 -20
- /package/{src → old}/components/ShopOrderComplete.vue +0 -0
- /package/{src → old}/components/cart/CartLeaf.vue +0 -0
- /package/{src → old}/components/cart/CartTreeWrapper.vue +0 -0
- /package/{src/components/lib/utils.js → old/components/paymentProvider/paypalplus.vue} +0 -0
- /package/{src → old}/components/ui/generic/ShopPriceFormatter.vue +0 -0
- /package/{src → old}/components/ui/userdata/CustomBooleanBone.vue +0 -0
- /package/{src → old}/components/ui/userdata/CustomSelectBone.vue +0 -0
- /package/{src → old}/components/ui/userdata/CustomStringBone.vue +0 -0
- /package/{src → old}/components/ui/userdata/DefaultLayout.vue +0 -0
- /package/{src → old}/components/ui/userdata/SelectAddress.vue +0 -0
- /package/{src → old}/components/ui/userdata/multi/ActionBar.vue +0 -0
- /package/{src → old}/components/ui/userdata/multi/CartSelection.vue +0 -0
- /package/{src/style → old}/ignite/.editorconfig +0 -0
- /package/{src/style → old}/ignite/.github/workflows/ignite.yml +0 -0
- /package/{src/style → old}/ignite/.github/workflows/node.yml +0 -0
- /package/{src/style → old}/ignite/.postcssrc.cjs +0 -0
- /package/{src/style → old}/ignite/CHANGELOG.md +0 -0
- /package/{src/style → old}/ignite/LICENSE +0 -0
- /package/{src/style → old}/ignite/README.md +0 -0
- /package/{src/style → old}/ignite/dist/ignite.css +0 -0
- /package/{src/style → old}/ignite/dist/ignite.min.css +0 -0
- /package/{src/style → old}/ignite/foundation/basic.css +0 -0
- /package/{src/style → old}/ignite/foundation/color.css +0 -0
- /package/{src/style → old}/ignite/foundation/config.css +0 -0
- /package/{src/style → old}/ignite/foundation/grid.css +0 -0
- /package/{src/style → old}/ignite/foundation/mediaqueries.css +0 -0
- /package/{src/style → old}/ignite/foundation/reset.css +0 -0
- /package/{src/style → old}/ignite/ignite.css +0 -0
- /package/{src/style → old}/ignite/ignite.css.map +0 -0
- /package/{src/style → old}/ignite/package-lock.json +0 -0
- /package/{src/style → old}/ignite/package.json +0 -0
- /package/{src/style → old}/ignite/shoelace.css +0 -0
- /package/{src/style → old}/ignite/themes/dark.css +0 -0
- /package/{src/style → old}/ignite/themes/light.css +0 -0
- /package/{src/style → old}/ignite/utilities/shoelace.css +0 -0
- /package/{src/style → old}/ignite/utilities/utilities.css +0 -0
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Loader v-if="!state.cartIsInit"></Loader>
|
|
3
|
-
|
|
4
|
-
<template v-else>
|
|
5
|
-
<div class="list">
|
|
6
|
-
<h2 class="viur-shop-cart-headline headline">Bestellung prüfen</h2>
|
|
7
|
-
<div class="viur-shop-cart-address-wrap">
|
|
8
|
-
<div class="viur-shop-cart-address">
|
|
9
|
-
<div class="viur-shop-cart-address-headline">
|
|
10
|
-
Versandadresse
|
|
11
|
-
<sl-button
|
|
12
|
-
outline
|
|
13
|
-
size="small"
|
|
14
|
-
@click="editShippingAddress(tabName)"
|
|
15
|
-
>
|
|
16
|
-
<sl-icon name="pencil" slot="prefix"></sl-icon>
|
|
17
|
-
</sl-button>
|
|
18
|
-
</div>
|
|
19
|
-
{{ cartStore.state.activeShippingAddress.firstname }}
|
|
20
|
-
{{ cartStore.state.activeShippingAddress.lastname }}<br />
|
|
21
|
-
{{ cartStore.state.activeShippingAddress.street_name }}
|
|
22
|
-
{{ cartStore.state.activeShippingAddress.street_number }}<br />
|
|
23
|
-
{{ cartStore.state.activeShippingAddress.zip_code }}
|
|
24
|
-
{{ cartStore.state.activeShippingAddress.city }}
|
|
25
|
-
{{ cartStore.state.activeShippingAddress.country }}<br />
|
|
26
|
-
</div>
|
|
27
|
-
<div class="viur-shop-cart-address">
|
|
28
|
-
<div class="viur-shop-cart-address-headline">
|
|
29
|
-
Rechnungsadresse
|
|
30
|
-
<sl-button outline size="small">
|
|
31
|
-
<sl-icon name="pencil" slot="prefix"></sl-icon>
|
|
32
|
-
</sl-button>
|
|
33
|
-
</div>
|
|
34
|
-
{{ cartStore.state.activeBillingAddress.firstname }}
|
|
35
|
-
{{ cartStore.state.activeBillingAddress.lastname }}<br />
|
|
36
|
-
{{ cartStore.state.activeBillingAddress.street_name }}
|
|
37
|
-
{{ cartStore.state.activeBillingAddress.street_number }}<br />
|
|
38
|
-
{{ cartStore.state.activeBillingAddress.zip_code }}
|
|
39
|
-
{{ cartStore.state.activeBillingAddress.city }}
|
|
40
|
-
{{ cartStore.state.activeBillingAddress.country }}<br />
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="viur-shop-cart-payment">
|
|
45
|
-
<div class="viur-shop-cart-payment-method">
|
|
46
|
-
<span>Zahlungsmethode:</span>
|
|
47
|
-
{{ state.selectedPaymentProvider }}
|
|
48
|
-
</div>
|
|
49
|
-
<sl-button outline size="small">
|
|
50
|
-
<sl-icon name="pencil" slot="prefix"></sl-icon>
|
|
51
|
-
</sl-button>
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
<h2 class="viur-shop-cart-headline headline">Warenkorb</h2>
|
|
55
|
-
<CartView :in-order-confirm="true"></CartView>
|
|
56
|
-
<sl-button size="small" @click="addOrder">
|
|
57
|
-
Zahlungspflichtig bestellen
|
|
58
|
-
</sl-button>
|
|
59
|
-
<!-- <sl-card
|
|
60
|
-
horizontal
|
|
61
|
-
class="viur-shop-cart-mini-card"
|
|
62
|
-
v-for="item in cartStore.state.carts[cartStore.state.basket].items"
|
|
63
|
-
>
|
|
64
|
-
<img
|
|
65
|
-
class="viur-shop-cart-mini-card-img"
|
|
66
|
-
slot="image"
|
|
67
|
-
:src="getImage(item.article.dest.key)"
|
|
68
|
-
/>
|
|
69
|
-
|
|
70
|
-
<div class="viur-shop-cart-mini-cart-header" slot="header">
|
|
71
|
-
<h4 class="viur-shop-cart-mini-headline headline">{{ item.article.dest.shop_name }} | 425018</h4>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="viur-shop-cart-mini-card-body-row">
|
|
74
|
-
<div class="viur-shop-cart-mini-card-body-info">
|
|
75
|
-
<div class="viur-shop-cart-mini-card-info-wrap">
|
|
76
|
-
<div class="viur-shop-cart-mini-card-info">
|
|
77
|
-
<span>Anzahl: </span>
|
|
78
|
-
1
|
|
79
|
-
</div>
|
|
80
|
-
<div class="viur-shop-cart-mini-card-info">
|
|
81
|
-
<span>Preis: </span>
|
|
82
|
-
{{ item.article.dest.shop_price_recommended }} €
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</sl-card> -->
|
|
88
|
-
</div>
|
|
89
|
-
</template>
|
|
90
|
-
</template>
|
|
91
|
-
|
|
92
|
-
<script setup>
|
|
93
|
-
import { reactive, onBeforeMount, computed } from "vue";
|
|
94
|
-
import Loader from "@viur/vue-utils/generic/Loader.vue";
|
|
95
|
-
import { useCartStore } from "../stores/cart.js";
|
|
96
|
-
import { Request } from "@viur/vue-utils";
|
|
97
|
-
import CartView from "./cart/CartView.vue";
|
|
98
|
-
|
|
99
|
-
const emit = defineEmits(["editAddress"]);
|
|
100
|
-
|
|
101
|
-
const props = defineProps({
|
|
102
|
-
tabName: { type: String, required: true },
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
const cartStore = useCartStore();
|
|
106
|
-
|
|
107
|
-
// const searchWarning = ref()
|
|
108
|
-
const state = reactive({
|
|
109
|
-
cartIsInit: computed(() => {
|
|
110
|
-
return true;
|
|
111
|
-
}),
|
|
112
|
-
itemsIsInit: computed(() => {
|
|
113
|
-
return !!cartStore.state?.carts[cartStore.state.basket].items;
|
|
114
|
-
}),
|
|
115
|
-
selectedPaymentProvider: computed(() => {
|
|
116
|
-
/* fixme this compute generates an error
|
|
117
|
-
Uncaught (in promise) TypeError: Cannot set properties of null (setting '__vnode')
|
|
118
|
-
but the value is correct.
|
|
119
|
-
*/
|
|
120
|
-
return cartStore.state?.selectedPaymentProvider.title;
|
|
121
|
-
}),
|
|
122
|
-
images: {},
|
|
123
|
-
showOrderButton: false,
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
function editShippingAddress(e) {
|
|
127
|
-
emit("editAddress", e);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function addOrder() {
|
|
131
|
-
console.log("start order add");
|
|
132
|
-
cartStore.orderAdd();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
onBeforeMount(async () => {
|
|
136
|
-
await cartStore.init();
|
|
137
|
-
});
|
|
138
|
-
</script>
|
|
139
|
-
|
|
140
|
-
<style scoped>
|
|
141
|
-
.viur-shop-cart-sidebar-btn-wrap {
|
|
142
|
-
display: flex;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
margin-top: var(--sl-spacing-large);
|
|
145
|
-
|
|
146
|
-
sl-button {
|
|
147
|
-
margin-bottom: var(--sl-spacing-x-small);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
sl-alert {
|
|
152
|
-
margin-top: var(--sl-spacing-medium);
|
|
153
|
-
margin-bottom: var(--sl-spacing-medium);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
sl-tooltip {
|
|
157
|
-
&::part(body) {
|
|
158
|
-
line-height: 1.2;
|
|
159
|
-
font-weight: 400;
|
|
160
|
-
padding: 10px;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
sl-menu-item {
|
|
165
|
-
&::part(base) {
|
|
166
|
-
padding: 0.2em 0.9em 0.2em 0.8em;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&::part(checked-icon) {
|
|
170
|
-
display: none;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&::part(prefix) {
|
|
174
|
-
margin-right: 10px;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&::part(suffix) {
|
|
178
|
-
margin-right: -1.5em;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.viur-shop-cart-sidebar-info-line {
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: row;
|
|
185
|
-
flex-wrap: nowrap;
|
|
186
|
-
margin: var(--sl-spacing-2x-small) 0;
|
|
187
|
-
|
|
188
|
-
span {
|
|
189
|
-
margin-right: auto;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&.total {
|
|
193
|
-
font-weight: 600;
|
|
194
|
-
border-top: 1px solid var(--sl-color-neutral-300);
|
|
195
|
-
border-bottom: 1px solid var(--sl-color-neutral-300);
|
|
196
|
-
padding: var(--sl-spacing-x-small) 0;
|
|
197
|
-
margin: var(--sl-spacing-small) 0;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.viur-shop-cart-mini-card {
|
|
202
|
-
margin-bottom: var(--sl-spacing-x-large);
|
|
203
|
-
|
|
204
|
-
&::part(header) {
|
|
205
|
-
border-bottom: none;
|
|
206
|
-
padding-top: 0;
|
|
207
|
-
padding-right: 0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&::part(image) {
|
|
211
|
-
flex-basis: 25%;
|
|
212
|
-
max-width: 90px;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&::part(body) {
|
|
216
|
-
display: flex;
|
|
217
|
-
flex: 1;
|
|
218
|
-
padding-top: 0;
|
|
219
|
-
padding-bottom: 0;
|
|
220
|
-
padding-right: 0;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
&::part(group) {
|
|
224
|
-
padding: var(--sl-spacing-small) 0;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.viur-shop-cart-mini-card-body-row {
|
|
229
|
-
display: grid;
|
|
230
|
-
grid-template-columns: 1fr auto auto;
|
|
231
|
-
gap: var(--sl-spacing-large);
|
|
232
|
-
flex: 1;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.viur-shop-cart-mini-card-body-info {
|
|
236
|
-
display: flex;
|
|
237
|
-
flex-direction: column;
|
|
238
|
-
height: 100%;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.viur-shop-cart-mini-card-info-wrap {
|
|
242
|
-
display: flex;
|
|
243
|
-
flex-wrap: nowrap;
|
|
244
|
-
gap: var(--sl-spacing-medium);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.viur-shop-cart-mini-card-info {
|
|
248
|
-
display: flex;
|
|
249
|
-
flex-direction: row;
|
|
250
|
-
flex-wrap: nowrap;
|
|
251
|
-
|
|
252
|
-
span {
|
|
253
|
-
margin-right: var(--sl-spacing-x-small);
|
|
254
|
-
font-weight: 600;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.viur-shop-cart-address-wrap {
|
|
259
|
-
display: grid;
|
|
260
|
-
grid-template-columns: 1fr 1fr;
|
|
261
|
-
gap: var(--sl-spacing-x-large);
|
|
262
|
-
margin-bottom: var(--sl-spacing-x-large);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.viur-shop-cart-address-headline {
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: row;
|
|
268
|
-
flex-wrap: nowrap;
|
|
269
|
-
align-items: center;
|
|
270
|
-
justify-content: space-between;
|
|
271
|
-
font-weight: 600;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.viur-shop-cart-payment {
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: row;
|
|
277
|
-
flex-wrap: nowrap;
|
|
278
|
-
align-items: center;
|
|
279
|
-
justify-content: space-between;
|
|
280
|
-
margin-bottom: var(--sl-spacing-x-large);
|
|
281
|
-
|
|
282
|
-
span {
|
|
283
|
-
font-weight: 600;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.viur-shop-cart-headline {
|
|
288
|
-
margin: 0 0 var(--sl-spacing-x-large) 0;
|
|
289
|
-
font-size: var(--shop-form-headline-size);
|
|
290
|
-
}
|
|
291
|
-
</style>
|