flowrix 1.0.1-beta.147 → 1.0.1-beta.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/SampleProductCard.d.vue.ts +13 -0
- package/dist/runtime/components/SampleProductCard.vue +362 -0
- package/dist/runtime/components/SampleProductCard.vue.d.ts +13 -0
- package/dist/runtime/components/WishList/dropdown.d.vue.ts +9 -0
- package/dist/runtime/components/WishList/dropdown.vue +417 -0
- package/dist/runtime/components/WishList/dropdown.vue.d.ts +9 -0
- package/dist/runtime/components/WishList/modal.d.vue.ts +13 -0
- package/dist/runtime/components/WishList/modal.vue +229 -0
- package/dist/runtime/components/WishList/modal.vue.d.ts +13 -0
- package/dist/runtime/components/product/AddToCart.d.vue.ts +15 -0
- package/dist/runtime/components/product/AddToCart.vue +176 -0
- package/dist/runtime/components/product/AddToCart.vue.d.ts +15 -0
- package/dist/runtime/components/product/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/product/AddtoCartSample.vue +110 -0
- package/dist/runtime/components/product/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/product/Badges.d.vue.ts +13 -0
- package/dist/runtime/components/product/Badges.vue +84 -0
- package/dist/runtime/components/product/Badges.vue.d.ts +13 -0
- package/dist/runtime/components/product/Description.d.vue.ts +9 -0
- package/dist/runtime/components/product/Description.vue +96 -0
- package/dist/runtime/components/product/Description.vue.d.ts +9 -0
- package/dist/runtime/components/product/Dynamic.d.vue.ts +9 -0
- package/dist/runtime/components/product/Dynamic.vue +136 -0
- package/dist/runtime/components/product/Dynamic.vue.d.ts +9 -0
- package/dist/runtime/components/product/Gallery.d.vue.ts +11 -0
- package/dist/runtime/components/product/Gallery.vue +133 -0
- package/dist/runtime/components/product/Gallery.vue.d.ts +11 -0
- package/dist/runtime/components/product/PopUpCart.d.vue.ts +11 -0
- package/dist/runtime/components/product/PopUpCart.vue +155 -0
- package/dist/runtime/components/product/PopUpCart.vue.d.ts +11 -0
- package/dist/runtime/components/product/ProductInfo.d.vue.ts +7 -0
- package/dist/runtime/components/product/ProductInfo.vue +105 -0
- package/dist/runtime/components/product/ProductInfo.vue.d.ts +7 -0
- package/dist/runtime/components/product/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/product/RequiredPopUp.vue +57 -0
- package/dist/runtime/components/product/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.d.vue.ts +13 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.vue +35 -0
- package/dist/runtime/components/product/bundleProduct/Bundle.vue.d.ts +13 -0
- package/dist/runtime/components/product/bundleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/bundleProduct/index.vue +32 -0
- package/dist/runtime/components/product/bundleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.d.vue.ts +6 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.vue +101 -0
- package/dist/runtime/components/product/customProduct/AddtoCartSample.vue.d.ts +6 -0
- package/dist/runtime/components/product/customProduct/Attributes.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/Attributes.vue +12 -0
- package/dist/runtime/components/product/customProduct/Attributes.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/drop-down.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue +253 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-collection.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue +253 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-colors.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.d.vue.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue +214 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/multi-values.vue.d.ts +3 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/style.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/AttributeType/swatch.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue +133 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/PopupContent/Popup.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue +35 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/SingleAttribute.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue +134 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlide.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.d.vue.ts +15 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue +138 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/SingleSlidemagnifier.vue.d.ts +15 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue +149 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/button.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue +82 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdown.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue +108 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/dropdownWithIcon.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue +104 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/height.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue +87 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBox.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue +219 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/imageBoxWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue +36 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/message.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue +45 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/number.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.d.vue.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue +48 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/orderSample/button.vue.d.ts +13 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue +154 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/radio.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue +111 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/slider.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue +269 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/sliderWithMagnifier.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue +63 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subheight.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue +63 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/subwidth.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue +220 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/swatch.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue +47 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/text.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue +91 -0
- package/dist/runtime/components/product/customProduct/AttributesComponents/Styles/width.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.vue +25 -0
- package/dist/runtime/components/product/customProduct/ConfirmPopup.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.vue +49 -0
- package/dist/runtime/components/product/customProduct/RequiredPopUp.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/Reviews.d.vue.ts +7 -0
- package/dist/runtime/components/product/customProduct/Reviews.vue +25 -0
- package/dist/runtime/components/product/customProduct/Reviews.vue.d.ts +7 -0
- package/dist/runtime/components/product/customProduct/SingleStep.d.vue.ts +11 -0
- package/dist/runtime/components/product/customProduct/SingleStep.vue +11 -0
- package/dist/runtime/components/product/customProduct/SingleStep.vue.d.ts +11 -0
- package/dist/runtime/components/product/customProduct/Steps.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/Steps.vue +221 -0
- package/dist/runtime/components/product/customProduct/Steps.vue.d.ts +9 -0
- package/dist/runtime/components/product/customProduct/index.d.vue.ts +9 -0
- package/dist/runtime/components/product/customProduct/index.vue +272 -0
- package/dist/runtime/components/product/customProduct/index.vue.d.ts +9 -0
- package/dist/runtime/components/product/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/index.vue +90 -0
- package/dist/runtime/components/product/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.d.vue.ts +11 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/product/sampleProduct/ProductVariation.vue.d.ts +11 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.d.vue.ts +7 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.vue +74 -0
- package/dist/runtime/components/product/sampleProduct/SampleDetails.vue.d.ts +7 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.d.vue.ts +9 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue +63 -0
- package/dist/runtime/components/product/sampleProduct/SampleFeatures.vue.d.ts +9 -0
- package/dist/runtime/components/product/sampleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/sampleProduct/index.vue +64 -0
- package/dist/runtime/components/product/sampleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.d.vue.ts +11 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.vue +61 -0
- package/dist/runtime/components/product/simpleProduct/ProductVariation.vue.d.ts +11 -0
- package/dist/runtime/components/product/simpleProduct/index.d.vue.ts +8 -0
- package/dist/runtime/components/product/simpleProduct/index.vue +34 -0
- package/dist/runtime/components/product/simpleProduct/index.vue.d.ts +8 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.d.ts +3 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributeTypeDynamic.js +20 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.d.ts +70 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useAttributesDynamic.js +63 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.d.ts +74 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomProductDynamic.js +107 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.d.ts +159 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useCustomeScriptDynamic.js +2079 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.d.ts +4 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleAttributeDynamic.js +27 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.d.ts +68 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleStepDynamic.js +21 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.d.ts +67 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useSingleValueDynamic.js +15 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.d.ts +88 -0
- package/dist/runtime/composables/Product/CustomProductDynamic/useStepsDynamic.js +72 -0
- package/dist/runtime/composables/index.d.ts +8 -0
- package/dist/runtime/composables/index.js +8 -0
- package/dist/runtime/pages/flowrix-default.vue +15 -6
- package/dist/runtime/plugins/bootstrap.client.d.ts +2 -0
- package/dist/runtime/plugins/bootstrap.client.js +9 -0
- package/dist/runtime/server/api/cart/related.js +15 -2
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export default function (product: any, 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
|
+
screenwidth: number;
|
|
68
|
+
firstHalf: (summary: any) => [string, unknown][] | undefined;
|
|
69
|
+
secondtHalf: (summary: any) => [string, unknown][] | undefined;
|
|
70
|
+
summaryShow: import("vue").Ref<boolean, boolean>;
|
|
71
|
+
Gallery: import("vue").Raw<object>;
|
|
72
|
+
Attributes: import("vue").Raw<object>;
|
|
73
|
+
ProductCard: import("vue").Raw<object>;
|
|
74
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ref, defineAsyncComponent, markRaw } from "vue";
|
|
2
|
+
import { useCustomeScriptDynamic } from "./useCustomeScriptDynamic.js";
|
|
3
|
+
export default function(product, template = "default") {
|
|
4
|
+
const CustomScript = useCustomeScriptDynamic();
|
|
5
|
+
CustomScript.attributeIdz = product.attributeIdz;
|
|
6
|
+
CustomScript.lookupprices = product.lookupprices;
|
|
7
|
+
CustomScript.servicePriceSetting = product.servicePriceSetting;
|
|
8
|
+
CustomScript.conditions = product.conditions;
|
|
9
|
+
CustomScript.TYPES = product.types;
|
|
10
|
+
CustomScript.PRICETYPE = product.pricetypes;
|
|
11
|
+
CustomScript.UNIT_RELATIVE = product.unit_relative;
|
|
12
|
+
CustomScript.DISCOUNTS = product.discounts;
|
|
13
|
+
CustomScript.measurementUnit = product.unit;
|
|
14
|
+
CustomScript.promotionSettings = product.promotionSettings;
|
|
15
|
+
CustomScript.linked_promotionSettings = product.inherit_promotions;
|
|
16
|
+
CustomScript.B2BTYPE = product.b2btype;
|
|
17
|
+
CustomScript.USEBASEPRICE = product.usebaseprice;
|
|
18
|
+
CustomScript.BASEPRICE = product.baseprice;
|
|
19
|
+
CustomScript.usefitting = product.usefitting;
|
|
20
|
+
CustomScript.sevice_price_type = product.servicePriceSetting.sevice_price_type;
|
|
21
|
+
CustomScript.serviceprice = 0;
|
|
22
|
+
const screenwidth = 1400;
|
|
23
|
+
const firstHalf = ((summary) => {
|
|
24
|
+
if (summary != {}) {
|
|
25
|
+
const dataArray = Object.entries(summary);
|
|
26
|
+
dataArray.sort((a, b) => {
|
|
27
|
+
const gsortA = a[1].gsortorder;
|
|
28
|
+
const gsortB = b[1].gsortorder;
|
|
29
|
+
const sortA = a[1].sortorder;
|
|
30
|
+
const sortB = b[1].sortorder;
|
|
31
|
+
if (gsortA < gsortB) return -1;
|
|
32
|
+
if (gsortA > gsortB) return 1;
|
|
33
|
+
if (sortA < sortB) return -1;
|
|
34
|
+
if (sortA > sortB) return 1;
|
|
35
|
+
return 0;
|
|
36
|
+
});
|
|
37
|
+
const midpoint = Math.ceil(dataArray.length / 2);
|
|
38
|
+
return dataArray.slice(0, midpoint);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const secondtHalf = ((summary) => {
|
|
42
|
+
if (summary != {}) {
|
|
43
|
+
const dataArray = Object.entries(summary);
|
|
44
|
+
dataArray.sort((a, b) => {
|
|
45
|
+
const gsortA = a[1].gsortorder;
|
|
46
|
+
const gsortB = b[1].gsortorder;
|
|
47
|
+
const sortA = a[1].sortorder;
|
|
48
|
+
const sortB = b[1].sortorder;
|
|
49
|
+
if (gsortA < gsortB) return -1;
|
|
50
|
+
if (gsortA > gsortB) return 1;
|
|
51
|
+
if (sortA < sortB) return -1;
|
|
52
|
+
if (sortA > sortB) return 1;
|
|
53
|
+
return 0;
|
|
54
|
+
});
|
|
55
|
+
const midpoint = Math.ceil(dataArray.length / 2);
|
|
56
|
+
return dataArray.slice(midpoint);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const summaryShow = ref(false);
|
|
60
|
+
const components = import.meta.glob("../../../components/product/*/**/*");
|
|
61
|
+
let Gallery = markRaw("");
|
|
62
|
+
Gallery = defineAsyncComponent({
|
|
63
|
+
loader: async () => {
|
|
64
|
+
try {
|
|
65
|
+
const path = `../../../components/product/Gallery.vue`;
|
|
66
|
+
return await components[path]?.();
|
|
67
|
+
} catch (error) {
|
|
68
|
+
const path = `../../../components/product/Gallery.vue`;
|
|
69
|
+
return await components[path]?.();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
let Attributes = markRaw("");
|
|
74
|
+
Attributes = defineAsyncComponent({
|
|
75
|
+
loader: async () => {
|
|
76
|
+
try {
|
|
77
|
+
const path = `../../../components/product/customProduct/Attributes.vue`;
|
|
78
|
+
return await components[path]?.();
|
|
79
|
+
} catch (error) {
|
|
80
|
+
const path = `../../../components/product/customProduct/Attributes.vue`;
|
|
81
|
+
return await components[path]?.();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
let ProductCard = markRaw("");
|
|
86
|
+
ProductCard = defineAsyncComponent({
|
|
87
|
+
loader: async () => {
|
|
88
|
+
try {
|
|
89
|
+
const path = `../../../components/product/ProductInfo.vue`;
|
|
90
|
+
return await components[path]?.();
|
|
91
|
+
} catch (error) {
|
|
92
|
+
const path = `../../../components/product/ProductInfo.vue`;
|
|
93
|
+
return await components[path]?.();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return {
|
|
98
|
+
CustomScript,
|
|
99
|
+
screenwidth,
|
|
100
|
+
firstHalf,
|
|
101
|
+
secondtHalf,
|
|
102
|
+
summaryShow,
|
|
103
|
+
Gallery,
|
|
104
|
+
Attributes,
|
|
105
|
+
ProductCard
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export interface SelectedOptions {
|
|
2
|
+
name: Object;
|
|
3
|
+
}
|
|
4
|
+
export interface attributeIdz {
|
|
5
|
+
name: Object;
|
|
6
|
+
}
|
|
7
|
+
export interface lookupprices {
|
|
8
|
+
name: Object;
|
|
9
|
+
}
|
|
10
|
+
export interface servicePriceSetting {
|
|
11
|
+
name: Object;
|
|
12
|
+
}
|
|
13
|
+
export interface conditions {
|
|
14
|
+
name: Object;
|
|
15
|
+
}
|
|
16
|
+
export interface TYPES {
|
|
17
|
+
name: Object;
|
|
18
|
+
}
|
|
19
|
+
export interface PRICETYPE {
|
|
20
|
+
name: Object;
|
|
21
|
+
}
|
|
22
|
+
export interface UNIT_RELATIVE {
|
|
23
|
+
name: Object;
|
|
24
|
+
}
|
|
25
|
+
export interface DISCOUNTS {
|
|
26
|
+
name: Object;
|
|
27
|
+
}
|
|
28
|
+
export interface measurementUnit {
|
|
29
|
+
name: Object;
|
|
30
|
+
}
|
|
31
|
+
export interface promotionSettings {
|
|
32
|
+
name: Object;
|
|
33
|
+
}
|
|
34
|
+
export interface B2BTYPE {
|
|
35
|
+
name: Object;
|
|
36
|
+
}
|
|
37
|
+
export interface USEBASEPRICE {
|
|
38
|
+
name: Object;
|
|
39
|
+
}
|
|
40
|
+
export interface BASEPRICE {
|
|
41
|
+
name: Object;
|
|
42
|
+
}
|
|
43
|
+
export interface usefitting {
|
|
44
|
+
name: Object;
|
|
45
|
+
}
|
|
46
|
+
export interface sevice_price_type {
|
|
47
|
+
name: Object;
|
|
48
|
+
}
|
|
49
|
+
export interface serviceprice {
|
|
50
|
+
name: Object;
|
|
51
|
+
}
|
|
52
|
+
export interface With_this_selection_following_selections_will_be_changed {
|
|
53
|
+
name: Object;
|
|
54
|
+
}
|
|
55
|
+
export interface State {
|
|
56
|
+
SelectedOptions: Record<string, string> | any;
|
|
57
|
+
attributeIdz: object | any;
|
|
58
|
+
lookupprices: lookupprices | null;
|
|
59
|
+
servicePriceSetting: object | any;
|
|
60
|
+
conditions: conditions | null;
|
|
61
|
+
TYPES: Record<string, string> | any;
|
|
62
|
+
PRICETYPE: Record<string, string> | any;
|
|
63
|
+
UNIT_RELATIVE: Record<string, string> | any;
|
|
64
|
+
DISCOUNTS: Record<string, string> | any;
|
|
65
|
+
measurementUnit: Record<string, string> | any;
|
|
66
|
+
promotionSettings: Record<string, string> | any;
|
|
67
|
+
linked_promotionSettings: Record<string, string> | any;
|
|
68
|
+
B2BTYPE: Record<string, string> | any;
|
|
69
|
+
USEBASEPRICE: Record<string, string> | any;
|
|
70
|
+
BASEPRICE: Record<string, string> | any;
|
|
71
|
+
usefitting: Record<string, string> | any;
|
|
72
|
+
sevice_price_type: Record<string, string> | any;
|
|
73
|
+
serviceprice: Record<string, string> | any;
|
|
74
|
+
With_this_selection_following_selections_will_be_changed: string | null;
|
|
75
|
+
attributeOf: string | null;
|
|
76
|
+
attributeValuesClass: string | null;
|
|
77
|
+
attributeClass: string | null;
|
|
78
|
+
attributeClassName: string | null;
|
|
79
|
+
valueClassName: string | null;
|
|
80
|
+
valueClass: string | null;
|
|
81
|
+
valueChildClass: string | null;
|
|
82
|
+
groupClassName: string | null;
|
|
83
|
+
groupClass: string | null;
|
|
84
|
+
priceClass: string | null;
|
|
85
|
+
rrpriceClass: string | null;
|
|
86
|
+
qtyElement: string | null;
|
|
87
|
+
rrpriceWrapper: string | null;
|
|
88
|
+
imageElement: string | null;
|
|
89
|
+
useBackground: any | null;
|
|
90
|
+
pdpsummary: Record<string, string> | null;
|
|
91
|
+
msgStr: Record<string, string> | null;
|
|
92
|
+
productPrice: Record<number, number> | null;
|
|
93
|
+
productDiscountedPrice: Record<number, number> | null;
|
|
94
|
+
}
|
|
95
|
+
export declare const useCustomeScriptDynamic: import("pinia").StoreDefinition<"CustomScriptDynamic", State, {}, {
|
|
96
|
+
CallScriptFIrstTime(): void;
|
|
97
|
+
initprocess(): Promise<void>;
|
|
98
|
+
getAvailableValues(aid: any, parent_value_id?: number): unknown[];
|
|
99
|
+
setWidthHeightbaseonStyle(): boolean;
|
|
100
|
+
setSummery(attrib: any, value: any): void;
|
|
101
|
+
unsetSummery(aid: any): void;
|
|
102
|
+
hideValue(h_aid: any, h_vid: any): void;
|
|
103
|
+
showValue(h_aid: any, h_vid: any): void;
|
|
104
|
+
showAttribute(aid: any): void;
|
|
105
|
+
hideAttribute(aid: any): void;
|
|
106
|
+
hideChildValues(aid: any, parent_id: any): void;
|
|
107
|
+
hideChildValuesOfParentValue(aid: any, parent_attribute_id: any, parent_value_id: any): void;
|
|
108
|
+
showChildValues(aid: any, parent_selected_val_id: any): void;
|
|
109
|
+
showGroup(gid: any): void;
|
|
110
|
+
hideGroup(gid: any): void;
|
|
111
|
+
markSelected(h_aid: any, h_vid: any): void;
|
|
112
|
+
markInputSelected(aid: any, vid: any, value?: any): void;
|
|
113
|
+
markUnselected(h_aid: any, h_vid: any): void;
|
|
114
|
+
findSelectedValue(values: any, parent_value_id?: number): unknown;
|
|
115
|
+
processAttributes(): void;
|
|
116
|
+
processAttribute(attributes: any): void;
|
|
117
|
+
processAttributeAfterCondition(attributes: any): void;
|
|
118
|
+
hideAttributeHirerachy(aid: any): void;
|
|
119
|
+
hideChildAttributes(child_attrib: any): void;
|
|
120
|
+
processChildAttribute(child_attrib: any): void;
|
|
121
|
+
setConditions(aid?: string, first_call?: boolean): Promise<boolean>;
|
|
122
|
+
createCondition(conditionArray: any): any;
|
|
123
|
+
getelement(classname: any): Element | undefined;
|
|
124
|
+
toggle(classname: any): Element | undefined;
|
|
125
|
+
getvalue(classname: any): any;
|
|
126
|
+
executeCondition(newcondition: any, c_aid: any, v_id: any, changed_values: any, msgValue: any, hiddenValues: any, child_Values: any, first_call: any, available?: any): {
|
|
127
|
+
msgValue: any;
|
|
128
|
+
changed_values: any;
|
|
129
|
+
hiddenValues: any;
|
|
130
|
+
child_Values: any;
|
|
131
|
+
};
|
|
132
|
+
hideAttributeOrGroup(c_aid: any): void;
|
|
133
|
+
unsetMsg(aid: any): void;
|
|
134
|
+
showValueAttributeOrGroup(c_aid: any, v_id: any): boolean;
|
|
135
|
+
selectOneValue(c_aid: any): void;
|
|
136
|
+
checkChangeAttributesMsg(c_aid: any, msgAttributes: any, msgValue: any, selected_value_hidden: any, child_Values: any, first_call: any, available: any): {
|
|
137
|
+
child_Values: any;
|
|
138
|
+
};
|
|
139
|
+
showbox(popUpMsg: any): Promise<unknown>;
|
|
140
|
+
confirmChange(changed_attribs: any, hiddenAttributes: any, aid: any, paid?: string): Promise<boolean>;
|
|
141
|
+
customRoundUp(value: any): number;
|
|
142
|
+
sqrunitprice(price: any, width: any, height: any, unit_relative: any): number;
|
|
143
|
+
sqrmeasureprice(price: any, measurement: any, unit_relative: any): number;
|
|
144
|
+
closest(num: any, arr: any): any;
|
|
145
|
+
lookupprice(price: any, width?: any, height?: any): any;
|
|
146
|
+
swatchimage(): void;
|
|
147
|
+
getMeasurement(attribute_type: any): number;
|
|
148
|
+
getMeasurementByID(attribute_id: any): number;
|
|
149
|
+
getSubHeights(): unknown[];
|
|
150
|
+
getSubWidths(): unknown[];
|
|
151
|
+
calculateMultiPrice(width: any, height: any, value: any, subWidths: any, subHeights: any): number;
|
|
152
|
+
getValuePrice(price_type: any, width: any, height: any, PRICE_TYPES: any, price: any, priceArray: any): number;
|
|
153
|
+
getValuePriceDiscount(discount_type: any, discount: any, value_price: any): void;
|
|
154
|
+
setValuePricePromotionsDiscount(attributes: any): void;
|
|
155
|
+
getValuePricePromotionDiscount(product_id: any, value_price: any): void;
|
|
156
|
+
calculatePrice(): void;
|
|
157
|
+
calculateDiscount(discounttype: any, discount: any, price: any): any;
|
|
158
|
+
calculateservicePrice(): void;
|
|
159
|
+
}>;
|