ca-components 1.0.32 → 1.0.34

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,918 @@
1
+ @import 'theme/variables.scss';
2
+ @import './details_page_ske.scss';
3
+
4
+ .datetime-dropdown-holder {
5
+ position: relative;
6
+ top: 16px;
7
+ }
8
+
9
+ .picker_input_holder {
10
+ display: flex;
11
+ min-width: 146px;
12
+ max-width: 260px;
13
+ border-radius: 3px;
14
+ background-color: $bw1;
15
+
16
+ input {
17
+ width: 100%;
18
+ padding-left: 6px;
19
+
20
+ border: none;
21
+ outline: none;
22
+ background-color: transparent;
23
+
24
+ caret-color: transparent;
25
+ -webkit-appearance: none;
26
+
27
+ &:focus {
28
+ outline: none;
29
+ border: none;
30
+ }
31
+
32
+ &::-webkit-input-placeholder {
33
+ /* Edge */
34
+ color: $bw5 !important;
35
+ }
36
+
37
+ &:-ms-input-placeholder {
38
+ /* Internet Explorer 10-11 */
39
+ color: $bw5 !important;
40
+ }
41
+
42
+ &::placeholder {
43
+ color: $bw5 !important;
44
+ }
45
+ }
46
+
47
+ .toggle_picker {
48
+ display: flex;
49
+ justify-content: center;
50
+ align-items: center;
51
+ width: 26px;
52
+ height: 26px;
53
+ min-width: 26px;
54
+ background-color: $bw2;
55
+
56
+ border-radius: 3px;
57
+ cursor: pointer;
58
+
59
+ &::after {
60
+ display: none;
61
+ }
62
+
63
+ svg-icon {
64
+ display: flex;
65
+
66
+ svg {
67
+ width: 12px;
68
+ height: 10px;
69
+
70
+ path {
71
+ fill: $bw5;
72
+ }
73
+ }
74
+ }
75
+ }
76
+
77
+ &:hover {
78
+ opacity: 1;
79
+ }
80
+
81
+ &.active {
82
+ background-color: $bw6-2;
83
+
84
+ border-left: 3px solid $bw6-2;
85
+
86
+ .toggle_picker {
87
+ background-color: $bw5;
88
+
89
+ svg-icon {
90
+ display: flex;
91
+
92
+ svg {
93
+ transform: rotate(180deg);
94
+
95
+ path {
96
+ fill: $white-2;
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ input {
103
+ &::-webkit-input-placeholder {
104
+ /* Edge */
105
+ color: $white-2 !important;
106
+ }
107
+
108
+ &:-ms-input-placeholder {
109
+ /* Internet Explorer 10-11 */
110
+ color: $white-2 !important;
111
+ }
112
+
113
+ &::placeholder {
114
+ color: $white-2 !important;
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ .pickers_holder {
121
+ position: absolute;
122
+ top: 3px !important;
123
+ width: auto !important;
124
+ padding: 0;
125
+
126
+ background-color: $white-2;
127
+ box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
128
+ z-index: 999;
129
+
130
+ border-radius: 3px;
131
+ overflow: hidden;
132
+
133
+ .time_picker {
134
+ width: 167px;
135
+ }
136
+
137
+ .date_picker {
138
+ display: flex;
139
+
140
+ .month-years-size {
141
+ position: relative;
142
+ width: 48px;
143
+
144
+ background-color: $bw1;
145
+
146
+ .calendar_border {
147
+ position: absolute;
148
+ top: 50%;
149
+ width: 100%;
150
+ height: 24px;
151
+ transform: translateY(-50%);
152
+
153
+ background-color: $white-2;
154
+ }
155
+
156
+ .month-year-item {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ height: 24px;
161
+
162
+ font-size: 14px;
163
+ color: $bw5;
164
+ font-weight: $font-regular;
165
+ text-align: center;
166
+ text-transform: uppercase;
167
+
168
+ .left-year-show {
169
+ color: $bw5;
170
+ font-size: 14px;
171
+ font-weight: $font-bold;
172
+ }
173
+
174
+ &:hover {
175
+ color: $bw6-2;
176
+ cursor: pointer;
177
+
178
+ background-color: $white-8;
179
+ border-radius: 2px;
180
+ }
181
+ }
182
+
183
+ cdk-virtual-scroll-viewport {
184
+ ::-webkit-scrollbar {
185
+ display: none;
186
+ }
187
+
188
+ &::-webkit-scrollbar {
189
+ display: none;
190
+ }
191
+ }
192
+
193
+ .cdk-virtual-scroll-content-wrapper {
194
+ padding: 133px 2px 0 2px;
195
+ }
196
+ }
197
+
198
+ .full-calendars-list {
199
+ flex: 1;
200
+ max-height: 290px;
201
+ min-width: 264px;
202
+ overflow: hidden;
203
+
204
+ .full_list {
205
+ height: 100%;
206
+
207
+ .selfScroll {
208
+ width: 100%;
209
+ height: 100%;
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ .time_picker {
216
+ //width: 150px;
217
+
218
+ .time_picker_head {
219
+ height: 36px;
220
+ display: flex;
221
+ padding: 0 12px;
222
+ align-items: center;
223
+ justify-content: space-between;
224
+
225
+ .selected_time {
226
+ font-size: 14px;
227
+ font-weight: $font-extrabold;
228
+ color: $bw6-2;
229
+ }
230
+
231
+ .sel_now {
232
+ color: $primary;
233
+ font-size: 14px;
234
+ font-weight: $font-bold;
235
+
236
+ &:hover {
237
+ cursor: pointer;
238
+ color: $light-blue;
239
+ }
240
+ }
241
+ }
242
+
243
+ .time_picker_body {
244
+ .picker_body_head {
245
+ display: flex;
246
+ height: 22px;
247
+ display: flex;
248
+ align-items: center;
249
+ background-color: $ta-light-grey-5;
250
+ margin: 0 4px 2px 4px;
251
+ border-radius: 2px;
252
+
253
+ div {
254
+ flex: 0 0 33%;
255
+ text-align: center;
256
+
257
+ font-size: 10px;
258
+ font-weight: $font-bold;
259
+ color: $bw5;
260
+
261
+ &.active {
262
+ color: $bw5;
263
+ }
264
+ }
265
+ }
266
+
267
+ .picker_body {
268
+ position: relative;
269
+ height: 155px;
270
+ display: flex;
271
+ justify-content: center;
272
+
273
+ &::after {
274
+ content: '';
275
+ position: absolute;
276
+ width: 100%;
277
+ height: 31px;
278
+ top: -1px;
279
+ left: 0;
280
+ pointer-events: none;
281
+
282
+ background: linear-gradient(
283
+ to bottom,
284
+ rgba(255, 255, 255, 1) 0%,
285
+ rgba(255, 255, 255, 0) 100%
286
+ );
287
+ z-index: 11;
288
+ }
289
+
290
+ &::before {
291
+ content: '';
292
+ position: absolute;
293
+ pointer-events: none;
294
+ width: 100%;
295
+ height: 31px;
296
+ bottom: -1px;
297
+ left: 0;
298
+ background: linear-gradient(
299
+ to top,
300
+ rgba(255, 255, 255, 1) 0%,
301
+ rgba(255, 255, 255, 0) 100%
302
+ );
303
+ z-index: 11;
304
+ }
305
+
306
+ .picker_line {
307
+ position: absolute;
308
+ width: calc(100% - 8px);
309
+ height: 22px;
310
+ top: 50%;
311
+ left: 4px;
312
+ border-radius: 2px;
313
+
314
+ transform: translateY(-50%);
315
+ background-color: $grey-18;
316
+
317
+ span {
318
+ position: absolute;
319
+ left: 30%;
320
+
321
+ font-size: 14px;
322
+ font-weight: $font-regular;
323
+ color: $bw5;
324
+ }
325
+ }
326
+
327
+ .scroll_pickers {
328
+ position: relative;
329
+ height: 22px;
330
+ flex: 0 0 33.3%;
331
+ height: 100%;
332
+ padding: 67px 0;
333
+ margin: 0 7px;
334
+
335
+ overflow: auto;
336
+ text-align: center;
337
+
338
+ -ms-overflow-style: none; /* Internet Explorer 10+ */
339
+ scrollbar-width: none; /* Firefox */
340
+
341
+ z-index: 10;
342
+
343
+ &:first-child {
344
+ flex: 0 0 28px;
345
+ }
346
+
347
+ &:nth-child(2) {
348
+ flex: 0 0 36px;
349
+ }
350
+
351
+ &:nth-child(3) {
352
+ flex: 0 0 38px;
353
+ }
354
+
355
+ &::-webkit-scrollbar {
356
+ display: none; /* Safari and Chrome */
357
+ }
358
+
359
+ .scroll_item {
360
+ height: 22px;
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+
365
+ font-size: 14px;
366
+ color: $bw5;
367
+ font-weight: $font-regular;
368
+ user-select: none;
369
+
370
+ &:hover {
371
+ color: $light-blue;
372
+ cursor: pointer;
373
+ }
374
+ }
375
+
376
+ &:hover {
377
+ //background-color: #f3f3f366;
378
+ box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15);
379
+ }
380
+ }
381
+ }
382
+ }
383
+
384
+ .picker_buttons {
385
+ display: flex;
386
+ padding: 6px;
387
+ justify-content: space-between;
388
+
389
+ .pick_button {
390
+ display: flex;
391
+ align-items: center;
392
+ justify-content: center;
393
+ height: 32px;
394
+ padding: 0 12px;
395
+ text-align: center;
396
+ border-radius: 2px;
397
+
398
+ font-size: 12px;
399
+ font-weight: $font-bold;
400
+ color: $grey-16;
401
+
402
+ &:hover {
403
+ background-color: $ta-light-grey-4;
404
+ color: $bw5;
405
+ cursor: pointer;
406
+ }
407
+
408
+ &.set_button {
409
+ width: 57px;
410
+ text-align: center;
411
+ background-color: $bc1;
412
+ color: $white-2;
413
+
414
+ &:hover {
415
+ background-color: $primary;
416
+ }
417
+ }
418
+ }
419
+ }
420
+ }
421
+
422
+ &.dark_picker {
423
+ background-color: $ta-black-2;
424
+
425
+ .month-years-size {
426
+ width: 40px;
427
+ background-color: $ta-black;
428
+
429
+ .calendar_border {
430
+ position: absolute;
431
+ top: 50%;
432
+ width: 100%;
433
+ height: 26px;
434
+ transform: translateY(-50%);
435
+
436
+ background-color: $ta-black-2;
437
+ }
438
+
439
+ .month-year-item {
440
+ height: 22px;
441
+ color: $ta-light-grey-6;
442
+ font-size: 11px;
443
+
444
+ .left-year-show {
445
+ color: $ta-light-grey-6;
446
+ font-size: 11px;
447
+ }
448
+
449
+ &.current_month_year {
450
+ color: $white-2;
451
+
452
+ .left-year-show {
453
+ color: $white-2;
454
+ font-weight: $font-bold;
455
+ }
456
+ }
457
+
458
+ &:hover {
459
+ color: $white-2;
460
+
461
+ background-color: $ta-black-2;
462
+ }
463
+ }
464
+
465
+ .cdk-virtual-scroll-content-wrapper {
466
+ padding: 133px 4px 0 4px;
467
+ }
468
+ }
469
+
470
+ .date_picker {
471
+ margin: 4px;
472
+
473
+ .full-calendars-list {
474
+ min-width: 184px;
475
+
476
+ .calendar_view {
477
+ width: 182px;
478
+ padding-top: 6px;
479
+ background-color: $ta-black-2;
480
+
481
+ .calendar_view_head {
482
+ padding: 0 6px;
483
+
484
+ .month_name {
485
+ padding: 0 4px;
486
+
487
+ color: $white-2;
488
+ font-size: 11px;
489
+
490
+ .year_hold {
491
+ margin-right: 0;
492
+
493
+ color: $white-2;
494
+ }
495
+ }
496
+
497
+ .today {
498
+ padding: 0 4px;
499
+
500
+ color: $ta-blue-19;
501
+ font-size: 11px;
502
+ text-transform: uppercase;
503
+
504
+ &:hover {
505
+ color: $white-2;
506
+ }
507
+ }
508
+ }
509
+
510
+ .calendars_list_view {
511
+ .calendar_indicator {
512
+ margin: 12px 10px;
513
+
514
+ color: $bw5;
515
+ font-size: 11px;
516
+ text-transform: uppercase;
517
+
518
+ &.current_year {
519
+ color: $white-2;
520
+ }
521
+
522
+ &.full_calendar {
523
+ margin-bottom: 4px;
524
+ }
525
+ }
526
+
527
+ .calendar_month_days {
528
+ display: grid;
529
+ grid-template-columns: repeat(7, 1fr);
530
+ gap: 4px;
531
+ margin: 0 6px 4px 6px;
532
+ padding: 0;
533
+
534
+ .cal_day {
535
+ width: 22px;
536
+ height: 22px;
537
+ margin: 0;
538
+
539
+ font-size: 9px;
540
+ color: $ta-light-grey-2;
541
+ text-align: center;
542
+ }
543
+ }
544
+
545
+ .month_list {
546
+ display: grid;
547
+ grid-template-columns: repeat(3, 1fr);
548
+ column-gap: 4px;
549
+ row-gap: 12px;
550
+ justify-content: unset;
551
+ margin: 0 6px;
552
+
553
+ .month_list_item {
554
+ margin: 0;
555
+ height: 22px;
556
+
557
+ color: $bw5;
558
+ font-size: 11px;
559
+
560
+ &:hover:not(.current_month) {
561
+ background-color: $ta-black;
562
+ color: $white-2;
563
+ border-radius: 2px;
564
+ cursor: pointer;
565
+ }
566
+
567
+ &.current_month {
568
+ color: $white-2;
569
+ background-color: $ta-blue-21;
570
+ border-radius: 2px;
571
+ cursor: pointer;
572
+ }
573
+ }
574
+
575
+ &.current_year {
576
+ .month_list_item {
577
+ color: $white-2;
578
+ }
579
+ }
580
+ }
581
+
582
+ .calendar_days {
583
+ display: grid;
584
+ grid-template-columns: repeat(7, 1fr);
585
+ gap: 4px;
586
+ margin: 0 6px;
587
+ padding: 0;
588
+ height: auto;
589
+
590
+ .calendar_day {
591
+ width: 22px;
592
+ height: 22px;
593
+ margin: 0;
594
+ color: $bw5;
595
+ font-size: 11px;
596
+
597
+ &.current_day {
598
+ color: $white-2;
599
+ background-color: $ta-blue-21;
600
+ border-radius: 2px;
601
+ }
602
+
603
+ &.selected_day {
604
+ background-color: $ta-blue-21;
605
+ color: $white-2;
606
+ border-radius: 2px;
607
+ }
608
+
609
+ &.day_in_current_month {
610
+ color: $white-2;
611
+ }
612
+
613
+ &.weekend_day_in_current_month {
614
+ color: $ta-light-grey-6;
615
+ }
616
+
617
+ &:not(.empty_day):not(.selected_day):hover {
618
+ background-color: $ta-black;
619
+ border-radius: 2px;
620
+
621
+ cursor: pointer;
622
+ color: $white-2;
623
+ }
624
+ }
625
+ }
626
+ }
627
+ }
628
+ }
629
+ }
630
+
631
+ .time_picker {
632
+ width: 156px;
633
+ margin: 4px;
634
+
635
+ .time_picker_head {
636
+ height: 18px;
637
+ padding: 0 4px;
638
+ margin-bottom: 4px;
639
+
640
+ .selected_time {
641
+ color: $white-2;
642
+ font-size: 11px;
643
+ }
644
+
645
+ .sel_now {
646
+ color: $ta-blue-19;
647
+ font-size: 11px;
648
+ text-transform: uppercase;
649
+ }
650
+ }
651
+
652
+ .time_picker_body {
653
+ .picker_body_head {
654
+ display: grid;
655
+ grid-template-columns: repeat(3, 1fr);
656
+ column-gap: 4px;
657
+ margin: 0 0 4px 0;
658
+ padding: 2px;
659
+ background: none;
660
+
661
+ div {
662
+ color: $ta-light-grey-2;
663
+ font-size: 9px;
664
+ text-align: center;
665
+ text-transform: uppercase;
666
+ }
667
+ }
668
+
669
+ .picker_body {
670
+ height: 176px;
671
+ display: grid;
672
+ grid-template-columns: repeat(3, 1fr);
673
+ column-gap: 4px;
674
+ padding: 0 2px;
675
+
676
+ &::before {
677
+ display: none;
678
+ }
679
+
680
+ &::after {
681
+ display: none;
682
+ }
683
+
684
+ .picker_line {
685
+ left: 0;
686
+ width: 100%;
687
+ background-color: $ta-blue-20;
688
+
689
+ .border_line {
690
+ left: 33.3%;
691
+ width: 1px;
692
+ height: 12px;
693
+ margin-top: 5px;
694
+ background-color: $ta-blue-19;
695
+ opacity: 0.4;
696
+ border-radius: 2px;
697
+
698
+ &.line_2 {
699
+ left: 66.6%;
700
+ }
701
+ }
702
+ }
703
+
704
+ .scroll_pickers {
705
+ margin: 0;
706
+ padding: 77px 0;
707
+
708
+ .scroll_item {
709
+ color: $ta-light-grey-2;
710
+ font-size: 11px;
711
+
712
+ &.active_item {
713
+ color: $white-2;
714
+ }
715
+ }
716
+ }
717
+ }
718
+
719
+ .picker_buttons {
720
+ display: grid;
721
+ grid-template-columns: repeat(2, 1fr);
722
+ column-gap: 4px;
723
+
724
+ margin-top: 6px;
725
+ padding: 4px 0 0 0;
726
+ border-top: 1px solid $ta-black;
727
+
728
+ .pick_button {
729
+ height: 18px;
730
+ background-color: $ta-black;
731
+
732
+ color: $white-2;
733
+ font-size: 11px;
734
+ text-transform: uppercase;
735
+
736
+ border-radius: 1px;
737
+
738
+ &.set_button {
739
+ width: auto;
740
+ background-color: $ta-blue-14;
741
+ }
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ }
748
+
749
+ .calendar_view {
750
+ width: 260px;
751
+ padding-top: 12px;
752
+ background-color: $white-2;
753
+
754
+ .calendar_view_head {
755
+ display: flex;
756
+ justify-content: space-between;
757
+ margin-bottom: 12px;
758
+ padding: 0 12px;
759
+
760
+ .month_name {
761
+ font-size: 12px;
762
+ font-weight: $font-bold;
763
+ color: $bw6-2;
764
+
765
+ .year_hold {
766
+ margin-right: 5px;
767
+ text-transform: uppercase;
768
+ color: $bw6-2;
769
+
770
+ &:hover {
771
+ color: $bw5;
772
+ }
773
+
774
+ cursor: pointer;
775
+ }
776
+ }
777
+
778
+ .today {
779
+ font-size: 12px;
780
+ font-weight: $font-bold;
781
+ color: $blue-19;
782
+ cursor: pointer;
783
+
784
+ &:hover {
785
+ color: $ta-blue-2;
786
+ }
787
+ }
788
+ }
789
+
790
+ .calendars_list_view {
791
+ cdk-virtual-scroll-viewport {
792
+ height: 230px;
793
+ min-height: 230px;
794
+
795
+ ::-webkit-scrollbar {
796
+ display: none;
797
+ }
798
+
799
+ &::-webkit-scrollbar {
800
+ display: none;
801
+ }
802
+
803
+ .cdk-virtual-scroll-content-wrapper {
804
+ }
805
+ }
806
+
807
+ .calendar_indicator {
808
+ margin: 12px;
809
+ height: 18px;
810
+
811
+ font-size: 12px;
812
+ color: $grey-17;
813
+ font-weight: $font-bold;
814
+ }
815
+
816
+ .calendar_month_days {
817
+ padding: 0 3px;
818
+
819
+ &.hideVisibility {
820
+ visibility: hidden;
821
+ }
822
+
823
+ .cal_day {
824
+ width: 24px;
825
+ margin: 0 6px;
826
+
827
+ font-size: 12px;
828
+ font-weight: $font-bold;
829
+ color: $bw4;
830
+ }
831
+ }
832
+
833
+ .calendar_days {
834
+ height: 140px;
835
+ display: flex;
836
+ flex-wrap: wrap;
837
+ padding: 0 3px;
838
+
839
+ .calendar_day {
840
+ display: flex;
841
+ align-items: center;
842
+ justify-content: center;
843
+ flex: 0 0 24px;
844
+ width: 24px;
845
+ height: 24px;
846
+ margin: 0 6px;
847
+
848
+ font-size: 14px;
849
+ font-weight: $font-regular;
850
+ color: $bw6-2;
851
+
852
+ &.current_day {
853
+ color: $white-2;
854
+ background-color: $bw5;
855
+ border-radius: 2px;
856
+ }
857
+
858
+ &.selected_day {
859
+ background-color: $bw5;
860
+ color: $white-2;
861
+ border-radius: 2px;
862
+ }
863
+
864
+ &:not(.empty_day):not(.selected_day):hover {
865
+ background-color: $ta-light-grey-5;
866
+ border-radius: 2px;
867
+
868
+ cursor: pointer;
869
+ color: $ta-light-grey-3;
870
+ }
871
+ }
872
+ }
873
+ }
874
+
875
+ .month_list {
876
+ display: flex;
877
+ flex-wrap: wrap;
878
+ justify-content: space-around;
879
+ height: 140px;
880
+
881
+ .month_list_item {
882
+ flex: 0 0 50px;
883
+ height: 24px;
884
+ margin: 0px 10px;
885
+ display: flex;
886
+ align-items: center;
887
+ justify-content: center;
888
+ border-radius: 3px;
889
+ font-size: 12px;
890
+ color: $bw6-2;
891
+ font-weight: $font-regular;
892
+
893
+ &:hover:not(.current_month) {
894
+ background-color: $ta-light-grey-5;
895
+ color: $ta-light-grey-3;
896
+ border-radius: 2px;
897
+ cursor: pointer;
898
+ }
899
+
900
+ &.current_month {
901
+ color: $ta-light-grey-3;
902
+ background-color: $ta-light-grey-5;
903
+ border-radius: 2px;
904
+ cursor: pointer;
905
+ }
906
+ }
907
+ }
908
+ }
909
+
910
+ .dropdown {
911
+ z-index: 999 !important;
912
+ }
913
+
914
+ input[type='date']::-webkit-inner-spin-button,
915
+ input[type='date']::-webkit-calendar-picker-indicator {
916
+ display: none;
917
+ -webkit-appearance: none;
918
+ }