@sc-360-v2/storefront-cms-library 0.1.91 → 0.1.92
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/README.md +12 -12
- package/dist/builder.js +1 -1
- package/dist/bulk-variant-picker.scss +24 -0
- package/dist/cart.scss +18 -0
- package/dist/container.scss +11 -1
- package/dist/gallery-slider-temp.scss +12 -1
- package/dist/global.scss +4 -0
- package/dist/globals.scss +94 -94
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lightbox.scss +62 -0
- package/dist/modal.module.scss +121 -0
- package/dist/payment-methods.scss +7 -27
- package/dist/product-actions.scss +125 -141
- package/dist/product-basic-elements.scss +98 -37
- package/dist/product-price.scss +369 -1
- package/dist/product.scss +182 -0
- package/dist/profile.scss +18 -0
- package/dist/quantity-selector.scss +1 -1
- package/dist/section.scss +30 -0
- package/dist/stack.scss +72 -0
- package/dist/text-editor.scss +3 -0
- package/dist/types/builder/elements/cart/index.d.ts +26 -0
- package/dist/types/builder/elements/common.d.ts +1 -1
- package/dist/types/builder/elements/gallery-slider/index.d.ts +2 -2
- package/dist/types/builder/elements/lightbox/index.d.ts +36 -19
- package/dist/types/builder/elements/product/index.d.ts +30 -0
- package/dist/types/builder/elements/profile/index.d.ts +26 -0
- package/dist/types/builder/elements/repeater/index.d.ts +61 -0
- package/dist/types/builder/enums/index.d.ts +67 -3
- package/dist/types/builder/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +105 -2
- package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/button.d.ts +3 -1
- package/dist/types/builder/tools/element-edit/common.d.ts +2 -0
- package/dist/types/builder/tools/element-edit/container.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +9 -0
- package/dist/types/builder/tools/element-edit/image.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/index.d.ts +7 -1
- package/dist/types/builder/tools/element-edit/menu.d.ts +53 -0
- package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +5 -2
- package/dist/types/builder/tools/element-edit/pickupLocations.d.ts +65 -1
- package/dist/types/builder/tools/element-edit/product-image.d.ts +10 -0
- package/dist/types/builder/tools/element-edit/product.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/productActions.d.ts +4 -1
- package/dist/types/builder/tools/element-edit/productHighlights.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/productInventory.d.ts +96 -2
- package/dist/types/builder/tools/element-edit/productPrice.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/productPromotions.d.ts +115 -2
- package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/repeater.d.ts +38 -0
- package/dist/types/builder/tools/element-edit/repeaterItem.d.ts +9 -0
- package/dist/types/builder/tools/element-edit/shippingEstimator.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/stack.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/storeLocations.d.ts +63 -1
- package/dist/types/builder/tools/element-edit/text.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/uomSelector.d.ts +123 -4
- package/dist/types/builder/tools/element-edit/variantPicker.d.ts +149 -2
- package/dist/types/builder/tools/element-edit/volumePricing.d.ts +2 -1
- package/dist/types/global/types.d.ts +1 -0
- package/dist/variant-picker.scss +24 -0
- package/dist/volume-pricing.scss +3 -2
- package/package.json +1 -1
|
@@ -22,18 +22,131 @@ interface selfLayoutInterface {
|
|
|
22
22
|
rowsPerPage: CMSIBCommonInterface;
|
|
23
23
|
overflowControl: CMSIBCommonInterface;
|
|
24
24
|
paginationType: CMSIBCommonInterface;
|
|
25
|
-
|
|
25
|
+
paginationAlignment: CMSIBCommonInterface;
|
|
26
26
|
displayResults: CMSIBCommonInterface;
|
|
27
27
|
imageBehavior: CMSIBCommonInterface;
|
|
28
28
|
itemsPerRow: CMSIBCommonInterface;
|
|
29
29
|
}
|
|
30
30
|
interface selfDesignInterface {
|
|
31
31
|
selectorKey: string;
|
|
32
|
+
widgetStyle: {
|
|
33
|
+
selectorKey: string;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
itemStyle: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
viewOffersButton: {
|
|
41
|
+
selectorKey: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
promotionName: {
|
|
45
|
+
selectorKey: string;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
promotionDescription: {
|
|
49
|
+
selectorKey: string;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
couponCode: {
|
|
53
|
+
selectorKey: string;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
promotionSchedule: {
|
|
57
|
+
selectorKey: string;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
minimumPurchaseAmount: {
|
|
61
|
+
selectorKey: string;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
};
|
|
64
|
+
eligibleProductsButton: {
|
|
65
|
+
selectorKey: string;
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
68
|
+
priceAfterPromotion: {
|
|
69
|
+
selectorKey: string;
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
maxRedemptionAmount: {
|
|
73
|
+
selectorKey: string;
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
arrows: {
|
|
77
|
+
selectorKey: string;
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
paginationDots: {
|
|
81
|
+
selectorKey: string;
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
};
|
|
84
|
+
showMoreItemsButton: {
|
|
85
|
+
selectorKey: string;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
};
|
|
88
|
+
paginationLine: {
|
|
89
|
+
selectorKey: string;
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
};
|
|
92
|
+
table: {
|
|
93
|
+
selectorKey: string;
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
};
|
|
96
|
+
tableHeader: {
|
|
97
|
+
selectorKey: string;
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
};
|
|
100
|
+
headerText: {
|
|
101
|
+
selectorKey: string;
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
tableRow: {
|
|
105
|
+
selectorKey: string;
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
108
|
+
scroll: {
|
|
109
|
+
selectorKey: string;
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
};
|
|
112
|
+
rowDividers: {
|
|
113
|
+
selectorKey: string;
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
};
|
|
116
|
+
pagination: {
|
|
117
|
+
selectorKey: string;
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
};
|
|
32
120
|
}
|
|
33
121
|
export declare enum ProductPromotionsSelectorKeysEnum {
|
|
34
122
|
LAYOUT = "layout",
|
|
35
123
|
CONTENT = "content",
|
|
36
|
-
DESIGN = "design"
|
|
124
|
+
DESIGN = "design",
|
|
125
|
+
DESIGN_WIDGET_STYLE = "widgetStyle",
|
|
126
|
+
DESIGN_ITEM_STYLE = "itemStyle",
|
|
127
|
+
DESIGN_VIEW_OFFERS_BUTTON = "viewOffersButton",
|
|
128
|
+
DESIGN_PROMOTION_NAME = "promotionName",
|
|
129
|
+
DESIGN_PROMOTION_DESCRIPTION = "promotionDescription",
|
|
130
|
+
DESIGN_COUPON_CODE = "couponCode",
|
|
131
|
+
DESIGN_PROMOTION_SCHEDULE = "promotionSchedule",
|
|
132
|
+
DESIGN_MINIMUM_PURCHASE_AMOUNT = "minimumPurchaseAmount",
|
|
133
|
+
DESIGN_ELIGIBLE_PRODUCTS_BUTTON = "eligibleProductsButton",
|
|
134
|
+
DESIGN_PRICE_AFTER_PROMOTION = "priceAfterPromotion",
|
|
135
|
+
DESIGN_MAX_READEMPTION_AMOUNT = "maxRedemptionAmount",
|
|
136
|
+
DESIGN_ARROWS = "arrows",
|
|
137
|
+
DESIGN_PAGINATION_DOTS = "paginationDots",
|
|
138
|
+
DESIGN_SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButton",
|
|
139
|
+
DESIGN_PAGINATION_LINE = "paginationLine",
|
|
140
|
+
DESIGN_TABLE = "table",
|
|
141
|
+
DESIGN_TABLE_HEADER = "tableHeader",
|
|
142
|
+
DESIGN_HEADER_TEXT = "headerText",
|
|
143
|
+
DESIGN_TABLE_ROW = "tableRow",
|
|
144
|
+
DESIGN_SCROLL = "scroll",
|
|
145
|
+
DESIGN_ROW_DIVIDERS = "rowDividers",
|
|
146
|
+
DESIGN_PAGINATION = "pagination",
|
|
147
|
+
HOVER_STATE = "hover",
|
|
148
|
+
DEFAULT_STATE = "default",
|
|
149
|
+
DATA_CONNECTOR = "dataConnector"
|
|
37
150
|
}
|
|
38
151
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
39
152
|
export {};
|
|
@@ -11,7 +11,8 @@ interface selfDesignInterface {
|
|
|
11
11
|
export declare enum QuantitySelectorSelectorKeysEnum {
|
|
12
12
|
LAYOUT = "layout",
|
|
13
13
|
CONTENT = "content",
|
|
14
|
-
DESIGN = "design"
|
|
14
|
+
DESIGN = "design",
|
|
15
|
+
DATA_CONNECTOR = "dataConnector"
|
|
15
16
|
}
|
|
16
17
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
18
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AlignItemsValue, JustifyContentValue, RepeaterDisplayStyleType } from "../../../../components/global/types";
|
|
2
|
+
import { CMSCSSUnitTypesEnums } from "../../enums";
|
|
3
|
+
import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
|
|
4
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
5
|
+
interface selfLayoutInterface {
|
|
6
|
+
selectorKey: string;
|
|
7
|
+
displayStyle: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
8
|
+
value: RepeaterDisplayStyleType;
|
|
9
|
+
};
|
|
10
|
+
itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
|
|
11
|
+
justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
12
|
+
value: JustifyContentValue;
|
|
13
|
+
};
|
|
14
|
+
alignItems: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
15
|
+
value: AlignItemsValue;
|
|
16
|
+
};
|
|
17
|
+
setItemsPerRow: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
18
|
+
isShow: boolean;
|
|
19
|
+
value: string | number | any;
|
|
20
|
+
};
|
|
21
|
+
minColumnWidth: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
22
|
+
value: string | number | any;
|
|
23
|
+
unit: CMSCSSUnitTypesEnums;
|
|
24
|
+
};
|
|
25
|
+
minRowHeight: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
26
|
+
value: string | number | any;
|
|
27
|
+
unit: CMSCSSUnitTypesEnums;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface selfDesignInterface {
|
|
31
|
+
selectorKey: string;
|
|
32
|
+
}
|
|
33
|
+
export declare enum selfSelectorKeysEnum {
|
|
34
|
+
LAYOUT = "layout",
|
|
35
|
+
DESIGN = "design"
|
|
36
|
+
}
|
|
37
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface selfDesignInterface {
|
|
3
|
+
selectorKey: string;
|
|
4
|
+
}
|
|
5
|
+
export declare enum selfSelectorKeysEnum {
|
|
6
|
+
LAYOUT = "layout",
|
|
7
|
+
DESIGN = "design"
|
|
8
|
+
}
|
|
9
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
@@ -8,7 +8,8 @@ interface selfDesignInterface {
|
|
|
8
8
|
export declare enum ShippingEstimatorSelectorKeysEnum {
|
|
9
9
|
LAYOUT = "layout",
|
|
10
10
|
CONTENT = "content",
|
|
11
|
-
DESIGN = "design"
|
|
11
|
+
DESIGN = "design",
|
|
12
|
+
DATA_CONNECTOR = "dataConnector"
|
|
12
13
|
}
|
|
13
14
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
14
15
|
export {};
|
|
@@ -19,7 +19,8 @@ export interface selfDesignInterface {
|
|
|
19
19
|
}
|
|
20
20
|
export declare enum selfSelectorKeysEnum {
|
|
21
21
|
LAYOUT = "layout",
|
|
22
|
-
DESIGN = "design"
|
|
22
|
+
DESIGN = "design",
|
|
23
|
+
DATA_CONNECTOR = "dataConnector"
|
|
23
24
|
}
|
|
24
25
|
export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
25
26
|
export {};
|
|
@@ -14,11 +14,73 @@ interface selfLayoutInterface {
|
|
|
14
14
|
}
|
|
15
15
|
interface selfDesignInterface {
|
|
16
16
|
selectorKey: string;
|
|
17
|
+
inputStyle: {
|
|
18
|
+
selectorKey: string;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
storeLocationsButton: {
|
|
22
|
+
selectorKey: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
inventoryTextStyle: {
|
|
26
|
+
selectorKey: string;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
itemStyle: {
|
|
30
|
+
selectorKey: string;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
locationName: {
|
|
34
|
+
selectorKey: string;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
locationAddress: {
|
|
38
|
+
selectorKey: string;
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
locationTimings: {
|
|
42
|
+
selectorKey: string;
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
locationInventory: {
|
|
46
|
+
selectorKey: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
49
|
+
arrows: {
|
|
50
|
+
selectorKey: string;
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
paginationDots: {
|
|
54
|
+
selectorKey: string;
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
};
|
|
57
|
+
paginationLine: {
|
|
58
|
+
selectorKey: string;
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
};
|
|
61
|
+
showMoreItemsButton: {
|
|
62
|
+
selectorKey: string;
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
17
65
|
}
|
|
18
66
|
export declare enum StoreLocationSelectorKeysEnum {
|
|
19
67
|
LAYOUT = "layout",
|
|
20
68
|
CONTENT = "content",
|
|
21
|
-
DESIGN = "design"
|
|
69
|
+
DESIGN = "design",
|
|
70
|
+
INPUT_STYLE = "inputStyle",
|
|
71
|
+
STORE_LOCATIONS_BUTTON = "storeLocationButton",
|
|
72
|
+
INVENTORY_TEXT_STYLE = "inventoryTextStyle",
|
|
73
|
+
ITEM_STYLE = "itemStyle",
|
|
74
|
+
LOCATION_NAME = "locationName",
|
|
75
|
+
LOCATION_ADDRESS = "locationAddress",
|
|
76
|
+
LOCATION_INVENTORY = "locationInventory",
|
|
77
|
+
LOCATION_TIMINGS = "locationTimings",
|
|
78
|
+
ARROWS = "arrows",
|
|
79
|
+
PAGINATION_DOTS = "paginationDots",
|
|
80
|
+
PAGINATION_LINE = "paginationLine",
|
|
81
|
+
SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButtons",
|
|
82
|
+
HOVER_STATE = "hover",
|
|
83
|
+
DEFAULT_STATE = "default"
|
|
22
84
|
}
|
|
23
85
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
24
86
|
export {};
|
|
@@ -8,7 +8,8 @@ export interface selfDesignInterface {
|
|
|
8
8
|
}
|
|
9
9
|
export declare enum textSelectorKeysEnum {
|
|
10
10
|
LAYOUT = "layout",
|
|
11
|
-
DESIGN = "design"
|
|
11
|
+
DESIGN = "design",
|
|
12
|
+
DATA_CONNECTOR = "dataConnector"
|
|
12
13
|
}
|
|
13
14
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
14
15
|
export {};
|
|
@@ -3,7 +3,7 @@ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSEl
|
|
|
3
3
|
interface selfLayoutInterface {
|
|
4
4
|
selectorKey: string;
|
|
5
5
|
displayFormat: CMSIBCommonInterface;
|
|
6
|
-
|
|
6
|
+
showUomPrice: CMSIBCommonInterface;
|
|
7
7
|
itemSpacing: CMSIBCommonInterface;
|
|
8
8
|
maxItemsToDisplay: CMSIBCommonInterface;
|
|
9
9
|
overflowControl: CMSIBCommonInterface;
|
|
@@ -20,20 +20,139 @@ interface selfLayoutInterface {
|
|
|
20
20
|
contentAlignment: CMSIBCommonInterface;
|
|
21
21
|
rowsPerPage: CMSIBCommonInterface;
|
|
22
22
|
paginationType: CMSIBCommonInterface;
|
|
23
|
-
|
|
23
|
+
paginationAlignment: CMSIBCommonInterface;
|
|
24
24
|
imageBehavior: CMSIBCommonInterface;
|
|
25
25
|
itemsPerRow: CMSIBCommonInterface;
|
|
26
26
|
itemPadding: CMSIBCommonInterface;
|
|
27
|
-
|
|
27
|
+
itemContentAlignment: CMSIBCommonInterface;
|
|
28
28
|
overflowItems: CMSIBCommonInterface;
|
|
29
29
|
}
|
|
30
30
|
interface selfDesignInterface {
|
|
31
31
|
selectorKey: string;
|
|
32
|
+
itemStyle: {
|
|
33
|
+
selectorKey: string;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
uomTitleStyle: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
uomConversionStyle: {
|
|
41
|
+
selectorKey: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
productPrice: {
|
|
45
|
+
selectorKey: string;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
uomStyle: {
|
|
49
|
+
selectorKey: string;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
currencyCodeStyle: {
|
|
53
|
+
selectorKey: string;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
actualPrice: {
|
|
57
|
+
selectorKey: string;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
discount: {
|
|
61
|
+
selectorKey: string;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
};
|
|
64
|
+
discountValue: {
|
|
65
|
+
selectorKey: string;
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
68
|
+
savings: {
|
|
69
|
+
selectorKey: string;
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
savingsValue: {
|
|
73
|
+
selectorKey: string;
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
pricePerUnit: {
|
|
77
|
+
selectorKey: string;
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
arrows: {
|
|
81
|
+
selectorKey: string;
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
};
|
|
84
|
+
paginationDots: {
|
|
85
|
+
selectorKey: string;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
};
|
|
88
|
+
paginationLine: {
|
|
89
|
+
selectorKey: string;
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
};
|
|
92
|
+
table: {
|
|
93
|
+
selectorKey: string;
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
};
|
|
96
|
+
tableHeader: {
|
|
97
|
+
selectorKey: string;
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
};
|
|
100
|
+
headerText: {
|
|
101
|
+
selectorKey: string;
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
tableRow: {
|
|
105
|
+
selectorKey: string;
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
108
|
+
scroll: {
|
|
109
|
+
selectorKey: string;
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
};
|
|
112
|
+
rowDividers: {
|
|
113
|
+
selectorKey: string;
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
};
|
|
116
|
+
pagination: {
|
|
117
|
+
selectorKey: string;
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
};
|
|
120
|
+
showMoreItemsButton: {
|
|
121
|
+
selectorKey: string;
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
};
|
|
32
124
|
}
|
|
33
125
|
export declare enum UOMSelectorKeysEnum {
|
|
34
126
|
LAYOUT = "layout",
|
|
35
127
|
CONTENT = "content",
|
|
36
|
-
DESIGN = "design"
|
|
128
|
+
DESIGN = "design",
|
|
129
|
+
DATA_CONNECTOR = "dataConnector",
|
|
130
|
+
ITEM_STYLE = "itemStyle",
|
|
131
|
+
UOM_TITLE_STYLE = "uomTitleStyle",
|
|
132
|
+
UOM_CONVERSION_STYLE = "uomConversionStyle",
|
|
133
|
+
PRODUCT_PRICE = "productPrice",
|
|
134
|
+
UOM_STYLE = "uomStyle",
|
|
135
|
+
CURRENCY_CODE_STYLE = "currencyCodeStyle",
|
|
136
|
+
ACTUAL_PRICE = "actualPrice",
|
|
137
|
+
DISCOUNT = "discount",
|
|
138
|
+
DISCOUNT_VALUE = "discountValue",
|
|
139
|
+
SAVINGS = "savings",
|
|
140
|
+
SAVINGS_VALUE = "savingsValue",
|
|
141
|
+
PRICE_PER_UNIT = "pricePerUnit",
|
|
142
|
+
ARROWS = "arrows",
|
|
143
|
+
PAGINATION_DOTS = "paginationDots",
|
|
144
|
+
PAGINATION_LINE = "paginationLine",
|
|
145
|
+
TABLE = "table",
|
|
146
|
+
TABLE_HEADER = "tableHeader",
|
|
147
|
+
HEADER_TEXT = "headerText",
|
|
148
|
+
TABLE_ROW = "tableRow",
|
|
149
|
+
SCROLL = "scroll",
|
|
150
|
+
ROW_DIVIDERS = "rowDividers",
|
|
151
|
+
PAGINATION = "pagination",
|
|
152
|
+
SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButton",
|
|
153
|
+
HOVER_STATE = "hover",
|
|
154
|
+
DEFAULT_STATE = "default",
|
|
155
|
+
SELECTED_STATE = "selectedState"
|
|
37
156
|
}
|
|
38
157
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
39
158
|
export {};
|
|
@@ -12,6 +12,7 @@ interface selfLayoutInterface {
|
|
|
12
12
|
remainingDisplayStyle: CMSIBCommonInterface;
|
|
13
13
|
allowUserToSearch: CMSIBCommonInterface;
|
|
14
14
|
allowUserToFilter: CMSIBCommonInterface;
|
|
15
|
+
itemSpacing: CMSIBCommonInterface;
|
|
15
16
|
swatchTypeDisplayStyle: {
|
|
16
17
|
selectorKey: string;
|
|
17
18
|
displayValues: CMSIBCommonInterface;
|
|
@@ -91,7 +92,7 @@ interface selfLayoutInterface {
|
|
|
91
92
|
overflowControl: CMSIBCommonInterface;
|
|
92
93
|
showMoreRows: CMSIBCommonInterface;
|
|
93
94
|
paginationType: CMSIBCommonInterface;
|
|
94
|
-
|
|
95
|
+
paginationAlignment: CMSIBCommonInterface;
|
|
95
96
|
};
|
|
96
97
|
groupedTableDisplayStyle: {
|
|
97
98
|
selectorKey: string;
|
|
@@ -103,17 +104,163 @@ interface selfLayoutInterface {
|
|
|
103
104
|
}
|
|
104
105
|
interface selfDesignInterface {
|
|
105
106
|
selectorKey: string;
|
|
107
|
+
optionStyle: {
|
|
108
|
+
selectorKey: string;
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
};
|
|
111
|
+
swatchOptionValueStyle: {
|
|
112
|
+
selectorKey: string;
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
};
|
|
115
|
+
singleOptionValueStyle: {
|
|
116
|
+
selectorKey: string;
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
};
|
|
119
|
+
tabItemStyle: {
|
|
120
|
+
selectorKey: string;
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
};
|
|
123
|
+
accordionItemStyle: {
|
|
124
|
+
selectorKey: string;
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
};
|
|
127
|
+
groupedUpfrontStyle: {
|
|
128
|
+
selectorKey: string;
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
};
|
|
131
|
+
dropdownStyle: {
|
|
132
|
+
selectorKey: string;
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
};
|
|
135
|
+
arrows: {
|
|
136
|
+
selectorKey: string;
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
};
|
|
139
|
+
paginationDots: {
|
|
140
|
+
selectorKey: string;
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
};
|
|
143
|
+
paginationLine: {
|
|
144
|
+
selectorKey: string;
|
|
145
|
+
[key: string]: any;
|
|
146
|
+
};
|
|
147
|
+
table: {
|
|
148
|
+
selectorKey: string;
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
};
|
|
151
|
+
tableHeader: {
|
|
152
|
+
selectorKey: string;
|
|
153
|
+
[key: string]: any;
|
|
154
|
+
};
|
|
155
|
+
headerText: {
|
|
156
|
+
selectorKey: string;
|
|
157
|
+
[key: string]: any;
|
|
158
|
+
};
|
|
159
|
+
tableRow: {
|
|
160
|
+
selectorKey: string;
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
};
|
|
163
|
+
scroll: {
|
|
164
|
+
selectorKey: string;
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
};
|
|
167
|
+
rowDividers: {
|
|
168
|
+
selectorKey: string;
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
};
|
|
171
|
+
pagination: {
|
|
172
|
+
selectorKey: string;
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
};
|
|
175
|
+
showMoreItemsButton: {
|
|
176
|
+
selectorKey: string;
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
};
|
|
179
|
+
optionTitle: {
|
|
180
|
+
selectorKey: string;
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
};
|
|
183
|
+
noOfOptionValues: {
|
|
184
|
+
selectorKey: string;
|
|
185
|
+
[key: string]: any;
|
|
186
|
+
};
|
|
187
|
+
optionPrice: {
|
|
188
|
+
selectorKey: string;
|
|
189
|
+
[key: string]: any;
|
|
190
|
+
};
|
|
191
|
+
selectedVarientName: {
|
|
192
|
+
selectorKey: string;
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
};
|
|
195
|
+
optionValueName: {
|
|
196
|
+
selectorKey: string;
|
|
197
|
+
[key: string]: any;
|
|
198
|
+
};
|
|
199
|
+
optionValueCode: {
|
|
200
|
+
selectorKey: string;
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
};
|
|
203
|
+
noOfVariantsAvailable: {
|
|
204
|
+
selectorKey: string;
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
};
|
|
207
|
+
optionValuePrice: {
|
|
208
|
+
selectorKey: string;
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
};
|
|
211
|
+
availableInventory: {
|
|
212
|
+
selectorKey: string;
|
|
213
|
+
[key: string]: any;
|
|
214
|
+
};
|
|
215
|
+
addedItemsTotal: {
|
|
216
|
+
selectorKey: string;
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
};
|
|
106
219
|
}
|
|
107
220
|
export declare enum VariantPickerSelectorKeysEnum {
|
|
108
221
|
LAYOUT = "layout",
|
|
109
222
|
CONTENT = "content",
|
|
110
223
|
DESIGN = "design",
|
|
224
|
+
HOVER_STATE = "hover",
|
|
225
|
+
DEFAULT_STATE = "default",
|
|
226
|
+
SELECTED_STATE = "selected",
|
|
227
|
+
COLLAPSED_STATE = "collapsed",
|
|
228
|
+
EXPANDED_STATE = "expanded",
|
|
111
229
|
SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
|
|
112
230
|
SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
|
|
113
231
|
DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
|
|
114
232
|
GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
|
|
115
233
|
TABLE_DISPLAY_STYLE = "tableDisplayStyle",
|
|
116
|
-
GROUPED_TABLE_DISPLAY_STYLE = "groupedTableDisplayStyle"
|
|
234
|
+
GROUPED_TABLE_DISPLAY_STYLE = "groupedTableDisplayStyle",
|
|
235
|
+
DATA_CONNECTOR = "dataConnector",
|
|
236
|
+
OPTION_STYLE = "optionStyle",
|
|
237
|
+
SWATCH_OPTION_VALUE_STYLE = "swatchOptionValueStyle",
|
|
238
|
+
SINGLE_OPTION_VALUE_STYLE = "singleOptionValueStyle",
|
|
239
|
+
TAB_ITEM_STYLE = "tabItemStyle",
|
|
240
|
+
ACCORDION_ITEM_STYLE = "accordionItemStyle",
|
|
241
|
+
GROUPED_UPFRONT_STYLE = "groupedUpfrontStyle",
|
|
242
|
+
DROPDOWN_STYLE = "dropdownStyle",
|
|
243
|
+
ARROWS = "arrows",
|
|
244
|
+
PAGINATION_DOTS = "paginationDots",
|
|
245
|
+
PAGINATION_LINE = "paginationLine",
|
|
246
|
+
TABLE = "table",
|
|
247
|
+
TABLE_HEADER = "tableHeader",
|
|
248
|
+
HEADER_TEXT = "headerText",
|
|
249
|
+
TABLE_ROW = "tableRow",
|
|
250
|
+
SCROLL = "scroll",
|
|
251
|
+
ROW_DIVIDERS = "rowDividers",
|
|
252
|
+
PAGINATION = "pagination",
|
|
253
|
+
SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButton",
|
|
254
|
+
OPTION_TITLE = "optionTitle",
|
|
255
|
+
NO_OF_OPTION_VALUES = "noOfOptionValues",
|
|
256
|
+
OPTION_PRICE = "optionPrice",
|
|
257
|
+
SELECTED_VARIENT_NAME = "selectedVarientName",
|
|
258
|
+
OPTION_VALUE_NAME = "optionValueName",
|
|
259
|
+
OPTION_VALUE_CODE = "optionValueCode",
|
|
260
|
+
NO_OF_VARIENTS_AVAILABLE = "noOfVariantsAvailable",
|
|
261
|
+
OPTION_VALUE_PRICE = "optionValuePrice",
|
|
262
|
+
AVAILABLE_INVENTORY = "availableInventory",
|
|
263
|
+
ADDED_ITEMS_TOTAL = "addedItemsTotal"
|
|
117
264
|
}
|
|
118
265
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
119
266
|
export {};
|
|
@@ -48,7 +48,8 @@ export interface selfDesignInterface {
|
|
|
48
48
|
export declare enum textSelectorKeysEnum {
|
|
49
49
|
LAYOUT = "layout",
|
|
50
50
|
CONTENT = "content",
|
|
51
|
-
DESIGN = "design"
|
|
51
|
+
DESIGN = "design",
|
|
52
|
+
DATA_CONNECTOR = "dataConnector"
|
|
52
53
|
}
|
|
53
54
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
54
55
|
export {};
|
|
@@ -35,3 +35,4 @@ export type GlobalTableAttributes = "cellPadding" | "cellSpacing" | "border" | "
|
|
|
35
35
|
export type StackDirectionType = "horizontal" | "vertical";
|
|
36
36
|
export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
|
|
37
37
|
export type ObjectPositionValue = string;
|
|
38
|
+
export type RepeaterDisplayStyleType = "grid" | "list" | "slider" | "cards";
|
package/dist/variant-picker.scss
CHANGED
|
@@ -24,5 +24,29 @@
|
|
|
24
24
|
&[data-show-shadow="false"] {
|
|
25
25
|
--_show-shadow: none;
|
|
26
26
|
}
|
|
27
|
+
.options-container {
|
|
28
|
+
.option-group {
|
|
29
|
+
margin: 10px 0;
|
|
30
|
+
.option-values {
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 30px;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 1rem;
|
|
36
|
+
.option-figure {
|
|
37
|
+
width: 30px;
|
|
38
|
+
.option-image {
|
|
39
|
+
width: 100%;
|
|
40
|
+
border-radius: 1rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.option-button {
|
|
44
|
+
padding: 0.6rem 1rem;
|
|
45
|
+
border: 1px solid lightblue;
|
|
46
|
+
border-radius: 10px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
27
51
|
}
|
|
28
52
|
}
|