@sc-360-v2/storefront-cms-library 0.3.61 → 0.3.63
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/add-products-tab copy.scss +9 -8
- package/dist/add-products-tab.scss +9 -8
- package/dist/badge.scss +87 -83
- package/dist/builder.js +1 -1
- package/dist/buyForHeaders.scss +6086 -1184
- package/dist/cart-details.scss +26 -22
- package/dist/cart-summary.scss +17 -143
- package/dist/cart-wrapper.scss +127 -0
- package/dist/cartDropdownOverlay.scss +23 -4
- package/dist/checkout.scss +96 -573
- package/dist/dropdownTemplate.scss +58 -4
- package/dist/icon-list.scss +25 -19
- package/dist/icons.js +1 -1
- package/dist/image-for-product.scss +19 -0
- package/dist/index.js +1 -1
- package/dist/item-stock.scss +27 -26
- package/dist/mega-menu-container.scss +96 -0
- package/dist/mega-menu.scss +832 -0
- package/dist/menu-v2.scss +30 -5
- package/dist/modal.scss +168 -8
- package/dist/order-status.scss +18 -15
- package/dist/past-orders.scss +279 -271
- package/dist/payment-methods.scss +72 -69
- package/dist/position-module.scss +2 -1
- package/dist/prefix-list.scss +3 -0
- package/dist/quick-links.scss +49 -46
- package/dist/quick-order-pad.scss +3 -0
- package/dist/quotes.scss +123 -117
- package/dist/rfqs.scss +123 -117
- package/dist/simple-list.scss +264 -0
- package/dist/table.scss +3 -9
- package/dist/templates.scss +299 -0
- package/dist/types/builder/elements/cart-wrapper/index.d.ts +44 -0
- package/dist/types/builder/elements/mega-menu/index.d.ts +47 -0
- package/dist/types/builder/elements/mega-menu-container/index.d.ts +44 -0
- package/dist/types/builder/elements/simple-list/index.d.ts +47 -0
- package/dist/types/builder/enums/index.d.ts +7 -1
- package/dist/types/builder/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/cart-wrapper.d.ts +16 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/mega-menu.d.ts +41 -0
- package/dist/types/builder/tools/element-edit/megaMenuContainer.d.ts +9 -0
- package/dist/types/builder/tools/element-edit/simple-list.d.ts +37 -0
- package/dist/types/website/constants/data-connectors.d.ts +18 -0
- package/dist/website.js +1 -1
- package/dist/widget.scss +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
.temp_accordion_wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border-radius: 6px;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
|
|
6
|
+
.template_title {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
margin-bottom: 24px;
|
|
11
|
+
h2 {
|
|
12
|
+
font-size: 20px;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
color: var(--_gray-900);
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
gap: 4px;
|
|
18
|
+
span {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
button {
|
|
23
|
+
color: #243dc6;
|
|
24
|
+
&:hover {
|
|
25
|
+
text-decoration: underline;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.accordion_header {
|
|
31
|
+
width: fit-content;
|
|
32
|
+
text-align: left;
|
|
33
|
+
padding: 14px 0px;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
background: var(--_base-white);
|
|
37
|
+
border: none;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
transition: background 0.3s ease;
|
|
40
|
+
color: var(--_gray-700);
|
|
41
|
+
|
|
42
|
+
&.active {
|
|
43
|
+
background: var(--_base-white);
|
|
44
|
+
color: var(--_gray-900);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.accordion_content {
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
transition: all 0.3s ease;
|
|
51
|
+
background: var(--_base-white);
|
|
52
|
+
|
|
53
|
+
p {
|
|
54
|
+
margin: 0;
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
color: #333;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.embla {
|
|
61
|
+
max-width: 70rem;
|
|
62
|
+
margin: auto;
|
|
63
|
+
--slide-height: 350px;
|
|
64
|
+
--slide-spacing: 1rem;
|
|
65
|
+
--slide-size: 100%;
|
|
66
|
+
--slide-spacing-sm: 1.6rem;
|
|
67
|
+
--slide-size-sm: 50%;
|
|
68
|
+
--slide-spacing-lg: 2rem;
|
|
69
|
+
--slide-size-lg: calc(100% / 3);
|
|
70
|
+
}
|
|
71
|
+
.embla__viewport {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
position: relative;
|
|
74
|
+
}
|
|
75
|
+
.embla__container {
|
|
76
|
+
backface-visibility: hidden;
|
|
77
|
+
display: flex;
|
|
78
|
+
touch-action: pan-y pinch-zoom;
|
|
79
|
+
margin-left: calc(var(--slide-spacing) * -1);
|
|
80
|
+
}
|
|
81
|
+
@media (min-width: 750px) {
|
|
82
|
+
.embla__container {
|
|
83
|
+
margin-left: calc(var(--slide-spacing-sm) * -1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@media (min-width: 1200px) {
|
|
87
|
+
.embla__container {
|
|
88
|
+
margin-left: calc(var(--slide-spacing-lg) * -1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.embla__slide {
|
|
92
|
+
min-width: 0;
|
|
93
|
+
flex: 0 0 var(--slide-size);
|
|
94
|
+
padding-left: var(--slide-spacing);
|
|
95
|
+
}
|
|
96
|
+
@media (min-width: 750px) {
|
|
97
|
+
.embla__slide {
|
|
98
|
+
flex: 0 0 var(--slide-size-sm);
|
|
99
|
+
padding-left: var(--slide-spacing-sm);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
@media (min-width: 1200px) {
|
|
103
|
+
.embla__slide {
|
|
104
|
+
flex: 0 0 var(--slide-size-lg);
|
|
105
|
+
padding-left: var(--slide-spacing-lg);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.embla__slide__number {
|
|
109
|
+
box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
|
|
110
|
+
border-radius: 1.8rem;
|
|
111
|
+
font-size: 4rem;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
height: var(--slide-height);
|
|
117
|
+
user-select: none;
|
|
118
|
+
height: auto;
|
|
119
|
+
.product_showcase {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
gap: 16px;
|
|
123
|
+
width: 100%;
|
|
124
|
+
.sc_pro_img {
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 200px;
|
|
127
|
+
border: 1px solid var(--_gray-200);
|
|
128
|
+
border-radius: 8px;
|
|
129
|
+
font-size: 20px;
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
.sc_pro_info {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
gap: 6px;
|
|
138
|
+
.sc_pro_br_name {
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
color: var(--_gray-600);
|
|
141
|
+
}
|
|
142
|
+
.sc_pro_title {
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
color: var(--_gray-900);
|
|
145
|
+
}
|
|
146
|
+
.sc_pro_code {
|
|
147
|
+
font-size: 12px;
|
|
148
|
+
color: var(--_gray-600);
|
|
149
|
+
}
|
|
150
|
+
.sc_pro_price {
|
|
151
|
+
font-size: 20px;
|
|
152
|
+
color: var(--_gray-900);
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
.sc_pro_btn_actions {
|
|
156
|
+
display: flex;
|
|
157
|
+
gap: 8px;
|
|
158
|
+
align-items: center;
|
|
159
|
+
.btn {
|
|
160
|
+
background-color: var(--_base-white);
|
|
161
|
+
border-radius: 4px;
|
|
162
|
+
display: flex;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
color: var(--_base-white);
|
|
167
|
+
padding: 8px 16px;
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
|
|
170
|
+
&.primary {
|
|
171
|
+
background-color: var(--_primary-400);
|
|
172
|
+
width: 100%;
|
|
173
|
+
svg path {
|
|
174
|
+
stroke: var(--_base-white);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
&.show_more {
|
|
178
|
+
border: 1px solid var(--_gray-400);
|
|
179
|
+
width: fit-content;
|
|
180
|
+
align-self: stretch;
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
align-items: center;
|
|
184
|
+
gap: 3px;
|
|
185
|
+
span {
|
|
186
|
+
display: inline-block;
|
|
187
|
+
width: 3px;
|
|
188
|
+
height: 3px;
|
|
189
|
+
border-radius: 50%;
|
|
190
|
+
background-color: var(--_gray-600);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
&:hover {
|
|
194
|
+
text-decoration: none !important;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.embla__controls {
|
|
202
|
+
display: grid;
|
|
203
|
+
grid-template-columns: auto 1fr;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
gap: 1.2rem;
|
|
206
|
+
margin-top: 1.8rem;
|
|
207
|
+
}
|
|
208
|
+
.embla__buttons {
|
|
209
|
+
display: grid;
|
|
210
|
+
grid-template-columns: repeat(2, 1fr);
|
|
211
|
+
gap: 0.6rem;
|
|
212
|
+
align-items: center;
|
|
213
|
+
}
|
|
214
|
+
.embla__button {
|
|
215
|
+
-webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
|
|
216
|
+
-webkit-appearance: none;
|
|
217
|
+
appearance: none;
|
|
218
|
+
background-color: transparent;
|
|
219
|
+
touch-action: manipulation;
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
text-decoration: none;
|
|
222
|
+
cursor: pointer;
|
|
223
|
+
border: 0;
|
|
224
|
+
padding: 0;
|
|
225
|
+
margin: 0;
|
|
226
|
+
box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
|
|
227
|
+
width: 3.6rem;
|
|
228
|
+
height: 3.6rem;
|
|
229
|
+
z-index: 1;
|
|
230
|
+
border-radius: 50%;
|
|
231
|
+
color: var(--text-body);
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
&--prev {
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 28%;
|
|
238
|
+
left: -17px;
|
|
239
|
+
width: 40px;
|
|
240
|
+
height: 40px;
|
|
241
|
+
border: 1px solid var(--_gray-200);
|
|
242
|
+
background: var(--_base-white);
|
|
243
|
+
}
|
|
244
|
+
&--next {
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 28%;
|
|
247
|
+
right: -17px;
|
|
248
|
+
width: 40px;
|
|
249
|
+
height: 40px;
|
|
250
|
+
border: 1px solid var(--_gray-200);
|
|
251
|
+
background: var(--_base-white);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
.embla__button:disabled {
|
|
255
|
+
color: var(--detail-high-contrast);
|
|
256
|
+
}
|
|
257
|
+
.embla__button__svg {
|
|
258
|
+
width: 35%;
|
|
259
|
+
height: 35%;
|
|
260
|
+
}
|
|
261
|
+
.embla__dots {
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-wrap: wrap;
|
|
264
|
+
justify-content: flex-end;
|
|
265
|
+
align-items: center;
|
|
266
|
+
margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
|
|
267
|
+
}
|
|
268
|
+
.embla__dot {
|
|
269
|
+
-webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
|
|
270
|
+
-webkit-appearance: none;
|
|
271
|
+
appearance: none;
|
|
272
|
+
background-color: transparent;
|
|
273
|
+
touch-action: manipulation;
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
text-decoration: none;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
border: 0;
|
|
278
|
+
padding: 0;
|
|
279
|
+
margin: 0;
|
|
280
|
+
width: 2.6rem;
|
|
281
|
+
height: 2.6rem;
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: center;
|
|
285
|
+
border-radius: 50%;
|
|
286
|
+
}
|
|
287
|
+
.embla__dot:after {
|
|
288
|
+
box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
|
|
289
|
+
width: 1.4rem;
|
|
290
|
+
height: 1.4rem;
|
|
291
|
+
border-radius: 50%;
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
content: "";
|
|
295
|
+
}
|
|
296
|
+
.embla__dot--selected:after {
|
|
297
|
+
box-shadow: inset 0 0 0 0.2rem var(--text-body);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
2
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
3
|
+
import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
export interface CartWrapperStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minWidth: string;
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
gridArea: string;
|
|
10
|
+
display: DisplayValue;
|
|
11
|
+
boxSizing: string;
|
|
12
|
+
rowGap: string;
|
|
13
|
+
columnGap: string;
|
|
14
|
+
gridTemplateRows: string;
|
|
15
|
+
gridTemplateColumns: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => CartWrapperStyleProperties;
|
|
18
|
+
export interface CommonContainerElementAttributes extends CMSHTMLAttributes {
|
|
19
|
+
role?: string;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
ariaDescribedBy?: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
lang?: string;
|
|
25
|
+
dataMeta?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ContainerElementInterface {
|
|
28
|
+
id?: string | number;
|
|
29
|
+
uniqueKey?: string | number;
|
|
30
|
+
attributes?: {
|
|
31
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
|
|
32
|
+
HTML?: CommonContainerElementAttributes;
|
|
33
|
+
CUSTOM?: any;
|
|
34
|
+
};
|
|
35
|
+
styles?: CartWrapperStyleProperties;
|
|
36
|
+
editedStyles?: CommonStyleProperties;
|
|
37
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
38
|
+
children: any;
|
|
39
|
+
childIds: any[];
|
|
40
|
+
previewImage?: string;
|
|
41
|
+
isMaximized?: boolean;
|
|
42
|
+
parentKey?: any;
|
|
43
|
+
childIdsV2?: any[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
export interface MegaMenuStyleProperties 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
|
+
marginLeft?: MarginValue;
|
|
15
|
+
marginTop?: MarginValue;
|
|
16
|
+
marginBottom?: MarginValue;
|
|
17
|
+
marginRight?: MarginValue;
|
|
18
|
+
justifySelf?: JustifySelfValue;
|
|
19
|
+
alignSelf?: AlignSelfValue;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultStyles: () => MegaMenuStyleProperties;
|
|
22
|
+
export interface MegaMenuElementAttributes extends CMSHTMLAttributes {
|
|
23
|
+
role?: string;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
ariaDescribedBy?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
lang?: string;
|
|
29
|
+
dataMeta?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CMSMegaMenuInterface {
|
|
32
|
+
id?: string | number;
|
|
33
|
+
uniqueKey?: string | number;
|
|
34
|
+
children: any;
|
|
35
|
+
childIds: any[];
|
|
36
|
+
parentKey?: any;
|
|
37
|
+
childIdsV2?: any[];
|
|
38
|
+
attributes?: {
|
|
39
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
|
|
40
|
+
HTML?: MegaMenuElementAttributes;
|
|
41
|
+
CUSTOM?: any;
|
|
42
|
+
};
|
|
43
|
+
styles?: MegaMenuStyleProperties;
|
|
44
|
+
editedStyles?: CommonStyleProperties;
|
|
45
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
46
|
+
previewImage?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
2
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
3
|
+
import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
export interface MegaMenuContainerStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minWidth: string;
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
gridArea: string;
|
|
10
|
+
display: DisplayValue;
|
|
11
|
+
boxSizing: string;
|
|
12
|
+
rowGap: string;
|
|
13
|
+
columnGap: string;
|
|
14
|
+
gridTemplateRows: string;
|
|
15
|
+
gridTemplateColumns: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => MegaMenuContainerStyleProperties;
|
|
18
|
+
export interface CommonContainerElementAttributes extends CMSHTMLAttributes {
|
|
19
|
+
role?: string;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
ariaDescribedBy?: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
lang?: string;
|
|
25
|
+
dataMeta?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface MegaMenuContainerElementInterface {
|
|
28
|
+
id?: string | number;
|
|
29
|
+
uniqueKey?: string | number;
|
|
30
|
+
attributes?: {
|
|
31
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
|
|
32
|
+
HTML?: CommonContainerElementAttributes;
|
|
33
|
+
CUSTOM?: any;
|
|
34
|
+
};
|
|
35
|
+
styles?: MegaMenuContainerStyleProperties;
|
|
36
|
+
editedStyles?: CommonStyleProperties;
|
|
37
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
38
|
+
children: any;
|
|
39
|
+
childIds: any[];
|
|
40
|
+
previewImage?: string;
|
|
41
|
+
isMaximized?: boolean;
|
|
42
|
+
parentKey?: any;
|
|
43
|
+
childIdsV2?: any[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
export interface SimpleListStyleProperties 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
|
+
marginLeft?: MarginValue;
|
|
15
|
+
marginTop?: MarginValue;
|
|
16
|
+
marginBottom?: MarginValue;
|
|
17
|
+
marginRight?: MarginValue;
|
|
18
|
+
justifySelf?: JustifySelfValue;
|
|
19
|
+
alignSelf?: AlignSelfValue;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultStyles: () => SimpleListStyleProperties;
|
|
22
|
+
export interface SimpleListElementAttributes extends CMSHTMLAttributes {
|
|
23
|
+
role?: string;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
ariaDescribedBy?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
lang?: string;
|
|
29
|
+
dataMeta?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CMSSimpleListInterface {
|
|
32
|
+
id?: string | number;
|
|
33
|
+
uniqueKey?: string | number;
|
|
34
|
+
children: any;
|
|
35
|
+
childIds: any[];
|
|
36
|
+
parentKey?: any;
|
|
37
|
+
childIdsV2?: any[];
|
|
38
|
+
attributes?: {
|
|
39
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
|
|
40
|
+
HTML?: SimpleListElementAttributes;
|
|
41
|
+
CUSTOM?: any;
|
|
42
|
+
};
|
|
43
|
+
styles?: SimpleListStyleProperties;
|
|
44
|
+
editedStyles?: CommonStyleProperties;
|
|
45
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
46
|
+
previewImage?: string;
|
|
47
|
+
}
|
|
@@ -71,9 +71,12 @@ export declare enum CMSToolIdTypes {
|
|
|
71
71
|
spotlightWrapper = "cms-spotlight-wrapper",
|
|
72
72
|
TEXTELEMENTDOBLECLICK = "data-cms-tt-ee-dbl-clkd",
|
|
73
73
|
menuWrapperV2 = "cms-menu-v2-wrapper",
|
|
74
|
+
megaMenuWrapper = "cms-mega-menu-wrapper",
|
|
75
|
+
megaMenuContainerWrapper = "cms-mega-menu-container-wrapper",
|
|
74
76
|
menuItemWrapper = "cms-menu-item-wrapper",
|
|
75
77
|
animation = "flex-animation-element",
|
|
76
|
-
categoryGroupsWrapper = "cms-category-groups-wrapper"
|
|
78
|
+
categoryGroupsWrapper = "cms-category-groups-wrapper",
|
|
79
|
+
cartWrapper = "cms-cart-element-wrapper"
|
|
77
80
|
}
|
|
78
81
|
export declare enum CMSElementSelectors {
|
|
79
82
|
iframeSelector = "iframe[data-title='iframe__playground']",
|
|
@@ -320,6 +323,8 @@ export declare const CMSElementsListEnum: {
|
|
|
320
323
|
ICON_LIST: string;
|
|
321
324
|
MENU_V2: string;
|
|
322
325
|
MENU_ITEM: string;
|
|
326
|
+
MEGA_MENU: string;
|
|
327
|
+
MEGA_MENU_CONTAINER: string;
|
|
323
328
|
SIMPLE_LIST: string;
|
|
324
329
|
SIMPLE_LIST_ITEM: string;
|
|
325
330
|
LAYOUTER_PRO: string;
|
|
@@ -339,6 +344,7 @@ export declare const CMSElementsListEnum: {
|
|
|
339
344
|
USER_GROUP_SELECTOR: string;
|
|
340
345
|
SHIPPING_PAYMENT: string;
|
|
341
346
|
CATEGORY_GROUPS: string;
|
|
347
|
+
CART_WRAPPER: string;
|
|
342
348
|
};
|
|
343
349
|
export declare enum CMSResponsiveModeEnums {
|
|
344
350
|
DESKTOP = "desktop",
|
|
@@ -86,4 +86,8 @@ import * as cartAttributesSchema from "./elements/cart-attributes/index";
|
|
|
86
86
|
import * as loaderSchema from "./elements/loader/index";
|
|
87
87
|
import * as addProductsTabSchema from "./elements/add-products-tab/index";
|
|
88
88
|
import * as shippingPaymentsSchema from "./elements/shipping-payment";
|
|
89
|
-
|
|
89
|
+
import * as megaMenuSchema from "./elements/mega-menu";
|
|
90
|
+
import * as megaMenuContainerSchema from "./elements/mega-menu-container";
|
|
91
|
+
import * as simpleListSchema from "./elements/simple-list";
|
|
92
|
+
import * as cartWrapperSchema from "./elements/cart-wrapper";
|
|
93
|
+
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, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, cartSummarySchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, loaderSchema, addProductsTabSchema, shippingPaymentsSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface ContainerEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum selfSelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
DATA_CONNECTOR = "dataConnector"
|
|
14
|
+
}
|
|
15
|
+
export declare const getDefaultData: (contentWidth?: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
16
|
+
export {};
|
|
@@ -102,4 +102,8 @@ import * as addProductsTab from "./addProductsTab";
|
|
|
102
102
|
import * as quotaDetails from "./quotaDetails";
|
|
103
103
|
import * as shippingPayments from "./shipping-payments";
|
|
104
104
|
import * as productDescription from "./productDescription";
|
|
105
|
-
|
|
105
|
+
import * as megaMenu from "./mega-menu";
|
|
106
|
+
import * as megaMenuContainer from "./megaMenuContainer";
|
|
107
|
+
import * as simpleList from "./simple-list";
|
|
108
|
+
import * as cartWrapper from "./cart-wrapper";
|
|
109
|
+
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, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, loader, addProductsTab, quotaDetails, shippingPayments, productDescription, megaMenu, megaMenuContainer, simpleList, cartWrapper, };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
|
|
2
|
+
import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
|
|
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
|
+
declare enum SelectorKeysEnum {
|
|
18
|
+
LAYOUT = "layout",
|
|
19
|
+
CONTENT = "content",
|
|
20
|
+
DESIGN = "design",
|
|
21
|
+
DEFAULT_STATE = "defaultState",
|
|
22
|
+
HOVER_STATE = "hoverState",
|
|
23
|
+
MENU_CONTAINER = "menuContainer",
|
|
24
|
+
MENU_ITEM_STYLE = "menuItemStyle",
|
|
25
|
+
SUB_MENU_CONTAINER = "subMenuContainer",
|
|
26
|
+
SUBMENU_ITEM_STYLE = "subMenuItemStyle",
|
|
27
|
+
HAMBURGER_OPTIONS = "hamburgerOptions",
|
|
28
|
+
HAMBURGER_STYLE = "hamburgerStyle",
|
|
29
|
+
SELECTED_STATE = "selected"
|
|
30
|
+
}
|
|
31
|
+
export interface selfDesignInterface {
|
|
32
|
+
selectorKey: string;
|
|
33
|
+
[SelectorKeysEnum.MENU_CONTAINER]: any;
|
|
34
|
+
[SelectorKeysEnum.MENU_ITEM_STYLE]: any;
|
|
35
|
+
[SelectorKeysEnum.SUB_MENU_CONTAINER]: any;
|
|
36
|
+
[SelectorKeysEnum.SUBMENU_ITEM_STYLE]: any;
|
|
37
|
+
[SelectorKeysEnum.HAMBURGER_OPTIONS]: any;
|
|
38
|
+
[SelectorKeysEnum.HAMBURGER_STYLE]: any;
|
|
39
|
+
}
|
|
40
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
41
|
+
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>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
|
|
2
|
+
import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
|
|
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
|
+
declare enum SelectorKeysEnum {
|
|
18
|
+
LAYOUT = "layout",
|
|
19
|
+
CONTENT = "content",
|
|
20
|
+
DESIGN = "design",
|
|
21
|
+
DEFAULT_STATE = "defaultState",
|
|
22
|
+
HOVER_STATE = "hoverState",
|
|
23
|
+
MENU_CONTAINER = "menuContainer",
|
|
24
|
+
MENU_ITEM_STYLE = "menuItemStyle",
|
|
25
|
+
SUB_MENU_CONTAINER = "subMenuContainer",
|
|
26
|
+
SUBMENU_ITEM_STYLE = "subMenuItemStyle",
|
|
27
|
+
HAMBURGER_OPTIONS = "hamburgerOptions",
|
|
28
|
+
HAMBURGER_STYLE = "hamburgerStyle",
|
|
29
|
+
SELECTED_STATE = "selected"
|
|
30
|
+
}
|
|
31
|
+
export interface selfDesignInterface {
|
|
32
|
+
selectorKey: string;
|
|
33
|
+
[SelectorKeysEnum.SUB_MENU_CONTAINER]: any;
|
|
34
|
+
[SelectorKeysEnum.SUBMENU_ITEM_STYLE]: any;
|
|
35
|
+
}
|
|
36
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
37
|
+
export {};
|
|
@@ -53,3 +53,21 @@ export declare const dataConnectorApisData: {
|
|
|
53
53
|
method: ApiMethods;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
+
export declare enum DATA_CONNECTOR_ITEMS_LIST {
|
|
57
|
+
PRODUCT_BY_ID = "Product By Id",
|
|
58
|
+
PRODUCTS_BY_BRAND = "Products By Brand",
|
|
59
|
+
PRODUCTS_BY_MERCHANDISER_SETS = "Products By Merchandiser Sets",
|
|
60
|
+
PRODUCTS_BY_CATEGORY = "Products By Category",
|
|
61
|
+
CATEGORIES = "Categories",
|
|
62
|
+
CATEGORY_BY_ID = "Category By Id",
|
|
63
|
+
BUNDLES = "Bundles",
|
|
64
|
+
BUNDLE_BY_ID = "Bundle By Id",
|
|
65
|
+
BUNDLE_DETAILS = "Bundle Details",
|
|
66
|
+
PRODUCT_BUNDLE_BY_KEY = "Product Bundle By Key",
|
|
67
|
+
CATEGORY_BUNDLE_BY_KEY = "Category Bundle By Key",
|
|
68
|
+
SUB_CATEGORIES = "Subcategories",
|
|
69
|
+
BRANDS = "Brands",
|
|
70
|
+
BRAND_BY_ID = "Brand By Id",
|
|
71
|
+
PRODUCTS = "Products",
|
|
72
|
+
BUNDLES_BY_ID = "Bundles By Id"
|
|
73
|
+
}
|