@sc-360-v2/storefront-cms-library 0.1.7 → 0.1.8
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/builder.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/builder/elements/bulk-variant-picker/index.d.ts +27 -0
- package/dist/types/builder/elements/common.d.ts +1 -0
- package/dist/types/builder/elements/stack/index.d.ts +37 -0
- package/dist/types/builder/elements/uom-selector/index.d.ts +27 -0
- package/dist/types/builder/elements/variant-picker/index.d.ts +27 -0
- package/dist/types/builder/enums/index.d.ts +10 -2
- package/dist/types/builder/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +118 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/productDetails.d.ts +1 -1
- package/dist/types/builder/tools/element-edit/productPromotions.d.ts +1 -1
- package/dist/types/builder/tools/element-edit/stack.d.ts +25 -0
- package/dist/types/builder/tools/element-edit/uomSelector.d.ts +39 -0
- package/dist/types/builder/tools/element-edit/variantPicker.d.ts +119 -0
- package/dist/types/global/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface BulkVariantPickerStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => BulkVariantPickerStyleProperties;
|
|
18
|
+
export interface CMSBulkVariantPickerInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: CMSHTMLAttributes;
|
|
21
|
+
BUILDER: BuilderAttributes;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: BulkVariantPickerStyleProperties;
|
|
25
|
+
content: string;
|
|
26
|
+
childrenStyles?: CommonStyleProperties;
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
2
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
3
|
+
import { ResponsiveBehaviourTypes } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
export interface StackStyleProperties extends CommonStyleProperties {
|
|
6
|
+
maxWidth: string;
|
|
7
|
+
maxHeight: string;
|
|
8
|
+
gridArea: string;
|
|
9
|
+
boxSizing: string;
|
|
10
|
+
gridTemplateRows: string;
|
|
11
|
+
gridTemplateColumns: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const getDefaultStyles: () => StackStyleProperties;
|
|
14
|
+
export interface CommonStackElementAttributes extends CMSHTMLAttributes {
|
|
15
|
+
role?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
ariaDescribedBy?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
lang?: string;
|
|
21
|
+
dataMeta?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface StackElementInterface {
|
|
24
|
+
id?: string | number;
|
|
25
|
+
uniqueKey?: string | number;
|
|
26
|
+
attributes?: {
|
|
27
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
|
|
28
|
+
HTML?: CommonStackElementAttributes;
|
|
29
|
+
CUSTOM?: any;
|
|
30
|
+
};
|
|
31
|
+
styles?: StackStyleProperties;
|
|
32
|
+
editedStyles?: CommonStyleProperties;
|
|
33
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
34
|
+
children: any;
|
|
35
|
+
childIds: any[];
|
|
36
|
+
previewImage?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface UomSelectorStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => UomSelectorStyleProperties;
|
|
18
|
+
export interface CMSUomSelectorInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: CMSHTMLAttributes;
|
|
21
|
+
BUILDER: BuilderAttributes;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: UomSelectorStyleProperties;
|
|
25
|
+
content: string;
|
|
26
|
+
childrenStyles?: CommonStyleProperties;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface VariantPickerStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => VariantPickerStyleProperties;
|
|
18
|
+
export interface CMSVariantPickerInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: CMSHTMLAttributes;
|
|
21
|
+
BUILDER: BuilderAttributes;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: VariantPickerStyleProperties;
|
|
25
|
+
content: string;
|
|
26
|
+
childrenStyles?: CommonStyleProperties;
|
|
27
|
+
}
|
|
@@ -32,11 +32,13 @@ export declare enum CMSToolIdTypes {
|
|
|
32
32
|
cmsPageLoader = "cms-page-loader",
|
|
33
33
|
dataDropElement = "cms-drop-element",
|
|
34
34
|
containerWrapper = "cms-container-wrapper",
|
|
35
|
+
stackWrapper = "cms-stack-wrapper",
|
|
35
36
|
cmsSubElementLayer = "cms-sub-element-layer",
|
|
36
37
|
editorHeader = "cms-editor-header",
|
|
37
38
|
cmsAddElementBodyLayer = "data-global-temp-body",
|
|
38
39
|
cmsIframePreview = "cms-iframe-preview",
|
|
39
|
-
cmsIframeMainElement = "cms-iframe-preview-main"
|
|
40
|
+
cmsIframeMainElement = "cms-iframe-preview-main",
|
|
41
|
+
duplicateElement = "cms-element-duplicate"
|
|
40
42
|
}
|
|
41
43
|
export declare enum CMSElementSelectors {
|
|
42
44
|
iframeSelector = "iframe[data-title='iframe__playground']",
|
|
@@ -73,7 +75,9 @@ export declare enum CMSElementSelectors {
|
|
|
73
75
|
layerDataDropElement = "div[data-layer-drop-element='cms-drop-element']",
|
|
74
76
|
layerSubElement = "div[data-cms-tool='cms-sub-element-layer']",
|
|
75
77
|
editorHeader = "div[data-cms-tool='cms-editor-header']",
|
|
76
|
-
cmsAddElementBodyLayer = "div[data-cms-tool='data-global-temp-body']"
|
|
78
|
+
cmsAddElementBodyLayer = "div[data-cms-tool='data-global-temp-body']",
|
|
79
|
+
duplicateElement = "div[data-cms-tool='cms-element-duplicate']",
|
|
80
|
+
stackWrapper = "div[data-div-type='cms-stack-wrapper']"
|
|
77
81
|
}
|
|
78
82
|
export declare enum CMSToolAttributes {
|
|
79
83
|
id = "data-cms-tool",
|
|
@@ -119,3 +123,7 @@ export declare enum CMSComponentImportTypeEnum {
|
|
|
119
123
|
PREVIEW = 2,
|
|
120
124
|
WEBSITE = 3
|
|
121
125
|
}
|
|
126
|
+
export declare enum CMSStackDisplayTypeEnum {
|
|
127
|
+
HORIZONTAL = "horizontal",
|
|
128
|
+
VERTICAL = "vertical"
|
|
129
|
+
}
|
|
@@ -33,4 +33,8 @@ import * as shippingEstimatorSchema from "./elements/shippingEstimator/index";
|
|
|
33
33
|
import * as productPromotionsSchema from "./elements/product-promotions/index";
|
|
34
34
|
import * as amountEstimatorSchema from "./elements/amount-estimator/index";
|
|
35
35
|
import * as quantitySelectorSchema from "./elements/quantity-selector/index";
|
|
36
|
-
|
|
36
|
+
import * as stackSchema from "./elements/stack/index";
|
|
37
|
+
import * as uomSelectorSchema from "./elements/uom-selector/index";
|
|
38
|
+
import * as variantPickerSchema from "./elements/variant-picker/index";
|
|
39
|
+
import * as bulkVariantPickerSchema from "./elements/bulk-variant-picker/index";
|
|
40
|
+
export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, paymentMethodsSchema, productHighlightsSchema, shippingEstimatorSchema, productPromotionsSchema, amountEstimatorSchema, quantitySelectorSchema, stackSchema, uomSelectorSchema, variantPickerSchema, bulkVariantPickerSchema, };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
optionSelection: CMSIBCommonInterface;
|
|
6
|
+
displayStyle: CMSIBCommonInterface;
|
|
7
|
+
displayOutOfStockValues: CMSIBCommonInterface;
|
|
8
|
+
notifyMeButton: CMSIBCommonInterface;
|
|
9
|
+
quantitySelectorForVariantSelector: CMSIBCommonInterface;
|
|
10
|
+
dividerBetweenItems: CMSIBCommonInterface;
|
|
11
|
+
optionTitleValueSpacing: CMSIBCommonInterface;
|
|
12
|
+
remainingDisplayStyle: CMSIBCommonInterface;
|
|
13
|
+
allowUserToSearch: CMSIBCommonInterface;
|
|
14
|
+
allowUserToFilter: CMSIBCommonInterface;
|
|
15
|
+
swatchTypeDisplayStyle: {
|
|
16
|
+
selectorKey: string;
|
|
17
|
+
displayValues: CMSIBCommonInterface;
|
|
18
|
+
itemPadding: CMSIBCommonInterface;
|
|
19
|
+
itemSpacing: CMSIBCommonInterface;
|
|
20
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
21
|
+
overflowItems: CMSIBCommonInterface;
|
|
22
|
+
swatchImageType: CMSIBCommonInterface;
|
|
23
|
+
};
|
|
24
|
+
singleSelectDisplayStyle: {
|
|
25
|
+
selectorKey: string;
|
|
26
|
+
displayValues: CMSIBCommonInterface;
|
|
27
|
+
itemSpacing: CMSIBCommonInterface;
|
|
28
|
+
itemPadding: CMSIBCommonInterface;
|
|
29
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
30
|
+
overflowItems: CMSIBCommonInterface;
|
|
31
|
+
imageBehaviour: CMSIBCommonInterface;
|
|
32
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
33
|
+
itemContentAlignment: CMSIBCommonInterface;
|
|
34
|
+
overflowDirection: CMSIBCommonInterface;
|
|
35
|
+
};
|
|
36
|
+
dropdownDisplayStyle: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
dropdownOptionsSpacing: CMSIBCommonInterface;
|
|
39
|
+
dropdownOptionsPadding: CMSIBCommonInterface;
|
|
40
|
+
dropdownStyle: CMSIBCommonInterface;
|
|
41
|
+
optionAndListSpacing: CMSIBCommonInterface;
|
|
42
|
+
dropdownListItemSpacing: CMSIBCommonInterface;
|
|
43
|
+
dropdownListItemPadding: CMSIBCommonInterface;
|
|
44
|
+
dividerBetweenListItems: CMSIBCommonInterface;
|
|
45
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
46
|
+
overflowItems: CMSIBCommonInterface;
|
|
47
|
+
};
|
|
48
|
+
groupedOptionsDisplayStyle: {
|
|
49
|
+
selectorKey: string;
|
|
50
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
51
|
+
groupSpacing: CMSIBCommonInterface;
|
|
52
|
+
groupPadding: CMSIBCommonInterface;
|
|
53
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
54
|
+
tabDirection: CMSIBCommonInterface;
|
|
55
|
+
tabLayout: CMSIBCommonInterface;
|
|
56
|
+
tabAlignment: CMSIBCommonInterface;
|
|
57
|
+
tabSpacing: CMSIBCommonInterface;
|
|
58
|
+
tabAndContainerSpacing: CMSIBCommonInterface;
|
|
59
|
+
tabHorizontalPadding: CMSIBCommonInterface;
|
|
60
|
+
tabVerticalPadding: CMSIBCommonInterface;
|
|
61
|
+
containerPadding: CMSIBCommonInterface;
|
|
62
|
+
overflowItems: CMSIBCommonInterface;
|
|
63
|
+
tabRowSpacing: CMSIBCommonInterface;
|
|
64
|
+
expandIconPositon: CMSIBCommonInterface;
|
|
65
|
+
expandFirstItemByDefault: CMSIBCommonInterface;
|
|
66
|
+
allowMultipleOpenItems: CMSIBCommonInterface;
|
|
67
|
+
itemDividers: CMSIBCommonInterface;
|
|
68
|
+
accordionSpacing: CMSIBCommonInterface;
|
|
69
|
+
accordionAndContainerSpacing: CMSIBCommonInterface;
|
|
70
|
+
accordionHorizontalPadding: CMSIBCommonInterface;
|
|
71
|
+
accordionVerticalPadding: CMSIBCommonInterface;
|
|
72
|
+
groupAndContainerSpacing: CMSIBCommonInterface;
|
|
73
|
+
groupHorizontalPadding: CMSIBCommonInterface;
|
|
74
|
+
groupVerticalPadding: CMSIBCommonInterface;
|
|
75
|
+
canCollapseGroups: CMSIBCommonInterface;
|
|
76
|
+
};
|
|
77
|
+
matrixDisplayStyle: {
|
|
78
|
+
selectorKey: string;
|
|
79
|
+
header: CMSIBCommonInterface;
|
|
80
|
+
headerHeight: CMSIBCommonInterface;
|
|
81
|
+
rowHeight: CMSIBCommonInterface;
|
|
82
|
+
headerDivider: CMSIBCommonInterface;
|
|
83
|
+
rowDivider: CMSIBCommonInterface;
|
|
84
|
+
columnDivider: CMSIBCommonInterface;
|
|
85
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
86
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
87
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
88
|
+
contentAlignment: CMSIBCommonInterface;
|
|
89
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
90
|
+
overflowControl: CMSIBCommonInterface;
|
|
91
|
+
paginationType: CMSIBCommonInterface;
|
|
92
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
93
|
+
showMoreRows: CMSIBCommonInterface;
|
|
94
|
+
};
|
|
95
|
+
groupedMatrixDisplayStyle: {
|
|
96
|
+
selectorKey: string;
|
|
97
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
98
|
+
groupSpacing: CMSIBCommonInterface;
|
|
99
|
+
groupPadding: CMSIBCommonInterface;
|
|
100
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
interface selfDesignInterface {
|
|
104
|
+
selectorKey: string;
|
|
105
|
+
}
|
|
106
|
+
export declare enum BulkVariantPickerSelectorKeysEnum {
|
|
107
|
+
LAYOUT = "layout",
|
|
108
|
+
CONTENT = "content",
|
|
109
|
+
DESIGN = "design",
|
|
110
|
+
SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
|
|
111
|
+
SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
|
|
112
|
+
DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
|
|
113
|
+
GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
|
|
114
|
+
MATRIX_DISPLAY_STYLE = "matrixDisplayStyle",
|
|
115
|
+
GROUPED_MATRIX_DISPLAY_STYLE = "groupedMatrixDisplayStyle"
|
|
116
|
+
}
|
|
117
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
118
|
+
export {};
|
|
@@ -31,4 +31,8 @@ import * as shippingEstimator from "./shippingEstimator";
|
|
|
31
31
|
import * as productPromotions from "./productPromotions";
|
|
32
32
|
import * as amountEstimator from "./amountEstimator";
|
|
33
33
|
import * as quantitySelector from "./quantitySelector";
|
|
34
|
-
|
|
34
|
+
import * as stack from "./stack";
|
|
35
|
+
import * as uomSelector from "./uomSelector";
|
|
36
|
+
import * as variantPicker from "./variantPicker";
|
|
37
|
+
import * as bulkVariantPicker from "./bulkVariantPicker";
|
|
38
|
+
export { section, grid, common, image, button, slideShowLayouter, tabs, video, table, gallerySlider, social, faq, code, text, embed, buttonV2, scroll, countdown, imageHotspot, map, container, price, productActions, volumePricing, pickupLocations, storeLocations, productInventory, paymentMethods, productHighlights, shippingEstimator, productPromotions, amountEstimator, quantitySelector, stack, uomSelector, variantPicker, bulkVariantPicker, };
|
|
@@ -16,7 +16,7 @@ export interface selfContentInterface {
|
|
|
16
16
|
selectorKey: string;
|
|
17
17
|
productName: controlInterface;
|
|
18
18
|
productCodes: controlInterface;
|
|
19
|
-
|
|
19
|
+
variantCodes: controlInterface;
|
|
20
20
|
productImages: controlInterface;
|
|
21
21
|
prices: controlInterface;
|
|
22
22
|
productDescription: controlInterface;
|
|
@@ -6,7 +6,7 @@ interface selfLayoutInterface {
|
|
|
6
6
|
dividerBetweenItems: CMSIBCommonInterface;
|
|
7
7
|
itemSpacing: CMSIBCommonInterface;
|
|
8
8
|
itemPadding: CMSIBCommonInterface;
|
|
9
|
-
|
|
9
|
+
itemContentAlignment: CMSIBCommonInterface;
|
|
10
10
|
overflowItems: CMSIBCommonInterface;
|
|
11
11
|
maxItemsToDisplay: CMSIBCommonInterface;
|
|
12
12
|
header: CMSIBCommonInterface;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
|
|
2
|
+
import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
|
|
3
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
direction: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
7
|
+
value: StackDirectionType;
|
|
8
|
+
};
|
|
9
|
+
itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
|
|
10
|
+
justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
11
|
+
value: JustifyContentValue;
|
|
12
|
+
};
|
|
13
|
+
alignItems: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
14
|
+
value: AlignItemsValue;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface selfDesignInterface {
|
|
18
|
+
selectorKey: string;
|
|
19
|
+
}
|
|
20
|
+
export declare enum selfSelectorKeysEnum {
|
|
21
|
+
LAYOUT = "layout",
|
|
22
|
+
DESIGN = "design"
|
|
23
|
+
}
|
|
24
|
+
export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
displayFormat: CMSIBCommonInterface;
|
|
6
|
+
showUOMPrice: CMSIBCommonInterface;
|
|
7
|
+
itemSpacing: CMSIBCommonInterface;
|
|
8
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
9
|
+
overflowControl: CMSIBCommonInterface;
|
|
10
|
+
onClick: CMSIBCommonInterface;
|
|
11
|
+
header: CMSIBCommonInterface;
|
|
12
|
+
headerHeight: CMSIBCommonInterface;
|
|
13
|
+
rowHeight: CMSIBCommonInterface;
|
|
14
|
+
headerDivider: CMSIBCommonInterface;
|
|
15
|
+
rowDivider: CMSIBCommonInterface;
|
|
16
|
+
columnDivider: CMSIBCommonInterface;
|
|
17
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
18
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
19
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
20
|
+
contentAlignment: CMSIBCommonInterface;
|
|
21
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
22
|
+
paginationType: CMSIBCommonInterface;
|
|
23
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
24
|
+
imageBehavior: CMSIBCommonInterface;
|
|
25
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
26
|
+
itemPadding: CMSIBCommonInterface;
|
|
27
|
+
ItemContentAlignment: CMSIBCommonInterface;
|
|
28
|
+
overflowItems: CMSIBCommonInterface;
|
|
29
|
+
}
|
|
30
|
+
interface selfDesignInterface {
|
|
31
|
+
selectorKey: string;
|
|
32
|
+
}
|
|
33
|
+
export declare enum UOMSelectorKeysEnum {
|
|
34
|
+
LAYOUT = "layout",
|
|
35
|
+
CONTENT = "content",
|
|
36
|
+
DESIGN = "design"
|
|
37
|
+
}
|
|
38
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
optionSelection: CMSIBCommonInterface;
|
|
6
|
+
displayStyle: CMSIBCommonInterface;
|
|
7
|
+
displayOutOfStockValues: CMSIBCommonInterface;
|
|
8
|
+
notifyMeButton: CMSIBCommonInterface;
|
|
9
|
+
quantitySelectorForVariantSelector: CMSIBCommonInterface;
|
|
10
|
+
dividerBetweenItems: CMSIBCommonInterface;
|
|
11
|
+
optionTitleValueSpacing: CMSIBCommonInterface;
|
|
12
|
+
remainingDisplayStyle: CMSIBCommonInterface;
|
|
13
|
+
allowUserToSearch: CMSIBCommonInterface;
|
|
14
|
+
allowUserToFilter: CMSIBCommonInterface;
|
|
15
|
+
swatchTypeDisplayStyle: {
|
|
16
|
+
selectorKey: string;
|
|
17
|
+
displayValues: CMSIBCommonInterface;
|
|
18
|
+
itemPadding: CMSIBCommonInterface;
|
|
19
|
+
itemSpacing: CMSIBCommonInterface;
|
|
20
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
21
|
+
overflowItems: CMSIBCommonInterface;
|
|
22
|
+
swatchImageType: CMSIBCommonInterface;
|
|
23
|
+
};
|
|
24
|
+
singleSelectDisplayStyle: {
|
|
25
|
+
selectorKey: string;
|
|
26
|
+
displayValues: CMSIBCommonInterface;
|
|
27
|
+
itemSpacing: CMSIBCommonInterface;
|
|
28
|
+
itemPadding: CMSIBCommonInterface;
|
|
29
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
30
|
+
overflowItems: CMSIBCommonInterface;
|
|
31
|
+
imageBehaviour: CMSIBCommonInterface;
|
|
32
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
33
|
+
itemContentAlignment: CMSIBCommonInterface;
|
|
34
|
+
overflowDirection: CMSIBCommonInterface;
|
|
35
|
+
};
|
|
36
|
+
dropdownDisplayStyle: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
dropdownOptionsSpacing: CMSIBCommonInterface;
|
|
39
|
+
dropdownOptionsPadding: CMSIBCommonInterface;
|
|
40
|
+
dropdownStyle: CMSIBCommonInterface;
|
|
41
|
+
optionAndListSpacing: CMSIBCommonInterface;
|
|
42
|
+
dropdownListItemSpacing: CMSIBCommonInterface;
|
|
43
|
+
dropdownListItemPadding: CMSIBCommonInterface;
|
|
44
|
+
dividerBetweenListItems: CMSIBCommonInterface;
|
|
45
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
46
|
+
overflowItems: CMSIBCommonInterface;
|
|
47
|
+
};
|
|
48
|
+
groupedOptionsDisplayStyle: {
|
|
49
|
+
selectorKey: string;
|
|
50
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
51
|
+
groupSpacing: CMSIBCommonInterface;
|
|
52
|
+
groupPadding: CMSIBCommonInterface;
|
|
53
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
54
|
+
tabDirection: CMSIBCommonInterface;
|
|
55
|
+
tabLayout: CMSIBCommonInterface;
|
|
56
|
+
tabAlignment: CMSIBCommonInterface;
|
|
57
|
+
tabSpacing: CMSIBCommonInterface;
|
|
58
|
+
tabAndContainerSpacing: CMSIBCommonInterface;
|
|
59
|
+
tabHorizontalPadding: CMSIBCommonInterface;
|
|
60
|
+
tabVerticalPadding: CMSIBCommonInterface;
|
|
61
|
+
containerPadding: CMSIBCommonInterface;
|
|
62
|
+
overflowItems: CMSIBCommonInterface;
|
|
63
|
+
tabRowSpacing: CMSIBCommonInterface;
|
|
64
|
+
expandIconPositon: CMSIBCommonInterface;
|
|
65
|
+
expandFirstItemByDefault: CMSIBCommonInterface;
|
|
66
|
+
allowMultipleOpenItems: CMSIBCommonInterface;
|
|
67
|
+
itemDividers: CMSIBCommonInterface;
|
|
68
|
+
accordionSpacing: CMSIBCommonInterface;
|
|
69
|
+
accordionAndContainerSpacing: CMSIBCommonInterface;
|
|
70
|
+
accordionHorizontalPadding: CMSIBCommonInterface;
|
|
71
|
+
accordionVerticalPadding: CMSIBCommonInterface;
|
|
72
|
+
groupAndContainerSpacing: CMSIBCommonInterface;
|
|
73
|
+
groupHorizontalPadding: CMSIBCommonInterface;
|
|
74
|
+
groupVerticalPadding: CMSIBCommonInterface;
|
|
75
|
+
canCollapseGroups: CMSIBCommonInterface;
|
|
76
|
+
collapseIconPosition: CMSIBCommonInterface;
|
|
77
|
+
};
|
|
78
|
+
tableDisplayStyle: {
|
|
79
|
+
selectorKey: string;
|
|
80
|
+
header: CMSIBCommonInterface;
|
|
81
|
+
headerHeight: CMSIBCommonInterface;
|
|
82
|
+
rowHeight: CMSIBCommonInterface;
|
|
83
|
+
headerDivider: CMSIBCommonInterface;
|
|
84
|
+
rowDivider: CMSIBCommonInterface;
|
|
85
|
+
columnDivider: CMSIBCommonInterface;
|
|
86
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
87
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
88
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
89
|
+
contentAlignment: CMSIBCommonInterface;
|
|
90
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
91
|
+
overflowControl: CMSIBCommonInterface;
|
|
92
|
+
showMoreRows: CMSIBCommonInterface;
|
|
93
|
+
paginationType: CMSIBCommonInterface;
|
|
94
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
95
|
+
};
|
|
96
|
+
groupedTableDisplayStyle: {
|
|
97
|
+
selectorKey: string;
|
|
98
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
99
|
+
groupSpacing: CMSIBCommonInterface;
|
|
100
|
+
groupPadding: CMSIBCommonInterface;
|
|
101
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
interface selfDesignInterface {
|
|
105
|
+
selectorKey: string;
|
|
106
|
+
}
|
|
107
|
+
export declare enum VariantPickerSelectorKeysEnum {
|
|
108
|
+
LAYOUT = "layout",
|
|
109
|
+
CONTENT = "content",
|
|
110
|
+
DESIGN = "design",
|
|
111
|
+
SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
|
|
112
|
+
SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
|
|
113
|
+
DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
|
|
114
|
+
GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
|
|
115
|
+
TABLE_DISPLAY_STYLE = "tableDisplayStyle",
|
|
116
|
+
GROUPED_TABLE_DISPLAY_STYLE = "groupedTableDisplayStyle"
|
|
117
|
+
}
|
|
118
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
119
|
+
export {};
|
|
@@ -32,5 +32,6 @@ export type CMSEditControlsTypes = "Slider" | "Settings" | string;
|
|
|
32
32
|
export type GlobalVideoAttributes = "src" | "poster" | "controls" | "autoplay" | "loop" | "muted" | "preload" | "crossOrigin" | "playsInline";
|
|
33
33
|
export type CommonBuilderAttributes = "dataDivType" | "dataType" | "dataElementType" | "dataWidgetType" | "dataElementSubChild";
|
|
34
34
|
export type GlobalTableAttributes = "cellPadding" | "cellSpacing" | "border" | "width" | "height" | "align" | "bgColor" | "frame" | "headers" | "rows" | "rules";
|
|
35
|
+
export type StackDirectionType = "horizontal" | "vertical";
|
|
35
36
|
export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
|
|
36
37
|
export type ObjectPositionValue = string;
|