@sc-360-v2/storefront-cms-library 0.3.84 → 0.3.86

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.
@@ -0,0 +1,39 @@
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 EmbroideryStyleProperties extends CommonStyleProperties {
6
+ minWidth: string;
7
+ maxWidth: string;
8
+ maxHeight: string;
9
+ gridArea: string;
10
+ display: DisplayValue;
11
+ boxSizing: string;
12
+ }
13
+ export declare const getDefaultStyles: () => EmbroideryStyleProperties;
14
+ export interface CommonContainerElementAttributes 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 EmbroideryElementInterface {
24
+ id?: string | number;
25
+ uniqueKey?: string | number;
26
+ attributes?: {
27
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
28
+ HTML?: CommonContainerElementAttributes;
29
+ CUSTOM?: any;
30
+ };
31
+ styles?: EmbroideryStyleProperties;
32
+ editedStyles?: CommonStyleProperties;
33
+ responsiveBehaviour: ResponsiveBehaviourTypes;
34
+ children: any;
35
+ childIds: any[];
36
+ previewImage?: string;
37
+ parentKey?: any;
38
+ childIdsV2?: any[];
39
+ }
@@ -257,6 +257,7 @@ export interface FormGridLayoutInterface {
257
257
  maxW?: number;
258
258
  minH?: number;
259
259
  minW?: number;
260
+ resizeHandles?: ("s" | "e" | "w" | "n" | "se" | "sw" | "ne" | "nw")[];
260
261
  }
261
262
  export declare enum FormConfirmationOption {
262
263
  ShowMessage = 1,
@@ -351,6 +351,7 @@ export declare const CMSElementsListEnum: {
351
351
  MY_TEMPLATES: string;
352
352
  MY_WISHLIST: string;
353
353
  REQUEST_FOR_QUOTE: string;
354
+ EMBROIDERY: string;
354
355
  };
355
356
  export declare enum CMSResponsiveModeEnums {
356
357
  DESKTOP = "desktop",
@@ -415,7 +416,8 @@ export declare enum CMSCustomEventsListEnums {
415
416
  FORM_BUILDER_STATE = "formBuilderState",
416
417
  EMBROIDERY_PLAYGROUND_STATE = "embroideryPlaygroundState",
417
418
  FLEX_BUILDER_ANIMATION_TEMP_STATE = "flexBuilderAnimationTempState",
418
- FLEX_EDITOR_SCROLL_TRIGGER = "flexEditorScrollTrigger"
419
+ FLEX_EDITOR_SCROLL_TRIGGER = "flexEditorScrollTrigger",
420
+ FLEX_EMBROIDERY_SESSION_DATA_V2 = "flexEmbroiderySessionDataV2"
419
421
  }
420
422
  export declare enum FlexAppVersionEnums {
421
423
  NESTEDJSON = 1,
@@ -91,4 +91,5 @@ import * as megaMenuSchema from "./elements/mega-menu";
91
91
  import * as megaMenuContainerSchema from "./elements/mega-menu-container";
92
92
  import * as simpleListSchema from "./elements/simple-list";
93
93
  import * as cartWrapperSchema from "./elements/cart-wrapper";
94
- 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, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, };
94
+ import * as embroiderySchema from "./elements/embroidery";
95
+ 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, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, embroiderySchema, };
@@ -1,7 +1,302 @@
1
+ import { CMSElementEditTypes } from "../../enums";
1
2
  import { CMSIBCommonInterface } from "../../interfaces/global";
2
3
  import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
4
  export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
4
5
  }
6
+ export declare const TableControls: {
7
+ layout: {
8
+ header: {
9
+ value: boolean;
10
+ property: string;
11
+ propertyType: CMSElementEditTypes;
12
+ };
13
+ headerHeight: {
14
+ value: string;
15
+ unit: number;
16
+ property: string;
17
+ propertyType: CMSElementEditTypes;
18
+ };
19
+ rowHeight: {
20
+ value: string;
21
+ unit: number;
22
+ property: string;
23
+ propertyType: CMSElementEditTypes;
24
+ };
25
+ showMoreRows: {
26
+ value: string;
27
+ propertyType: CMSElementEditTypes;
28
+ property: string;
29
+ };
30
+ rowsPerPage: {
31
+ value: number;
32
+ propertyType: CMSElementEditTypes;
33
+ property: string;
34
+ };
35
+ paginationAlignment: {
36
+ value: string;
37
+ propertyType: CMSElementEditTypes;
38
+ property: string;
39
+ };
40
+ paginationType: {
41
+ value: string;
42
+ propertyType: CMSElementEditTypes;
43
+ property: string;
44
+ };
45
+ noOfItemsToLoad: {
46
+ value: string;
47
+ propertyType: CMSElementEditTypes;
48
+ property: string;
49
+ };
50
+ itemsCount: {
51
+ value: number;
52
+ propertyType: CMSElementEditTypes;
53
+ };
54
+ headerDivider: {
55
+ value: boolean;
56
+ property: string;
57
+ propertyType: CMSElementEditTypes;
58
+ };
59
+ rowDivider: {
60
+ value: boolean;
61
+ property: string;
62
+ propertyType: CMSElementEditTypes;
63
+ };
64
+ columnDivider: {
65
+ value: boolean;
66
+ property: string;
67
+ propertyType: CMSElementEditTypes;
68
+ };
69
+ alternativeRowColors: {
70
+ value: boolean;
71
+ property: string;
72
+ propertyType: CMSElementEditTypes;
73
+ };
74
+ headerCellPadding: {
75
+ value: string;
76
+ unit: number;
77
+ property: string;
78
+ propertyType: CMSElementEditTypes;
79
+ };
80
+ rowCellPadding: {
81
+ value: string;
82
+ unit: number;
83
+ property: string;
84
+ propertyType: CMSElementEditTypes;
85
+ };
86
+ contentAlignment: {
87
+ value: string;
88
+ property: string;
89
+ propertyType: CMSElementEditTypes;
90
+ };
91
+ };
92
+ design: {
93
+ pagination: {
94
+ pagination: {
95
+ value: string;
96
+ propertyType: CMSElementEditTypes;
97
+ };
98
+ paginationStyle: {
99
+ value: string;
100
+ propertyType: CMSElementEditTypes;
101
+ };
102
+ arrowIconStyle: {
103
+ value: string;
104
+ propertyType: CMSElementEditTypes;
105
+ };
106
+ arrowSize: {
107
+ value: string;
108
+ propertyType: CMSElementEditTypes;
109
+ unit: number;
110
+ };
111
+ arrowColor: {
112
+ value: string;
113
+ propertyType: CMSElementEditTypes;
114
+ };
115
+ backgroundShape: {
116
+ value: string;
117
+ propertyType: CMSElementEditTypes;
118
+ };
119
+ backgroundColor: {
120
+ value: string;
121
+ propertyType: CMSElementEditTypes;
122
+ };
123
+ font: {
124
+ value: string;
125
+ propertyType: CMSElementEditTypes;
126
+ };
127
+ fontSize: {
128
+ value: string;
129
+ propertyType: CMSElementEditTypes;
130
+ unit: number;
131
+ };
132
+ textColor: {
133
+ value: string;
134
+ propertyType: CMSElementEditTypes;
135
+ property: string;
136
+ };
137
+ textHighlight: {
138
+ value: string;
139
+ propertyType: CMSElementEditTypes;
140
+ };
141
+ hoverBackgroundShape: {
142
+ value: string;
143
+ propertyType: CMSElementEditTypes;
144
+ };
145
+ hoverBackgroundColor: {
146
+ value: string;
147
+ propertyType: CMSElementEditTypes;
148
+ };
149
+ hoverFont: {
150
+ value: string;
151
+ propertyType: CMSElementEditTypes;
152
+ };
153
+ hoverFontSize: {
154
+ value: string;
155
+ propertyType: CMSElementEditTypes;
156
+ unit: number;
157
+ };
158
+ hoverTextColor: {
159
+ value: string;
160
+ propertyType: CMSElementEditTypes;
161
+ };
162
+ hoverTextHighlight: {
163
+ value: string;
164
+ propertyType: CMSElementEditTypes;
165
+ };
166
+ previousIcon: {
167
+ value: string;
168
+ propertyType: CMSElementEditTypes;
169
+ };
170
+ nextIcon: {
171
+ value: string;
172
+ propertyType: CMSElementEditTypes;
173
+ };
174
+ iconSize: {
175
+ value: string;
176
+ propertyType: CMSElementEditTypes;
177
+ unit: number;
178
+ property: string;
179
+ };
180
+ iconColor: {
181
+ value: {
182
+ hex: string;
183
+ rgb: {
184
+ r: string;
185
+ g: string;
186
+ b: string;
187
+ a: number;
188
+ };
189
+ };
190
+ property: string;
191
+ propertyType: CMSElementEditTypes;
192
+ parentRef: string;
193
+ };
194
+ };
195
+ };
196
+ };
197
+ export declare const tableProperties: {
198
+ header: {
199
+ value: boolean;
200
+ property: string;
201
+ propertyType: CMSElementEditTypes;
202
+ };
203
+ headerHeight: {
204
+ value: string;
205
+ unit: number;
206
+ property: string;
207
+ propertyType: CMSElementEditTypes;
208
+ };
209
+ rowHeight: {
210
+ value: string;
211
+ unit: number;
212
+ property: string;
213
+ propertyType: CMSElementEditTypes;
214
+ };
215
+ headerDivider: {
216
+ value: boolean;
217
+ property: string;
218
+ propertyType: CMSElementEditTypes;
219
+ };
220
+ rowDivider: {
221
+ value: boolean;
222
+ property: string;
223
+ propertyType: CMSElementEditTypes;
224
+ };
225
+ columnDivider: {
226
+ value: boolean;
227
+ property: string;
228
+ propertyType: CMSElementEditTypes;
229
+ };
230
+ alternativeRowColors: {
231
+ value: boolean;
232
+ property: string;
233
+ propertyType: CMSElementEditTypes;
234
+ };
235
+ headerCellPadding: {
236
+ value: string;
237
+ unit: number;
238
+ property: string;
239
+ propertyType: CMSElementEditTypes;
240
+ };
241
+ rowCellPadding: {
242
+ value: string;
243
+ unit: number;
244
+ property: string;
245
+ propertyType: CMSElementEditTypes;
246
+ };
247
+ contentAlignment: {
248
+ value: string;
249
+ property: string;
250
+ propertyType: CMSElementEditTypes;
251
+ };
252
+ showMoreRows: {
253
+ value: string;
254
+ propertyType: CMSElementEditTypes;
255
+ property: string;
256
+ };
257
+ rowsPerPage: {
258
+ value: number;
259
+ propertyType: CMSElementEditTypes;
260
+ property: string;
261
+ };
262
+ paginationType: {
263
+ value: string;
264
+ propertyType: CMSElementEditTypes;
265
+ property: string;
266
+ };
267
+ paginationAlignment: {
268
+ value: string;
269
+ propertyType: CMSElementEditTypes;
270
+ property: string;
271
+ };
272
+ noOfItemsToLoad: {
273
+ value: string;
274
+ propertyType: CMSElementEditTypes;
275
+ property: string;
276
+ };
277
+ itemsCount: {
278
+ value: number;
279
+ propertyType: CMSElementEditTypes;
280
+ };
281
+ tableHeight: {
282
+ value: string;
283
+ unit: number;
284
+ property: string;
285
+ propertyType?: any;
286
+ isReadOnly?: boolean | undefined;
287
+ parentRef?: string | undefined;
288
+ };
289
+ rowsToDisplay: {
290
+ value: number;
291
+ property: string;
292
+ propertyType: CMSElementEditTypes;
293
+ };
294
+ numOfItemsToLoad: {
295
+ value: string;
296
+ property: string;
297
+ propertyType: CMSElementEditTypes;
298
+ };
299
+ };
5
300
  interface selfLayoutInterface {
6
301
  selectorKey: string;
7
302
  displayStyle: CMSIBCommonInterface;
@@ -38,8 +333,9 @@ export declare enum SelectorKeysEnum {
38
333
  PAGINATION = "pagination",
39
334
  SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButton",
40
335
  HOVER_STATE = "hover",
41
- DEFAULT_STATE = "default",
42
- SELECTED_STATE = "selectedState"
336
+ DEFAULT_STATE = "defaultState",
337
+ SELECTED_STATE = "selectedState",
338
+ SCROLL_BAR = "scrollBar"
43
339
  }
44
340
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
45
341
  export {};
@@ -58,11 +58,6 @@ export declare const getDefaultData: () => {
58
58
  property: string;
59
59
  propertyType: CMSElementEditTypes;
60
60
  };
61
- overflowItems: {
62
- value: string;
63
- property: string;
64
- propertyType: CMSElementEditTypes;
65
- };
66
61
  numOfItemsToLoad: {
67
62
  value: string;
68
63
  property: string;
@@ -363,6 +363,69 @@ export declare const buttonHoverStateInstance: {
363
363
  isReadOnly?: boolean | undefined;
364
364
  };
365
365
  };
366
+ export declare const ButtonInstance: {
367
+ buttonStyle: {
368
+ value: null;
369
+ parentRef: string;
370
+ propertyType: CMSElementEditTypes;
371
+ };
372
+ buttonType: {
373
+ value: string;
374
+ propertyType: CMSElementEditTypes;
375
+ };
376
+ buttonText: {
377
+ value: string;
378
+ property: string;
379
+ propertyType: CMSElementEditTypes;
380
+ };
381
+ buttonIcon: {
382
+ value: string;
383
+ property: string;
384
+ propertyType: CMSElementEditTypes;
385
+ };
386
+ iconPosition: {
387
+ value: null;
388
+ parentRef: string;
389
+ propertyType: CMSElementEditTypes;
390
+ };
391
+ iconAndTextSpacing: {
392
+ value: null;
393
+ property: string;
394
+ unit: number;
395
+ parentRef: string;
396
+ propertyType: CMSElementEditTypes;
397
+ };
398
+ alignment: {
399
+ value: null;
400
+ property: string;
401
+ parentRef: string;
402
+ propertyType: CMSElementEditTypes;
403
+ };
404
+ linkTo: {
405
+ value: {
406
+ type: string;
407
+ target: string;
408
+ };
409
+ property: string;
410
+ propertyType: CMSElementEditTypes;
411
+ };
412
+ iconPadding: {
413
+ value: number;
414
+ property: string;
415
+ parentRef: string;
416
+ propertyType: CMSElementEditTypes;
417
+ };
418
+ width: {
419
+ value: string;
420
+ unit: number;
421
+ };
422
+ padding: any;
423
+ buttonAlignment: {
424
+ value: string;
425
+ property: string;
426
+ propertyType: CMSElementEditTypes;
427
+ };
428
+ };
366
429
  export declare const ButtonProperties: {
367
430
  backgroundColor: {
368
431
  value: null;
@@ -813,64 +876,6 @@ export declare const ButtonPropertiesHover: {
813
876
  };
814
877
  padding: any;
815
878
  };
816
- export declare const ButtonInstance: {
817
- buttonStyle: {
818
- value: null;
819
- parentRef: string;
820
- propertyType: CMSElementEditTypes;
821
- };
822
- buttonType: {
823
- value: string;
824
- propertyType: CMSElementEditTypes;
825
- };
826
- buttonText: {
827
- value: string;
828
- property: string;
829
- propertyType: CMSElementEditTypes;
830
- };
831
- buttonIcon: {
832
- value: string;
833
- property: string;
834
- propertyType: CMSElementEditTypes;
835
- };
836
- iconPosition: {
837
- value: null;
838
- parentRef: string;
839
- propertyType: CMSElementEditTypes;
840
- };
841
- iconAndTextSpacing: {
842
- value: null;
843
- property: string;
844
- unit: number;
845
- parentRef: string;
846
- propertyType: CMSElementEditTypes;
847
- };
848
- alignment: {
849
- value: null;
850
- property: string;
851
- parentRef: string;
852
- propertyType: CMSElementEditTypes;
853
- };
854
- linkTo: {
855
- value: {
856
- type: string;
857
- target: string;
858
- };
859
- property: string;
860
- propertyType: CMSElementEditTypes;
861
- };
862
- iconPadding: {
863
- value: number;
864
- property: string;
865
- parentRef: string;
866
- propertyType: CMSElementEditTypes;
867
- };
868
- width: {
869
- value: string;
870
- unit: number;
871
- };
872
- padding: any;
873
- };
874
879
  export declare const DividerStylesInstance: {
875
880
  showDivider: {
876
881
  value: boolean;