webshims-rails 1.14.6 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/webshims-rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/webshims/polyfiller.js +145 -139
  4. data/vendor/assets/javascripts/webshims/shims/canvas-blob.js +97 -0
  5. data/vendor/assets/javascripts/webshims/shims/combos/1.js +13 -15
  6. data/vendor/assets/javascripts/webshims/shims/combos/10.js +29 -28
  7. data/vendor/assets/javascripts/webshims/shims/combos/11.js +2 -1
  8. data/vendor/assets/javascripts/webshims/shims/combos/12.js +22 -10
  9. data/vendor/assets/javascripts/webshims/shims/combos/13.js +22 -10
  10. data/vendor/assets/javascripts/webshims/shims/combos/15.js +28 -43
  11. data/vendor/assets/javascripts/webshims/shims/combos/16.js +41 -44
  12. data/vendor/assets/javascripts/webshims/shims/combos/17.js +2 -1
  13. data/vendor/assets/javascripts/webshims/shims/combos/2.js +40 -42
  14. data/vendor/assets/javascripts/webshims/shims/combos/21.js +98 -71
  15. data/vendor/assets/javascripts/webshims/shims/combos/22.js +9 -9
  16. data/vendor/assets/javascripts/webshims/shims/combos/23.js +13 -1
  17. data/vendor/assets/javascripts/webshims/shims/combos/25.js +141 -51
  18. data/vendor/assets/javascripts/webshims/shims/combos/27.js +66 -12
  19. data/vendor/assets/javascripts/webshims/shims/combos/28.js +1 -2
  20. data/vendor/assets/javascripts/webshims/shims/combos/3.js +27 -41
  21. data/vendor/assets/javascripts/webshims/shims/combos/30.js +27 -41
  22. data/vendor/assets/javascripts/webshims/shims/combos/31.js +27 -41
  23. data/vendor/assets/javascripts/webshims/shims/combos/34.js +36 -36
  24. data/vendor/assets/javascripts/webshims/shims/combos/4.js +27 -27
  25. data/vendor/assets/javascripts/webshims/shims/combos/5.js +2 -1
  26. data/vendor/assets/javascripts/webshims/shims/combos/6.js +2 -1
  27. data/vendor/assets/javascripts/webshims/shims/combos/7.js +40 -42
  28. data/vendor/assets/javascripts/webshims/shims/combos/8.js +40 -42
  29. data/vendor/assets/javascripts/webshims/shims/combos/9.js +29 -28
  30. data/vendor/assets/javascripts/webshims/shims/combos/98.js +4 -2
  31. data/vendor/assets/javascripts/webshims/shims/combos/99.js +4 -2
  32. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +27 -27
  33. data/vendor/assets/javascripts/webshims/shims/es6.js +23 -29
  34. data/vendor/assets/javascripts/webshims/shims/{filereader.js → filereader-xhr.js} +66 -12
  35. data/vendor/assets/javascripts/webshims/shims/form-core.js +0 -14
  36. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +2 -1
  37. data/vendor/assets/javascripts/webshims/shims/form-shim-extend.js +1 -2
  38. data/vendor/assets/javascripts/webshims/shims/form-validation.js +18 -5
  39. data/vendor/assets/javascripts/webshims/shims/form-validators.js +15 -14
  40. data/vendor/assets/javascripts/webshims/shims/geolocation.js +41 -50
  41. data/vendor/assets/javascripts/webshims/shims/jme/controls.css +4 -4
  42. data/vendor/assets/javascripts/webshims/shims/jme/controls.scss +2 -1
  43. data/vendor/assets/javascripts/webshims/shims/jme/mediacontrols.js +4 -2
  44. data/vendor/assets/javascripts/webshims/shims/mediacapture-picker.js +42 -0
  45. data/vendor/assets/javascripts/webshims/shims/mediacapture.js +159 -0
  46. data/vendor/assets/javascripts/webshims/shims/mediaelement-core.js +13 -1
  47. data/vendor/assets/javascripts/webshims/shims/mediaelement-jaris.js +48 -12
  48. data/vendor/assets/javascripts/webshims/shims/mediaelement-yt.js +20 -8
  49. data/vendor/assets/javascripts/webshims/shims/{combos/26.js → moxie/js/moxie-html4.js} +2121 -1257
  50. data/vendor/assets/javascripts/webshims/shims/moxie/js/{moxie.js → moxie-swf.js} +1125 -1741
  51. data/vendor/assets/javascripts/webshims/shims/sticky.js +585 -0
  52. data/vendor/assets/javascripts/webshims/shims/styles/forms-picker.css +20 -0
  53. data/vendor/assets/javascripts/webshims/shims/styles/scss/forms-picker.scss +23 -0
  54. data/vendor/assets/javascripts/webshims/shims/styles/scss/shim.scss +74 -34
  55. data/vendor/assets/javascripts/webshims/shims/styles/shim-ext.css +78 -31
  56. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +78 -31
  57. data/vendor/assets/javascripts/webshims/shims/swf/JarisFLVPlayer.swf +0 -0
  58. data/vendor/assets/javascripts/webshims/shims/track-ui.js +214 -111
  59. data/vendor/assets/javascripts/webshims/shims/track.js +9 -9
  60. data/vendor/assets/javascripts/webshims/shims/usermedia-core.js +27 -0
  61. data/vendor/assets/javascripts/webshims/shims/usermedia-shim.js +34 -37
  62. metadata +9 -8
  63. data/vendor/assets/javascripts/webshims/shims/jajax.js +0 -1262
  64. data/vendor/assets/javascripts/webshims/shims/moxie/silverlight/Moxie.cdn.xap +0 -0
  65. data/vendor/assets/javascripts/webshims/shims/moxie/silverlight/Moxie.min.xap +0 -0
@@ -439,3 +439,23 @@ SASS:
439
439
  }
440
440
 
441
441
  /* helper classes to hide show/hide specific picker features */
442
+ .capture-popover .ws-po-box {
443
+ padding-left: 0.30769em;
444
+ padding-right: 0.30769em;
445
+ }
446
+
447
+ .ws-videocapture-view {
448
+ position: relative;
449
+ height: 0;
450
+ width: 100%;
451
+ padding-bottom: 70%;
452
+ }
453
+ .ws-videocapture-view .ws-video-overlay,
454
+ .ws-videocapture-view video,
455
+ .ws-videocapture-view .polyfill-video {
456
+ position: absolute !important;
457
+ top: 0;
458
+ left: 0;
459
+ width: 100% !important;
460
+ height: 100% !important;
461
+ }
@@ -474,3 +474,26 @@ $button-bgcolor: #f5f5f5;
474
474
  @extend %#{$class};
475
475
  }
476
476
  }
477
+
478
+ .capture-popover .ws-po-box {
479
+ padding-left: em(4);
480
+ padding-right: em(4);
481
+ }
482
+
483
+ .ws-videocapture-view {
484
+ position: relative;
485
+ height: 0;
486
+ width: 100%;
487
+ padding-bottom: 70%;
488
+
489
+ .ws-video-overlay,
490
+ video,
491
+ .polyfill-video {
492
+ position: absolute !important;
493
+ top: 0;
494
+ left: 0;
495
+ width: 100% !important;
496
+ height: 100% !important;
497
+ }
498
+ }
499
+
@@ -602,7 +602,8 @@ summary.summary-has-focus {
602
602
  outline-offset: -1px;
603
603
  }
604
604
 
605
- .ws-custom-file {
605
+ .ws-custom-file,
606
+ .ws-capture-file {
606
607
  position: relative;
607
608
  overflow: hidden;
608
609
 
@@ -632,7 +633,9 @@ summary.summary-has-focus {
632
633
  margin-right: 0.4em;
633
634
  float: left;
634
635
  }
636
+ }
635
637
 
638
+ .ws-custom-file {
636
639
  .ws-file-value {
637
640
  display: block;
638
641
  overflow: hidden;
@@ -640,39 +643,6 @@ summary.summary-has-focus {
640
643
  text-overflow: ellipsis;
641
644
  }
642
645
 
643
- &:hover > button,
644
- &.ws-mouseenter > button,
645
- > input[type="file"]:focus ~ button {
646
- background: #fff;
647
- border-color: #999;
648
- background: #eee linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
649
- }
650
-
651
-
652
- &:hover > .ws-file-value,
653
- &.ws-mouseenter > .ws-file-value,
654
- > input[type="file"]:focus ~ .ws-file-value {
655
- border-color: #999;
656
- }
657
-
658
- &.ws-active > button,
659
- > input[type="file"]:active ~ button {
660
- border-color: #000;
661
- }
662
-
663
-
664
- &.ws-active > .ws-file-value,
665
- > input[type="file"]:active ~ .ws-file-value {
666
- border-color: #000;
667
- }
668
-
669
- > input[type="file"][disabled] ~ .ws-file-value,
670
- > input[type="file"][disabled] ~ button {
671
- border-color: #bbb;
672
- background: #eee;
673
- color: #999;
674
- }
675
-
676
646
  > input[type="file"],
677
647
  .ws-coverfile {
678
648
  position: absolute;
@@ -717,4 +687,74 @@ summary.summary-has-focus {
717
687
  > .moxie-shim {
718
688
  z-index: 20;
719
689
  }
690
+
691
+ &:hover > button,
692
+ &.ws-mouseenter > button,
693
+ > input[type="file"]:focus ~ button {
694
+ background: #fff;
695
+ border-color: #999;
696
+ background: #eee linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
697
+ }
698
+
699
+
700
+ &:hover > .ws-file-value,
701
+ &.ws-mouseenter > .ws-file-value,
702
+ > input[type="file"]:focus ~ .ws-file-value {
703
+ border-color: #999;
704
+ }
705
+
706
+ &.ws-active > button,
707
+ > input[type="file"]:active ~ button {
708
+ border-color: #000;
709
+ }
710
+
711
+
712
+ &.ws-active > .ws-file-value,
713
+ > input[type="file"]:active ~ .ws-file-value {
714
+ border-color: #000;
715
+ }
716
+
717
+ > input[type="file"][disabled] ~ .ws-file-value,
718
+ > input[type="file"][disabled] ~ button {
719
+ border-color: #bbb;
720
+ background: #eee;
721
+ color: #999;
722
+ }
723
+ }
724
+
725
+ .ws-sticky {
726
+ top: auto;
727
+ left: auto !important;
728
+ right: auto !important;
729
+ bottom: auto;
730
+ position: static;
731
+ position: -webkit-sticky;
732
+ position: -moz-sticky;
733
+ position: -ms-sticky;
734
+ position: -o-sticky;
735
+ position: sticky;
736
+ float: none !important;
737
+ margin-left: 0;
738
+ margin-right: 0;
739
+ }
740
+
741
+ thead.ws-sticky,
742
+ tbody.ws-sticky,
743
+ tfoot.ws-sticky {
744
+ margin-left: -0.8px;
745
+ margin-right: -1px;
746
+ }
747
+
748
+ .ws-sticky.ws-sticky-on {
749
+ position: fixed !important;
750
+ }
751
+
752
+ .ws-fixedsticky-placeholder {
753
+ position: static !important;
754
+ visibility: hidden !important;
755
+ padding: 0;
756
+ border: none;
757
+ margin: 0;
758
+ left: -999px;
759
+ zoom: 1;
720
760
  }
@@ -5,7 +5,8 @@
5
5
  top: -999999px;
6
6
  }
7
7
 
8
- .ws-po-box button, .ws-custom-file > button {
8
+ .ws-po-box button, .ws-custom-file > button,
9
+ .ws-capture-file > button {
9
10
  display: inline-block;
10
11
  overflow: visible;
11
12
  position: relative;
@@ -21,11 +22,13 @@
21
22
  line-height: inherit;
22
23
  touch-action: none;
23
24
  }
24
- .ws-po-box button::-moz-focus-inner, .ws-custom-file > button::-moz-focus-inner {
25
+ .ws-po-box button::-moz-focus-inner, .ws-custom-file > button::-moz-focus-inner,
26
+ .ws-capture-file > button::-moz-focus-inner {
25
27
  border: 0;
26
28
  padding: 0;
27
29
  }
28
- .ws-po-box button[disabled], .ws-custom-file > button[disabled] {
30
+ .ws-po-box button[disabled], .ws-custom-file > button[disabled],
31
+ .ws-capture-file > button[disabled] {
29
32
  cursor: default;
30
33
  color: #888;
31
34
  }
@@ -587,17 +590,22 @@ summary.summary-has-focus {
587
590
  outline-offset: -1px;
588
591
  }
589
592
 
590
- .ws-custom-file {
593
+ .ws-custom-file,
594
+ .ws-capture-file {
591
595
  position: relative;
592
596
  overflow: hidden;
593
597
  }
594
598
  .ws-custom-file > button,
595
- .ws-custom-file > input {
599
+ .ws-custom-file > input,
600
+ .ws-capture-file > button,
601
+ .ws-capture-file > input {
596
602
  box-sizing: border-box;
597
603
  cursor: pointer;
598
604
  }
599
605
  .ws-custom-file > button,
600
- .ws-custom-file > .ws-file-value {
606
+ .ws-custom-file > .ws-file-value,
607
+ .ws-capture-file > button,
608
+ .ws-capture-file > .ws-file-value {
601
609
  position: relative;
602
610
  z-index: 0;
603
611
  display: inline-block;
@@ -607,40 +615,18 @@ summary.summary-has-focus {
607
615
  color: #333;
608
616
  transition: 400ms all;
609
617
  }
610
- .ws-custom-file > button {
618
+ .ws-custom-file > button,
619
+ .ws-capture-file > button {
611
620
  margin-right: 0.4em;
612
621
  float: left;
613
622
  }
623
+
614
624
  .ws-custom-file .ws-file-value {
615
625
  display: block;
616
626
  overflow: hidden;
617
627
  white-space: nowrap;
618
628
  text-overflow: ellipsis;
619
629
  }
620
- .ws-custom-file:hover > button, .ws-custom-file.ws-mouseenter > button,
621
- .ws-custom-file > input[type="file"]:focus ~ button {
622
- background: #fff;
623
- border-color: #999;
624
- background: #eeeeee linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
625
- }
626
- .ws-custom-file:hover > .ws-file-value, .ws-custom-file.ws-mouseenter > .ws-file-value,
627
- .ws-custom-file > input[type="file"]:focus ~ .ws-file-value {
628
- border-color: #999;
629
- }
630
- .ws-custom-file.ws-active > button,
631
- .ws-custom-file > input[type="file"]:active ~ button {
632
- border-color: #000;
633
- }
634
- .ws-custom-file.ws-active > .ws-file-value,
635
- .ws-custom-file > input[type="file"]:active ~ .ws-file-value {
636
- border-color: #000;
637
- }
638
- .ws-custom-file > input[type="file"][disabled] ~ .ws-file-value,
639
- .ws-custom-file > input[type="file"][disabled] ~ button {
640
- border-color: #bbb;
641
- background: #eee;
642
- color: #999;
643
- }
644
630
  .ws-custom-file > input[type="file"],
645
631
  .ws-custom-file .ws-coverfile {
646
632
  position: absolute;
@@ -680,6 +666,67 @@ summary.summary-has-focus {
680
666
  .ws-custom-file > .moxie-shim {
681
667
  z-index: 20;
682
668
  }
669
+ .ws-custom-file:hover > button, .ws-custom-file.ws-mouseenter > button,
670
+ .ws-custom-file > input[type="file"]:focus ~ button {
671
+ background: #fff;
672
+ border-color: #999;
673
+ background: #eeeeee linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
674
+ }
675
+ .ws-custom-file:hover > .ws-file-value, .ws-custom-file.ws-mouseenter > .ws-file-value,
676
+ .ws-custom-file > input[type="file"]:focus ~ .ws-file-value {
677
+ border-color: #999;
678
+ }
679
+ .ws-custom-file.ws-active > button,
680
+ .ws-custom-file > input[type="file"]:active ~ button {
681
+ border-color: #000;
682
+ }
683
+ .ws-custom-file.ws-active > .ws-file-value,
684
+ .ws-custom-file > input[type="file"]:active ~ .ws-file-value {
685
+ border-color: #000;
686
+ }
687
+ .ws-custom-file > input[type="file"][disabled] ~ .ws-file-value,
688
+ .ws-custom-file > input[type="file"][disabled] ~ button {
689
+ border-color: #bbb;
690
+ background: #eee;
691
+ color: #999;
692
+ }
693
+
694
+ .ws-sticky {
695
+ top: auto;
696
+ left: auto !important;
697
+ right: auto !important;
698
+ bottom: auto;
699
+ position: static;
700
+ position: -webkit-sticky;
701
+ position: -moz-sticky;
702
+ position: -ms-sticky;
703
+ position: -o-sticky;
704
+ position: sticky;
705
+ float: none !important;
706
+ margin-left: 0;
707
+ margin-right: 0;
708
+ }
709
+
710
+ thead.ws-sticky,
711
+ tbody.ws-sticky,
712
+ tfoot.ws-sticky {
713
+ margin-left: -0.8px;
714
+ margin-right: -1px;
715
+ }
716
+
717
+ .ws-sticky.ws-sticky-on {
718
+ position: fixed !important;
719
+ }
720
+
721
+ .ws-fixedsticky-placeholder {
722
+ position: static !important;
723
+ visibility: hidden !important;
724
+ padding: 0;
725
+ border: none;
726
+ margin: 0;
727
+ left: -999px;
728
+ zoom: 1;
729
+ }
683
730
 
684
731
  /* style picker api */
685
732
  /* how to use:
@@ -5,7 +5,8 @@
5
5
  top: -999999px;
6
6
  }
7
7
 
8
- .ws-po-box button, .ws-custom-file > button {
8
+ .ws-po-box button, .ws-custom-file > button,
9
+ .ws-capture-file > button {
9
10
  display: inline-block;
10
11
  overflow: visible;
11
12
  position: relative;
@@ -21,11 +22,13 @@
21
22
  line-height: inherit;
22
23
  touch-action: none;
23
24
  }
24
- .ws-po-box button::-moz-focus-inner, .ws-custom-file > button::-moz-focus-inner {
25
+ .ws-po-box button::-moz-focus-inner, .ws-custom-file > button::-moz-focus-inner,
26
+ .ws-capture-file > button::-moz-focus-inner {
25
27
  border: 0;
26
28
  padding: 0;
27
29
  }
28
- .ws-po-box button[disabled], .ws-custom-file > button[disabled] {
30
+ .ws-po-box button[disabled], .ws-custom-file > button[disabled],
31
+ .ws-capture-file > button[disabled] {
29
32
  cursor: default;
30
33
  color: #888;
31
34
  }
@@ -587,17 +590,22 @@ summary.summary-has-focus {
587
590
  outline-offset: -1px;
588
591
  }
589
592
 
590
- .ws-custom-file {
593
+ .ws-custom-file,
594
+ .ws-capture-file {
591
595
  position: relative;
592
596
  overflow: hidden;
593
597
  }
594
598
  .ws-custom-file > button,
595
- .ws-custom-file > input {
599
+ .ws-custom-file > input,
600
+ .ws-capture-file > button,
601
+ .ws-capture-file > input {
596
602
  box-sizing: border-box;
597
603
  cursor: pointer;
598
604
  }
599
605
  .ws-custom-file > button,
600
- .ws-custom-file > .ws-file-value {
606
+ .ws-custom-file > .ws-file-value,
607
+ .ws-capture-file > button,
608
+ .ws-capture-file > .ws-file-value {
601
609
  position: relative;
602
610
  z-index: 0;
603
611
  display: inline-block;
@@ -607,40 +615,18 @@ summary.summary-has-focus {
607
615
  color: #333;
608
616
  transition: 400ms all;
609
617
  }
610
- .ws-custom-file > button {
618
+ .ws-custom-file > button,
619
+ .ws-capture-file > button {
611
620
  margin-right: 0.4em;
612
621
  float: left;
613
622
  }
623
+
614
624
  .ws-custom-file .ws-file-value {
615
625
  display: block;
616
626
  overflow: hidden;
617
627
  white-space: nowrap;
618
628
  text-overflow: ellipsis;
619
629
  }
620
- .ws-custom-file:hover > button, .ws-custom-file.ws-mouseenter > button,
621
- .ws-custom-file > input[type="file"]:focus ~ button {
622
- background: #fff;
623
- border-color: #999;
624
- background: #eeeeee linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
625
- }
626
- .ws-custom-file:hover > .ws-file-value, .ws-custom-file.ws-mouseenter > .ws-file-value,
627
- .ws-custom-file > input[type="file"]:focus ~ .ws-file-value {
628
- border-color: #999;
629
- }
630
- .ws-custom-file.ws-active > button,
631
- .ws-custom-file > input[type="file"]:active ~ button {
632
- border-color: #000;
633
- }
634
- .ws-custom-file.ws-active > .ws-file-value,
635
- .ws-custom-file > input[type="file"]:active ~ .ws-file-value {
636
- border-color: #000;
637
- }
638
- .ws-custom-file > input[type="file"][disabled] ~ .ws-file-value,
639
- .ws-custom-file > input[type="file"][disabled] ~ button {
640
- border-color: #bbb;
641
- background: #eee;
642
- color: #999;
643
- }
644
630
  .ws-custom-file > input[type="file"],
645
631
  .ws-custom-file .ws-coverfile {
646
632
  position: absolute;
@@ -680,3 +666,64 @@ summary.summary-has-focus {
680
666
  .ws-custom-file > .moxie-shim {
681
667
  z-index: 20;
682
668
  }
669
+ .ws-custom-file:hover > button, .ws-custom-file.ws-mouseenter > button,
670
+ .ws-custom-file > input[type="file"]:focus ~ button {
671
+ background: #fff;
672
+ border-color: #999;
673
+ background: #eeeeee linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
674
+ }
675
+ .ws-custom-file:hover > .ws-file-value, .ws-custom-file.ws-mouseenter > .ws-file-value,
676
+ .ws-custom-file > input[type="file"]:focus ~ .ws-file-value {
677
+ border-color: #999;
678
+ }
679
+ .ws-custom-file.ws-active > button,
680
+ .ws-custom-file > input[type="file"]:active ~ button {
681
+ border-color: #000;
682
+ }
683
+ .ws-custom-file.ws-active > .ws-file-value,
684
+ .ws-custom-file > input[type="file"]:active ~ .ws-file-value {
685
+ border-color: #000;
686
+ }
687
+ .ws-custom-file > input[type="file"][disabled] ~ .ws-file-value,
688
+ .ws-custom-file > input[type="file"][disabled] ~ button {
689
+ border-color: #bbb;
690
+ background: #eee;
691
+ color: #999;
692
+ }
693
+
694
+ .ws-sticky {
695
+ top: auto;
696
+ left: auto !important;
697
+ right: auto !important;
698
+ bottom: auto;
699
+ position: static;
700
+ position: -webkit-sticky;
701
+ position: -moz-sticky;
702
+ position: -ms-sticky;
703
+ position: -o-sticky;
704
+ position: sticky;
705
+ float: none !important;
706
+ margin-left: 0;
707
+ margin-right: 0;
708
+ }
709
+
710
+ thead.ws-sticky,
711
+ tbody.ws-sticky,
712
+ tfoot.ws-sticky {
713
+ margin-left: -0.8px;
714
+ margin-right: -1px;
715
+ }
716
+
717
+ .ws-sticky.ws-sticky-on {
718
+ position: fixed !important;
719
+ }
720
+
721
+ .ws-fixedsticky-placeholder {
722
+ position: static !important;
723
+ visibility: hidden !important;
724
+ padding: 0;
725
+ border: none;
726
+ margin: 0;
727
+ left: -999px;
728
+ zoom: 1;
729
+ }