flatpickr 2.4.8.0 → 2.4.9.0

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.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flatpickr/version.rb +1 -1
  3. data/vendor/assets/javascripts/flatpickr.js +307 -230
  4. data/vendor/assets/javascripts/flatpickr/l10n/gr.js +31 -0
  5. data/vendor/assets/javascripts/flatpickr/l10n/nl.js +4 -4
  6. data/vendor/assets/stylesheets/flatpickr.css +4 -4
  7. data/vendor/assets/stylesheets/flatpickr/rtl/flatpickr.min.css +13 -0
  8. data/vendor/assets/stylesheets/flatpickr/rtl/themes/airbnb.rtl.css +332 -49
  9. data/vendor/assets/stylesheets/flatpickr/rtl/themes/base16_flat.rtl.css +291 -36
  10. data/vendor/assets/stylesheets/flatpickr/rtl/themes/confetti.rtl.css +294 -38
  11. data/vendor/assets/stylesheets/flatpickr/rtl/themes/dark.rtl.css +294 -39
  12. data/vendor/assets/stylesheets/flatpickr/rtl/themes/material_blue.rtl.css +301 -45
  13. data/vendor/assets/stylesheets/flatpickr/rtl/themes/material_green.rtl.css +301 -45
  14. data/vendor/assets/stylesheets/flatpickr/rtl/themes/material_orange.rtl.css +301 -45
  15. data/vendor/assets/stylesheets/flatpickr/rtl/themes/material_red.rtl.css +301 -45
  16. data/vendor/assets/stylesheets/flatpickr/themes/airbnb.css +308 -72
  17. data/vendor/assets/stylesheets/flatpickr/themes/base16_flat.css +267 -59
  18. data/vendor/assets/stylesheets/flatpickr/themes/confetti.css +270 -61
  19. data/vendor/assets/stylesheets/flatpickr/themes/dark.css +270 -62
  20. data/vendor/assets/stylesheets/flatpickr/themes/material_blue.css +277 -68
  21. data/vendor/assets/stylesheets/flatpickr/themes/material_green.css +277 -68
  22. data/vendor/assets/stylesheets/flatpickr/themes/material_orange.css +277 -68
  23. data/vendor/assets/stylesheets/flatpickr/themes/material_red.css +277 -68
  24. metadata +3 -2
@@ -26,9 +26,11 @@
26
26
  }
27
27
  .flatpickr-calendar.open {
28
28
  display: inline-block;
29
- animation: flatpickrFadeInDown 300ms cubic-bezier(0, 1, 0.5, 1);
30
29
  z-index: 99999;
31
30
  }
31
+ .flatpickr-calendar.animate.open {
32
+ animation: flatpickrFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
33
+ }
32
34
  .flatpickr-calendar.inline {
33
35
  display: block;
34
36
  position: relative;
@@ -45,15 +47,24 @@
45
47
  .flatpickr-calendar.hasWeeks {
46
48
  width: auto;
47
49
  }
50
+ .flatpickr-calendar .hasWeeks .dayContainer,
51
+ .flatpickr-calendar .hasTime .dayContainer {
52
+ border-bottom: 0;
53
+ border-bottom-left-radius: 0;
54
+ border-bottom-right-radius: 0;
55
+ }
56
+ .flatpickr-calendar .hasWeeks .dayContainer {
57
+ border-right: 0;
58
+ }
48
59
  .flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
49
60
  height: 40px;
50
- border-top: 1px solid rgba(255,138,101,0.2);
61
+ border-top: 1px solid rgba(72,72,72,0.2);
51
62
  }
52
63
  .flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer {
53
64
  border-bottom: 0;
54
65
  }
55
66
  .flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
56
- border: 1px solid rgba(255,138,101,0.2);
67
+ border: 1px solid rgba(72,72,72,0.2);
57
68
  }
58
69
  .flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
59
70
  height: auto;
@@ -87,7 +98,7 @@
87
98
  bottom: 100%;
88
99
  }
89
100
  .flatpickr-calendar.arrowTop:before {
90
- border-bottom-color: rgba(255,138,101,0.2);
101
+ border-bottom-color: rgba(72,72,72,0.2);
91
102
  }
92
103
  .flatpickr-calendar.arrowTop:after {
93
104
  border-bottom-color: #ff8a65;
@@ -97,11 +108,14 @@
97
108
  top: 100%;
98
109
  }
99
110
  .flatpickr-calendar.arrowBottom:before {
100
- border-top-color: rgba(255,138,101,0.2);
111
+ border-top-color: rgba(72,72,72,0.2);
101
112
  }
102
113
  .flatpickr-calendar.arrowBottom:after {
103
114
  border-top-color: #ff8a65;
104
115
  }
116
+ .flatpickr-calendar:focus {
117
+ outline: 0;
118
+ }
105
119
  .flatpickr-wrapper {
106
120
  position: relative;
107
121
  display: inline-block;
@@ -116,15 +130,17 @@
116
130
  text-align: center;
117
131
  position: relative;
118
132
  user-select: none;
133
+ overflow: hidden;
119
134
  }
120
135
  .flatpickr-prev-month,
121
136
  .flatpickr-next-month {
122
137
  text-decoration: none;
123
138
  cursor: pointer;
124
139
  position: absolute;
125
- top: 10px;
126
- height: 16px;
140
+ top: 0px;
141
+ height: 28px;
127
142
  line-height: 16px;
143
+ padding: 10px calc(3.57% - 1.5px);
128
144
  }
129
145
  .flatpickr-prev-month i,
130
146
  .flatpickr-next-month i {
@@ -136,7 +152,7 @@
136
152
  /*rtl:begin:ignore*/
137
153
  /*
138
154
  */
139
- right: calc(3.57% - 1.5px);
155
+ right: 0;
140
156
  /*
141
157
  /*rtl:end:ignore*/
142
158
  /*
@@ -152,7 +168,7 @@
152
168
  /*rtl:begin:ignore*/
153
169
  /*
154
170
  */
155
- left: calc(3.57% - 1.5px);
171
+ left: 0;
156
172
  /*
157
173
  /*rtl:end:ignore*/
158
174
  /*
@@ -255,6 +271,23 @@
255
271
  top: 5px;
256
272
  display: inline-block;
257
273
  text-align: center;
274
+ transform: translate(0px, 0px);
275
+ }
276
+ .flatpickr-current-month.slideLeft {
277
+ transform: translate(100%, 0px);
278
+ animation: fadeOut 400ms ease, slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
279
+ }
280
+ .flatpickr-current-month.slideLeftNew {
281
+ transform: translate(-100%, 0px);
282
+ animation: fadeIn 400ms ease, slideLeftNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
283
+ }
284
+ .flatpickr-current-month.slideRight {
285
+ transform: translate(-100%, 0px);
286
+ animation: fadeOut 400ms ease, slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
287
+ }
288
+ .flatpickr-current-month.slideRightNew {
289
+ transform: translate(0, 0);
290
+ animation: fadeIn 400ms ease, slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
258
291
  }
259
292
  .flatpickr-current-month span.cur-month {
260
293
  font-family: inherit;
@@ -309,16 +342,47 @@
309
342
  background: #ff8a65;
310
343
  text-align: center;
311
344
  overflow: hidden;
345
+ width: 315px;
346
+ display: flex;
347
+ align-items: center;
348
+ height: 28px;
312
349
  }
313
- .flatpickr-days,
350
+ span.flatpickr-weekday {
351
+ cursor: default;
352
+ font-size: 90%;
353
+ color: rgba(0,0,0,0.54);
354
+ line-height: 1;
355
+ margin: 0;
356
+ background: #ff8a65;
357
+ text-align: center;
358
+ display: block;
359
+ flex: 1;
360
+ font-weight: bolder;
361
+ margin: 0;
362
+ }
363
+ .dayContainer,
314
364
  .flatpickr-weeks {
315
365
  padding: 1px 0 0 0;
316
366
  }
317
367
  .flatpickr-days {
368
+ position: relative;
369
+ overflow: hidden;
370
+ display: flex;
371
+ width: 315px;
372
+ background: #fff;
373
+ border-right: 1px solid rgba(72,72,72,0.2);
374
+ border-left: 1px solid rgba(72,72,72,0.2);
375
+ }
376
+ .flatpickr-days:focus {
377
+ outline: 0;
378
+ }
379
+ .dayContainer {
318
380
  padding: 0;
319
381
  outline: 0;
320
382
  text-align: right;
321
383
  width: 315px;
384
+ min-width: 315px;
385
+ max-width: 315px;
322
386
  box-sizing: border-box;
323
387
  display: inline-block;
324
388
  display: -ms-flexbox;
@@ -327,8 +391,25 @@
327
391
  -ms-flex-wrap: wrap;
328
392
  -ms-flex-pack: justify;
329
393
  justify-content: space-around;
330
- border-left: 1px solid rgba(255,138,101,0.2);
331
- border-right: 1px solid rgba(255,138,101,0.2);
394
+ transform: translate(0px, 0px);
395
+ opacity: 1;
396
+ }
397
+ .flatpickr-calendar.animate .dayContainer.slideLeft {
398
+ animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
399
+ }
400
+ .flatpickr-calendar.animate .dayContainer.slideLeft,
401
+ .flatpickr-calendar.animate .dayContainer.slideLeftNew {
402
+ transform: translate(100%, 0px);
403
+ }
404
+ .flatpickr-calendar.animate .dayContainer.slideLeftNew {
405
+ animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
406
+ }
407
+ .flatpickr-calendar.animate .dayContainer.slideRight {
408
+ animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
409
+ transform: translate(-100%, 0px);
410
+ }
411
+ .flatpickr-calendar.animate .dayContainer.slideRightNew {
412
+ animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
332
413
  }
333
414
  .flatpickr-day {
334
415
  background: none;
@@ -378,6 +459,9 @@
378
459
  .flatpickr-day.selected,
379
460
  .flatpickr-day.startRange,
380
461
  .flatpickr-day.endRange,
462
+ .flatpickr-day.selected.inRange,
463
+ .flatpickr-day.startRange.inRange,
464
+ .flatpickr-day.endRange.inRange,
381
465
  .flatpickr-day.selected:focus,
382
466
  .flatpickr-day.startRange:focus,
383
467
  .flatpickr-day.endRange:focus,
@@ -391,6 +475,7 @@
391
475
  .flatpickr-day.startRange.nextMonthDay,
392
476
  .flatpickr-day.endRange.nextMonthDay {
393
477
  background: #ff8a65;
478
+ box-shadow: none;
394
479
  color: #fff;
395
480
  border-color: #ff8a65;
396
481
  }
@@ -404,6 +489,11 @@
404
489
  .flatpickr-day.endRange.endRange {
405
490
  border-radius: 50px 0 0 50px;
406
491
  }
492
+ .flatpickr-day.selected.startRange + .endRange,
493
+ .flatpickr-day.startRange.startRange + .endRange,
494
+ .flatpickr-day.endRange.startRange + .endRange {
495
+ box-shadow: 10px 0 0 #ff8a65;
496
+ }
407
497
  .flatpickr-day.selected.startRange.endRange,
408
498
  .flatpickr-day.startRange.startRange.endRange,
409
499
  .flatpickr-day.endRange.startRange.endRange {
@@ -429,22 +519,6 @@
429
519
  border-color: transparent;
430
520
  cursor: default;
431
521
  }
432
- span.flatpickr-weekday {
433
- cursor: default;
434
- font-size: 90%;
435
- color: rgba(0,0,0,0.54);
436
- height: 27.333333333333332px;
437
- line-height: 24px;
438
- margin: 0;
439
- background: #ff8a65;
440
- text-align: center;
441
- display: block;
442
- float: right;
443
- width: 14.28%;
444
- font-weight: bold;
445
- margin: 0;
446
- padding-top: 3.333333333333333px;
447
- }
448
522
  .rangeMode .flatpickr-day {
449
523
  margin-top: 1px;
450
524
  }
@@ -454,8 +528,8 @@ span.flatpickr-weekday {
454
528
  }
455
529
  .flatpickr-weekwrapper .flatpickr-weeks {
456
530
  padding: 1px 12px 0 12px;
457
- border-right: 1px solid rgba(255,138,101,0.2);
458
- box-shadow: -1px 0 0 rgba(255,138,101,0.2);
531
+ border-right: 1px solid rgba(72,72,72,0.2);
532
+ box-shadow: -1px 0 0 rgba(72,72,72,0.2);
459
533
  }
460
534
  .flatpickr-weekwrapper .flatpickr-weekday {
461
535
  float: none;
@@ -472,7 +546,7 @@ span.flatpickr-weekday {
472
546
  box-sizing: border-box;
473
547
  overflow: hidden;
474
548
  background: #fff;
475
- border-bottom: 1px solid rgba(255,138,101,0.2);
549
+ border-bottom: 1px solid rgba(72,72,72,0.2);
476
550
  }
477
551
  .flatpickr-rContainer {
478
552
  display: inline-block;
@@ -488,7 +562,6 @@ span.flatpickr-weekday {
488
562
  max-height: 40px;
489
563
  box-sizing: border-box;
490
564
  overflow: hidden;
491
- transition: height 0.33s cubic-bezier(0, 1, 0.5, 1);
492
565
  display: flex;
493
566
  background: #fff;
494
567
  border-radius: 0 0 5px 5px;
@@ -565,15 +638,6 @@ span.flatpickr-weekday {
565
638
  .flatpickr-time .flatpickr-am-pm:focus {
566
639
  background: #ececec;
567
640
  }
568
- .hasWeeks .flatpickr-days,
569
- .hasTime .flatpickr-days {
570
- border-bottom: 0;
571
- border-bottom-left-radius: 0;
572
- border-bottom-right-radius: 0;
573
- }
574
- .hasWeeks .flatpickr-days {
575
- border-right: 0;
576
- }
577
641
  @media all and (-ms-high-contrast: none) {
578
642
  .flatpickr-month {
579
643
  padding: 0;
@@ -592,7 +656,7 @@ span.flatpickr-weekday {
592
656
  }
593
657
  to {
594
658
  opacity: 1;
595
- transform: none;
659
+ transform: translate3d(0, 0, 0);
596
660
  }
597
661
  }
598
662
  @-webkit-keyframes flatpickrFadeInDown {
@@ -602,7 +666,7 @@ span.flatpickr-weekday {
602
666
  }
603
667
  to {
604
668
  opacity: 1;
605
- transform: none;
669
+ transform: translate3d(0, 0, 0);
606
670
  }
607
671
  }
608
672
  @-o-keyframes flatpickrFadeInDown {
@@ -612,7 +676,7 @@ span.flatpickr-weekday {
612
676
  }
613
677
  to {
614
678
  opacity: 1;
615
- transform: none;
679
+ transform: translate3d(0, 0, 0);
616
680
  }
617
681
  }
618
682
  @keyframes flatpickrFadeInDown {
@@ -622,6 +686,198 @@ span.flatpickr-weekday {
622
686
  }
623
687
  to {
624
688
  opacity: 1;
625
- transform: none;
689
+ transform: translate3d(0, 0, 0);
690
+ }
691
+ }
692
+ @-moz-keyframes slideLeft {
693
+ from {
694
+ transform: translate(0px, 0px);
695
+ }
696
+ to {
697
+ transform: translate(100%, 0px);
698
+ }
699
+ }
700
+ @-webkit-keyframes slideLeft {
701
+ from {
702
+ transform: translate(0px, 0px);
703
+ }
704
+ to {
705
+ transform: translate(100%, 0px);
706
+ }
707
+ }
708
+ @-o-keyframes slideLeft {
709
+ from {
710
+ transform: translate(0px, 0px);
711
+ }
712
+ to {
713
+ transform: translate(100%, 0px);
714
+ }
715
+ }
716
+ @keyframes slideLeft {
717
+ from {
718
+ transform: translate(0px, 0px);
719
+ }
720
+ to {
721
+ transform: translate(100%, 0px);
722
+ }
723
+ }
724
+ @-moz-keyframes slideLeftNew {
725
+ from {
726
+ transform: translate(-100%, 0px);
727
+ }
728
+ to {
729
+ transform: translate(0px, 0px);
730
+ }
731
+ }
732
+ @-webkit-keyframes slideLeftNew {
733
+ from {
734
+ transform: translate(-100%, 0px);
735
+ }
736
+ to {
737
+ transform: translate(0px, 0px);
738
+ }
739
+ }
740
+ @-o-keyframes slideLeftNew {
741
+ from {
742
+ transform: translate(-100%, 0px);
743
+ }
744
+ to {
745
+ transform: translate(0px, 0px);
746
+ }
747
+ }
748
+ @keyframes slideLeftNew {
749
+ from {
750
+ transform: translate(-100%, 0px);
751
+ }
752
+ to {
753
+ transform: translate(0px, 0px);
754
+ }
755
+ }
756
+ @-moz-keyframes slideRight {
757
+ from {
758
+ transform: translate(0, 0);
759
+ }
760
+ to {
761
+ transform: translate(-100%, 0px);
762
+ }
763
+ }
764
+ @-webkit-keyframes slideRight {
765
+ from {
766
+ transform: translate(0, 0);
767
+ }
768
+ to {
769
+ transform: translate(-100%, 0px);
770
+ }
771
+ }
772
+ @-o-keyframes slideRight {
773
+ from {
774
+ transform: translate(0, 0);
775
+ }
776
+ to {
777
+ transform: translate(-100%, 0px);
778
+ }
779
+ }
780
+ @keyframes slideRight {
781
+ from {
782
+ transform: translate(0, 0);
783
+ }
784
+ to {
785
+ transform: translate(-100%, 0px);
786
+ }
787
+ }
788
+ @-moz-keyframes slideRightNew {
789
+ from {
790
+ transform: translate(100%, 0);
791
+ }
792
+ to {
793
+ transform: translate(0, 0);
794
+ }
795
+ }
796
+ @-webkit-keyframes slideRightNew {
797
+ from {
798
+ transform: translate(100%, 0);
799
+ }
800
+ to {
801
+ transform: translate(0, 0);
802
+ }
803
+ }
804
+ @-o-keyframes slideRightNew {
805
+ from {
806
+ transform: translate(100%, 0);
807
+ }
808
+ to {
809
+ transform: translate(0, 0);
810
+ }
811
+ }
812
+ @keyframes slideRightNew {
813
+ from {
814
+ transform: translate(100%, 0);
815
+ }
816
+ to {
817
+ transform: translate(0, 0);
818
+ }
819
+ }
820
+ @-moz-keyframes fadeOut {
821
+ from {
822
+ opacity: 1;
823
+ }
824
+ to {
825
+ opacity: 0;
826
+ }
827
+ }
828
+ @-webkit-keyframes fadeOut {
829
+ from {
830
+ opacity: 1;
831
+ }
832
+ to {
833
+ opacity: 0;
834
+ }
835
+ }
836
+ @-o-keyframes fadeOut {
837
+ from {
838
+ opacity: 1;
839
+ }
840
+ to {
841
+ opacity: 0;
842
+ }
843
+ }
844
+ @keyframes fadeOut {
845
+ from {
846
+ opacity: 1;
847
+ }
848
+ to {
849
+ opacity: 0;
850
+ }
851
+ }
852
+ @-moz-keyframes fadeIn {
853
+ from {
854
+ opacity: 0;
855
+ }
856
+ to {
857
+ opacity: 1;
858
+ }
859
+ }
860
+ @-webkit-keyframes fadeIn {
861
+ from {
862
+ opacity: 0;
863
+ }
864
+ to {
865
+ opacity: 1;
866
+ }
867
+ }
868
+ @-o-keyframes fadeIn {
869
+ from {
870
+ opacity: 0;
871
+ }
872
+ to {
873
+ opacity: 1;
874
+ }
875
+ }
876
+ @keyframes fadeIn {
877
+ from {
878
+ opacity: 0;
879
+ }
880
+ to {
881
+ opacity: 1;
626
882
  }
627
883
  }