@sc-360-v2/storefront-cms-library 0.3.85 → 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,795 @@
1
+ import { CMSCSSUnitTypesEnums, CMSElementEditTypes } from "../../enums";
2
+ import { CMSIBCommonInterface } from "../../interfaces/global";
3
+ import { ButtonSelectorKeysEnum } from "./button";
4
+ declare enum SelectorKeysEnum {
5
+ LAYOUT = "layout",
6
+ CONTENT = "content",
7
+ DESIGN = "design",
8
+ EMBRIODERY_CONTAINER = "embroideryContainer",
9
+ CONFIGURE_BUTTON = "configureButton",
10
+ TITLE = "title",
11
+ DEFAULT_TEXT = "defaultText",
12
+ ACTIVE_TEXT = "activeText",
13
+ DATA_CONNECTOR = "dataConnector"
14
+ }
15
+ export declare const getDefaultData: () => {
16
+ layout: {
17
+ selectorKey: SelectorKeysEnum;
18
+ width: {
19
+ value: number;
20
+ property: string;
21
+ unit: number;
22
+ propertyType: CMSElementEditTypes;
23
+ };
24
+ minHeight: {
25
+ value: number;
26
+ unit: CMSCSSUnitTypesEnums;
27
+ property?: any;
28
+ propertyType?: any;
29
+ isReadOnly?: boolean | undefined;
30
+ parentRef?: string | undefined;
31
+ };
32
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
33
+ padding: any;
34
+ showConnectionLessAtrbiutes: {
35
+ value: boolean;
36
+ property: string;
37
+ propertyType: CMSElementEditTypes;
38
+ };
39
+ chooseTemplate: {
40
+ value: number;
41
+ property: string;
42
+ propertyType: CMSElementEditTypes;
43
+ };
44
+ buttonStyle: {
45
+ value: null;
46
+ parentRef: string;
47
+ propertyType: CMSElementEditTypes;
48
+ };
49
+ buttonText: {
50
+ value: string;
51
+ property: string;
52
+ propertyType: CMSElementEditTypes;
53
+ };
54
+ buttonIcon: {
55
+ value: string;
56
+ property: string;
57
+ propertyType: CMSElementEditTypes;
58
+ };
59
+ iconPosition: {
60
+ value: null;
61
+ parentRef: string;
62
+ propertyType: CMSElementEditTypes;
63
+ };
64
+ iconAndTextSpacing: {
65
+ value: null;
66
+ property: string;
67
+ unit: number;
68
+ parentRef: string;
69
+ propertyType: CMSElementEditTypes;
70
+ };
71
+ alignment: {
72
+ value: null;
73
+ property: string;
74
+ parentRef: string;
75
+ propertyType: CMSElementEditTypes;
76
+ };
77
+ buttonPadding: any;
78
+ };
79
+ design: {
80
+ selectorKey: SelectorKeysEnum;
81
+ embroideryContainer: {
82
+ borderColor: CMSIBCommonInterface;
83
+ borderStyle: CMSIBCommonInterface;
84
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
85
+ showBorder: CMSIBCommonInterface;
86
+ backgroundColor: CMSIBCommonInterface;
87
+ showShadow: CMSIBCommonInterface;
88
+ shadowColor: CMSIBCommonInterface;
89
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
90
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
91
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
92
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
93
+ selectorKey: SelectorKeysEnum;
94
+ };
95
+ configureButton: {
96
+ selectorKey: SelectorKeysEnum;
97
+ defaultState: {
98
+ icon: {
99
+ value: string;
100
+ unit?: string | number | undefined;
101
+ customIcon?: {
102
+ isCustomIcon: boolean;
103
+ url: string;
104
+ name: string;
105
+ } | undefined;
106
+ property?: any;
107
+ propertyType?: any;
108
+ isReadOnly?: boolean | undefined;
109
+ parentRef?: string | undefined;
110
+ };
111
+ backgroundColor: {
112
+ value: null;
113
+ parentRef: string;
114
+ property?: any;
115
+ propertyType?: any;
116
+ isReadOnly?: boolean | undefined;
117
+ };
118
+ borderColor: {
119
+ value: null;
120
+ parentRef: string;
121
+ property?: any;
122
+ propertyType?: any;
123
+ isReadOnly?: boolean | undefined;
124
+ };
125
+ borderStyle: {
126
+ value: null;
127
+ parentRef: string;
128
+ property?: any;
129
+ propertyType?: any;
130
+ isReadOnly?: boolean | undefined;
131
+ };
132
+ borderPerSlide: {
133
+ value: null;
134
+ parentRef: string;
135
+ isAll: boolean;
136
+ sides: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides;
137
+ property: string;
138
+ iscss?: boolean | undefined;
139
+ propertyType?: any;
140
+ };
141
+ showBorder: {
142
+ value: boolean;
143
+ parentRef: string;
144
+ property?: any;
145
+ propertyType?: any;
146
+ isReadOnly?: boolean | undefined;
147
+ };
148
+ showShadow: {
149
+ value: null;
150
+ parentRef: string;
151
+ property?: any;
152
+ propertyType?: any;
153
+ isReadOnly?: boolean | undefined;
154
+ };
155
+ shadowColor: {
156
+ value: null;
157
+ parentRef: string;
158
+ property?: any;
159
+ propertyType?: any;
160
+ isReadOnly?: boolean | undefined;
161
+ };
162
+ blur: {
163
+ value: null;
164
+ parentRef: string;
165
+ unit?: string | number | undefined;
166
+ property?: any;
167
+ propertyType?: any;
168
+ isReadOnly?: boolean | undefined;
169
+ };
170
+ spread: {
171
+ value: null;
172
+ parentRef: string;
173
+ unit?: string | number | undefined;
174
+ property?: any;
175
+ propertyType?: any;
176
+ isReadOnly?: boolean | undefined;
177
+ };
178
+ angle: {
179
+ value: null;
180
+ parentRef: string;
181
+ unit?: string | number | undefined;
182
+ property?: any;
183
+ propertyType?: any;
184
+ isReadOnly?: boolean | undefined;
185
+ };
186
+ borderRadius: {
187
+ value: null;
188
+ parentRef: string;
189
+ isAll: boolean;
190
+ sides: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides;
191
+ property: string;
192
+ iscss?: boolean | undefined;
193
+ propertyType?: any;
194
+ };
195
+ font: {
196
+ value: null;
197
+ parentRef: string;
198
+ property?: any;
199
+ propertyType?: any;
200
+ isReadOnly?: boolean | undefined;
201
+ };
202
+ fontSize: {
203
+ value: null;
204
+ parentRef: string;
205
+ unit?: string | number | undefined;
206
+ property?: any;
207
+ propertyType?: any;
208
+ isReadOnly?: boolean | undefined;
209
+ };
210
+ textColor: {
211
+ value: null;
212
+ parentRef: string;
213
+ property?: any;
214
+ propertyType?: any;
215
+ isReadOnly?: boolean | undefined;
216
+ };
217
+ bold: {
218
+ value: string;
219
+ parentRef: string;
220
+ property?: any;
221
+ propertyType?: any;
222
+ isReadOnly?: boolean | undefined;
223
+ };
224
+ italic: {
225
+ value: null;
226
+ parentRef: string;
227
+ property?: any;
228
+ propertyType?: any;
229
+ isReadOnly?: boolean | undefined;
230
+ };
231
+ linethrough: {
232
+ value: null;
233
+ parentRef: string;
234
+ property?: any;
235
+ propertyType?: any;
236
+ isReadOnly?: boolean | undefined;
237
+ };
238
+ underline: {
239
+ value: null;
240
+ parentRef: string;
241
+ property?: any;
242
+ propertyType?: any;
243
+ isReadOnly?: boolean | undefined;
244
+ };
245
+ textAlign: {
246
+ value: null;
247
+ parentRef: string;
248
+ property?: any;
249
+ propertyType?: any;
250
+ isReadOnly?: boolean | undefined;
251
+ };
252
+ characterSpacing: {
253
+ value: null;
254
+ parentRef: string;
255
+ unit?: string | number | undefined;
256
+ property?: any;
257
+ propertyType?: any;
258
+ isReadOnly?: boolean | undefined;
259
+ };
260
+ lineHeight: {
261
+ value: null;
262
+ parentRef: string;
263
+ unit?: string | number | undefined;
264
+ property?: any;
265
+ propertyType?: any;
266
+ isReadOnly?: boolean | undefined;
267
+ };
268
+ showIcon: {
269
+ value: null;
270
+ parentRef: string;
271
+ property?: any;
272
+ propertyType?: any;
273
+ isReadOnly?: boolean | undefined;
274
+ };
275
+ iconSize: {
276
+ value: null;
277
+ parentRef: string;
278
+ unit?: string | number | undefined;
279
+ property?: any;
280
+ propertyType?: any;
281
+ isReadOnly?: boolean | undefined;
282
+ };
283
+ iconColor: {
284
+ value: null;
285
+ parentRef: string;
286
+ property?: any;
287
+ propertyType?: any;
288
+ isReadOnly?: boolean | undefined;
289
+ };
290
+ selectorKey: ButtonSelectorKeysEnum;
291
+ };
292
+ hoverState: {
293
+ backgroundColor: {
294
+ value: null;
295
+ parentRef: string;
296
+ property?: any;
297
+ propertyType?: any;
298
+ isReadOnly?: boolean | undefined;
299
+ };
300
+ borderColor: {
301
+ value: null;
302
+ parentRef: string;
303
+ property?: any;
304
+ propertyType?: any;
305
+ isReadOnly?: boolean | undefined;
306
+ };
307
+ borderStyle: {
308
+ value: null;
309
+ parentRef: string;
310
+ property?: any;
311
+ propertyType?: any;
312
+ isReadOnly?: boolean | undefined;
313
+ };
314
+ borderPerSlide: {
315
+ value: null;
316
+ parentRef: string;
317
+ isAll: boolean;
318
+ sides: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides;
319
+ property: string;
320
+ iscss?: boolean | undefined;
321
+ propertyType?: any;
322
+ };
323
+ showBorder: {
324
+ value: boolean;
325
+ parentRef: string;
326
+ property?: any;
327
+ propertyType?: any;
328
+ isReadOnly?: boolean | undefined;
329
+ };
330
+ showShadow: {
331
+ value: null;
332
+ parentRef: string;
333
+ property?: any;
334
+ propertyType?: any;
335
+ isReadOnly?: boolean | undefined;
336
+ };
337
+ shadowColor: {
338
+ value: null;
339
+ parentRef: string;
340
+ property?: any;
341
+ propertyType?: any;
342
+ isReadOnly?: boolean | undefined;
343
+ };
344
+ blur: {
345
+ value: null;
346
+ parentRef: string;
347
+ unit?: string | number | undefined;
348
+ property?: any;
349
+ propertyType?: any;
350
+ isReadOnly?: boolean | undefined;
351
+ };
352
+ spread: {
353
+ value: null;
354
+ parentRef: string;
355
+ unit?: string | number | undefined;
356
+ property?: any;
357
+ propertyType?: any;
358
+ isReadOnly?: boolean | undefined;
359
+ };
360
+ angle: {
361
+ value: null;
362
+ parentRef: string;
363
+ unit?: string | number | undefined;
364
+ property?: any;
365
+ propertyType?: any;
366
+ isReadOnly?: boolean | undefined;
367
+ };
368
+ borderRadius: {
369
+ value: null;
370
+ parentRef: string;
371
+ isAll: boolean;
372
+ sides: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides;
373
+ property: string;
374
+ iscss?: boolean | undefined;
375
+ propertyType?: any;
376
+ };
377
+ font: {
378
+ value: null;
379
+ parentRef: string;
380
+ property?: any;
381
+ propertyType?: any;
382
+ isReadOnly?: boolean | undefined;
383
+ };
384
+ fontSize: {
385
+ value: null;
386
+ parentRef: string;
387
+ unit?: string | number | undefined;
388
+ property?: any;
389
+ propertyType?: any;
390
+ isReadOnly?: boolean | undefined;
391
+ };
392
+ textColor: {
393
+ value: null;
394
+ parentRef: string;
395
+ property?: any;
396
+ propertyType?: any;
397
+ isReadOnly?: boolean | undefined;
398
+ };
399
+ bold: {
400
+ value: string;
401
+ parentRef: string;
402
+ property?: any;
403
+ propertyType?: any;
404
+ isReadOnly?: boolean | undefined;
405
+ };
406
+ italic: {
407
+ value: null;
408
+ parentRef: string;
409
+ property?: any;
410
+ propertyType?: any;
411
+ isReadOnly?: boolean | undefined;
412
+ };
413
+ linethrough: {
414
+ value: null;
415
+ parentRef: string;
416
+ property?: any;
417
+ propertyType?: any;
418
+ isReadOnly?: boolean | undefined;
419
+ };
420
+ underline: {
421
+ value: null;
422
+ parentRef: string;
423
+ property?: any;
424
+ propertyType?: any;
425
+ isReadOnly?: boolean | undefined;
426
+ };
427
+ textAlign: {
428
+ value: null;
429
+ parentRef: string;
430
+ property?: any;
431
+ propertyType?: any;
432
+ isReadOnly?: boolean | undefined;
433
+ };
434
+ characterSpacing: {
435
+ value: null;
436
+ parentRef: string;
437
+ unit?: string | number | undefined;
438
+ property?: any;
439
+ propertyType?: any;
440
+ isReadOnly?: boolean | undefined;
441
+ };
442
+ lineHeight: {
443
+ value: null;
444
+ parentRef: string;
445
+ unit?: string | number | undefined;
446
+ property?: any;
447
+ propertyType?: any;
448
+ isReadOnly?: boolean | undefined;
449
+ };
450
+ icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
451
+ showIcon: {
452
+ value: null;
453
+ parentRef: string;
454
+ property?: any;
455
+ propertyType?: any;
456
+ isReadOnly?: boolean | undefined;
457
+ };
458
+ iconSize: {
459
+ value: null;
460
+ parentRef: string;
461
+ unit?: string | number | undefined;
462
+ property?: any;
463
+ propertyType?: any;
464
+ isReadOnly?: boolean | undefined;
465
+ };
466
+ iconColor: {
467
+ value: null;
468
+ parentRef: string;
469
+ property?: any;
470
+ propertyType?: any;
471
+ isReadOnly?: boolean | undefined;
472
+ };
473
+ selectorKey: ButtonSelectorKeysEnum;
474
+ };
475
+ };
476
+ title: {
477
+ theme: {
478
+ value: string;
479
+ property: string;
480
+ propertyType: CMSElementEditTypes;
481
+ };
482
+ font: {
483
+ value: string;
484
+ property: string;
485
+ propertyType: CMSElementEditTypes;
486
+ parentRef: string;
487
+ };
488
+ fontSize: {
489
+ value: number;
490
+ unit: number;
491
+ property: string;
492
+ propertyType: CMSElementEditTypes;
493
+ parentRef: string;
494
+ };
495
+ textColor: {
496
+ value: {
497
+ hex: string;
498
+ rgb: {
499
+ r: string;
500
+ g: string;
501
+ b: string;
502
+ a: number;
503
+ };
504
+ };
505
+ property: string;
506
+ propertyType: CMSElementEditTypes;
507
+ parentRef: string;
508
+ };
509
+ textHighlight: {
510
+ value: {
511
+ hex: string;
512
+ rgb: {
513
+ r: string;
514
+ g: string;
515
+ b: string;
516
+ a: number;
517
+ };
518
+ };
519
+ property: string;
520
+ propertyType: CMSElementEditTypes;
521
+ };
522
+ bold: {
523
+ value: string;
524
+ property: string;
525
+ propertyType: CMSElementEditTypes;
526
+ parentRef: string;
527
+ };
528
+ italic: {
529
+ value: string;
530
+ property: string;
531
+ propertyType: CMSElementEditTypes;
532
+ parentRef: string;
533
+ };
534
+ linethrough: {
535
+ value: string;
536
+ property: string;
537
+ propertyType: CMSElementEditTypes;
538
+ parentRef: string;
539
+ };
540
+ underline: {
541
+ value: string;
542
+ property: string;
543
+ propertyType: CMSElementEditTypes;
544
+ parentRef: string;
545
+ };
546
+ textAlign: {
547
+ value: string;
548
+ property: string;
549
+ propertyType: CMSElementEditTypes;
550
+ parentRef: string;
551
+ };
552
+ characterSpacing: {
553
+ value: number;
554
+ unit: number;
555
+ property: string;
556
+ propertyType: CMSElementEditTypes;
557
+ parentRef: string;
558
+ };
559
+ lineHeight: {
560
+ value: number;
561
+ unit: number;
562
+ property: string;
563
+ propertyType: CMSElementEditTypes;
564
+ parentRef: string;
565
+ };
566
+ paragraphSpacing: {
567
+ value: number;
568
+ unit: number;
569
+ property: string;
570
+ propertyType: CMSElementEditTypes;
571
+ parentRef: string;
572
+ };
573
+ selectorKey: SelectorKeysEnum;
574
+ };
575
+ defaultText: {
576
+ theme: {
577
+ value: string;
578
+ property: string;
579
+ propertyType: CMSElementEditTypes;
580
+ };
581
+ font: {
582
+ value: string;
583
+ property: string;
584
+ propertyType: CMSElementEditTypes;
585
+ parentRef: string;
586
+ };
587
+ fontSize: {
588
+ value: number;
589
+ unit: number;
590
+ property: string;
591
+ propertyType: CMSElementEditTypes;
592
+ parentRef: string;
593
+ };
594
+ textColor: {
595
+ value: {
596
+ hex: string;
597
+ rgb: {
598
+ r: string;
599
+ g: string;
600
+ b: string;
601
+ a: number;
602
+ };
603
+ };
604
+ property: string;
605
+ propertyType: CMSElementEditTypes;
606
+ parentRef: string;
607
+ };
608
+ textHighlight: {
609
+ value: {
610
+ hex: string;
611
+ rgb: {
612
+ r: string;
613
+ g: string;
614
+ b: string;
615
+ a: number;
616
+ };
617
+ };
618
+ property: string;
619
+ propertyType: CMSElementEditTypes;
620
+ };
621
+ bold: {
622
+ value: string;
623
+ property: string;
624
+ propertyType: CMSElementEditTypes;
625
+ parentRef: string;
626
+ };
627
+ italic: {
628
+ value: string;
629
+ property: string;
630
+ propertyType: CMSElementEditTypes;
631
+ parentRef: string;
632
+ };
633
+ linethrough: {
634
+ value: string;
635
+ property: string;
636
+ propertyType: CMSElementEditTypes;
637
+ parentRef: string;
638
+ };
639
+ underline: {
640
+ value: string;
641
+ property: string;
642
+ propertyType: CMSElementEditTypes;
643
+ parentRef: string;
644
+ };
645
+ textAlign: {
646
+ value: string;
647
+ property: string;
648
+ propertyType: CMSElementEditTypes;
649
+ parentRef: string;
650
+ };
651
+ characterSpacing: {
652
+ value: number;
653
+ unit: number;
654
+ property: string;
655
+ propertyType: CMSElementEditTypes;
656
+ parentRef: string;
657
+ };
658
+ lineHeight: {
659
+ value: number;
660
+ unit: number;
661
+ property: string;
662
+ propertyType: CMSElementEditTypes;
663
+ parentRef: string;
664
+ };
665
+ paragraphSpacing: {
666
+ value: number;
667
+ unit: number;
668
+ property: string;
669
+ propertyType: CMSElementEditTypes;
670
+ parentRef: string;
671
+ };
672
+ selectorKey: SelectorKeysEnum;
673
+ };
674
+ activeText: {
675
+ theme: {
676
+ value: string;
677
+ property: string;
678
+ propertyType: CMSElementEditTypes;
679
+ };
680
+ font: {
681
+ value: string;
682
+ property: string;
683
+ propertyType: CMSElementEditTypes;
684
+ parentRef: string;
685
+ };
686
+ fontSize: {
687
+ value: number;
688
+ unit: number;
689
+ property: string;
690
+ propertyType: CMSElementEditTypes;
691
+ parentRef: string;
692
+ };
693
+ textColor: {
694
+ value: {
695
+ hex: string;
696
+ rgb: {
697
+ r: string;
698
+ g: string;
699
+ b: string;
700
+ a: number;
701
+ };
702
+ };
703
+ property: string;
704
+ propertyType: CMSElementEditTypes;
705
+ parentRef: string;
706
+ };
707
+ textHighlight: {
708
+ value: {
709
+ hex: string;
710
+ rgb: {
711
+ r: string;
712
+ g: string;
713
+ b: string;
714
+ a: number;
715
+ };
716
+ };
717
+ property: string;
718
+ propertyType: CMSElementEditTypes;
719
+ };
720
+ bold: {
721
+ value: string;
722
+ property: string;
723
+ propertyType: CMSElementEditTypes;
724
+ parentRef: string;
725
+ };
726
+ italic: {
727
+ value: string;
728
+ property: string;
729
+ propertyType: CMSElementEditTypes;
730
+ parentRef: string;
731
+ };
732
+ linethrough: {
733
+ value: string;
734
+ property: string;
735
+ propertyType: CMSElementEditTypes;
736
+ parentRef: string;
737
+ };
738
+ underline: {
739
+ value: string;
740
+ property: string;
741
+ propertyType: CMSElementEditTypes;
742
+ parentRef: string;
743
+ };
744
+ textAlign: {
745
+ value: string;
746
+ property: string;
747
+ propertyType: CMSElementEditTypes;
748
+ parentRef: string;
749
+ };
750
+ characterSpacing: {
751
+ value: number;
752
+ unit: number;
753
+ property: string;
754
+ propertyType: CMSElementEditTypes;
755
+ parentRef: string;
756
+ };
757
+ lineHeight: {
758
+ value: number;
759
+ unit: number;
760
+ property: string;
761
+ propertyType: CMSElementEditTypes;
762
+ parentRef: string;
763
+ };
764
+ paragraphSpacing: {
765
+ value: number;
766
+ unit: number;
767
+ property: string;
768
+ propertyType: CMSElementEditTypes;
769
+ parentRef: string;
770
+ };
771
+ selectorKey: SelectorKeysEnum;
772
+ };
773
+ };
774
+ dataConnector: {
775
+ selectorKey: SelectorKeysEnum;
776
+ dataConnector: {
777
+ value: {
778
+ isConnected: boolean;
779
+ dataSource: string;
780
+ childSource: string;
781
+ key: string;
782
+ url: string;
783
+ enum: null;
784
+ connectedKey: null;
785
+ selectedItem: never[];
786
+ keyMappings: {
787
+ text: string;
788
+ };
789
+ };
790
+ property: string;
791
+ propertyType: CMSElementEditTypes;
792
+ };
793
+ };
794
+ };
795
+ export {};