@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.
Files changed (86) hide show
  1. package/.editorconfig +16 -0
  2. package/.github/workflows/npm-publish.yml +42 -0
  3. package/.gitmodules +3 -0
  4. package/LICENSE +21 -0
  5. package/README.md +13 -2
  6. package/package.json +19 -32
  7. package/src/components/ShopCart.vue +512 -0
  8. package/src/components/ShopOrderComplete.vue +73 -0
  9. package/src/components/ShopOrderConfirm.vue +291 -0
  10. package/src/components/ShopOrderStepper.vue +264 -0
  11. package/src/components/ShopUserData.vue +232 -0
  12. package/src/components/cart/CartLeaf.vue +277 -0
  13. package/src/components/cart/CartLeafModel.vue +304 -0
  14. package/src/components/cart/CartNode.vue +25 -0
  15. package/src/components/cart/CartTree.vue +54 -0
  16. package/src/components/cart/CartTreeWrapper.vue +73 -0
  17. package/src/components/cart/CartView.vue +723 -0
  18. package/src/components/cart/Discount.vue +91 -0
  19. package/src/components/lib/utils.js +0 -0
  20. package/src/components/order/OrderSidebar.vue +102 -0
  21. package/src/components/order/category/CategoryList.vue +83 -0
  22. package/src/components/order/category/CategoryView.vue +143 -0
  23. package/src/components/order/information/adress/ShippingAdress.vue +143 -0
  24. package/src/components/order/item/ItemCard.vue +168 -0
  25. package/src/components/order/item/ItemView.vue +232 -0
  26. package/src/components/order/process/ConfirmView.vue +312 -0
  27. package/src/components/order/process/ExampleUsage.vue +113 -0
  28. package/src/components/order/process/OrderTabHeader.vue +16 -0
  29. package/src/components/order/process/SelectPaymentProvider.vue +62 -0
  30. package/src/components/order/process/Shipping.vue +46 -0
  31. package/src/components/ui/ShopSummary.vue +145 -0
  32. package/src/components/ui/generic/ArticleList.vue +222 -0
  33. package/src/components/ui/generic/ExamplePagination.vue +236 -0
  34. package/src/components/ui/generic/ShopPriceFormatter.vue +41 -0
  35. package/src/components/ui/generic/alerts/ShopAlert.vue +19 -0
  36. package/src/components/ui/generic/makeData.js +39 -0
  37. package/src/components/ui/stepper/StepperItem.vue +39 -0
  38. package/src/components/ui/stepper/StepperTab.vue +133 -0
  39. package/src/components/ui/stepper/StepperTrigger.vue +35 -0
  40. package/src/components/ui/userdata/AddForm.vue +125 -0
  41. package/src/components/ui/userdata/AddressBox.vue +117 -0
  42. package/src/components/ui/userdata/BaseLayout.vue +94 -0
  43. package/src/components/ui/userdata/CustomBooleanBone.vue +58 -0
  44. package/src/components/ui/userdata/CustomSelectBone.vue +91 -0
  45. package/src/components/ui/userdata/CustomStringBone.vue +71 -0
  46. package/src/components/ui/userdata/DefaultLayout.vue +126 -0
  47. package/src/components/ui/userdata/SelectAddress.vue +21 -0
  48. package/src/components/ui/userdata/multi/ActionBar.vue +38 -0
  49. package/src/components/ui/userdata/multi/CartSelection.vue +42 -0
  50. package/src/main.js +50 -0
  51. package/src/router/index.js +103 -0
  52. package/src/stores/cart.js +336 -0
  53. package/src/style/ignite/.editorconfig +20 -0
  54. package/src/style/ignite/.github/workflows/ignite.yml +64 -0
  55. package/src/style/ignite/.github/workflows/node.yml +30 -0
  56. package/src/style/ignite/.postcssrc.cjs +25 -0
  57. package/src/style/ignite/CHANGELOG.md +244 -0
  58. package/src/style/ignite/LICENSE +21 -0
  59. package/src/style/ignite/README.md +92 -0
  60. package/src/style/ignite/dist/ignite.css +2019 -0
  61. package/src/style/ignite/dist/ignite.min.css +4 -0
  62. package/src/style/ignite/foundation/basic.css +371 -0
  63. package/src/style/ignite/foundation/color.css +323 -0
  64. package/src/style/ignite/foundation/config.css +188 -0
  65. package/src/style/ignite/foundation/grid.css +78 -0
  66. package/src/style/ignite/foundation/mediaqueries.css +71 -0
  67. package/src/style/ignite/foundation/reset.css +261 -0
  68. package/src/style/ignite/ignite.css +29 -0
  69. package/src/style/ignite/ignite.css.map +1 -0
  70. package/src/style/ignite/package-lock.json +5530 -0
  71. package/src/style/ignite/package.json +58 -0
  72. package/src/style/ignite/shoelace.css +19 -0
  73. package/src/style/ignite/themes/dark.css +12 -0
  74. package/src/style/ignite/themes/light.css +11 -0
  75. package/src/style/ignite/utilities/shoelace.css +537 -0
  76. package/src/style/ignite/utilities/utilities.css +24 -0
  77. package/src/views/ViewMissing.vue +20 -0
  78. package/vite.config.js +53 -0
  79. package/dist/CategoryView-Z-tCFNv1.mjs +0 -60
  80. package/dist/ItemCard-CVfih_bz.mjs +0 -64
  81. package/dist/ItemView-cjeQBSTR.mjs +0 -1848
  82. package/dist/ItemView.css +0 -1
  83. package/dist/main-CZfMYx-A.mjs +0 -3167
  84. package/dist/main.css +0 -1
  85. package/dist/viur-shop-components.es.js +0 -10
  86. package/dist/viur-shop-components.umd.js +0 -417
package/vite.config.js ADDED
@@ -0,0 +1,53 @@
1
+ import { defineConfig } from "vite";
2
+ import vue from "@vitejs/plugin-vue";
3
+
4
+ export default defineConfig({
5
+ plugins: [
6
+ vue({
7
+ template: {
8
+ compilerOptions: {
9
+ isCustomElement: (tag) => tag.startsWith("sl-"),
10
+ },
11
+ },
12
+ }),
13
+ ],
14
+ build: {
15
+ lib: {
16
+ entry: "./src/main.js", // Adjust the entry point as needed
17
+ name: "ViurShopComponents",
18
+ fileName: (format) => `viur-shop-components.${format}.js`,
19
+ },
20
+ cssCodeSplit: false,
21
+ rollupOptions: {
22
+ external: [
23
+ "vue",
24
+ "pinia",
25
+ "@viur/shoelace",
26
+ "@viur/ignite",
27
+ "@viur/viur-shop-client",
28
+ "@viur/vue-utils",
29
+ "vue-router",
30
+ "@ckeditor/ckeditor5-vue",
31
+ "@ckeditor/ckeditor5-build-classic",
32
+ "@viur/ckeditor5-build-classic",
33
+ ],
34
+ output: {
35
+ assetFileNames: (assetInfo) => {
36
+ return assetInfo.name;
37
+ },
38
+ globals: {
39
+ vue: "Vue",
40
+ pinia: "Pinia",
41
+ "@viur/shoelace": "ViurShoelace",
42
+ "@viur/ignite": "ViurIgnite",
43
+ "@viur/viur-shop-client": "ViurShopClient",
44
+ "vue-router": "VueRouter",
45
+ "@ckeditor/ckeditor5-vue": "CKEditor5Vue",
46
+ "@ckeditor/ckeditor5-build-classic": "ClassicEditor",
47
+ "@viur/ckeditor5-build-classic": "ViurCkeditor",
48
+ "@viur/vue-utils": "ViurVueUtils",
49
+ },
50
+ },
51
+ },
52
+ },
53
+ });
@@ -1,60 +0,0 @@
1
- import { reactive as p, computed as m, onMounted as f, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as g, renderSlot as _, createTextVNode as h, createCommentVNode as k, Fragment as y, renderList as v, createBlock as w, pushScopeId as I, popScopeId as S } from "vue";
2
- import { _ as C, u as b } from "./main-CZfMYx-A.mjs";
3
- import { useRoute as x } from "vue-router";
4
- import "@viur/vue-utils";
5
- import { I as L } from "./ItemCard-CVfih_bz.mjs";
6
- const V = (t) => (I("data-v-532e5cf3"), t = t(), S(), t), B = {
7
- key: 0,
8
- class: "viur-shop-loading-wrap"
9
- }, H = /* @__PURE__ */ V(() => /* @__PURE__ */ o("sl-spinner", null, null, -1)), T = [
10
- H
11
- ], E = {
12
- key: 1,
13
- class: "bind"
14
- }, M = { class: "page-header" }, N = { class: "viur-shop-category-view-list" }, A = ["loading", "disabled"], j = {
15
- __name: "CategoryView",
16
- props: {
17
- skellist: { type: Array },
18
- filter: { type: Boolean, default: !0 },
19
- pageHeader: { type: String, default: "Artikel Liste" },
20
- listHandler: { type: Object, required: !0 }
21
- },
22
- setup(t) {
23
- const l = t, n = x(), c = b(), e = p({
24
- skellist: [],
25
- loading: !0,
26
- currentCursor: "",
27
- isLastItem: !1,
28
- itemCount: 99,
29
- itemType: m(() => n.params.identifier)
30
- }), s = l.listHandler;
31
- async function d() {
32
- e.loading = !0, await s.next(), e.skellist.length < s.state.skellist.length ? (e.skellist = s.state.skellist, e.loading = !1) : (e.loading = !1, e.isLastItem = !0);
33
- }
34
- return f(async () => {
35
- await c.init(), await s.fetch(!0), e.skellist = s.state.skellist, e.loading = !1;
36
- }), (u, q) => e.loading ? (a(), i("div", B, T)) : (a(), i("div", E, [
37
- o("div", M, [
38
- o("h1", null, g(t.pageHeader), 1)
39
- ]),
40
- t.filter ? _(u.$slots, "filter", { key: 0 }, () => [
41
- h(" text-transform text-transform TEST ")
42
- ], !0) : k("", !0),
43
- o("div", N, [
44
- (a(!0), i(y, null, v(e.skellist, (r) => (a(), w(L, {
45
- key: r.shop_name,
46
- item: r
47
- }, null, 8, ["item"]))), 128))
48
- ]),
49
- o("sl-button", {
50
- onClick: d,
51
- loading: e.loading,
52
- disabled: e.isLastItem,
53
- class: "viur-shop-category-view-more-button"
54
- }, " Mehr anzeigen ", 8, A)
55
- ]));
56
- }
57
- }, $ = /* @__PURE__ */ C(j, [["__scopeId", "data-v-532e5cf3"]]);
58
- export {
59
- $ as default
60
- };
@@ -1,64 +0,0 @@
1
- import { openBlock as l, createElementBlock as n, createElementVNode as e, toDisplayString as r, withModifiers as m, unref as d, createTextVNode as p, pushScopeId as u, popScopeId as h } from "vue";
2
- import { Request as _ } from "@viur/vue-utils";
3
- import { _ as f, u as v } from "./main-CZfMYx-A.mjs";
4
- const i = (t) => (u("data-v-dc32dd0b"), t = t(), h(), t), b = { class: "viur-shop-item-card-card" }, g = ["src", "alt"], k = { class: "viur-shop-item-card-headline" }, x = /* @__PURE__ */ i(() => /* @__PURE__ */ e("h4", { class: "viur-shop-item-card-subline" }, "B 21 x H 6,5 x T 19 cm", -1)), I = { class: "viur-shop-item-card-price" }, y = {
5
- class: "viur-shop-item-card-footer",
6
- slot: "footer"
7
- }, S = /* @__PURE__ */ i(() => /* @__PURE__ */ e("sl-icon", {
8
- name: "bag-plus",
9
- slot: "prefix"
10
- }, null, -1)), C = /* @__PURE__ */ i(() => /* @__PURE__ */ e("sl-button", {
11
- size: "small",
12
- outline: "",
13
- class: "viur-shop-item-card-add-to-favourites-btn",
14
- variant: "primary",
15
- title: "Add to favourites"
16
- }, [
17
- /* @__PURE__ */ e("sl-icon", {
18
- name: "heart",
19
- slot: "prefix"
20
- })
21
- ], -1)), w = {
22
- __name: "ItemCard",
23
- props: {
24
- item: {
25
- type: Object,
26
- required: !0
27
- }
28
- },
29
- setup(t) {
30
- const a = v();
31
- function c(s) {
32
- let o = "https://images.unsplash.com/photo-1559209172-0ff8f6d49ff7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80";
33
- return s.dk_artikel.dest.image ? _.downloadUrlFor(s.dk_artikel.dest.image) : o;
34
- }
35
- return (s, o) => (l(), n("sl-card", b, [
36
- e("img", {
37
- slot: "image",
38
- src: c(t.item),
39
- alt: t.item.shop_name,
40
- loading: "lazy",
41
- class: "viur-shop-item-card-image"
42
- }, null, 8, g),
43
- e("h3", k, r(t.item.shop_name), 1),
44
- x,
45
- e("div", I, r(t.item.shop_price_retail) + " €", 1),
46
- e("div", y, [
47
- e("sl-button", {
48
- size: "small",
49
- class: "viur-shop-item-card-add-to-cart-btn",
50
- variant: "primary",
51
- title: "Add to cart",
52
- onClick: o[0] || (o[0] = m((B) => d(a).addToCart(t.item.key, d(a).state.basket), ["stop"]))
53
- }, [
54
- S,
55
- p(" In den Warenkorb ")
56
- ]),
57
- C
58
- ])
59
- ]));
60
- }
61
- }, T = /* @__PURE__ */ f(w, [["__scopeId", "data-v-dc32dd0b"]]);
62
- export {
63
- T as I
64
- };