flowrix 1.0.1-beta.147 → 1.0.1-beta.149
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/dist/module.json +1 -1
- package/dist/runtime/components/SampleProductCard.d.vue.ts +13 -0
- package/dist/runtime/components/SampleProductCard.vue +362 -0
- package/dist/runtime/components/SampleProductCard.vue.d.ts +13 -0
- package/dist/runtime/components/WishList/dropdown.d.vue.ts +9 -0
- package/dist/runtime/components/WishList/dropdown.vue +417 -0
- package/dist/runtime/components/WishList/dropdown.vue.d.ts +9 -0
- package/dist/runtime/components/WishList/modal.d.vue.ts +13 -0
- package/dist/runtime/components/WishList/modal.vue +229 -0
- package/dist/runtime/components/WishList/modal.vue.d.ts +13 -0
- package/dist/runtime/components/product/AddToCart.d.vue.ts +15 -0
- package/dist/runtime/components/product/AddToCart.vue +176 -0
- package/dist/runtime/components/product/AddToCart.vue.d.ts +15 -0
- package/dist/runtime/components/product/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/product/AddtoCartSample.vue +110 -0
- package/dist/runtime/components/product/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/product/Badges.d.vue.ts +13 -0
- package/dist/runtime/components/product/Badges.vue +84 -0
- package/dist/runtime/components/product/Badges.vue.d.ts +13 -0
- package/dist/runtime/components/product/Description.d.vue.ts +9 -0
- package/dist/runtime/components/product/Description.vue +96 -0
- package/dist/runtime/components/product/Description.vue.d.ts +9 -0
- package/dist/runtime/components/product/Dynamic.d.vue.ts +9 -0
- package/dist/runtime/components/product/Dynamic.vue +136 -0
- package/dist/runtime/components/product/Dynamic.vue.d.ts +9 -0
- package/dist/runtime/components/product/Gallery.d.vue.ts +11 -0
- package/dist/runtime/components/product/Gallery.vue +133 -0
- package/dist/runtime/components/product/Gallery.vue.d.ts +11 -0
- package/dist/runtime/components/product/PopUpCart.d.vue.ts +11 -0
- package/dist/runtime/components/product/PopUpCart.vue +155 -0
- package/dist/runtime/components/product/PopUpCart.vue.d.ts +11 -0
- package/dist/runtime/components/product/ProductInfo.d.vue.ts +7 -0
- package/dist/runtime/components/product/ProductInfo.vue +105 -0
- package/dist/runtime/components/product/ProductInfo.vue.d.ts +7 -0
- package/dist/runtime/components/product/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/product/RequiredPopUp.vue +57 -0
- package/dist/runtime/components/product/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.d.vue.ts +13 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.vue +35 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.vue.d.ts +13 -0
- package/dist/runtime/components/product/bundleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/bundleProduct/index.vue +32 -0
- package/dist/runtime/components/product/bundleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.vue +101 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/product/customProduct/Attributes.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/Attributes.vue +12 -0
- package/dist/runtime/components/product/customProduct/Attributes.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue +253 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue +253 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue +214 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue +133 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue +35 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue +134 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.d.vue.ts +15 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue +138 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue.d.ts +15 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue +149 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue +82 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue +108 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue +104 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue +87 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue +219 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue +36 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue +45 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue +48 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue +154 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue +111 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue +269 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue +63 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue +63 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue +220 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue +47 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue +91 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.vue +25 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.vue +49 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/Reviews.d.vue.ts +7 -0
- package/dist/runtime/components/product/customProduct/Reviews.vue +25 -0
- package/dist/runtime/components/product/customProduct/Reviews.vue.d.ts +7 -0
- package/dist/runtime/components/product/customProduct/SingleStep.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/SingleStep.vue +11 -0
- package/dist/runtime/components/product/customProduct/SingleStep.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/Steps.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/Steps.vue +221 -0
- package/dist/runtime/components/product/customProduct/Steps.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/index.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/index.vue +272 -0
- package/dist/runtime/components/product/customProduct/index.vue.d.ts +9 -0
- package/dist/runtime/components/product/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/index.vue +90 -0
- package/dist/runtime/components/product/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.d.vue.ts +11 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.vue.d.ts +11 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.d.vue.ts +7 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.vue +74 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.vue.d.ts +7 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.d.vue.ts +9 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue +63 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue.d.ts +9 -0
- package/dist/runtime/components/product/sampleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/sampleProduct/index.vue +64 -0
- package/dist/runtime/components/product/sampleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.d.vue.ts +11 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.vue.d.ts +11 -0
- package/dist/runtime/components/product/simpleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/simpleProduct/index.vue +34 -0
- package/dist/runtime/components/product/simpleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.d.ts +3 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.js +20 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.d.ts +70 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.js +63 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.d.ts +74 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.js +107 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.d.ts +159 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.js +2079 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.d.ts +4 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.js +27 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.d.ts +68 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.js +21 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.d.ts +67 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.js +15 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.d.ts +88 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.js +72 -0
- package/dist/runtime/composables/index.d.ts +8 -0
- package/dist/runtime/composables/index.js +8 -0
- package/dist/runtime/pages/flowrix-default.vue +15 -6
- package/dist/runtime/plugins/bootstrap.client.d.ts +2 -0
- package/dist/runtime/plugins/bootstrap.client.js +9 -0
- package/dist/runtime/server/api/cart/related.js +15 -2
- package/package.json +1 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, watch } from "vue";
|
|
3
|
+
import { Swiper, SwiperSlide } from "swiper/vue";
|
|
4
|
+
import SlideSlide from "./SingleSlidemagnifier.vue";
|
|
5
|
+
import contentPopup from "../PopupContent/Popup.vue";
|
|
6
|
+
const CustomScript = useCustomeScriptDynamic();
|
|
7
|
+
import "swiper/swiper-bundle.css";
|
|
8
|
+
import { Navigation, Virtual } from "swiper/modules";
|
|
9
|
+
const { attribute, group } = defineProps({ "attribute": Object, "group": Object });
|
|
10
|
+
const { script } = useSingleValue(attribute);
|
|
11
|
+
function goToPrev() {
|
|
12
|
+
document.querySelector(`.swiper-container${attribute.id}`).swiper.slidePrev();
|
|
13
|
+
}
|
|
14
|
+
function goToNext() {
|
|
15
|
+
document.querySelector(`.swiper-container${attribute.id}`).swiper.slideNext();
|
|
16
|
+
}
|
|
17
|
+
const colorspopupShow = ref(false);
|
|
18
|
+
const popupOpen = ((index, key) => {
|
|
19
|
+
showColorLargeImage(index, key);
|
|
20
|
+
});
|
|
21
|
+
const showColorLargeImage = ((index, key) => {
|
|
22
|
+
colorspopupShow.value = key;
|
|
23
|
+
setTimeout(function() {
|
|
24
|
+
let curentpopup = document.querySelector(`#colorspopup_${key}`);
|
|
25
|
+
let colorimages = curentpopup.querySelector(".colors-images");
|
|
26
|
+
let images = colorimages.querySelectorAll(".colors-image");
|
|
27
|
+
images.forEach((image) => {
|
|
28
|
+
image.style.display = "none";
|
|
29
|
+
image.classList.remove("active");
|
|
30
|
+
});
|
|
31
|
+
let colorimage = colorimages.querySelector(".ColorImageIndex_" + index);
|
|
32
|
+
colorimage.style.display = "block";
|
|
33
|
+
colorimage.classList.add("active");
|
|
34
|
+
}, 500);
|
|
35
|
+
});
|
|
36
|
+
const closecolorspopup = (() => {
|
|
37
|
+
colorspopupShow.value = false;
|
|
38
|
+
});
|
|
39
|
+
const NextColorImage = ((key) => {
|
|
40
|
+
let curentpopup = document.querySelector(`#colorspopup_${key}`);
|
|
41
|
+
let colorimages = curentpopup.querySelector(".colors-images");
|
|
42
|
+
let curentImage = colorimages.querySelector(".colors-image.active");
|
|
43
|
+
let children = colorimages.querySelectorAll(".colors-image");
|
|
44
|
+
let firstChild = children[0];
|
|
45
|
+
if (curentImage.nextSibling != null && curentImage.nextSibling.classList != void 0 && Object.values(curentImage.nextSibling.classList).indexOf("colors-image") > -1) {
|
|
46
|
+
curentImage.style.display = "none";
|
|
47
|
+
curentImage.classList.remove("active");
|
|
48
|
+
curentImage.nextSibling.style.display = "block";
|
|
49
|
+
curentImage.nextSibling.classList.add("active");
|
|
50
|
+
} else {
|
|
51
|
+
curentImage.style.display = "none";
|
|
52
|
+
curentImage.classList.remove("active");
|
|
53
|
+
firstChild.style.display = "block";
|
|
54
|
+
firstChild.classList.add("active");
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const PrevColorImage = ((key) => {
|
|
58
|
+
let curentpopup = document.querySelector(`#colorspopup_${key}`);
|
|
59
|
+
let colorimages = curentpopup.querySelector(".colors-images");
|
|
60
|
+
let curentImage = colorimages.querySelector(".colors-image.active");
|
|
61
|
+
let children = colorimages.querySelectorAll(".colors-image");
|
|
62
|
+
let lastChild = children[children.length - 1];
|
|
63
|
+
if (curentImage.previousSibling != null && curentImage.previousSibling.classList != void 0 && Object.values(curentImage.previousSibling.classList).indexOf("colors-image") > -1) {
|
|
64
|
+
curentImage.style.display = "none";
|
|
65
|
+
curentImage.classList.remove("active");
|
|
66
|
+
curentImage.previousSibling.style.display = "block";
|
|
67
|
+
curentImage.previousSibling.classList.add("active");
|
|
68
|
+
} else {
|
|
69
|
+
curentImage.style.display = "none";
|
|
70
|
+
curentImage.classList.remove("active");
|
|
71
|
+
lastChild.style.display = "block";
|
|
72
|
+
lastChild.classList.add("active");
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const groupedObjects = (objects) => {
|
|
76
|
+
const groups = {};
|
|
77
|
+
objects.forEach((obj) => {
|
|
78
|
+
const parent = obj.parent;
|
|
79
|
+
if (!groups[parent]) {
|
|
80
|
+
groups[parent] = [];
|
|
81
|
+
}
|
|
82
|
+
groups[parent].push(obj);
|
|
83
|
+
});
|
|
84
|
+
return groups;
|
|
85
|
+
};
|
|
86
|
+
const checkParent = ref("");
|
|
87
|
+
watch(
|
|
88
|
+
() => CustomScript.SelectedOptions,
|
|
89
|
+
// This is the state you're watching
|
|
90
|
+
(newValue, oldValue) => {
|
|
91
|
+
},
|
|
92
|
+
{ deep: true }
|
|
93
|
+
// Add this if you want to deeply watch nested objects or arrays
|
|
94
|
+
);
|
|
95
|
+
</script>
|
|
96
|
+
|
|
97
|
+
<template>
|
|
98
|
+
<div class="row">
|
|
99
|
+
<div class="col-md-12 d-flex justify-content-between">
|
|
100
|
+
<label class="attribute-label">{{ attribute.title }}
|
|
101
|
+
<span v-if="attribute.required" class="text-danger">*</span>
|
|
102
|
+
<contentPopup :attribute="attribute" />
|
|
103
|
+
</label>
|
|
104
|
+
<div class="slider-nav-buttons d-flex gap-3 justify-content-end" style="opacity: 1;">
|
|
105
|
+
<template v-for="(atitems, key) in groupedObjects(attribute.values)">
|
|
106
|
+
<span v-if="atitems.length > 5" @click="goToPrev()"
|
|
107
|
+
:class="[`icon-arrow-left icon-arrow-left${attribute.id}${key}`, { 'd-none': checkParent != key }]"></span>
|
|
108
|
+
<span v-if="atitems.length > 5" @click="goToNext()"
|
|
109
|
+
:class="[`icon-arrow-right icon-arrow-right${attribute.id}${key}`, { 'd-none': checkParent != key }]"></span>
|
|
110
|
+
|
|
111
|
+
</template>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="col-md-12">
|
|
115
|
+
<template v-for="(atitems, key) in groupedObjects(attribute.values)">
|
|
116
|
+
<div :class="`attributeslider swiper-container_${key}`">
|
|
117
|
+
<!-- Swiper -->
|
|
118
|
+
<Swiper :modules="[Virtual, Navigation]" :slides-per-view="4" :space-between="20" virtual
|
|
119
|
+
:navigation="{ nextEl: `.icon-arrow-right${attribute.id}${key}`, prevEl: `.icon-arrow-left${attribute.id}${key}` }">
|
|
120
|
+
<SwiperSlide v-for="(slideContent, index) in atitems" :key="index" :virtualIndex="index">
|
|
121
|
+
<SlideSlide @popupOpen="popupOpen(index, key)" :group="group" :attribute="attribute"
|
|
122
|
+
:slide="slideContent" />
|
|
123
|
+
</SwiperSlide>
|
|
124
|
+
</Swiper>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div :id="`colorspopup_${atitems[0].parent}`" class="colorspopup"
|
|
128
|
+
:class="{ 'active': colorspopupShow == atitems[0].parent }" v-if="colorspopupShow == atitems[0].parent">
|
|
129
|
+
<div class="modal-dialog modal-dialog-centered modal-lg">
|
|
130
|
+
<div class="modal-content">
|
|
131
|
+
<button @click="closecolorspopup()" type="button" class="btn-close" data-bs-dismiss="modal"
|
|
132
|
+
aria-label="Close"></button>
|
|
133
|
+
<div class="modal-body colors-images">
|
|
134
|
+
<div v-for="(item, index) in atitems" :class="`ColorImageIndex_${index}`" :key="index"
|
|
135
|
+
class="colors-image">
|
|
136
|
+
<img :src="item.swatch" width="100%">
|
|
137
|
+
<div class="text-center mt-2">
|
|
138
|
+
<div class="h3 fw-bold">{{ item.title }}</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="colorImagesNav">
|
|
143
|
+
<button @click="PrevColorImage()" type="button"><svg xmlns="http://www.w3.org/2000/svg"
|
|
144
|
+
width="36" height="36" viewBox="0 0 24 24">
|
|
145
|
+
<path fill="currentColor"
|
|
146
|
+
d="m10.8 12l3.9 3.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-4.6-4.6q-.15-.15-.212-.325T8.425 12t.063-.375t.212-.325l4.6-4.6q.275-.275.7-.275t.7.275t.275.7t-.275.7z" />
|
|
147
|
+
</svg></button>
|
|
148
|
+
<button @click="NextColorImage()" type="button"><svg xmlns="http://www.w3.org/2000/svg"
|
|
149
|
+
width="36" height="36" viewBox="0 0 24 24">
|
|
150
|
+
<path fill="currentColor"
|
|
151
|
+
d="M12.6 12L8.7 8.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.6 4.6q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7z" />
|
|
152
|
+
</svg></button>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</template>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</template>
|
|
161
|
+
|
|
162
|
+
<style>
|
|
163
|
+
.slider-nav-buttons .icon-arrow-left,
|
|
164
|
+
.slider-nav-buttons .icon-arrow-right {
|
|
165
|
+
color: #fff;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
background: #333;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
place-content: center;
|
|
170
|
+
align-items: center;
|
|
171
|
+
width: 20px;
|
|
172
|
+
height: 20px;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
display: flex;
|
|
175
|
+
}
|
|
176
|
+
.slider-nav-buttons .icon-arrow-left:hover,
|
|
177
|
+
.slider-nav-buttons .icon-arrow-right:hover {
|
|
178
|
+
background: var(--iseek-secondary);
|
|
179
|
+
}
|
|
180
|
+
.slider-nav-buttons .icon-arrow-left.swiper-button-disabled,
|
|
181
|
+
.slider-nav-buttons .icon-arrow-right.swiper-button-disabled {
|
|
182
|
+
background: #ccc;
|
|
183
|
+
opacity: 0.5;
|
|
184
|
+
}
|
|
185
|
+
.slider-nav-buttons .icon-arrow-left,
|
|
186
|
+
.slider-nav-buttons .icon-arrow-right {
|
|
187
|
+
/* top: 50%; */
|
|
188
|
+
/* transform: translateY(-50%); */
|
|
189
|
+
/* z-index: 10; */
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.attributeslider .swiper-slide {
|
|
193
|
+
height: unset !important;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.swiper-container .swiper-slide {
|
|
198
|
+
height: unset !important;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.modal-dialog {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
transition-duration: 20000ms;
|
|
205
|
+
}
|
|
206
|
+
.modal-dialog .modal-content {
|
|
207
|
+
position: relative;
|
|
208
|
+
}
|
|
209
|
+
.modal-dialog .modal-content .btn-close {
|
|
210
|
+
background-color: var(--bs-white);
|
|
211
|
+
position: absolute;
|
|
212
|
+
right: -20px;
|
|
213
|
+
top: -20px;
|
|
214
|
+
z-index: 2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.colorspopup {
|
|
218
|
+
position: fixed;
|
|
219
|
+
width: 100%;
|
|
220
|
+
height: 100%;
|
|
221
|
+
top: 0;
|
|
222
|
+
left: 0;
|
|
223
|
+
z-index: 99999;
|
|
224
|
+
display: flex;
|
|
225
|
+
background-color: rgba(0, 0, 0, 0.5019607843);
|
|
226
|
+
}
|
|
227
|
+
.colorspopup.active .modal-dialog {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.colors-images {
|
|
232
|
+
position: relative;
|
|
233
|
+
padding: 10px;
|
|
234
|
+
background: #fff;
|
|
235
|
+
border-radius: 20px;
|
|
236
|
+
}
|
|
237
|
+
.colors-images .colors-image {
|
|
238
|
+
display: none;
|
|
239
|
+
border-radius: 20px;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
}
|
|
242
|
+
.colors-images .colors-image img {
|
|
243
|
+
border: 1px solid #ccc;
|
|
244
|
+
width: 450px;
|
|
245
|
+
height: 450px;
|
|
246
|
+
}
|
|
247
|
+
.colors-images .colors-image:first-child {
|
|
248
|
+
display: block;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.colorImagesNav {
|
|
252
|
+
position: absolute;
|
|
253
|
+
width: 100%;
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: space-between;
|
|
256
|
+
height: 50px;
|
|
257
|
+
font-size: 38px;
|
|
258
|
+
line-height: 1;
|
|
259
|
+
top: calc(50% - 25px);
|
|
260
|
+
}
|
|
261
|
+
.colorImagesNav button {
|
|
262
|
+
background-color: #fff;
|
|
263
|
+
border: 0;
|
|
264
|
+
color: var(--iseek-primary);
|
|
265
|
+
}
|
|
266
|
+
.colorImagesNav button:hover {
|
|
267
|
+
background-color: var(--iseek-secondary);
|
|
268
|
+
}
|
|
269
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineProps, ref, defineAsyncComponent } from "vue";
|
|
3
|
+
import contentPopup from "../PopupContent/Popup.vue";
|
|
4
|
+
const CustomScript = useCustomeScriptDynamic();
|
|
5
|
+
const props = defineProps({ "attribute": Object, "group": Object });
|
|
6
|
+
const { script } = useSingleValue(props.attribute);
|
|
7
|
+
const SelecteValue = ref(props.attribute.value);
|
|
8
|
+
const correctValue = ref(true);
|
|
9
|
+
const ChangeValue = ((value) => {
|
|
10
|
+
SelecteValue.value = Math.floor(Number(value));
|
|
11
|
+
value = Math.floor(Number(value));
|
|
12
|
+
correctValue.value = true;
|
|
13
|
+
if (SelecteValue.value < props.attribute.min) {
|
|
14
|
+
correctValue.value = false;
|
|
15
|
+
SelecteValue.value = "";
|
|
16
|
+
} else if (SelecteValue.value > props.attribute.max) {
|
|
17
|
+
correctValue.value = false;
|
|
18
|
+
SelecteValue.value = "";
|
|
19
|
+
} else {
|
|
20
|
+
const aid = props.attribute.id;
|
|
21
|
+
const gid = props.group.id;
|
|
22
|
+
const vid = value;
|
|
23
|
+
CustomScript.SelectedOptions = { aid, gid, vid };
|
|
24
|
+
CustomScript.initprocess();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<div id="ilxf55" class="subheight-attribute-wrapper">
|
|
31
|
+
<div id="iedxsc" class="subheight-attribute-wrapper label-top">
|
|
32
|
+
|
|
33
|
+
<label id="ikqvu4" class="attribute-label">
|
|
34
|
+
Subheight
|
|
35
|
+
<span id="ixu2va" class="required-mark">*</span>
|
|
36
|
+
</label>
|
|
37
|
+
|
|
38
|
+
<small id="ip8gqf" class="min-max-text d-none"></small>
|
|
39
|
+
|
|
40
|
+
<div id="icfk6l" class="input-group">
|
|
41
|
+
|
|
42
|
+
<span id="iemoag" class="input-icon d-none">
|
|
43
|
+
<img id="iwbvlp" alt="Subheight" width="28" class="subheighticon">
|
|
44
|
+
</span>
|
|
45
|
+
|
|
46
|
+
<input
|
|
47
|
+
id="attribute_subheight_value"
|
|
48
|
+
type="text"
|
|
49
|
+
name="attribute_id[subheight]"
|
|
50
|
+
placeholder="500"
|
|
51
|
+
required="required"
|
|
52
|
+
class="subheight-input"
|
|
53
|
+
>
|
|
54
|
+
|
|
55
|
+
<span id="im4rnf" class="input-unit d-none"></span>
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<p id="i97lun" class="error-message d-none"></p>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineProps, ref, defineAsyncComponent } from "vue";
|
|
3
|
+
import contentPopup from "../PopupContent/Popup.vue";
|
|
4
|
+
const CustomScript = useCustomeScriptDynamic();
|
|
5
|
+
const props = defineProps({ "attribute": Object, "group": Object });
|
|
6
|
+
const { script } = useSingleValue(props.attribute);
|
|
7
|
+
const SelecteValue = ref(props.attribute.value);
|
|
8
|
+
const correctValue = ref(true);
|
|
9
|
+
const ChangeValue = ((value) => {
|
|
10
|
+
SelecteValue.value = Math.floor(Number(value));
|
|
11
|
+
value = Math.floor(Number(value));
|
|
12
|
+
correctValue.value = true;
|
|
13
|
+
if (SelecteValue.value < props.attribute.min) {
|
|
14
|
+
correctValue.value = false;
|
|
15
|
+
SelecteValue.value = "";
|
|
16
|
+
} else if (SelecteValue.value > props.attribute.max) {
|
|
17
|
+
correctValue.value = false;
|
|
18
|
+
SelecteValue.value = "";
|
|
19
|
+
} else {
|
|
20
|
+
const aid = props.attribute.id;
|
|
21
|
+
const gid = props.group.id;
|
|
22
|
+
const vid = value;
|
|
23
|
+
CustomScript.SelectedOptions = { aid, gid, vid };
|
|
24
|
+
CustomScript.initprocess();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<div id="iklge2" class="subwidth-attribute-wrapper gjs-selected">
|
|
31
|
+
<div id="iw8rq2" class="subwidth-attribute-wrapper label-top">
|
|
32
|
+
|
|
33
|
+
<label id="ifnn9w" class="attribute-label">
|
|
34
|
+
Subwidth
|
|
35
|
+
<span id="iwapeq" class="required-mark">*</span>
|
|
36
|
+
</label>
|
|
37
|
+
|
|
38
|
+
<small id="ihfbse" class="min-max-text d-none"></small>
|
|
39
|
+
|
|
40
|
+
<div id="i9u6im" class="input-group">
|
|
41
|
+
|
|
42
|
+
<span id="iw2aoy" class="input-icon d-none">
|
|
43
|
+
<img id="imcr8i" alt="Subwidth" width="28" class="subwidthicon">
|
|
44
|
+
</span>
|
|
45
|
+
|
|
46
|
+
<input
|
|
47
|
+
id="attribute_subwidth_value"
|
|
48
|
+
type="text"
|
|
49
|
+
name="attribute_id[subwidth]"
|
|
50
|
+
placeholder="500"
|
|
51
|
+
required="required"
|
|
52
|
+
class="subwidth-input"
|
|
53
|
+
>
|
|
54
|
+
|
|
55
|
+
<span id="ipey8j" class="input-unit d-none"></span>
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<p id="i5xigy" class="error-message d-none"></p>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|
package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
attribute?: Record<string, any> | undefined;
|
|
6
|
+
group?: Record<string, any> | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly attribute?: Record<string, any> | undefined;
|
|
10
|
+
readonly group?: Record<string, any> | undefined;
|
|
11
|
+
};
|