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,4 @@
1
+ export default function (attribute: any, group: any, template?: string): {
2
+ currentTemplate: import("vue").Ref<string, string>;
3
+ AttributeComponent: import("vue").Raw<object>;
4
+ };
@@ -0,0 +1,27 @@
1
+ import { defineAsyncComponent, ref, markRaw } from "vue";
2
+ export default function(attribute, group, template = "default") {
3
+ const attributetype = ref(attribute.typeLabel);
4
+ let AttributeComponent = markRaw("");
5
+ const currentTemplate = ref("");
6
+ const components = import.meta.glob("../../../components/product/**/*");
7
+ AttributeComponent = defineAsyncComponent({
8
+ loader: async () => {
9
+ try {
10
+ let path = "";
11
+ if (attributetype.value == "drop-down" || attributetype.value == "style" || attributetype.value == "swatch") {
12
+ path = `../../../components/product/customProduct/AttributesComponents/AttributeType/${attributetype.value}.vue`;
13
+ currentTemplate.value = path;
14
+ } else {
15
+ path = `../../../components/product/customProduct/AttributesComponents/Styles/${attributetype.value}.vue`;
16
+ }
17
+ return await components[path]?.();
18
+ } catch (error) {
19
+ console.error(error);
20
+ }
21
+ }
22
+ });
23
+ return {
24
+ currentTemplate,
25
+ AttributeComponent
26
+ };
27
+ }
@@ -0,0 +1,68 @@
1
+ export default function (group: any, template?: string): {
2
+ useCustomeScriptDynamic: import("pinia").StoreDefinition<"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
+ SingleAttribute: import("vue").Raw<object>;
68
+ };
@@ -0,0 +1,21 @@
1
+ import { defineAsyncComponent, markRaw } from "vue";
2
+ import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
3
+ export default function(group, template = "default") {
4
+ const components = import.meta.glob("../../../components/product/*/**/*");
5
+ let SingleAttribute = markRaw("");
6
+ SingleAttribute = defineAsyncComponent({
7
+ loader: async () => {
8
+ try {
9
+ const path = `../../../components/product/customProduct/AttributesComponents/SingleAttribute.vue`;
10
+ return await components[path]?.();
11
+ } catch (error) {
12
+ const path = `../../../components/product/customProduct/AttributesComponents/SingleAttribute.vue`;
13
+ return await components[path]?.();
14
+ }
15
+ }
16
+ });
17
+ return {
18
+ useCustomeScriptDynamic,
19
+ SingleAttribute
20
+ };
21
+ }
@@ -0,0 +1,67 @@
1
+ export default function (attribute: any): {
2
+ script: 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
+ };
@@ -0,0 +1,15 @@
1
+ import { onMounted } from "vue";
2
+ import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
3
+ export default function(attribute) {
4
+ onMounted(() => {
5
+ if (attribute.values.length > 0) {
6
+ useCustomeScriptDynamic().renderdValues = useCustomeScriptDynamic().renderdValues + 1;
7
+ } else {
8
+ useCustomeScriptDynamic().renderdValues = useCustomeScriptDynamic().renderdValues + 1;
9
+ }
10
+ });
11
+ const script = useCustomeScriptDynamic();
12
+ return {
13
+ script
14
+ };
15
+ }
@@ -0,0 +1,88 @@
1
+ interface RequiredValidationItem {
2
+ name: string | null;
3
+ }
4
+ export default function (product: any, template?: string): {
5
+ useCustomeScriptDynamic: import("pinia").StoreDefinition<"CustomScriptDynamic", import("./useCustomeScriptDynamic.js").State, {}, {
6
+ CallScriptFIrstTime(): void;
7
+ initprocess(): Promise<void>;
8
+ getAvailableValues(aid: any, parent_value_id?: number): unknown[];
9
+ setWidthHeightbaseonStyle(): boolean;
10
+ setSummery(attrib: any, value: any): void;
11
+ unsetSummery(aid: any): void;
12
+ hideValue(h_aid: any, h_vid: any): void;
13
+ showValue(h_aid: any, h_vid: any): void;
14
+ showAttribute(aid: any): void;
15
+ hideAttribute(aid: any): void;
16
+ hideChildValues(aid: any, parent_id: any): void;
17
+ hideChildValuesOfParentValue(aid: any, parent_attribute_id: any, parent_value_id: any): void;
18
+ showChildValues(aid: any, parent_selected_val_id: any): void;
19
+ showGroup(gid: any): void;
20
+ hideGroup(gid: any): void;
21
+ markSelected(h_aid: any, h_vid: any): void;
22
+ markInputSelected(aid: any, vid: any, value?: any): void;
23
+ markUnselected(h_aid: any, h_vid: any): void;
24
+ findSelectedValue(values: any, parent_value_id?: number): unknown;
25
+ processAttributes(): void;
26
+ processAttribute(attributes: any): void;
27
+ processAttributeAfterCondition(attributes: any): void;
28
+ hideAttributeHirerachy(aid: any): void;
29
+ hideChildAttributes(child_attrib: any): void;
30
+ processChildAttribute(child_attrib: any): void;
31
+ setConditions(aid?: string, first_call?: boolean): Promise<boolean>;
32
+ createCondition(conditionArray: any): any;
33
+ getelement(classname: any): Element | undefined;
34
+ toggle(classname: any): Element | undefined;
35
+ getvalue(classname: any): any;
36
+ executeCondition(newcondition: any, c_aid: any, v_id: any, changed_values: any, msgValue: any, hiddenValues: any, child_Values: any, first_call: any, available?: any): {
37
+ msgValue: any;
38
+ changed_values: any;
39
+ hiddenValues: any;
40
+ child_Values: any;
41
+ };
42
+ hideAttributeOrGroup(c_aid: any): void;
43
+ unsetMsg(aid: any): void;
44
+ showValueAttributeOrGroup(c_aid: any, v_id: any): boolean;
45
+ selectOneValue(c_aid: any): void;
46
+ checkChangeAttributesMsg(c_aid: any, msgAttributes: any, msgValue: any, selected_value_hidden: any, child_Values: any, first_call: any, available: any): {
47
+ child_Values: any;
48
+ };
49
+ showbox(popUpMsg: any): Promise<unknown>;
50
+ confirmChange(changed_attribs: any, hiddenAttributes: any, aid: any, paid?: string): Promise<boolean>;
51
+ customRoundUp(value: any): number;
52
+ sqrunitprice(price: any, width: any, height: any, unit_relative: any): number;
53
+ sqrmeasureprice(price: any, measurement: any, unit_relative: any): number;
54
+ closest(num: any, arr: any): any;
55
+ lookupprice(price: any, width?: any, height?: any): any;
56
+ swatchimage(): void;
57
+ getMeasurement(attribute_type: any): number;
58
+ getMeasurementByID(attribute_id: any): number;
59
+ getSubHeights(): unknown[];
60
+ getSubWidths(): unknown[];
61
+ calculateMultiPrice(width: any, height: any, value: any, subWidths: any, subHeights: any): number;
62
+ getValuePrice(price_type: any, width: any, height: any, PRICE_TYPES: any, price: any, priceArray: any): number;
63
+ getValuePriceDiscount(discount_type: any, discount: any, value_price: any): void;
64
+ setValuePricePromotionsDiscount(attributes: any): void;
65
+ getValuePricePromotionDiscount(product_id: any, value_price: any): void;
66
+ calculatePrice(): void;
67
+ calculateDiscount(discounttype: any, discount: any, price: any): any;
68
+ calculateservicePrice(): void;
69
+ }>;
70
+ activeStep: import("vue").Ref<number, number>;
71
+ NextStep: (id: number) => false | undefined;
72
+ sortedGroups: (groups: any) => any[];
73
+ scrollToPosition: () => void;
74
+ SingleStep: any;
75
+ AddToCart: any;
76
+ RequiredValidation: import("vue").Ref<{
77
+ name: string | null;
78
+ }[], RequiredValidationItem[] | {
79
+ name: string | null;
80
+ }[]>;
81
+ RequiredPopUp: any;
82
+ AddtoCartSample: any;
83
+ Description: any;
84
+ Badges: any;
85
+ PopUpCart: any;
86
+ ProductInfo: any;
87
+ };
88
+ export {};
@@ -0,0 +1,72 @@
1
+ import { ref } from "vue";
2
+ import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
3
+ import SingleStep from "../../../components/product/customProduct/SingleStep.vue";
4
+ import AddToCart from "../../../components/product/AddToCart.vue";
5
+ import RequiredPopUp from "../../../components/product/RequiredPopUp.vue";
6
+ import AddtoCartSample from "../../../components/product/AddtoCartSample.vue";
7
+ import Description from "../../../components/product/Description.vue";
8
+ import Badges from "../../../components/product/Badges.vue";
9
+ import PopUpCart from "../../../components/product/PopUpCart.vue";
10
+ import ProductInfo from "../../../components/product/ProductInfo.vue";
11
+ export default function(product, template = "default") {
12
+ const activeStep = ref(0);
13
+ const RequiredValidation = ref([]);
14
+ const NextStep = ((id) => {
15
+ RequiredValidation.value = [];
16
+ let activestep = document.querySelector(".active.step-content");
17
+ if (!activestep) {
18
+ return false;
19
+ }
20
+ const elements = activestep.querySelectorAll("input, textarea, select");
21
+ elements.forEach((element) => {
22
+ const inputElement = element;
23
+ if (inputElement.required === true && inputElement.value === "") {
24
+ let Ename = element.getAttribute("data-label");
25
+ let Relemnt = [{ name: Ename }];
26
+ RequiredValidation.value = [...RequiredValidation.value, ...Relemnt];
27
+ }
28
+ });
29
+ if (RequiredValidation.value.length > 0) {
30
+ return false;
31
+ }
32
+ activeStep.value = id;
33
+ });
34
+ const sortedGroups = (groups) => {
35
+ const myObject = groups;
36
+ var sortedObject = [];
37
+ if (myObject) {
38
+ const sortedArray = Object.entries(myObject).sort(
39
+ (a, b) => a[1]["sortorder"] - b[1]["sortorder"]
40
+ );
41
+ sortedArray.forEach(([, value]) => {
42
+ sortedObject.push(value);
43
+ });
44
+ }
45
+ return sortedObject;
46
+ };
47
+ const scrollToPosition = () => {
48
+ setTimeout(function() {
49
+ window.scrollTo({
50
+ top: 0,
51
+ behavior: "smooth"
52
+ });
53
+ }, 0);
54
+ };
55
+ return {
56
+ useCustomeScriptDynamic,
57
+ activeStep,
58
+ NextStep,
59
+ sortedGroups,
60
+ scrollToPosition,
61
+ SingleStep,
62
+ AddToCart,
63
+ RequiredValidation,
64
+ // Export all imported components for use
65
+ RequiredPopUp,
66
+ AddtoCartSample,
67
+ Description,
68
+ Badges,
69
+ PopUpCart,
70
+ ProductInfo
71
+ };
72
+ }
@@ -58,6 +58,14 @@ export * from './Product/CustomProduct/useSingleAttribute.js';
58
58
  export * from './Product/CustomProduct/useSingleStep.js';
59
59
  export * from './Product/CustomProduct/useSingleValue.js';
60
60
  export * from './Product/CustomProduct/useSteps.js';
61
+ export * from './Product/CustomProductDynamic/useCustomeScriptDynamic.js';
62
+ export * from './Product/CustomProductDynamic/useCustomProductDynamic.js';
63
+ export * from './Product/CustomProductDynamic/useAttributesDynamic.js';
64
+ export * from './Product/CustomProductDynamic/useAttributeTypeDynamic.js';
65
+ export * from './Product/CustomProductDynamic/useStepsDynamic.js';
66
+ export * from './Product/CustomProductDynamic/useSingleStepDynamic.js';
67
+ export * from './Product/CustomProductDynamic/useSingleValueDynamic.js';
68
+ export * from './Product/CustomProductDynamic/useSingleAttributeDynamic.js';
61
69
  export * from './Product/simpleProduct/useSimpleProduct.js';
62
70
  export * from './Samples/useSamples.js';
63
71
  export * from './SideBar/useSideBar.js';
@@ -58,6 +58,14 @@ export * from "./Product/CustomProduct/useSingleAttribute.js";
58
58
  export * from "./Product/CustomProduct/useSingleStep.js";
59
59
  export * from "./Product/CustomProduct/useSingleValue.js";
60
60
  export * from "./Product/CustomProduct/useSteps.js";
61
+ export * from "./Product/CustomProductDynamic/useCustomeScriptDynamic.js";
62
+ export * from "./Product/CustomProductDynamic/useCustomProductDynamic.js";
63
+ export * from "./Product/CustomProductDynamic/useAttributesDynamic.js";
64
+ export * from "./Product/CustomProductDynamic/useAttributeTypeDynamic.js";
65
+ export * from "./Product/CustomProductDynamic/useStepsDynamic.js";
66
+ export * from "./Product/CustomProductDynamic/useSingleStepDynamic.js";
67
+ export * from "./Product/CustomProductDynamic/useSingleValueDynamic.js";
68
+ export * from "./Product/CustomProductDynamic/useSingleAttributeDynamic.js";
61
69
  export * from "./Product/simpleProduct/useSimpleProduct.js";
62
70
  export * from "./Samples/useSamples.js";
63
71
  export * from "./SideBar/useSideBar.js";
@@ -1,18 +1,27 @@
1
1
  <script setup>
2
+ import product from "../components/product/index.vue";
2
3
  import { useRoute } from "vue-router";
3
- import { defineAsyncComponent, ref } from "vue";
4
+ import { defineAsyncComponent } from "vue";
4
5
  const route = useRoute();
5
6
  const slug = route.params.slug || "home";
6
7
  const { data, error, execute, refresh } = await useFetch(`/api/v2/${slug}`);
7
- const redirectPage = (async (data2) => {
8
- return navigateTo(`/${data2.target}`, { redirectCode: data2.status_code || 404 });
8
+ const redirectPage = (async (redirectData) => {
9
+ return navigateTo(`/${redirectData.target}`, { redirectCode: redirectData.status_code || 404 });
9
10
  });
10
11
  if (data.value?.data?.type === "redirect") {
11
12
  redirectPage(data.value?.data);
12
13
  }
13
14
  if (error.value || !data.value?.data) {
14
- useError({ statusCode: 404, message: "Page Not Found" });
15
+ throw createError({ statusCode: 404, message: "Page Not Found" });
15
16
  }
17
+ useHead({
18
+ style: [
19
+ {
20
+ innerHTML: data.value?.data?.content?.css || "",
21
+ type: "text/css"
22
+ }
23
+ ]
24
+ });
16
25
  const NotFoundComponent = defineAsyncComponent(async () => {
17
26
  const project404 = import.meta.glob("~/pages/404.vue");
18
27
  const projectKey = "/pages/404.vue";
@@ -36,7 +45,7 @@ const NotFoundComponent = defineAsyncComponent(async () => {
36
45
  </template>
37
46
  <template v-else>
38
47
  <ClientOnly>
39
- <NotFoundComponent/>
40
- </ClientOnly>
48
+ <NotFoundComponent/>
49
+ </ClientOnly>
41
50
  </template>
42
51
  </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { defineNuxtPlugin } from "#app";
2
+ export default defineNuxtPlugin(async () => {
3
+ const bootstrap = await import("bootstrap");
4
+ return {
5
+ provide: {
6
+ bootstrap
7
+ }
8
+ };
9
+ });
@@ -6,11 +6,24 @@ export default defineEventHandler(async (event) => {
6
6
  const body = await readBody(event);
7
7
  try {
8
8
  const config = useRuntimeConfig();
9
+ const rawCookies = event.req.headers.cookie || "";
10
+ const apiConfig = {
11
+ ...config,
12
+ cookies: rawCookies
13
+ };
14
+ const options = {
15
+ headers: {
16
+ "x-api-secret": apiConfig?.FLOWRIX_API_SECRET || ""
17
+ }
18
+ };
9
19
  const productResponse = await flowrixApi.post(
10
20
  `cart/relatedproducts`,
11
- config,
21
+ apiConfig,
12
22
  {
13
- body
23
+ body,
24
+ headers: {
25
+ "x-api-secret": apiConfig?.FLOWRIX_API_SECRET || ""
26
+ }
14
27
  }
15
28
  );
16
29
  return productResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.147",
3
+ "version": "1.0.1-beta.149",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",