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,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
+ };
@@ -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
+ };
@@ -0,0 +1,45 @@
1
+ <script setup>
2
+ import { defineProps, ref } 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 ChangeValue = ((value) => {
9
+ const aid = props.attribute.id;
10
+ const gid = props.group.id;
11
+ const vid = value;
12
+ CustomScript.SelectedOptions = { aid, gid, vid };
13
+ CustomScript.initprocess();
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <div id="itm1vy" class="number-attribute-wrapper gjs-selected">
19
+ <div id="ikpyfr" class="number-attribute-wrapper label-top">
20
+
21
+ <label id="i89qtk" class="attribute-label">
22
+ Number
23
+ <span id="ibt4zj" class="required-mark">*</span>
24
+ </label>
25
+
26
+ <div id="i6ky1m" class="input-group">
27
+
28
+ <span id="ikzbqa" class="input-icon d-none">
29
+ <img id="ifwoeg" alt="Number" width="25">
30
+ </span>
31
+
32
+ <input
33
+ id="attribute_number_value"
34
+ type="number"
35
+ name="attribute_id[number]"
36
+ placeholder="0"
37
+ required="required"
38
+ class="number-input"
39
+ >
40
+
41
+ </div>
42
+
43
+ </div>
44
+ </div>
45
+ </template>
@@ -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
+ };
@@ -0,0 +1,13 @@
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
+ item?: Record<string, any> | undefined;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_props: {
10
+ readonly attribute?: Record<string, any> | undefined;
11
+ readonly group?: Record<string, any> | undefined;
12
+ readonly item?: Record<string, any> | undefined;
13
+ };
@@ -0,0 +1,48 @@
1
+ <script setup>
2
+ import { defineProps, ref, defineEmits } from "vue";
3
+ const { attribute, item, group } = defineProps({ "attribute": Object, "item": Object, "group": Object });
4
+ const addingtoCart = ref(false);
5
+ const checkInCart = ((sample) => {
6
+ let cartItems = useCartStore().cart.items;
7
+ if (cartItems) {
8
+ for (const key in cartItems) {
9
+ if (cartItems[key].slug === sample) {
10
+ return true;
11
+ }
12
+ }
13
+ }
14
+ return false;
15
+ });
16
+ const addToCartSample = (async (sample) => {
17
+ addingtoCart.value = true;
18
+ await useCartStore().addToCart(sample, 1);
19
+ addingtoCart.value = false;
20
+ });
21
+ const removeFromCart = async (sample) => {
22
+ let productId = "";
23
+ let cartItems = useCartStore().cart.items;
24
+ if (cartItems) {
25
+ for (const key in cartItems) {
26
+ if (cartItems[key].slug === sample.slug) {
27
+ productId = cartItems[key].rowId;
28
+ }
29
+ }
30
+ }
31
+ await useCartStore().removeFromCart(productId, sample);
32
+ };
33
+ </script>
34
+
35
+ <template>
36
+ <span v-if="attribute.offer_sample == true && item.sampleproduct!=''">
37
+ <div v-if="checkInCart(item.sampleproduct) == false"
38
+ @click="addToCartSample({ slug: item.sampleproduct })" class="btn btn-sm colorbutton btn-outline-secondary lh-1 py-2">Order Sample</div>
39
+ <div v-else @click="removeFromCart({ slug: item.sampleproduct })"
40
+ class="btn btn-sm colorbutton btn-primary">Remove Sample</div>
41
+ </span>
42
+ </template>
43
+
44
+ <style scoped>
45
+ .colorbutton {
46
+ font-size: 1em !important;
47
+ }
48
+ </style>
@@ -0,0 +1,13 @@
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
+ item?: Record<string, any> | undefined;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_props: {
10
+ readonly attribute?: Record<string, any> | undefined;
11
+ readonly group?: Record<string, any> | undefined;
12
+ readonly item?: Record<string, any> | undefined;
13
+ };
@@ -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
+ };
@@ -0,0 +1,154 @@
1
+ <script setup>
2
+ import { defineProps, ref } 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 SelectedItem = props.attribute.values.find((i) => i.selected === true);
8
+ const SelecteValue = ref(0);
9
+ if (SelectedItem) {
10
+ SelecteValue.value = SelectedItem.id;
11
+ }
12
+ const ChangeValue = ((value) => {
13
+ const aid = props.attribute.id;
14
+ const gid = props.group.id;
15
+ const vid = value;
16
+ CustomScript.SelectedOptions = { aid, gid, vid };
17
+ CustomScript.initprocess();
18
+ });
19
+ </script>
20
+
21
+ <template>
22
+ <div class="product-radio-wrapper radio-style-1 row">
23
+ <div class="col-md-4">
24
+ <label class="attribute-label">
25
+ {{ attribute.title }}
26
+ <span v-if="attribute.required" class="text-danger">*</span>
27
+ <contentPopup :attribute="attribute" />
28
+ </label>
29
+ </div>
30
+ <div class="col-md-8">
31
+ <div class="row g-2">
32
+ <div class="col-6" v-for="item in attribute.values" :key="item.id">
33
+ <div class="value-item position-relative h-100">
34
+ <input
35
+ :data-label="attribute.title"
36
+ class="buttonInput position-absolute w-100 h-100"
37
+ v-model="selectedValue"
38
+ :required="attribute.required"
39
+ @change="ChangeValue(item.id)"
40
+ :data-attributevalue="attribute.parent"
41
+ :data-child="item.parent"
42
+ :value="item.id"
43
+ :data-value="item.id"
44
+ type="radio"
45
+ :name="`product_attribute_${attribute.id}`"
46
+ :id="`attribute_${attribute.id}_${item.id}`"
47
+ :checked="selectedValue === item.id"
48
+ />
49
+ <label
50
+ class="value-label d-flex align-items-center justify-content-start gap-2 p-3 rounded border h-100"
51
+ :for="`attribute_${attribute.id}_${item.id}`">
52
+ <div class="radio-icon">
53
+ <span class="radio-outer">
54
+ <span class="radio-inner"></span>
55
+ </span>
56
+ </div>
57
+ <div class="d-flex align-items-center justify-content-center">
58
+ <img v-if="item.swatch && item.swatch != ''"
59
+ :src="item.swatch"
60
+ width="20"
61
+ height="20"
62
+ class="object-fit-contain" />
63
+ <div v-else-if="item.iconcolor && item.iconcolor != '#ffffff'"
64
+ :style="{ backgroundColor: item.iconcolor }"
65
+ class="valueIcon">
66
+ </div>
67
+ </div>
68
+ <span class="value-title text-center text-truncate">{{ item.title }}</span>
69
+ </label>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </template>
76
+
77
+ <style scoped>
78
+ input {
79
+ z-index: -1;
80
+ }
81
+
82
+ .valueIcon {
83
+ width: 24px;
84
+ height: 24px;
85
+ border-radius: 50%;
86
+ overflow: hidden;
87
+ }
88
+
89
+ .radio-icon {
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ flex-shrink: 0;
94
+ }
95
+
96
+ .radio-outer {
97
+ width: 18px;
98
+ height: 18px;
99
+ border: 2px solid #C8C8C8;
100
+ border-radius: 50%;
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ transition: all 0.2s ease;
105
+ }
106
+
107
+ .radio-inner {
108
+ width: 10px;
109
+ height: 10px;
110
+ border-radius: 50%;
111
+ background-color: transparent;
112
+ transition: all 0.2s ease;
113
+ }
114
+
115
+ .buttonInput {
116
+ z-index: -1;
117
+ }
118
+ .buttonInput:checked ~ .value-label {
119
+ border-color: var(--bs-secondary) !important;
120
+ background-color: #F5F7FB;
121
+ }
122
+ .buttonInput:checked ~ .value-label img {
123
+ background-color: #fff !important;
124
+ }
125
+ .buttonInput:checked ~ .value-label .value-title {
126
+ font-weight: bold;
127
+ }
128
+ .buttonInput:checked ~ .value-label .radio-outer {
129
+ border-color: var(--bs-secondary);
130
+ }
131
+ .buttonInput:checked ~ .value-label .radio-inner {
132
+ background-color: var(--bs-secondary);
133
+ }
134
+
135
+ .value-label {
136
+ cursor: pointer;
137
+ white-space: nowrap;
138
+ font-size: 14px !important;
139
+ border: 1px solid #C8C8C8;
140
+ background-color: #F5F7FB;
141
+ }
142
+ .value-label .value-title {
143
+ font-weight: normal;
144
+ }
145
+ .value-label:hover {
146
+ border: 1px solid var(--bs-secondary) !important;
147
+ }
148
+ .value-label:hover img {
149
+ background-color: #fff;
150
+ }
151
+ .value-label:hover .radio-outer {
152
+ border-color: var(--bs-secondary);
153
+ }
154
+ </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 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
+ };
@@ -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
+ };
@@ -0,0 +1,111 @@
1
+ <script setup>
2
+ import { watch, ref } from "vue";
3
+ import { Swiper, SwiperSlide } from "swiper/vue";
4
+ import contentPopup from "../PopupContent/Popup.vue";
5
+ import SlideSlide from "./SingleSlide.vue";
6
+ import "swiper/swiper-bundle.css";
7
+ const CustomScript = useCustomeScriptDynamic();
8
+ import { Navigation, Virtual } from "swiper/modules";
9
+ const props = defineProps({ "attribute": Object, "group": Object });
10
+ const { script } = useSingleValue(props.attribute);
11
+ const selectedSlideId = ref(0);
12
+ const initialSelected = props.attribute.values.find((item) => item.selected === true);
13
+ if (initialSelected) {
14
+ selectedSlideId.value = initialSelected.id;
15
+ }
16
+ function goToPrev() {
17
+ document.querySelector(`.swiper-container${props.attribute.id}`).swiper.slidePrev();
18
+ }
19
+ function goToNext() {
20
+ document.querySelector(`.swiper-container${props.attribute.id}`).swiper.slideNext();
21
+ }
22
+ const handleSlideSelect = (slideId) => {
23
+ selectedSlideId.value = slideId;
24
+ };
25
+ const groupedObjects = (objects) => {
26
+ const groups = {};
27
+ objects.forEach((obj) => {
28
+ const parent = obj.parent;
29
+ if (!groups[parent]) {
30
+ groups[parent] = [];
31
+ }
32
+ groups[parent].push(obj);
33
+ });
34
+ return groups;
35
+ };
36
+ </script>
37
+
38
+ <template>
39
+ <div class="row">
40
+ <div class="col-md-12 d-flex justify-content-between ">
41
+ <label class="attribute-label">{{ attribute.title }}
42
+ <span v-if="attribute.required" class="text-danger">*</span>
43
+ <contentPopup :attribute="attribute" />
44
+ </label>
45
+ <div class="slider-nav-buttons d-flex gap-3 justify-content-end" style="opacity: 1;">
46
+ <span @click="goToPrev()" :class="`icon-arrow-left icon-arrow-left${props.attribute.id}`"></span>
47
+ <span @click="goToNext()" :class="`icon-arrow-right icon-arrow-right${props.attribute.id}`"></span>
48
+ </div>
49
+ </div>
50
+ <div class="col-md-12">
51
+ <template v-for="(atitems, key) in groupedObjects(attribute.values)">
52
+ <div :class="`attributeslider swiper-container_${key}`">
53
+ <!-- Swiper -->
54
+ <Swiper
55
+ :modules="[Virtual, Navigation]"
56
+ :slides-per-view="4"
57
+ :space-between="20"
58
+ virtual
59
+ :navigation="{
60
+ nextEl: `.icon-arrow-right${props.attribute.id}`,
61
+ prevEl: `.icon-arrow-left${props.attribute.id}`
62
+ }">
63
+ <SwiperSlide v-for="(slideContent, index) in atitems" :key="slideContent.id" :virtualIndex="index">
64
+ <SlideSlide
65
+ :attribute="attribute"
66
+ :group="group"
67
+ :slide="slideContent"
68
+ :isSelected="selectedSlideId === slideContent.id"
69
+ @select="handleSlideSelect"
70
+ />
71
+ </SwiperSlide>
72
+ </Swiper>
73
+ </div>
74
+ </template>
75
+ </div>
76
+ </div>
77
+ </template>
78
+
79
+ <style scoped>
80
+ .slider-nav-buttons .icon-arrow-left,
81
+ .slider-nav-buttons .icon-arrow-right {
82
+ color: #fff;
83
+ cursor: pointer;
84
+ background: #333;
85
+ border-radius: 50%;
86
+ place-content: center;
87
+ align-items: center;
88
+ width: 20px;
89
+ height: 20px;
90
+ font-size: 12px;
91
+ display: flex;
92
+ }
93
+ .slider-nav-buttons .icon-arrow-left:hover,
94
+ .slider-nav-buttons .icon-arrow-right:hover {
95
+ background: var(--bs-secondary);
96
+ }
97
+ .slider-nav-buttons .icon-arrow-left.swiper-button-disabled,
98
+ .slider-nav-buttons .icon-arrow-right.swiper-button-disabled {
99
+ background: #ccc;
100
+ opacity: 0.5;
101
+ }
102
+
103
+ .attributeslider .swiper-slide {
104
+ height: unset !important;
105
+ overflow: hidden;
106
+ }
107
+
108
+ .swiper-button-disabled {
109
+ opacity: 0 !important;
110
+ }
111
+ </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 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
+ };
@@ -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
+ };