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.
Files changed (192) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/SampleProductCard.d.vue.ts +13 -0
  3. package/dist/runtime/components/SampleProductCard.vue +362 -0
  4. package/dist/runtime/components/SampleProductCard.vue.d.ts +13 -0
  5. package/dist/runtime/components/WishList/dropdown.d.vue.ts +9 -0
  6. package/dist/runtime/components/WishList/dropdown.vue +417 -0
  7. package/dist/runtime/components/WishList/dropdown.vue.d.ts +9 -0
  8. package/dist/runtime/components/WishList/modal.d.vue.ts +13 -0
  9. package/dist/runtime/components/WishList/modal.vue +229 -0
  10. package/dist/runtime/components/WishList/modal.vue.d.ts +13 -0
  11. package/dist/runtime/components/product/AddToCart.d.vue.ts +15 -0
  12. package/dist/runtime/components/product/AddToCart.vue +176 -0
  13. package/dist/runtime/components/product/AddToCart.vue.d.ts +15 -0
  14. package/dist/runtime/components/product/AddtoCartSample.d.vue.ts +6 -0
  15. package/dist/runtime/components/product/AddtoCartSample.vue +110 -0
  16. package/dist/runtime/components/product/AddtoCartSample.vue.d.ts +6 -0
  17. package/dist/runtime/components/product/Badges.d.vue.ts +13 -0
  18. package/dist/runtime/components/product/Badges.vue +84 -0
  19. package/dist/runtime/components/product/Badges.vue.d.ts +13 -0
  20. package/dist/runtime/components/product/Description.d.vue.ts +9 -0
  21. package/dist/runtime/components/product/Description.vue +96 -0
  22. package/dist/runtime/components/product/Description.vue.d.ts +9 -0
  23. package/dist/runtime/components/product/Dynamic.d.vue.ts +9 -0
  24. package/dist/runtime/components/product/Dynamic.vue +136 -0
  25. package/dist/runtime/components/product/Dynamic.vue.d.ts +9 -0
  26. package/dist/runtime/components/product/Gallery.d.vue.ts +11 -0
  27. package/dist/runtime/components/product/Gallery.vue +133 -0
  28. package/dist/runtime/components/product/Gallery.vue.d.ts +11 -0
  29. package/dist/runtime/components/product/PopUpCart.d.vue.ts +11 -0
  30. package/dist/runtime/components/product/PopUpCart.vue +155 -0
  31. package/dist/runtime/components/product/PopUpCart.vue.d.ts +11 -0
  32. package/dist/runtime/components/product/ProductInfo.d.vue.ts +7 -0
  33. package/dist/runtime/components/product/ProductInfo.vue +105 -0
  34. package/dist/runtime/components/product/ProductInfo.vue.d.ts +7 -0
  35. package/dist/runtime/components/product/RequiredPopUp.d.vue.ts +9 -0
  36. package/dist/runtime/components/product/RequiredPopUp.vue +57 -0
  37. package/dist/runtime/components/product/RequiredPopUp.vue.d.ts +9 -0
  38. package/dist/runtime/components/product/bundleProduct/Bundle.d.vue.ts +13 -0
  39. package/dist/runtime/components/product/bundleProduct/Bundle.vue +35 -0
  40. package/dist/runtime/components/product/bundleProduct/Bundle.vue.d.ts +13 -0
  41. package/dist/runtime/components/product/bundleProduct/index.d.vue.ts +8 -0
  42. package/dist/runtime/components/product/bundleProduct/index.vue +32 -0
  43. package/dist/runtime/components/product/bundleProduct/index.vue.d.ts +8 -0
  44. package/dist/runtime/components/product/customProduct/AddtoCartSample.d.vue.ts +6 -0
  45. package/dist/runtime/components/product/customProduct/AddtoCartSample.vue +101 -0
  46. package/dist/runtime/components/product/customProduct/AddtoCartSample.vue.d.ts +6 -0
  47. package/dist/runtime/components/product/customProduct/Attributes.d.vue.ts +9 -0
  48. package/dist/runtime/components/product/customProduct/Attributes.vue +12 -0
  49. package/dist/runtime/components/product/customProduct/Attributes.vue.d.ts +9 -0
  50. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.d.vue.ts +13 -0
  51. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue +11 -0
  52. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue.d.ts +13 -0
  53. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.d.vue.ts +3 -0
  54. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue +253 -0
  55. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue.d.ts +3 -0
  56. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.d.vue.ts +3 -0
  57. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue +253 -0
  58. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue.d.ts +3 -0
  59. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.d.vue.ts +3 -0
  60. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue +214 -0
  61. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue.d.ts +3 -0
  62. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.d.vue.ts +13 -0
  63. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue +9 -0
  64. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue.d.ts +13 -0
  65. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.d.vue.ts +13 -0
  66. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue +9 -0
  67. package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue.d.ts +13 -0
  68. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.d.vue.ts +9 -0
  69. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue +133 -0
  70. package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue.d.ts +9 -0
  71. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.d.vue.ts +11 -0
  72. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue +35 -0
  73. package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue.d.ts +11 -0
  74. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.d.vue.ts +13 -0
  75. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue +134 -0
  76. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue.d.ts +13 -0
  77. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.d.vue.ts +15 -0
  78. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue +138 -0
  79. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue.d.ts +15 -0
  80. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.d.vue.ts +11 -0
  81. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue +149 -0
  82. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue.d.ts +11 -0
  83. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.d.vue.ts +11 -0
  84. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue +82 -0
  85. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue.d.ts +11 -0
  86. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.d.vue.ts +11 -0
  87. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue +108 -0
  88. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue.d.ts +11 -0
  89. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.d.vue.ts +11 -0
  90. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue +104 -0
  91. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue.d.ts +11 -0
  92. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.d.vue.ts +11 -0
  93. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue +87 -0
  94. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue.d.ts +11 -0
  95. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.d.vue.ts +11 -0
  96. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue +219 -0
  97. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue.d.ts +11 -0
  98. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.d.vue.ts +11 -0
  99. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue +36 -0
  100. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue.d.ts +11 -0
  101. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.d.vue.ts +11 -0
  102. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue +45 -0
  103. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue.d.ts +11 -0
  104. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.d.vue.ts +13 -0
  105. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue +48 -0
  106. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue.d.ts +13 -0
  107. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.d.vue.ts +11 -0
  108. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue +154 -0
  109. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue.d.ts +11 -0
  110. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.d.vue.ts +11 -0
  111. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue +111 -0
  112. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue.d.ts +11 -0
  113. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.d.vue.ts +11 -0
  114. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue +269 -0
  115. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue.d.ts +11 -0
  116. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts +11 -0
  117. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue +63 -0
  118. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts +11 -0
  119. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts +11 -0
  120. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue +63 -0
  121. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts +11 -0
  122. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts +11 -0
  123. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue +220 -0
  124. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue.d.ts +11 -0
  125. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.d.vue.ts +11 -0
  126. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue +47 -0
  127. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue.d.ts +11 -0
  128. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.d.vue.ts +11 -0
  129. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue +91 -0
  130. package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue.d.ts +11 -0
  131. package/dist/runtime/components/product/customProduct/ConfirmPopup.d.vue.ts +9 -0
  132. package/dist/runtime/components/product/customProduct/ConfirmPopup.vue +25 -0
  133. package/dist/runtime/components/product/customProduct/ConfirmPopup.vue.d.ts +9 -0
  134. package/dist/runtime/components/product/customProduct/RequiredPopUp.d.vue.ts +9 -0
  135. package/dist/runtime/components/product/customProduct/RequiredPopUp.vue +49 -0
  136. package/dist/runtime/components/product/customProduct/RequiredPopUp.vue.d.ts +9 -0
  137. package/dist/runtime/components/product/customProduct/Reviews.d.vue.ts +7 -0
  138. package/dist/runtime/components/product/customProduct/Reviews.vue +25 -0
  139. package/dist/runtime/components/product/customProduct/Reviews.vue.d.ts +7 -0
  140. package/dist/runtime/components/product/customProduct/SingleStep.d.vue.ts +11 -0
  141. package/dist/runtime/components/product/customProduct/SingleStep.vue +11 -0
  142. package/dist/runtime/components/product/customProduct/SingleStep.vue.d.ts +11 -0
  143. package/dist/runtime/components/product/customProduct/Steps.d.vue.ts +9 -0
  144. package/dist/runtime/components/product/customProduct/Steps.vue +221 -0
  145. package/dist/runtime/components/product/customProduct/Steps.vue.d.ts +9 -0
  146. package/dist/runtime/components/product/customProduct/index.d.vue.ts +9 -0
  147. package/dist/runtime/components/product/customProduct/index.vue +272 -0
  148. package/dist/runtime/components/product/customProduct/index.vue.d.ts +9 -0
  149. package/dist/runtime/components/product/index.d.vue.ts +8 -0
  150. package/dist/runtime/components/product/index.vue +90 -0
  151. package/dist/runtime/components/product/index.vue.d.ts +8 -0
  152. package/dist/runtime/components/product/sampleProduct/ProductVariation.d.vue.ts +11 -0
  153. package/dist/runtime/components/product/sampleProduct/ProductVariation.vue +61 -0
  154. package/dist/runtime/components/product/sampleProduct/ProductVariation.vue.d.ts +11 -0
  155. package/dist/runtime/components/product/sampleProduct/SampleDetails.d.vue.ts +7 -0
  156. package/dist/runtime/components/product/sampleProduct/SampleDetails.vue +74 -0
  157. package/dist/runtime/components/product/sampleProduct/SampleDetails.vue.d.ts +7 -0
  158. package/dist/runtime/components/product/sampleProduct/SampleFeatures.d.vue.ts +9 -0
  159. package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue +63 -0
  160. package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue.d.ts +9 -0
  161. package/dist/runtime/components/product/sampleProduct/index.d.vue.ts +8 -0
  162. package/dist/runtime/components/product/sampleProduct/index.vue +64 -0
  163. package/dist/runtime/components/product/sampleProduct/index.vue.d.ts +8 -0
  164. package/dist/runtime/components/product/simpleProduct/ProductVariation.d.vue.ts +11 -0
  165. package/dist/runtime/components/product/simpleProduct/ProductVariation.vue +61 -0
  166. package/dist/runtime/components/product/simpleProduct/ProductVariation.vue.d.ts +11 -0
  167. package/dist/runtime/components/product/simpleProduct/index.d.vue.ts +8 -0
  168. package/dist/runtime/components/product/simpleProduct/index.vue +34 -0
  169. package/dist/runtime/components/product/simpleProduct/index.vue.d.ts +8 -0
  170. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.d.ts +3 -0
  171. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.js +20 -0
  172. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.d.ts +70 -0
  173. package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.js +63 -0
  174. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.d.ts +74 -0
  175. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.js +107 -0
  176. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.d.ts +159 -0
  177. package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.js +2079 -0
  178. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.d.ts +4 -0
  179. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.js +27 -0
  180. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.d.ts +68 -0
  181. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.js +21 -0
  182. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.d.ts +67 -0
  183. package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.js +15 -0
  184. package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.d.ts +88 -0
  185. package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.js +72 -0
  186. package/dist/runtime/composables/index.d.ts +8 -0
  187. package/dist/runtime/composables/index.js +8 -0
  188. package/dist/runtime/pages/flowrix-default.vue +15 -6
  189. package/dist/runtime/plugins/bootstrap.client.d.ts +2 -0
  190. package/dist/runtime/plugins/bootstrap.client.js +9 -0
  191. package/dist/runtime/server/api/cart/related.js +15 -2
  192. package/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ <script setup>
2
+ const { attribute } = defineProps(["attribute"]);
3
+ const emit = defineEmits(["variationChange"]);
4
+ const route = useRoute();
5
+ const selectedValue = ref(route.params.slug);
6
+ const changeVariation = () => {
7
+ emit("variationChange", selectedValue.value);
8
+ };
9
+ </script>
10
+
11
+ <template>
12
+ <div>
13
+ <div
14
+ v-for="(single_attribute, index) in attribute"
15
+ :key="index"
16
+ class="row mt-4 align-items-center border-bottom pb-4"
17
+ >
18
+ <div class="col-md-4">
19
+ <p class="fw-medium mb-0 col-form-label fs-6">
20
+ {{ single_attribute.name }}
21
+ </p>
22
+ </div>
23
+ <div class="col-md-8">
24
+ <select
25
+ class="form-control form-select py-2"
26
+ v-model="selectedValue"
27
+ @change="changeVariation()"
28
+ >
29
+ <template v-for="value in single_attribute.values" :key="value">
30
+ <option :value="value.slug">{{ value.name }}</option>
31
+ </template>
32
+ </select>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </template>
37
+
38
+ <style scoped>
39
+ .values .value a {
40
+ height: 80px;
41
+ width: 100px;
42
+ text-align: center;
43
+ align-content: center;
44
+ border: 1px solid #c6c6c6;
45
+ display: block;
46
+ font-size: 18px;
47
+ font-weight: 500;
48
+ }
49
+ .values .value a:hover {
50
+ background: var(--iseek-primary);
51
+ color: #fff !important;
52
+ font-weight: 700 !important;
53
+ }
54
+ .values .value.active {
55
+ background: var(--iseek-primary);
56
+ font-weight: 700 !important;
57
+ }
58
+ .values .value.active a {
59
+ color: #fff !important;
60
+ }
61
+ </style>
@@ -0,0 +1,11 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{
2
+ attribute?: any;
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ variationChange: (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<{
6
+ attribute?: any;
7
+ }> & Readonly<{
8
+ onVariationChange?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{
2
+ product?: any;
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
4
+ product?: any;
5
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,74 @@
1
+ <script setup>
2
+ const { product } = defineProps(["product"]);
3
+ import AddtoCartSample from "../AddtoCartSample.vue";
4
+ import WishListDropdown from "../../WishList/dropdown.vue";
5
+ const cartStore = useCartStore();
6
+ const router = useRouter();
7
+ const isLoading = ref(false);
8
+ const isInCart = ref(false);
9
+ watchEffect(() => {
10
+ if (cartStore.cart.items) {
11
+ isInCart.value = Object.values(cartStore.cart.items).some(
12
+ (item) => item.slug === product?.slug
13
+ );
14
+ } else {
15
+ isInCart.value = false;
16
+ }
17
+ });
18
+ const addidngToCart = ref(false);
19
+ const addToCart = (async (sample) => {
20
+ addidngToCart.value = true;
21
+ await useCartStore().addToCart(sample, 1);
22
+ addidngToCart.value = false;
23
+ });
24
+ const searchProducts = (filters) => {
25
+ const fabricFilter = filters.find((f) => f.slug === "fabric-range");
26
+ const fabricValue = fabricFilter?.values[0]?.slug;
27
+ if (fabricValue) {
28
+ router.push({
29
+ path: "/samples",
30
+ query: { "fabric-range": fabricValue }
31
+ });
32
+ } else {
33
+ console.warn("Fabric range slug not found in filters");
34
+ }
35
+ };
36
+ </script>
37
+
38
+ <template>
39
+ <div class="row g-0 card flex-row">
40
+ <div class="col-md-6">
41
+ <div class="card-body d-flex flex-column justify-content-center p-xl-5 px-2 py-3 h-100">
42
+ <h1 class="text-dark fw-semibold fs-2">{{ product?.name }}</h1>
43
+ <p v-if="product.width" class="card-text fw-medium text-custom mb-0 fs-5">Max width: {{ product?.width
44
+ }}mm</p>
45
+ <div class="d-flex flex-column gap-3 col-xl-8 col-xxl-7">
46
+ <button @click="addToCart(product)"
47
+ class="btn d-inline-flex justify-content-center align-items-center btn-secondary fs-6 text-white fw-medium px-5 rounded-5"
48
+ :disabled="isInCart">
49
+ <span v-if="!addidngToCart">Order a Sample</span>
50
+ <span v-else class="d-flex align-items-center">
51
+ <span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
52
+ Processing...
53
+ </span>
54
+ </button>
55
+ <button @click="searchProducts(product.filters)"
56
+ class="btn btn-outline-primary fw-semibold rounded-5">
57
+ Explore products with this fabric
58
+ </button>
59
+ <WishListDropdown v-if="product" :product="product" />
60
+ </div>
61
+
62
+ </div>
63
+ </div>
64
+ <div class="col-md-6 order-first order-xl-last">
65
+ <div class="d-flex justify-content-center p-xl-5 p-2">
66
+ <img :src="product?.image" alt="Sample" class="img-fluid sample-img">
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </template>
71
+
72
+ <style scoped>
73
+ .sample-img{border-radius:15px;width:100%}
74
+ </style>
@@ -0,0 +1,7 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{
2
+ product?: any;
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
4
+ product?: any;
5
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,9 @@
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
+ items?: unknown[] | undefined;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const props: {
8
+ readonly items?: unknown[] | undefined;
9
+ };
@@ -0,0 +1,63 @@
1
+ <script setup>
2
+ const props = defineProps({
3
+ items: Array
4
+ });
5
+ </script>
6
+
7
+ <template>
8
+ <div v-for="(item, index) in items" :key="index" class="my-5">
9
+ <div v-if="item.title=='Product Features'">
10
+ <h2 class="fw-semibold fs-1 text-center mb-4">Features</h2>
11
+ <span class="horizontal-line d-block mx-auto mb-4" v-html="item.body.html"></span>
12
+ </div>
13
+ </div>
14
+ <!-- <div class="card p-xl-5 p-3 bg-cream" style="border: none;">
15
+ <div class="row">
16
+ <div class="col-12 col-md-6 order-1 order-md-1">
17
+ <div class="form-check mb-2">
18
+ <span class="check-icon">✔</span>
19
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">100% Polyester with Acrylic coating</label>
20
+ </div>
21
+ </div>
22
+
23
+ <div class="col-12 col-md-6 order-2 order-md-4">
24
+ <div class="form-check mb-2">
25
+ <span class="check-icon">✔</span>
26
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">100% Blockout</label>
27
+ </div>
28
+ </div>
29
+
30
+ <div class="col-12 col-md-6 order-3 order-md-2">
31
+ <div class="form-check mb-2">
32
+ <span class="check-icon">✔</span>
33
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">GreenGuard Gold Certification</label>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="col-12 col-md-6 order-4 order-md-5">
38
+ <div class="form-check mb-2">
39
+ <span class="check-icon">✔</span>
40
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">Dust or wipe with a clean damp cloth</label>
41
+ </div>
42
+ </div>
43
+
44
+ <div class="col-12 col-md-6 order-5 order-md-3">
45
+ <div class="form-check mb-2">
46
+ <span class="check-icon">✔</span>
47
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">Fully fade resistant</label>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="col-12 col-md-6 order-6 order-md-6">
52
+ <div class="form-check mb-2">
53
+ <span class="check-icon">✔</span>
54
+ <label class="form-check-label text-primary fw-medium text-custom fs-6">Coordinates with: Bali sheer curtains</label>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div> -->
59
+ </template>
60
+
61
+ <style scoped>
62
+ .bg-cream{background-color:var(--bs-cream)}.form-check{align-items:center;display:flex}.check-icon{border:2px solid var(--bs-primary);border-radius:4px;color:var(--bs-primary);display:inline-block;font-size:14px;font-weight:700;height:20px;line-height:16px;margin-right:8px;text-align:center;width:20px}
63
+ </style>
@@ -0,0 +1,9 @@
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
+ items?: unknown[] | undefined;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const props: {
8
+ readonly items?: unknown[] | undefined;
9
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ product: {
3
+ template: string;
4
+ };
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,64 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import SampleFeatures from "./SampleFeatures.vue";
4
+ import SampleDetails from "./SampleDetails.vue";
5
+ import SampleProductCard from "../../SampleProductCard.vue";
6
+ const { product } = defineProps({
7
+ product: { type: Object, required: true }
8
+ });
9
+ const quantity = ref(1);
10
+ </script>
11
+
12
+ <template>
13
+ <div class="container-fluids">
14
+ <SampleDetails :product />
15
+ <div class="row justify-content-center">
16
+ <div class="col-xl-10">
17
+ <div class="my-5 text-center text-custom fs-6 px-2" v-html="product.description">
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ <SampleFeatures :items="product?.content" />
23
+ <div class="container-fluid" v-if="product?.variations != void 0">
24
+ <div class="row mt-4">
25
+ <div class="col-xl-12">
26
+ <div class="mb-4">
27
+ <h2 class="fw-semibold fs-1">Other Colours Available </h2>
28
+ <span class="horizontal-line"></span>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ <template v-for="(swatch, index) in product?.variations" :key="index">
33
+ <div class="row gy-5">
34
+ <div class="col-lg-3 col-sm-6 col-12 mb-4" v-for="value in swatch.values" :key="value.slug">
35
+ <!-- <SampleProductCard :swatch="value" /> -->
36
+ <SampleProductCard :swatch="value" :otherColor="true" from="sampleSingle" />
37
+ </div>
38
+ </div>
39
+ </template>
40
+ </div>
41
+ <div class="container-fluid px-xl-5 d-none" v-if="product?.accessories.length > 0">
42
+ <div class="row">
43
+ <div class="col-xl-12">
44
+ <CustomProductOtherProducts :items="product?.accessories" btnTitle="Explore" />
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </template>
49
+
50
+ <style scoped>
51
+ .horizontal-line {
52
+ width: 170px;
53
+ display: block;
54
+ height: 5px;
55
+ background: var(--bs-secondary);
56
+ }
57
+
58
+ @media only screen and (min-width: 990px) {
59
+ .custom-col-25 {
60
+ width: 20%;
61
+ /* 100% / 5 */
62
+ }
63
+ }
64
+ </style>
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ product: {
3
+ template: string;
4
+ };
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{
2
+ attribute?: any;
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ variationChange: (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<{
6
+ attribute?: any;
7
+ }> & Readonly<{
8
+ onVariationChange?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,61 @@
1
+ <script setup>
2
+ const { attribute } = defineProps(["attribute"]);
3
+ const emit = defineEmits(["variationChange"]);
4
+ const route = useRoute();
5
+ const selectedValue = ref(route.params.slug);
6
+ const changeVariation = () => {
7
+ emit("variationChange", selectedValue.value);
8
+ };
9
+ </script>
10
+
11
+ <template>
12
+ <div>
13
+ <div
14
+ v-for="(single_attribute, index) in attribute"
15
+ :key="index"
16
+ class="row mt-4 align-items-center border-bottom pb-4"
17
+ >
18
+ <div class="col-md-4">
19
+ <p class="fw-medium mb-0 col-form-label fs-6">
20
+ {{ single_attribute.name }}
21
+ </p>
22
+ </div>
23
+ <div class="col-md-8">
24
+ <select
25
+ class="form-control form-select py-2"
26
+ v-model="selectedValue"
27
+ @change="changeVariation()"
28
+ >
29
+ <template v-for="value in single_attribute.values" :key="value">
30
+ <option :value="value.slug">{{ value.name }}</option>
31
+ </template>
32
+ </select>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </template>
37
+
38
+ <style scoped>
39
+ .values .value a {
40
+ height: 80px;
41
+ width: 100px;
42
+ text-align: center;
43
+ align-content: center;
44
+ border: 1px solid #c6c6c6;
45
+ display: block;
46
+ font-size: 18px;
47
+ font-weight: 500;
48
+ }
49
+ .values .value a:hover {
50
+ background: var(--iseek-primary);
51
+ color: #fff !important;
52
+ font-weight: 700 !important;
53
+ }
54
+ .values .value.active {
55
+ background: var(--iseek-primary);
56
+ font-weight: 700 !important;
57
+ }
58
+ .values .value.active a {
59
+ color: #fff !important;
60
+ }
61
+ </style>
@@ -0,0 +1,11 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{
2
+ attribute?: any;
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ variationChange: (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<{
6
+ attribute?: any;
7
+ }> & Readonly<{
8
+ onVariationChange?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ product: {
3
+ template: string;
4
+ };
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import ProductAddToCart from "../AddToCart.vue";
4
+ import gallery from "../Gallery.vue";
5
+ const { product } = defineProps({
6
+ product: { type: Object, required: true }
7
+ });
8
+ const quantity = ref(1);
9
+ const handleVariationChange = (variation) => {
10
+ navigateTo(`/product/${variation}`);
11
+ };
12
+ const incrementQuantity = () => {
13
+ quantity.value++;
14
+ };
15
+ const decrementQuantity = () => {
16
+ if (quantity.value > 1) {
17
+ quantity.value--;
18
+ }
19
+ };
20
+ </script>
21
+
22
+ <template>
23
+ <SimpleProductDetails :title="product.name" :variations="product?.variations" :price="product.price" />
24
+ <SimpleProductDescription :description="product?.description" :type="product?.type" />
25
+ <ProductTemplate01SimpleProductVariation :attribute="product.variations" v-if="product.variations !== ''"
26
+ @variationChange="handleVariationChange" />
27
+ <div class="d-flex justify-content-between align-items-center mt-4">
28
+ <CartCounter :quantity="quantity" @increment="incrementQuantity" @decrement="decrementQuantity" />
29
+ <h2 class="fw-semibold text-primary">{{ product.price }}</h2>
30
+ </div>
31
+ <div class="add-to-cart-btn-container mt-4">
32
+ <ProductAddToCart from="detailpage" :quantity :product="product" service="" />
33
+ </div>
34
+ </template>
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ product: {
3
+ template: string;
4
+ };
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default function (attribute: any, group: any, template?: string): {
2
+ DesignComponent: import("vue").Raw<object>;
3
+ };
@@ -0,0 +1,20 @@
1
+ import { defineAsyncComponent, ref, markRaw } from "vue";
2
+ export default function(attribute, group, template = "default") {
3
+ const designkey = ref(attribute.designkey);
4
+ const components = import.meta.glob("../../../components/product/*/**/*");
5
+ let DesignComponent = markRaw("");
6
+ DesignComponent = defineAsyncComponent({
7
+ loader: async () => {
8
+ try {
9
+ const path = `../../../components/product/customProduct/AttributesComponents/Styles/${designkey.value}.vue`;
10
+ return await components[path]?.();
11
+ } catch (error) {
12
+ const path = `../../../components/product/customProduct/AttributesComponents/Styles/${designkey.value}.vue`;
13
+ return await components[path]?.();
14
+ }
15
+ }
16
+ });
17
+ return {
18
+ DesignComponent
19
+ };
20
+ }
@@ -0,0 +1,70 @@
1
+ export default function (product: any, runTime?: number, template?: string): {
2
+ CustomScript: import("pinia").Store<"CustomScriptDynamic", import("./useCustomeScriptDynamic.js").State, {}, {
3
+ CallScriptFIrstTime(): void;
4
+ initprocess(): Promise<void>;
5
+ getAvailableValues(aid: any, parent_value_id?: number): unknown[];
6
+ setWidthHeightbaseonStyle(): boolean;
7
+ setSummery(attrib: any, value: any): void;
8
+ unsetSummery(aid: any): void;
9
+ hideValue(h_aid: any, h_vid: any): void;
10
+ showValue(h_aid: any, h_vid: any): void;
11
+ showAttribute(aid: any): void;
12
+ hideAttribute(aid: any): void;
13
+ hideChildValues(aid: any, parent_id: any): void;
14
+ hideChildValuesOfParentValue(aid: any, parent_attribute_id: any, parent_value_id: any): void;
15
+ showChildValues(aid: any, parent_selected_val_id: any): void;
16
+ showGroup(gid: any): void;
17
+ hideGroup(gid: any): void;
18
+ markSelected(h_aid: any, h_vid: any): void;
19
+ markInputSelected(aid: any, vid: any, value?: any): void;
20
+ markUnselected(h_aid: any, h_vid: any): void;
21
+ findSelectedValue(values: any, parent_value_id?: number): unknown;
22
+ processAttributes(): void;
23
+ processAttribute(attributes: any): void;
24
+ processAttributeAfterCondition(attributes: any): void;
25
+ hideAttributeHirerachy(aid: any): void;
26
+ hideChildAttributes(child_attrib: any): void;
27
+ processChildAttribute(child_attrib: any): void;
28
+ setConditions(aid?: string, first_call?: boolean): Promise<boolean>;
29
+ createCondition(conditionArray: any): any;
30
+ getelement(classname: any): Element | undefined;
31
+ toggle(classname: any): Element | undefined;
32
+ getvalue(classname: any): any;
33
+ executeCondition(newcondition: any, c_aid: any, v_id: any, changed_values: any, msgValue: any, hiddenValues: any, child_Values: any, first_call: any, available?: any): {
34
+ msgValue: any;
35
+ changed_values: any;
36
+ hiddenValues: any;
37
+ child_Values: any;
38
+ };
39
+ hideAttributeOrGroup(c_aid: any): void;
40
+ unsetMsg(aid: any): void;
41
+ showValueAttributeOrGroup(c_aid: any, v_id: any): boolean;
42
+ selectOneValue(c_aid: any): void;
43
+ checkChangeAttributesMsg(c_aid: any, msgAttributes: any, msgValue: any, selected_value_hidden: any, child_Values: any, first_call: any, available: any): {
44
+ child_Values: any;
45
+ };
46
+ showbox(popUpMsg: any): Promise<unknown>;
47
+ confirmChange(changed_attribs: any, hiddenAttributes: any, aid: any, paid?: string): Promise<boolean>;
48
+ customRoundUp(value: any): number;
49
+ sqrunitprice(price: any, width: any, height: any, unit_relative: any): number;
50
+ sqrmeasureprice(price: any, measurement: any, unit_relative: any): number;
51
+ closest(num: any, arr: any): any;
52
+ lookupprice(price: any, width?: any, height?: any): any;
53
+ swatchimage(): void;
54
+ getMeasurement(attribute_type: any): number;
55
+ getMeasurementByID(attribute_id: any): number;
56
+ getSubHeights(): unknown[];
57
+ getSubWidths(): unknown[];
58
+ calculateMultiPrice(width: any, height: any, value: any, subWidths: any, subHeights: any): number;
59
+ getValuePrice(price_type: any, width: any, height: any, PRICE_TYPES: any, price: any, priceArray: any): number;
60
+ getValuePriceDiscount(discount_type: any, discount: any, value_price: any): void;
61
+ setValuePricePromotionsDiscount(attributes: any): void;
62
+ getValuePricePromotionDiscount(product_id: any, value_price: any): void;
63
+ calculatePrice(): void;
64
+ calculateDiscount(discounttype: any, discount: any, price: any): any;
65
+ calculateservicePrice(): void;
66
+ }>;
67
+ Steps: any;
68
+ ConfirmPopup: import("vue").Raw<object>;
69
+ ConfirmPopupShow: import("vue").ComputedRef<any>;
70
+ };
@@ -0,0 +1,63 @@
1
+ import { watch, onMounted, computed, defineAsyncComponent, markRaw } from "vue";
2
+ import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
3
+ export default function(product, runTime = 0, template = "default") {
4
+ const CustomScript = useCustomeScriptDynamic();
5
+ const renderdValues = computed(() => useCustomeScriptDynamic().renderdValues);
6
+ let allactiveattributes = [];
7
+ watch(renderdValues, (newValue) => {
8
+ if (allactiveattributes.length == 0) {
9
+ Object.values(product.attributeIdz).forEach((item) => {
10
+ if (item.active) {
11
+ allactiveattributes.push(item);
12
+ }
13
+ });
14
+ }
15
+ if (newValue >= allactiveattributes.length) {
16
+ setTimeout(function() {
17
+ callcustomscript();
18
+ }, 500);
19
+ }
20
+ });
21
+ function callcustomscript() {
22
+ CustomScript.pdpsummary = {};
23
+ CustomScript.processAttributes();
24
+ CustomScript.setConditions("", true);
25
+ let hasnewMeasurements = CustomScript.setWidthHeightbaseonStyle();
26
+ if (hasnewMeasurements) {
27
+ CustomScript.setConditions("", true);
28
+ }
29
+ CustomScript.calculatePrice();
30
+ }
31
+ onMounted(() => {
32
+ let totalValues = 0;
33
+ Object.values(product.attributeIdz).forEach((item) => {
34
+ totalValues = Object.values(item.values).length + totalValues;
35
+ });
36
+ });
37
+ const components = import.meta.glob("../../../components/product/*/**/*");
38
+ const stepsPath = `../../../components/product/customProduct/Steps.vue`;
39
+ const Steps = defineAsyncComponent({
40
+ loader: async () => {
41
+ return await components[stepsPath]();
42
+ }
43
+ });
44
+ let ConfirmPopup = markRaw("");
45
+ ConfirmPopup = defineAsyncComponent({
46
+ loader: async () => {
47
+ try {
48
+ const path = `../../../components/product/customProduct/ConfirmPopup.vue`;
49
+ return await components[path]?.();
50
+ } catch (error) {
51
+ const path = `../../../components/product/customProduct/ConfirmPopup.vue`;
52
+ return await components[path]?.();
53
+ }
54
+ }
55
+ });
56
+ const ConfirmPopupShow = computed(() => CustomScript.confirmPopup);
57
+ return {
58
+ CustomScript,
59
+ Steps,
60
+ ConfirmPopup,
61
+ ConfirmPopupShow
62
+ };
63
+ }