@viur/shop-components 0.0.1-dev.58 → 0.0.1-dev.60
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/.editorconfig +16 -0
- package/.github/workflows/npm-publish.yml +42 -0
- package/.gitmodules +3 -0
- package/LICENSE +21 -0
- package/README.md +13 -2
- package/package.json +19 -32
- package/src/components/ShopCart.vue +512 -0
- package/src/components/ShopOrderComplete.vue +73 -0
- package/src/components/ShopOrderConfirm.vue +291 -0
- package/src/components/ShopOrderStepper.vue +264 -0
- package/src/components/ShopUserData.vue +232 -0
- package/src/components/cart/CartLeaf.vue +277 -0
- package/src/components/cart/CartLeafModel.vue +304 -0
- package/src/components/cart/CartNode.vue +25 -0
- package/src/components/cart/CartTree.vue +54 -0
- package/src/components/cart/CartTreeWrapper.vue +73 -0
- package/src/components/cart/CartView.vue +723 -0
- package/src/components/cart/Discount.vue +91 -0
- package/src/components/lib/utils.js +0 -0
- package/src/components/order/OrderSidebar.vue +102 -0
- package/src/components/order/category/CategoryList.vue +83 -0
- package/src/components/order/category/CategoryView.vue +143 -0
- package/src/components/order/information/adress/ShippingAdress.vue +143 -0
- package/src/components/order/item/ItemCard.vue +168 -0
- package/src/components/order/item/ItemView.vue +232 -0
- package/src/components/order/process/ConfirmView.vue +312 -0
- package/src/components/order/process/ExampleUsage.vue +113 -0
- package/src/components/order/process/OrderTabHeader.vue +16 -0
- package/src/components/order/process/SelectPaymentProvider.vue +62 -0
- package/src/components/order/process/Shipping.vue +46 -0
- package/src/components/ui/ShopSummary.vue +145 -0
- package/src/components/ui/generic/ArticleList.vue +222 -0
- package/src/components/ui/generic/ExamplePagination.vue +236 -0
- package/src/components/ui/generic/ShopPriceFormatter.vue +41 -0
- package/src/components/ui/generic/alerts/ShopAlert.vue +19 -0
- package/src/components/ui/generic/makeData.js +39 -0
- package/src/components/ui/stepper/StepperItem.vue +39 -0
- package/src/components/ui/stepper/StepperTab.vue +133 -0
- package/src/components/ui/stepper/StepperTrigger.vue +35 -0
- package/src/components/ui/userdata/AddForm.vue +125 -0
- package/src/components/ui/userdata/AddressBox.vue +117 -0
- package/src/components/ui/userdata/BaseLayout.vue +94 -0
- package/src/components/ui/userdata/CustomBooleanBone.vue +58 -0
- package/src/components/ui/userdata/CustomSelectBone.vue +91 -0
- package/src/components/ui/userdata/CustomStringBone.vue +71 -0
- package/src/components/ui/userdata/DefaultLayout.vue +126 -0
- package/src/components/ui/userdata/SelectAddress.vue +21 -0
- package/src/components/ui/userdata/multi/ActionBar.vue +38 -0
- package/src/components/ui/userdata/multi/CartSelection.vue +42 -0
- package/src/main.js +50 -0
- package/src/router/index.js +103 -0
- package/src/stores/cart.js +336 -0
- package/src/style/ignite/.editorconfig +20 -0
- package/src/style/ignite/.github/workflows/ignite.yml +64 -0
- package/src/style/ignite/.github/workflows/node.yml +30 -0
- package/src/style/ignite/.postcssrc.cjs +25 -0
- package/src/style/ignite/CHANGELOG.md +244 -0
- package/src/style/ignite/LICENSE +21 -0
- package/src/style/ignite/README.md +92 -0
- package/src/style/ignite/dist/ignite.css +2019 -0
- package/src/style/ignite/dist/ignite.min.css +4 -0
- package/src/style/ignite/foundation/basic.css +371 -0
- package/src/style/ignite/foundation/color.css +323 -0
- package/src/style/ignite/foundation/config.css +188 -0
- package/src/style/ignite/foundation/grid.css +78 -0
- package/src/style/ignite/foundation/mediaqueries.css +71 -0
- package/src/style/ignite/foundation/reset.css +261 -0
- package/src/style/ignite/ignite.css +29 -0
- package/src/style/ignite/ignite.css.map +1 -0
- package/src/style/ignite/package-lock.json +5530 -0
- package/src/style/ignite/package.json +58 -0
- package/src/style/ignite/shoelace.css +19 -0
- package/src/style/ignite/themes/dark.css +12 -0
- package/src/style/ignite/themes/light.css +11 -0
- package/src/style/ignite/utilities/shoelace.css +537 -0
- package/src/style/ignite/utilities/utilities.css +24 -0
- package/src/views/ViewMissing.vue +20 -0
- package/vite.config.js +53 -0
- package/dist/CategoryView-Z-tCFNv1.mjs +0 -60
- package/dist/ItemCard-CVfih_bz.mjs +0 -64
- package/dist/ItemView-cjeQBSTR.mjs +0 -1848
- package/dist/ItemView.css +0 -1
- package/dist/main-CZfMYx-A.mjs +0 -3167
- package/dist/main.css +0 -1
- package/dist/viur-shop-components.es.js +0 -10
- package/dist/viur-shop-components.umd.js +0 -417
package/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
charset = utf-8
|
|
7
|
+
indent_style = space
|
|
8
|
+
indent_size = 2
|
|
9
|
+
end_of_line = lf
|
|
10
|
+
insert_final_newline = true
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
max_line_width = 120
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
insert_final_newline = false
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags:
|
|
9
|
+
- v*
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish-npm:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-node@v3
|
|
18
|
+
with:
|
|
19
|
+
node-version: 16
|
|
20
|
+
registry-url: https://registry.npmjs.org/
|
|
21
|
+
- run: npm ci
|
|
22
|
+
- name: Publish npm package
|
|
23
|
+
run: npm publish
|
|
24
|
+
env:
|
|
25
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_API_TOKEN}}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
gh-release:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
permissions: write-all
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
- name: debug
|
|
35
|
+
run: |
|
|
36
|
+
echo "${{ contains(github.ref_name, 'dev') }}"
|
|
37
|
+
- name: Release
|
|
38
|
+
uses: softprops/action-gh-release@v1
|
|
39
|
+
# if: "!startsWith(github.ref_name, 'v-test-')"
|
|
40
|
+
with:
|
|
41
|
+
generate_release_notes: true
|
|
42
|
+
prerelease: ${{ contains(github.ref_name, 'dev') }}
|
package/.gitmodules
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ViUR
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
<a href="LICENSE">
|
|
7
7
|
<img src="https://img.shields.io/github/license/viur-framework/shop-components" alt="Badge displaying the license" title="License badge">
|
|
8
8
|
</a>
|
|
9
|
-
<br
|
|
10
|
-
A collection of Vue.js components for the <a href="https://www.viur.dev">ViUR</a>
|
|
9
|
+
<br />
|
|
10
|
+
A collection of Vue.js components for the <a href="https://www.viur.dev">ViUR</a>
|
|
11
|
+
<a href="https://github.com/viur-framework/viur-shop">shop</a>.
|
|
11
12
|
</div>
|
|
13
|
+
|
|
14
|
+
### Structure
|
|
15
|
+
* **Main components** have to be exported in `./src/main.js`. Main Components should be in folder `./src/components`.
|
|
16
|
+
* **Ui Elements** for main components should be in `./src/components/ui` so everyone who contributes can see if there is an element/component already for their use.
|
|
17
|
+
* Components should be as small as possible to make the code easier to access and understand, thats why the directory structure has importance.
|
|
18
|
+
* Every logic/function according to articles/items/cart or anything else should be in the `cartStore` in `./src/stores/cart.js` - reason is as follows - all components get their data with so called props which are not "reactive" by nature. We want to trigger a rerender if we change/add/edit... items thats why anything according to that should be in the cartStore. Read the cartStore carefully and use the already existing states to grant a clean rerender/reactive process. The props all get updated as soon as the main states get updated in the `cartStore` -> rerender --> profit...
|
|
19
|
+
|
|
20
|
+
Try to understand this structure and adopt it with new components for easy implementation without much effort.
|
|
21
|
+
|
|
22
|
+
Real documentation is coming soon...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viur/shop-components",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.60",
|
|
4
4
|
"description": "Frontend Vue components for the shop module of ViUR",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,44 +17,31 @@
|
|
|
17
17
|
"url": "https://github.com/viur-framework/shop-components/issues"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/viur-framework/shop-components#readme",
|
|
20
|
-
"main": "
|
|
21
|
-
"module": "dist/viur-shop-components.es.js",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"import": "./dist/viur-shop-components.es.js",
|
|
25
|
-
"require": "./dist/viur-shop-components.umd.js"
|
|
26
|
-
},
|
|
27
|
-
"./dist/main.css": {
|
|
28
|
-
"import": "./dist/main.css",
|
|
29
|
-
"require": "./dist/main.css"
|
|
30
|
-
},
|
|
31
|
-
"./dist/ItemView.css": {
|
|
32
|
-
"import": "./dist/ItemView.css",
|
|
33
|
-
"require": "./dist/ItemView.css"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist"
|
|
38
|
-
],
|
|
20
|
+
"main": "src/main.js",
|
|
39
21
|
"scripts": {
|
|
40
22
|
"build": "vite build",
|
|
41
23
|
"watch": "vite build --watch"
|
|
42
24
|
},
|
|
43
25
|
"dependencies": {
|
|
26
|
+
"@tanstack/vue-table": "^8.20.5",
|
|
44
27
|
"@viur/ignite": "^5.1.2",
|
|
45
|
-
"@viur/shoelace": "^1.0.
|
|
46
|
-
"@viur/viur-shop-client": "^0.
|
|
47
|
-
"@viur/vue-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
28
|
+
"@viur/shoelace": "^1.0.8-v2.17.1",
|
|
29
|
+
"@viur/viur-shop-client": "^0.3.0",
|
|
30
|
+
"@viur/vue-components": "^1.7.12",
|
|
31
|
+
"@viur/vue-utils": "^1.7.18",
|
|
32
|
+
"@vueuse/core": "^11.1.0",
|
|
33
|
+
"pinia": "^2.2.4",
|
|
34
|
+
"primevue": "^4.1.1",
|
|
35
|
+
"vue": "^3.5.12",
|
|
36
|
+
"vue-i18n": "^10.0.4",
|
|
37
|
+
"vue-router": "^4.4.5"
|
|
51
38
|
},
|
|
52
39
|
"devDependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"postcss-custom-media": "^
|
|
56
|
-
"postcss-nesting": "^
|
|
57
|
-
"prettier": "^3.3.
|
|
58
|
-
"vite": "^5.
|
|
40
|
+
"@faker-js/faker": "^9.0.3",
|
|
41
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
42
|
+
"postcss-custom-media": "^11.0.3",
|
|
43
|
+
"postcss-nesting": "^13.0.0",
|
|
44
|
+
"prettier": "^3.3.3",
|
|
45
|
+
"vite": "^5.4.9"
|
|
59
46
|
}
|
|
60
47
|
}
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<sl-spinner v-if="state.loading"></sl-spinner>
|
|
3
|
+
<CartTree v-model="state.data" v-else></CartTree>
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script setup>
|
|
7
|
+
import {
|
|
8
|
+
reactive,
|
|
9
|
+
computed,
|
|
10
|
+
onBeforeMount,
|
|
11
|
+
ref,
|
|
12
|
+
watch,
|
|
13
|
+
watchEffect,
|
|
14
|
+
} from "vue";
|
|
15
|
+
import { useCartStore } from "../stores/cart.js";
|
|
16
|
+
import CartTree from "./cart/CartTree.vue";
|
|
17
|
+
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
mode: { type: String, default: "basket" },
|
|
20
|
+
cartKey: { type: String },
|
|
21
|
+
sidebar: { type: Boolean, default: true },
|
|
22
|
+
inOrderView: { type: Boolean, default: false },
|
|
23
|
+
inOrderConfirm: { type: Boolean, default: false },
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const cartStore = useCartStore();
|
|
27
|
+
|
|
28
|
+
const confirm = ref(null);
|
|
29
|
+
const shipping = ref(null);
|
|
30
|
+
|
|
31
|
+
const state = reactive({
|
|
32
|
+
itemsIsInit: computed(() => {
|
|
33
|
+
return true;
|
|
34
|
+
}),
|
|
35
|
+
totalPrice: computed(() => {
|
|
36
|
+
if (shipping.value) {
|
|
37
|
+
return (
|
|
38
|
+
cartStore.state.basketRootNode.total_discount_price +
|
|
39
|
+
shipping.value.getShippingCost()
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
return 0;
|
|
43
|
+
}),
|
|
44
|
+
currentItem: {},
|
|
45
|
+
currentNode: {},
|
|
46
|
+
data: [],
|
|
47
|
+
loading: true,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const currentCartKey = computed(() => {
|
|
51
|
+
return props.mode === "basket"
|
|
52
|
+
? cartStore.state.basketRootNode.key
|
|
53
|
+
: props.cartKey;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
async function onConfirm() {
|
|
57
|
+
confirm.value.hide();
|
|
58
|
+
|
|
59
|
+
await cartStore.updateItem(
|
|
60
|
+
state.currentItem.article.dest.key,
|
|
61
|
+
state.currentNode.key,
|
|
62
|
+
0,
|
|
63
|
+
);
|
|
64
|
+
await updateCart();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async function updateItem(e) {
|
|
68
|
+
if (e.quantity === 0) {
|
|
69
|
+
confirm.value.show();
|
|
70
|
+
state.currentItem = e.item;
|
|
71
|
+
state.currentNode = e.node;
|
|
72
|
+
} else {
|
|
73
|
+
await cartStore.updateItem(e.articleKey, e.node.key, e.quantity);
|
|
74
|
+
|
|
75
|
+
await cartStore.init();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function removeItem(e) {
|
|
81
|
+
confirm.value.show();
|
|
82
|
+
state.currentItem = e.item;
|
|
83
|
+
state.currentNode = e.node;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async function onDialogHide() {
|
|
87
|
+
// TODO: console error when removing items
|
|
88
|
+
state.leaves[state.currentNode.key].forEach((item) => {
|
|
89
|
+
if (item.key === state.currentItem.key) {
|
|
90
|
+
item.quantity = 1;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
state.currentItem = {};
|
|
95
|
+
state.currentNode = {};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async function updateCart() {
|
|
99
|
+
state.nodes = [];
|
|
100
|
+
state.leaves = {};
|
|
101
|
+
|
|
102
|
+
await cartStore.init();
|
|
103
|
+
await getChildren();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async function getChildren(parentKey = currentCartKey.value) {
|
|
107
|
+
const children = await cartStore.getChildren(parentKey);
|
|
108
|
+
|
|
109
|
+
children.forEach(async (child) => {
|
|
110
|
+
if (child.skel_type === "node") {
|
|
111
|
+
state.data.push(child);
|
|
112
|
+
await getChildren(child.key);
|
|
113
|
+
} else {
|
|
114
|
+
state.data.push(child);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// function buildTree() {
|
|
120
|
+
// let tempArray = state.nodes;
|
|
121
|
+
|
|
122
|
+
// state.nodes.forEach((node) => {
|
|
123
|
+
// tempArray.push(...state.leaves[node.key]);
|
|
124
|
+
// });
|
|
125
|
+
|
|
126
|
+
// const arrayToTree = (arr, parent = null) =>
|
|
127
|
+
// arr
|
|
128
|
+
// .filter((item) => item.parententry === parent)
|
|
129
|
+
// .map((child) => ({ ...child, children: arrayToTree(arr, child.key) }));
|
|
130
|
+
|
|
131
|
+
// let result = arrayToTree(tempArray);
|
|
132
|
+
// return result[0];
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
watch(
|
|
136
|
+
() => state.data,
|
|
137
|
+
(oldVal, newVal) => {
|
|
138
|
+
console.log("oldVal", oldVal);
|
|
139
|
+
if (oldVal.length === newVal.length) {
|
|
140
|
+
state.loading = false;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{ deep: true },
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
onBeforeMount(async () => {
|
|
147
|
+
await cartStore.init();
|
|
148
|
+
await getChildren();
|
|
149
|
+
|
|
150
|
+
if (props.mode === "basket") {
|
|
151
|
+
state.data.push(cartStore.state.basketRootNode);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
</script>
|
|
155
|
+
|
|
156
|
+
<style scoped>
|
|
157
|
+
.viur-shop-cart-wrap {
|
|
158
|
+
display: grid;
|
|
159
|
+
grid-template-columns: subgrid;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
sl-alert {
|
|
163
|
+
margin-top: var(--sl-spacing-medium);
|
|
164
|
+
margin-bottom: var(--sl-spacing-medium);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.viur-shop-cart-controlbar {
|
|
168
|
+
width: 100%;
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
align-items: center;
|
|
172
|
+
|
|
173
|
+
sl-input {
|
|
174
|
+
flex: 1;
|
|
175
|
+
|
|
176
|
+
&::part(base) {
|
|
177
|
+
margin-bottom: 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.viur-shop-cart-button-list {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
gap: 10px;
|
|
186
|
+
|
|
187
|
+
&.left {
|
|
188
|
+
flex: 1;
|
|
189
|
+
margin-right: 10px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.search {
|
|
194
|
+
flex: 1 1 100%;
|
|
195
|
+
margin-left: 10px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.article-combobox {
|
|
199
|
+
float: left;
|
|
200
|
+
width: 75ch;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.viur-shop-cart-card-img {
|
|
204
|
+
aspect-ratio: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.viur-shop-cart-selection {
|
|
208
|
+
flex: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.viur-shop-cart-node {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.cart-wrap {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
width: 100%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.soma-input {
|
|
223
|
+
display: grid;
|
|
224
|
+
grid-template-columns: 120px 1fr;
|
|
225
|
+
align-items: center;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.soma-label {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: row;
|
|
231
|
+
align-items: center;
|
|
232
|
+
|
|
233
|
+
sl-icon {
|
|
234
|
+
margin-left: 5px;
|
|
235
|
+
background-color: @highlightColor;
|
|
236
|
+
color: #fff;
|
|
237
|
+
aspect-ratio: 1;
|
|
238
|
+
border-radius: 50%;
|
|
239
|
+
padding: 0.3em;
|
|
240
|
+
font-size: 0.6em;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
sl-tooltip {
|
|
246
|
+
&::part(body) {
|
|
247
|
+
line-height: 1.2;
|
|
248
|
+
font-weight: 400;
|
|
249
|
+
padding: 10px;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.cart-tab {
|
|
254
|
+
sl-tab {
|
|
255
|
+
width: 25%;
|
|
256
|
+
|
|
257
|
+
&::part(base) {
|
|
258
|
+
width: 100%;
|
|
259
|
+
height: 100%;
|
|
260
|
+
display: flex;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
align-items: center;
|
|
263
|
+
position: relative;
|
|
264
|
+
color: var(--sl-color-neutral-400);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&[aria-selected="true"]::part(base) {
|
|
268
|
+
color: var(--ignt-color-primary) !important;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cart-status-text {
|
|
274
|
+
font-size: 0.8em;
|
|
275
|
+
color: inherit;
|
|
276
|
+
text-align: center;
|
|
277
|
+
margin-top: 0.6em;
|
|
278
|
+
white-space: initial;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.search-box {
|
|
282
|
+
display: flex;
|
|
283
|
+
flex-direction: row;
|
|
284
|
+
flex-wrap: nowrap;
|
|
285
|
+
align-items: stretch;
|
|
286
|
+
margin-bottom: 30px;
|
|
287
|
+
|
|
288
|
+
sl-button {
|
|
289
|
+
&::part(base) {
|
|
290
|
+
height: 100%;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@media (--ignt-mq-max-break-medium) {
|
|
295
|
+
flex-wrap: wrap;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.article-combobox {
|
|
300
|
+
flex: 1 1 100%;
|
|
301
|
+
margin-bottom: 10px;
|
|
302
|
+
|
|
303
|
+
&::part(base) {
|
|
304
|
+
margin-bottom: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@media (--ignt-mq-max-break-medium) {
|
|
308
|
+
margin-bottom: 0;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.comission-box {
|
|
313
|
+
margin-right: 10px;
|
|
314
|
+
|
|
315
|
+
&::part(base) {
|
|
316
|
+
margin-bottom: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@media (--ignt-mq-max-break-medium) {
|
|
320
|
+
flex: 1;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.search-amt {
|
|
325
|
+
margin-right: 10px;
|
|
326
|
+
|
|
327
|
+
&::part(base) {
|
|
328
|
+
margin-bottom: 0;
|
|
329
|
+
width: 80px;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.viur-shop-cart-headline {
|
|
334
|
+
&::part(base) {
|
|
335
|
+
background-color: transparent;
|
|
336
|
+
transition: all ease 0.3s;
|
|
337
|
+
border-bottom: 1px solid transparent;
|
|
338
|
+
height: auto;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:deep(.input--focused) {
|
|
342
|
+
border-bottom: 1px solid var(--sl-color-primary-500) !important;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&::part(input) {
|
|
346
|
+
color: var(--sl-color-primary-500);
|
|
347
|
+
font-weight: 300;
|
|
348
|
+
text-transform: uppercase;
|
|
349
|
+
font-size: 1.85em;
|
|
350
|
+
padding: 0.1em 0;
|
|
351
|
+
height: auto;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&::part(suffix) {
|
|
355
|
+
pointer-events: none;
|
|
356
|
+
width: 1.5em;
|
|
357
|
+
margin-left: -1em;
|
|
358
|
+
font-size: 1.5em;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:hover {
|
|
362
|
+
&::part(base) {
|
|
363
|
+
border-bottom: 1px solid var(--sl-color-primary-500);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.viur-shop-cart-descr {
|
|
369
|
+
margin-top: 10px;
|
|
370
|
+
|
|
371
|
+
&::part(base) {
|
|
372
|
+
background-color: transparent;
|
|
373
|
+
transition: all ease 0.3s;
|
|
374
|
+
border-bottom: 1px solid transparent;
|
|
375
|
+
margin-bottom: 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&::part(input) {
|
|
379
|
+
padding: 0.1em 0;
|
|
380
|
+
height: auto;
|
|
381
|
+
color: var(--ignt-color-text);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&::part(suffix) {
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
width: 1.5em;
|
|
387
|
+
margin-left: -1em;
|
|
388
|
+
font-size: 1.5em;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&:hover {
|
|
392
|
+
&::part(base) {
|
|
393
|
+
border-bottom: 1px solid var(--ignt-color-text);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
sl-menu-item {
|
|
399
|
+
&::part(base) {
|
|
400
|
+
padding: 0.2em 0.9em 0.2em 0.8em;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&::part(checked-icon) {
|
|
404
|
+
display: none;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
&::part(prefix) {
|
|
408
|
+
margin-right: 10px;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
&::part(suffix) {
|
|
412
|
+
margin-right: -1.5em;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.primary-icon {
|
|
417
|
+
color: var(--ignt-color-primary);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.delete-icon {
|
|
421
|
+
color: @warnColor;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.dots {
|
|
425
|
+
color: var(--ignt-color-primary);
|
|
426
|
+
width: 1.5em;
|
|
427
|
+
height: 100%;
|
|
428
|
+
font-size: 1em;
|
|
429
|
+
padding: 0.4em;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.viur-shop-cart-card {
|
|
433
|
+
margin-bottom: var(--sl-spacing-x-large);
|
|
434
|
+
|
|
435
|
+
&::part(header) {
|
|
436
|
+
border-bottom: none;
|
|
437
|
+
padding-top: 0;
|
|
438
|
+
padding-right: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
&::part(image) {
|
|
442
|
+
flex-basis: 25%;
|
|
443
|
+
max-width: 250px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&::part(body) {
|
|
447
|
+
display: flex;
|
|
448
|
+
flex: 1;
|
|
449
|
+
padding-top: 0;
|
|
450
|
+
padding-bottom: 0;
|
|
451
|
+
padding-right: 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&::part(group) {
|
|
455
|
+
padding: var(--sl-spacing-small) 0;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.viur-shop-cart-card-body-row {
|
|
460
|
+
display: grid;
|
|
461
|
+
grid-template-columns: 1fr auto auto;
|
|
462
|
+
gap: var(--sl-spacing-large);
|
|
463
|
+
flex: 1;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.viur-shop-cart-card-body-info {
|
|
467
|
+
display: flex;
|
|
468
|
+
flex-direction: column;
|
|
469
|
+
height: 100%;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.viur-shop-cart-card-descr {
|
|
473
|
+
margin-bottom: auto;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.viur-shop-cart-card-body-footer {
|
|
477
|
+
display: flex;
|
|
478
|
+
flex-direction: row;
|
|
479
|
+
gap: var(--sl-spacing-2x-small);
|
|
480
|
+
margin-top: var(--sl-spacing-large);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.amount-input {
|
|
484
|
+
width: 5em;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.viur-shop-cart-card-price-wrap {
|
|
488
|
+
display: flex;
|
|
489
|
+
flex-direction: column;
|
|
490
|
+
|
|
491
|
+
.viur-shop-cart-card-small-print {
|
|
492
|
+
font-size: 0.75em;
|
|
493
|
+
margin-left: auto;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.viur-shop-cart-card-price {
|
|
498
|
+
font-size: 1.3em;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.viur-shop-cart-card-price-label {
|
|
502
|
+
color: var(--ignt-color-primary);
|
|
503
|
+
font-weight: 600;
|
|
504
|
+
margin-bottom: 10px;
|
|
505
|
+
font-size: 1em;
|
|
506
|
+
margin-left: auto;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.viur-shop-cart-mobile-footer {
|
|
510
|
+
display: none;
|
|
511
|
+
}
|
|
512
|
+
</style>
|