@sc-360-v2/storefront-cms-library 0.2.65 → 0.2.67
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/customization-tree.scss +79 -0
- package/dist/globals.scss +94 -94
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modal.scss +142 -0
- package/dist/types/builder/elements/line/index.d.ts +27 -0
- package/dist/types/builder/elements/repeater/index.d.ts +1 -0
- package/dist/types/builder/elements/section/index.d.ts +6 -2
- package/dist/types/builder/enums/index.d.ts +6 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/allocationDetails.d.ts +16 -0
- package/dist/types/builder/tools/element-edit/allocations.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/cartDetails.d.ts +325 -25
- package/dist/types/builder/tools/element-edit/cartSummary.d.ts +21 -0
- package/dist/types/builder/tools/element-edit/imageHotspot.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +4 -1
- package/dist/types/builder/tools/element-edit/lightBoxV2.d.ts +1 -1
- package/dist/types/builder/tools/element-edit/line.d.ts +161 -0
- package/dist/types/builder/tools/element-edit/menu.d.ts +1 -1
- package/dist/types/builder/tools/element-edit/social.d.ts +17 -2
- package/dist/types/builder/utilities/global.d.ts +1 -0
- package/dist/widget.scss +2 -0
- package/package.json +1 -1
package/dist/modal.scss
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// Variables
|
|
2
|
+
$modal_background_color: white;
|
|
3
|
+
$backdrop_color: rgba(0, 0, 0, 0.2);
|
|
4
|
+
$box_shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
5
|
+
$modal_width: 618px;
|
|
6
|
+
$modal_padding: 20px 0;
|
|
7
|
+
$border_radius: 10px;
|
|
8
|
+
$header_font_size: 18px;
|
|
9
|
+
$header_font_weight: 600;
|
|
10
|
+
$close_btn_font_size: 24px;
|
|
11
|
+
$close_btn_size: 35px;
|
|
12
|
+
$footer_btn_background_color: #ffffff;
|
|
13
|
+
$footer_btn_padding: 10px 15px;
|
|
14
|
+
$footer_btn_font_size: 14px;
|
|
15
|
+
$primary_100: var(--Primary-100, #ced4f6);
|
|
16
|
+
$primary_500: var(--Primary-500, #162578);
|
|
17
|
+
$gray_900: var(--Gray-900, #101828);
|
|
18
|
+
$gap_between_elements: 10px;
|
|
19
|
+
$padding_horizontal: 24px;
|
|
20
|
+
$box_shadow_active: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
21
|
+
$divider_color: #eaecf0;
|
|
22
|
+
$border_color: #d0d5dd;
|
|
23
|
+
$modal_padding_body: 10px $padding_horizontal;
|
|
24
|
+
$btn_margin: 0 5px;
|
|
25
|
+
$divider_height: 1px;
|
|
26
|
+
$inactive_btn_text_color: #fff;
|
|
27
|
+
$active_btn_text_color: #fff;
|
|
28
|
+
|
|
29
|
+
@mixin flexbox($justify: flex-start, $align: center, $gap: 12px) {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: $justify;
|
|
32
|
+
align-items: $align;
|
|
33
|
+
gap: $gap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.modal-main-element {
|
|
37
|
+
.modal-backdrop {
|
|
38
|
+
position: fixed;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
background-color: $backdrop_color;
|
|
44
|
+
z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
|
|
45
|
+
animation: fadeIn 0.4s forwards;
|
|
46
|
+
cursor: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.modal-container {
|
|
50
|
+
position: fixed;
|
|
51
|
+
top: 50%;
|
|
52
|
+
left: 50%;
|
|
53
|
+
transform: translate(-50%, -50%);
|
|
54
|
+
background-color: $modal_background_color;
|
|
55
|
+
width: var(--_sf-ml-wh, 850px);
|
|
56
|
+
max-width: min(75%, 850px);
|
|
57
|
+
padding: $modal_padding;
|
|
58
|
+
box-shadow: $box_shadow;
|
|
59
|
+
border-radius: $border_radius;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: $gap_between_elements;
|
|
63
|
+
z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
|
|
64
|
+
max-height: calc(100vh - 40px);
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
cursor: auto;
|
|
67
|
+
|
|
68
|
+
&.media__modal {
|
|
69
|
+
width: 60%;
|
|
70
|
+
|
|
71
|
+
.modal-body {
|
|
72
|
+
padding: 0 16px;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.modal-footer {
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
gap: 12px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.modal-header {
|
|
84
|
+
padding: 0 $padding_horizontal;
|
|
85
|
+
position: relative;
|
|
86
|
+
|
|
87
|
+
h2 {
|
|
88
|
+
font-size: $header_font_size;
|
|
89
|
+
font-weight: $header_font_weight;
|
|
90
|
+
margin: 0;
|
|
91
|
+
color: $gray_900;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
p {
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: #475467;
|
|
97
|
+
margin-top: 4px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.modal-close-btn {
|
|
101
|
+
position: absolute;
|
|
102
|
+
right: $padding_horizontal;
|
|
103
|
+
top: 10px;
|
|
104
|
+
width: $close_btn_size;
|
|
105
|
+
height: $close_btn_size;
|
|
106
|
+
font-size: $close_btn_font_size;
|
|
107
|
+
background: none;
|
|
108
|
+
border: none;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
|
|
114
|
+
svg {
|
|
115
|
+
width: 20px;
|
|
116
|
+
height: 20px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.modal-body {
|
|
122
|
+
padding: $modal_padding_body;
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
color: $gray_900;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.modal-footer {
|
|
128
|
+
@include flexbox(flex-end, center, 10px);
|
|
129
|
+
padding: 10px $padding_horizontal;
|
|
130
|
+
border-top: 1px solid $divider_color;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes fadeIn {
|
|
135
|
+
from {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
to {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
2
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface LineStyleProperties extends CommonStyleProperties {
|
|
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: () => LineStyleProperties;
|
|
18
|
+
export interface CMSLineInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: LineStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
content: string;
|
|
27
|
+
}
|
|
@@ -42,7 +42,6 @@ export interface SectionVariationInterface {
|
|
|
42
42
|
CUSTOM?: any;
|
|
43
43
|
};
|
|
44
44
|
styles?: SectionStyleProperties;
|
|
45
|
-
editedStyles?: CommonStyleProperties;
|
|
46
45
|
sectionStyles?: CommonStyleProperties;
|
|
47
46
|
grids?: CMSGridsContainer;
|
|
48
47
|
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
@@ -50,11 +49,13 @@ export interface SectionVariationInterface {
|
|
|
50
49
|
gtc?: CMSGridsContainer;
|
|
51
50
|
gtr?: CMSGridsContainer;
|
|
52
51
|
childIds: any[];
|
|
53
|
-
varaitionId?: string | any;
|
|
54
52
|
default?: boolean;
|
|
55
53
|
uniqueKey?: any;
|
|
56
54
|
selfKey?: any;
|
|
57
55
|
childIdsV2?: any[];
|
|
56
|
+
editedStyles?: Record<string, any>;
|
|
57
|
+
controls?: Record<string, any>;
|
|
58
|
+
sectionVariantID?: string;
|
|
58
59
|
}
|
|
59
60
|
export interface CMSSectionInterface {
|
|
60
61
|
id?: string | number;
|
|
@@ -70,4 +71,7 @@ export interface CMSSectionInterface {
|
|
|
70
71
|
pageId?: string;
|
|
71
72
|
deviceVisibility?: CMSDeviceVisibilityOptionInterface;
|
|
72
73
|
dynamicRulesId?: any;
|
|
74
|
+
editedStyles?: Record<string, any>;
|
|
75
|
+
controls?: Record<string, any>;
|
|
76
|
+
sectionID?: any;
|
|
73
77
|
}
|
|
@@ -277,6 +277,9 @@ export declare const CMSElementsListEnum: {
|
|
|
277
277
|
SEARCH_RESULTS_HEADING: string;
|
|
278
278
|
ITEM_STOCK: string;
|
|
279
279
|
CART_DETAILS: string;
|
|
280
|
+
CART_SUMMARY: string;
|
|
281
|
+
ALLOCATION_DETAILS: string;
|
|
282
|
+
LINE: string;
|
|
280
283
|
};
|
|
281
284
|
export declare enum CMSResponsiveModeEnums {
|
|
282
285
|
DESKTOP = "desktop",
|
|
@@ -336,3 +339,6 @@ export declare enum FlexAppVersionEnums {
|
|
|
336
339
|
NESTEDJSON = 1,
|
|
337
340
|
FLATJSON = 2
|
|
338
341
|
}
|
|
342
|
+
export declare enum FlexDefaultValues {
|
|
343
|
+
FLEXLIGHTBOXCLOSEBTN = "isLightboxCloseIconKey"
|
|
344
|
+
}
|
|
@@ -56,4 +56,5 @@ import * as resetPasswordSchema from "./elements/reset-password/index";
|
|
|
56
56
|
import * as categoryDetailsSchema from "./elements/category-details/index";
|
|
57
57
|
import * as searchResultsHeadingSchema from "./elements/search-results-heading/index";
|
|
58
58
|
import * as itemStockSchema from "./elements/item-stock/index";
|
|
59
|
-
|
|
59
|
+
import * as lineItemSchema from "./elements/line/index";
|
|
60
|
+
export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum SelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
CONTENT = "content",
|
|
13
|
+
DESIGN = "design"
|
|
14
|
+
}
|
|
15
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
16
|
+
export {};
|
|
@@ -5,6 +5,7 @@ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface
|
|
|
5
5
|
interface selfLayoutInterface {
|
|
6
6
|
selectorKey: string;
|
|
7
7
|
displayStyle: CMSIBCommonInterface;
|
|
8
|
+
displayType: CMSIBCommonInterface;
|
|
8
9
|
rowsToDisplay: CMSIBCommonInterface;
|
|
9
10
|
spacingBetweenItems: CMSIBCommonInterface;
|
|
10
11
|
overflowControl: CMSIBCommonInterface;
|
|
@@ -1,32 +1,332 @@
|
|
|
1
|
+
import { CMSCSSUnitTypesEnums, CMSElementEditTypes } from "../../enums";
|
|
1
2
|
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
-
import {
|
|
3
|
+
import { CMSElementEditPopupInterface } from "./common";
|
|
3
4
|
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
4
5
|
}
|
|
5
|
-
interface selfLayoutInterface {
|
|
6
|
-
selectorKey: string;
|
|
7
|
-
showTitle: CMSIBCommonInterface;
|
|
8
|
-
showNumberOfItems: CMSIBCommonInterface;
|
|
9
|
-
showActions: CMSIBCommonInterface;
|
|
10
|
-
showContinueShopping: CMSIBCommonInterface;
|
|
11
|
-
continueShoppingLinkTo: CMSIBCommonInterface;
|
|
12
|
-
continueShoppingLink: CMSIBCommonInterface;
|
|
13
|
-
showAddFromWishlist: CMSIBCommonInterface;
|
|
14
|
-
showCartGrouping: CMSIBCommonInterface;
|
|
15
|
-
showClearCart: CMSIBCommonInterface;
|
|
16
|
-
clearCartLinkTo: CMSIBCommonInterface;
|
|
17
|
-
clearCartLink: CMSIBCommonInterface;
|
|
18
|
-
showDownloadCart: CMSIBCommonInterface;
|
|
19
|
-
showShareCart: CMSIBCommonInterface;
|
|
20
|
-
showPrintCart: CMSIBCommonInterface;
|
|
21
|
-
maxNumberOfActionsToShow: CMSIBCommonInterface;
|
|
22
|
-
}
|
|
23
|
-
interface selfDesignInterface {
|
|
24
|
-
selectorKey: string;
|
|
25
|
-
}
|
|
26
6
|
export declare enum SelectorKeysEnum {
|
|
27
7
|
LAYOUT = "layout",
|
|
28
8
|
CONTENT = "content",
|
|
29
|
-
DESIGN = "design"
|
|
9
|
+
DESIGN = "design",
|
|
10
|
+
CART_HEADING_STYLES = "cartHeadingStyles",
|
|
11
|
+
CART_ACTION_STYLES = "cartActionStyles",
|
|
12
|
+
PRODUCT_ACTIONS_STYLES = "productActionsStyles",
|
|
13
|
+
PRODUCT_NAME_STYLES = "productNameStyles",
|
|
14
|
+
PRODUCT_PRICE_STYLES = "productPriceStyles",
|
|
15
|
+
PRODUCT_INFORMATION_STYLES = "productInformationStyles",
|
|
16
|
+
PRODUCT_QUANTITY_STYLES = "productQuantityStyles"
|
|
30
17
|
}
|
|
31
|
-
export declare const getDefaultData: () =>
|
|
32
|
-
|
|
18
|
+
export declare const getDefaultData: () => {
|
|
19
|
+
layout: {
|
|
20
|
+
selectorKey: SelectorKeysEnum;
|
|
21
|
+
width: {
|
|
22
|
+
value: number;
|
|
23
|
+
unit: CMSCSSUnitTypesEnums;
|
|
24
|
+
};
|
|
25
|
+
height: {
|
|
26
|
+
value: number;
|
|
27
|
+
unit: CMSCSSUnitTypesEnums;
|
|
28
|
+
property?: any;
|
|
29
|
+
propertyType?: any;
|
|
30
|
+
isReadOnly?: boolean | undefined;
|
|
31
|
+
parentRef?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
34
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
35
|
+
overflowContent: CMSIBCommonInterface | undefined;
|
|
36
|
+
scrollDirection: CMSIBCommonInterface | undefined;
|
|
37
|
+
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
38
|
+
positionType: CMSIBCommonInterface | undefined;
|
|
39
|
+
pinTo: CMSIBCommonInterface | undefined;
|
|
40
|
+
showTitle: {
|
|
41
|
+
value: boolean;
|
|
42
|
+
property: string;
|
|
43
|
+
propertyType: CMSElementEditTypes;
|
|
44
|
+
};
|
|
45
|
+
showNumberOfItems: {
|
|
46
|
+
value: boolean;
|
|
47
|
+
property: string;
|
|
48
|
+
propertyType: CMSElementEditTypes;
|
|
49
|
+
};
|
|
50
|
+
showActions: {
|
|
51
|
+
value: boolean;
|
|
52
|
+
property: string;
|
|
53
|
+
propertyType: CMSElementEditTypes;
|
|
54
|
+
};
|
|
55
|
+
showContinueShopping: {
|
|
56
|
+
value: boolean;
|
|
57
|
+
property: string;
|
|
58
|
+
propertyType: CMSElementEditTypes;
|
|
59
|
+
};
|
|
60
|
+
continueShoppingLinkTo: {
|
|
61
|
+
value: string;
|
|
62
|
+
property: string;
|
|
63
|
+
propertyType: CMSElementEditTypes;
|
|
64
|
+
};
|
|
65
|
+
continueShoppingLink: {
|
|
66
|
+
value: string;
|
|
67
|
+
property: string;
|
|
68
|
+
propertyType: CMSElementEditTypes;
|
|
69
|
+
};
|
|
70
|
+
showAddFromWishlist: {
|
|
71
|
+
value: boolean;
|
|
72
|
+
property: string;
|
|
73
|
+
propertyType: CMSElementEditTypes;
|
|
74
|
+
};
|
|
75
|
+
showCartGrouping: {
|
|
76
|
+
value: boolean;
|
|
77
|
+
property: string;
|
|
78
|
+
propertyType: CMSElementEditTypes;
|
|
79
|
+
};
|
|
80
|
+
showClearCart: {
|
|
81
|
+
value: boolean;
|
|
82
|
+
property: string;
|
|
83
|
+
propertyType: CMSElementEditTypes;
|
|
84
|
+
};
|
|
85
|
+
clearCartLinkTo: {
|
|
86
|
+
value: string;
|
|
87
|
+
property: string;
|
|
88
|
+
propertyType: CMSElementEditTypes;
|
|
89
|
+
};
|
|
90
|
+
clearCartLink: {
|
|
91
|
+
value: string;
|
|
92
|
+
property: string;
|
|
93
|
+
propertyType: CMSElementEditTypes;
|
|
94
|
+
};
|
|
95
|
+
showDownloadCart: {
|
|
96
|
+
value: boolean;
|
|
97
|
+
property: string;
|
|
98
|
+
propertyType: CMSElementEditTypes;
|
|
99
|
+
};
|
|
100
|
+
showShareCart: {
|
|
101
|
+
value: boolean;
|
|
102
|
+
property: string;
|
|
103
|
+
propertyType: CMSElementEditTypes;
|
|
104
|
+
};
|
|
105
|
+
showPrintCart: {
|
|
106
|
+
value: boolean;
|
|
107
|
+
property: string;
|
|
108
|
+
propertyType: CMSElementEditTypes;
|
|
109
|
+
};
|
|
110
|
+
maxNumberOfActionsToShow: {
|
|
111
|
+
value: number;
|
|
112
|
+
property: string;
|
|
113
|
+
propertyType: CMSElementEditTypes;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
design: {
|
|
117
|
+
selectorKey: SelectorKeysEnum;
|
|
118
|
+
cardHeadingStyles: {
|
|
119
|
+
theme: CMSIBCommonInterface;
|
|
120
|
+
font: CMSIBCommonInterface;
|
|
121
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
122
|
+
textColor: CMSIBCommonInterface;
|
|
123
|
+
bold: CMSIBCommonInterface;
|
|
124
|
+
italic: CMSIBCommonInterface;
|
|
125
|
+
linethrough: CMSIBCommonInterface;
|
|
126
|
+
underline: CMSIBCommonInterface;
|
|
127
|
+
textAlign: CMSIBCommonInterface;
|
|
128
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
129
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
130
|
+
backgroundColor: CMSIBCommonInterface;
|
|
131
|
+
selectorKey: SelectorKeysEnum;
|
|
132
|
+
showShadow: CMSIBCommonInterface;
|
|
133
|
+
shadowColor: CMSIBCommonInterface;
|
|
134
|
+
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
135
|
+
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
136
|
+
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
137
|
+
};
|
|
138
|
+
cardActionStyles: {
|
|
139
|
+
theme: CMSIBCommonInterface;
|
|
140
|
+
font: CMSIBCommonInterface;
|
|
141
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
142
|
+
textColor: CMSIBCommonInterface;
|
|
143
|
+
bold: CMSIBCommonInterface;
|
|
144
|
+
italic: CMSIBCommonInterface;
|
|
145
|
+
linethrough: CMSIBCommonInterface;
|
|
146
|
+
underline: CMSIBCommonInterface;
|
|
147
|
+
textAlign: CMSIBCommonInterface;
|
|
148
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
149
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
150
|
+
backgroundColor: CMSIBCommonInterface;
|
|
151
|
+
borderColor: CMSIBCommonInterface;
|
|
152
|
+
borderStyle: CMSIBCommonInterface;
|
|
153
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
154
|
+
showBorder: CMSIBCommonInterface;
|
|
155
|
+
showShadow: CMSIBCommonInterface;
|
|
156
|
+
shadowColor: CMSIBCommonInterface;
|
|
157
|
+
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
158
|
+
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
159
|
+
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
160
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
161
|
+
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
162
|
+
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
163
|
+
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
164
|
+
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
165
|
+
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
166
|
+
selectorKey: SelectorKeysEnum;
|
|
167
|
+
};
|
|
168
|
+
productActionsStyles: {
|
|
169
|
+
theme: CMSIBCommonInterface;
|
|
170
|
+
font: CMSIBCommonInterface;
|
|
171
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
172
|
+
textColor: CMSIBCommonInterface;
|
|
173
|
+
bold: CMSIBCommonInterface;
|
|
174
|
+
italic: CMSIBCommonInterface;
|
|
175
|
+
linethrough: CMSIBCommonInterface;
|
|
176
|
+
underline: CMSIBCommonInterface;
|
|
177
|
+
textAlign: CMSIBCommonInterface;
|
|
178
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
179
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
180
|
+
backgroundColor: CMSIBCommonInterface;
|
|
181
|
+
borderColor: CMSIBCommonInterface;
|
|
182
|
+
borderStyle: CMSIBCommonInterface;
|
|
183
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
184
|
+
showBorder: CMSIBCommonInterface;
|
|
185
|
+
showShadow: CMSIBCommonInterface;
|
|
186
|
+
shadowColor: CMSIBCommonInterface;
|
|
187
|
+
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
188
|
+
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
189
|
+
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
190
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
191
|
+
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
192
|
+
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
193
|
+
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
194
|
+
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
195
|
+
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
196
|
+
selectorKey: SelectorKeysEnum;
|
|
197
|
+
};
|
|
198
|
+
productNameStyles: {
|
|
199
|
+
theme: CMSIBCommonInterface;
|
|
200
|
+
font: CMSIBCommonInterface;
|
|
201
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
202
|
+
textColor: CMSIBCommonInterface;
|
|
203
|
+
bold: CMSIBCommonInterface;
|
|
204
|
+
italic: CMSIBCommonInterface;
|
|
205
|
+
linethrough: CMSIBCommonInterface;
|
|
206
|
+
underline: CMSIBCommonInterface;
|
|
207
|
+
textAlign: CMSIBCommonInterface;
|
|
208
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
209
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
210
|
+
backgroundColor: CMSIBCommonInterface;
|
|
211
|
+
selectorKey: SelectorKeysEnum;
|
|
212
|
+
};
|
|
213
|
+
productPriceStyles: {
|
|
214
|
+
theme: CMSIBCommonInterface;
|
|
215
|
+
font: CMSIBCommonInterface;
|
|
216
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
217
|
+
textColor: CMSIBCommonInterface;
|
|
218
|
+
bold: CMSIBCommonInterface;
|
|
219
|
+
italic: CMSIBCommonInterface;
|
|
220
|
+
linethrough: CMSIBCommonInterface;
|
|
221
|
+
underline: CMSIBCommonInterface;
|
|
222
|
+
textAlign: CMSIBCommonInterface;
|
|
223
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
224
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
225
|
+
backgroundColor: CMSIBCommonInterface;
|
|
226
|
+
selectorKey: SelectorKeysEnum;
|
|
227
|
+
};
|
|
228
|
+
productInformationStyles: {
|
|
229
|
+
theme: CMSIBCommonInterface;
|
|
230
|
+
font: CMSIBCommonInterface;
|
|
231
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
232
|
+
textColor: CMSIBCommonInterface;
|
|
233
|
+
bold: CMSIBCommonInterface;
|
|
234
|
+
italic: CMSIBCommonInterface;
|
|
235
|
+
linethrough: CMSIBCommonInterface;
|
|
236
|
+
underline: CMSIBCommonInterface;
|
|
237
|
+
textAlign: CMSIBCommonInterface;
|
|
238
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
239
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
240
|
+
backgroundColor: CMSIBCommonInterface;
|
|
241
|
+
selectorKey: SelectorKeysEnum;
|
|
242
|
+
};
|
|
243
|
+
productQuantityStyles: {
|
|
244
|
+
theme: CMSIBCommonInterface;
|
|
245
|
+
font: CMSIBCommonInterface;
|
|
246
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
247
|
+
textColor: CMSIBCommonInterface;
|
|
248
|
+
bold: CMSIBCommonInterface;
|
|
249
|
+
italic: CMSIBCommonInterface;
|
|
250
|
+
linethrough: CMSIBCommonInterface;
|
|
251
|
+
underline: CMSIBCommonInterface;
|
|
252
|
+
textAlign: CMSIBCommonInterface;
|
|
253
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
254
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
255
|
+
backgroundColor: CMSIBCommonInterface;
|
|
256
|
+
borderColor: CMSIBCommonInterface;
|
|
257
|
+
borderStyle: CMSIBCommonInterface;
|
|
258
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
259
|
+
showBorder: CMSIBCommonInterface;
|
|
260
|
+
showShadow: CMSIBCommonInterface;
|
|
261
|
+
shadowColor: CMSIBCommonInterface;
|
|
262
|
+
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
263
|
+
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
264
|
+
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
265
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
266
|
+
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
267
|
+
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
268
|
+
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
269
|
+
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
270
|
+
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
271
|
+
selectorKey: SelectorKeysEnum;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
content: {
|
|
275
|
+
selectorKey: SelectorKeysEnum;
|
|
276
|
+
title: {
|
|
277
|
+
value: string;
|
|
278
|
+
property: string;
|
|
279
|
+
propertyType: CMSElementEditTypes;
|
|
280
|
+
};
|
|
281
|
+
showProductTitle: {
|
|
282
|
+
value: boolean;
|
|
283
|
+
property: string;
|
|
284
|
+
propertyType: CMSElementEditTypes;
|
|
285
|
+
};
|
|
286
|
+
showQuantity: {
|
|
287
|
+
value: boolean;
|
|
288
|
+
property: string;
|
|
289
|
+
propertyType: CMSElementEditTypes;
|
|
290
|
+
};
|
|
291
|
+
showPrice: {
|
|
292
|
+
value: boolean;
|
|
293
|
+
property: string;
|
|
294
|
+
propertyType: CMSElementEditTypes;
|
|
295
|
+
};
|
|
296
|
+
showProductCode: {
|
|
297
|
+
value: boolean;
|
|
298
|
+
property: string;
|
|
299
|
+
propertyType: CMSElementEditTypes;
|
|
300
|
+
};
|
|
301
|
+
showOptions: {
|
|
302
|
+
value: boolean;
|
|
303
|
+
property: string;
|
|
304
|
+
propertyType: CMSElementEditTypes;
|
|
305
|
+
};
|
|
306
|
+
showProductImage: {
|
|
307
|
+
value: boolean;
|
|
308
|
+
property: string;
|
|
309
|
+
propertyType: CMSElementEditTypes;
|
|
310
|
+
};
|
|
311
|
+
showCustomizations: {
|
|
312
|
+
value: boolean;
|
|
313
|
+
property: string;
|
|
314
|
+
propertyType: CMSElementEditTypes;
|
|
315
|
+
};
|
|
316
|
+
showEdit: {
|
|
317
|
+
value: boolean;
|
|
318
|
+
property: string;
|
|
319
|
+
propertyType: CMSElementEditTypes;
|
|
320
|
+
};
|
|
321
|
+
showMoveToWishlist: {
|
|
322
|
+
value: boolean;
|
|
323
|
+
property: string;
|
|
324
|
+
propertyType: CMSElementEditTypes;
|
|
325
|
+
};
|
|
326
|
+
showRemove: {
|
|
327
|
+
value: boolean;
|
|
328
|
+
property: string;
|
|
329
|
+
propertyType: CMSElementEditTypes;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
4
|
+
}
|
|
5
|
+
interface selfLayoutInterface {
|
|
6
|
+
selectorKey: string;
|
|
7
|
+
showTitle: CMSIBCommonInterface;
|
|
8
|
+
showNumberOfItems: CMSIBCommonInterface;
|
|
9
|
+
showEnterCouponCode: CMSIBCommonInterface;
|
|
10
|
+
showSubTotal: CMSIBCommonInterface;
|
|
11
|
+
}
|
|
12
|
+
interface selfDesignInterface {
|
|
13
|
+
selectorKey: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum SelectorKeysEnum {
|
|
16
|
+
LAYOUT = "layout",
|
|
17
|
+
CONTENT = "content",
|
|
18
|
+
DESIGN = "design"
|
|
19
|
+
}
|
|
20
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
21
|
+
export {};
|
|
@@ -69,4 +69,7 @@ import * as iconLibrary from "./iconLibrary";
|
|
|
69
69
|
import * as searchResultsHeading from "./searchResultsHeading";
|
|
70
70
|
import * as itemStock from "./itemStock";
|
|
71
71
|
import * as cartDetails from "./cartDetails";
|
|
72
|
-
|
|
72
|
+
import * as cartSummary from "./cartSummary";
|
|
73
|
+
import * as allocationDetails from "./allocationDetails";
|
|
74
|
+
import * as line from "./line";
|
|
75
|
+
export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, allocationDetails, line, };
|
|
@@ -4,7 +4,7 @@ interface selfLayoutInterface {
|
|
|
4
4
|
selectorKey: string;
|
|
5
5
|
automaticallyOpenLightbox: CMSIBCommonInterface;
|
|
6
6
|
selectPage: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
7
|
-
value: any;
|
|
7
|
+
value: any[];
|
|
8
8
|
};
|
|
9
9
|
delay: CMSIBSizeInterface;
|
|
10
10
|
closeOnXIcon: CMSIBCommonInterface;
|