sw2at-ui 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/Gemfile +21 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +19 -0
  6. data/Rakefile +51 -0
  7. data/VERSION +1 -0
  8. data/app/assets/images/swat/loading-green.gif +0 -0
  9. data/app/assets/javascripts/swat/.bowerrc +3 -0
  10. data/app/assets/javascripts/swat/app/app.coffee +38 -0
  11. data/app/assets/javascripts/swat/app/controllers/revision.coffee +25 -0
  12. data/app/assets/javascripts/swat/app/controllers/revisions.coffee +10 -0
  13. data/app/assets/javascripts/swat/app/controllers/root.coffee +8 -0
  14. data/app/assets/javascripts/swat/app/factories/response.coffee +9 -0
  15. data/app/assets/javascripts/swat/app/factories/revision_model.coffee +20 -0
  16. data/app/assets/javascripts/swat/app/services/revision.coffee +16 -0
  17. data/app/assets/javascripts/swat/app/services/test_case.coffee +8 -0
  18. data/app/assets/javascripts/swat/application.coffee +5 -0
  19. data/app/assets/javascripts/swat/bower.json +16 -0
  20. data/app/assets/javascripts/swat/bower_components/angular/angular-csp.css +21 -0
  21. data/app/assets/javascripts/swat/bower_components/angular/angular.js +28133 -0
  22. data/app/assets/javascripts/swat/bower_components/angular/angular.min.js +289 -0
  23. data/app/assets/javascripts/swat/bower_components/angular/index.js +2 -0
  24. data/app/assets/javascripts/swat/bower_components/angular-animate/angular-animate.js +2137 -0
  25. data/app/assets/javascripts/swat/bower_components/angular-animate/angular-animate.min.js +33 -0
  26. data/app/assets/javascripts/swat/bower_components/angular-aria/angular-aria.js +339 -0
  27. data/app/assets/javascripts/swat/bower_components/angular-aria/angular-aria.min.js +12 -0
  28. data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-csp.css +6 -0
  29. data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-tpls.js +4840 -0
  30. data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js +10 -0
  31. data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap.js +4461 -0
  32. data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap.min.js +9 -0
  33. data/app/assets/javascripts/swat/bower_components/angular-material/LICENSE.txt +21 -0
  34. data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.css +6228 -0
  35. data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.js +8602 -0
  36. data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.min.css +6 -0
  37. data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.min.js +277 -0
  38. data/app/assets/javascripts/swat/bower_components/angular-material/default-theme.css +394 -0
  39. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css +8 -0
  40. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop.css +54 -0
  41. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop.js +40 -0
  42. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css +15 -0
  43. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css +161 -0
  44. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js +263 -0
  45. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button-default-theme.css +49 -0
  46. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button.css +134 -0
  47. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button.js +101 -0
  48. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card-default-theme.css +10 -0
  49. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card.css +26 -0
  50. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card.js +60 -0
  51. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css +38 -0
  52. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox.css +78 -0
  53. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox.js +135 -0
  54. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content-default-theme.css +8 -0
  55. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content.css +24 -0
  56. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content.js +87 -0
  57. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/core.css +2736 -0
  58. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/core.js +3090 -0
  59. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/default-theme.js +1 -0
  60. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css +11 -0
  61. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog.css +75 -0
  62. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog.js +500 -0
  63. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider-default-theme.css +8 -0
  64. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider.css +12 -0
  65. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider.js +50 -0
  66. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/icon/icon.css +24 -0
  67. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/icon/icon.js +52 -0
  68. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input-default-theme.css +39 -0
  69. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input.css +113 -0
  70. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input.js +355 -0
  71. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/list/list.css +56 -0
  72. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/list/list.js +96 -0
  73. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/menu/menu.css +6 -0
  74. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/menu/menu.js +29 -0
  75. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css +35 -0
  76. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css +1395 -0
  77. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js +129 -0
  78. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css +26 -0
  79. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css +366 -0
  80. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js +130 -0
  81. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css +39 -0
  82. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton.css +66 -0
  83. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton.js +302 -0
  84. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css +8 -0
  85. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav.css +86 -0
  86. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav.js +320 -0
  87. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider-default-theme.css +55 -0
  88. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider.css +210 -0
  89. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider.js +391 -0
  90. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sticky/sticky.css +20 -0
  91. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sticky/sticky.js +314 -0
  92. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css +15 -0
  93. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader.css +62 -0
  94. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader.js +89 -0
  95. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/swipe/swipe.js +79 -0
  96. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch-default-theme.css +29 -0
  97. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch.css +81 -0
  98. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch.js +171 -0
  99. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css +34 -0
  100. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs.css +171 -0
  101. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs.js +1009 -0
  102. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField-default-theme.css +29 -0
  103. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField.css +72 -0
  104. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField.js +145 -0
  105. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast-default-theme.css +17 -0
  106. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.css +110 -0
  107. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.js +236 -0
  108. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css +17 -0
  109. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar.css +69 -0
  110. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar.js +161 -0
  111. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css +10 -0
  112. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip.css +133 -0
  113. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip.js +199 -0
  114. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css +20 -0
  115. data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js +17 -0
  116. data/app/assets/javascripts/swat/bower_components/angular-material/modules/css/angular-material-layout.css +2582 -0
  117. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css +8 -0
  118. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css +6 -0
  119. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.css +54 -0
  120. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.js +38 -0
  121. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.min.css +6 -0
  122. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.min.js +7 -0
  123. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/bower.json +7 -0
  124. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css +15 -0
  125. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css +6 -0
  126. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css +188 -0
  127. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js +293 -0
  128. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css +6 -0
  129. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js +7 -0
  130. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bower.json +8 -0
  131. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/bower.json +7 -0
  132. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button-default-theme.css +42 -0
  133. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button-default-theme.min.css +6 -0
  134. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.css +132 -0
  135. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.js +94 -0
  136. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.min.css +6 -0
  137. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.min.js +7 -0
  138. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/bower.json +7 -0
  139. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card-default-theme.css +10 -0
  140. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card-default-theme.min.css +6 -0
  141. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.css +31 -0
  142. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.js +58 -0
  143. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.min.css +6 -0
  144. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.min.js +7 -0
  145. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/bower.json +7 -0
  146. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css +38 -0
  147. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css +6 -0
  148. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.css +79 -0
  149. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.js +133 -0
  150. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.min.css +6 -0
  151. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.min.js +7 -0
  152. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/bower.json +7 -0
  153. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content-default-theme.css +8 -0
  154. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content-default-theme.min.css +6 -0
  155. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.css +24 -0
  156. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.js +60 -0
  157. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.min.css +6 -0
  158. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.min.js +7 -0
  159. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/bower.json +7 -0
  160. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.css +3067 -0
  161. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.js +2780 -0
  162. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.min.css +6 -0
  163. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.min.js +7 -0
  164. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/default-theme.js +1 -0
  165. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/bower.json +8 -0
  166. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css +11 -0
  167. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css +6 -0
  168. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.css +88 -0
  169. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.js +495 -0
  170. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.min.css +6 -0
  171. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.min.js +7 -0
  172. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/bower.json +7 -0
  173. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider-default-theme.css +8 -0
  174. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css +6 -0
  175. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.css +12 -0
  176. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.js +48 -0
  177. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.min.css +6 -0
  178. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.min.js +7 -0
  179. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/bower.json +7 -0
  180. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.css +24 -0
  181. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.js +50 -0
  182. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.min.css +6 -0
  183. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.min.js +7 -0
  184. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/bower.json +7 -0
  185. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input-default-theme.css +40 -0
  186. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input-default-theme.min.css +6 -0
  187. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.css +102 -0
  188. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.js +333 -0
  189. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.min.css +6 -0
  190. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.min.js +7 -0
  191. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/bower.json +7 -0
  192. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.css +61 -0
  193. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js +94 -0
  194. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.min.css +6 -0
  195. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.min.js +7 -0
  196. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/bower.json +5 -0
  197. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.css +6 -0
  198. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.js +27 -0
  199. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.min.css +6 -0
  200. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.min.js +7 -0
  201. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/bower.json +7 -0
  202. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css +35 -0
  203. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css +6 -0
  204. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.css +1445 -0
  205. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.js +127 -0
  206. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css +6 -0
  207. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js +7 -0
  208. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/bower.json +7 -0
  209. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css +28 -0
  210. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css +6 -0
  211. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.css +368 -0
  212. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.js +128 -0
  213. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css +6 -0
  214. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js +7 -0
  215. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/bower.json +7 -0
  216. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css +39 -0
  217. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css +6 -0
  218. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.css +67 -0
  219. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.js +296 -0
  220. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.min.css +6 -0
  221. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.min.js +7 -0
  222. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/bower.json +8 -0
  223. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css +8 -0
  224. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css +6 -0
  225. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.css +90 -0
  226. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.js +302 -0
  227. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.min.css +6 -0
  228. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.min.js +7 -0
  229. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/bower.json +7 -0
  230. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider-default-theme.css +55 -0
  231. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css +6 -0
  232. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.css +218 -0
  233. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.js +411 -0
  234. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.css +6 -0
  235. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.js +7 -0
  236. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/bower.json +8 -0
  237. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.css +20 -0
  238. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.js +309 -0
  239. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.min.css +6 -0
  240. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.min.js +7 -0
  241. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/bower.json +8 -0
  242. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css +15 -0
  243. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css +6 -0
  244. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.css +61 -0
  245. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.js +86 -0
  246. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.min.css +6 -0
  247. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.min.js +7 -0
  248. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/bower.json +5 -0
  249. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/swipe.js +213 -0
  250. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/swipe.min.js +7 -0
  251. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/bower.json +8 -0
  252. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch-default-theme.css +29 -0
  253. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css +6 -0
  254. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.css +77 -0
  255. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.js +144 -0
  256. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.min.css +6 -0
  257. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.min.js +7 -0
  258. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/bower.json +7 -0
  259. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css +34 -0
  260. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css +6 -0
  261. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.css +181 -0
  262. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.js +992 -0
  263. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.min.css +6 -0
  264. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.min.js +7 -0
  265. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/bower.json +7 -0
  266. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField-default-theme.css +29 -0
  267. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css +6 -0
  268. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.css +76 -0
  269. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.js +143 -0
  270. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.min.css +6 -0
  271. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.min.js +7 -0
  272. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/bower.json +9 -0
  273. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast-default-theme.css +17 -0
  274. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css +6 -0
  275. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.css +115 -0
  276. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.js +235 -0
  277. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.min.css +6 -0
  278. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.min.js +7 -0
  279. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/bower.json +8 -0
  280. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css +17 -0
  281. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css +6 -0
  282. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.css +78 -0
  283. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.js +158 -0
  284. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.min.css +6 -0
  285. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.min.js +7 -0
  286. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/bower.json +7 -0
  287. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css +10 -0
  288. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css +6 -0
  289. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.css +136 -0
  290. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.js +197 -0
  291. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.min.css +6 -0
  292. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.min.js +7 -0
  293. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/bower.json +5 -0
  294. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.css +20 -0
  295. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.js +15 -0
  296. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css +6 -0
  297. data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js +7 -0
  298. data/app/assets/javascripts/swat/bower_components/angular-resource/angular-resource.js +668 -0
  299. data/app/assets/javascripts/swat/bower_components/angular-resource/angular-resource.min.js +13 -0
  300. data/app/assets/javascripts/swat/bower_components/angular-resource/index.js +2 -0
  301. data/app/assets/javascripts/swat/bower_components/angular-route/angular-route.js +991 -0
  302. data/app/assets/javascripts/swat/bower_components/angular-route/angular-route.min.js +15 -0
  303. data/app/assets/javascripts/swat/bower_components/angular-route/index.js +2 -0
  304. data/app/assets/javascripts/swat/bower_components/angular-ui-router/LICENSE.txt +21 -0
  305. data/app/assets/javascripts/swat/bower_components/angular-ui-router/api/angular-ui-router.d.ts +126 -0
  306. data/app/assets/javascripts/swat/bower_components/angular-ui-router/release/angular-ui-router.js +4370 -0
  307. data/app/assets/javascripts/swat/bower_components/angular-ui-router/release/angular-ui-router.min.js +7 -0
  308. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/common.js +292 -0
  309. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/resolve.js +252 -0
  310. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/state.js +1465 -0
  311. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateDirectives.js +285 -0
  312. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js +39 -0
  313. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/templateFactory.js +110 -0
  314. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/urlMatcherFactory.js +1050 -0
  315. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/urlRouter.js +427 -0
  316. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/view.js +71 -0
  317. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/viewDirective.js +303 -0
  318. data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/viewScroll.js +52 -0
  319. data/app/assets/javascripts/swat/bower_components/lodash/lodash.js +12235 -0
  320. data/app/assets/javascripts/swat/bower_components/lodash/lodash.min.js +98 -0
  321. data/app/assets/javascripts/swat/bower_components/ng-clip/.editorconfig +10 -0
  322. data/app/assets/javascripts/swat/bower_components/ng-clip/.gitignore +3 -0
  323. data/app/assets/javascripts/swat/bower_components/ng-clip/Gruntfile.js +96 -0
  324. data/app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js +2 -0
  325. data/app/assets/javascripts/swat/bower_components/ng-clip/example/bootstrap-tooltip.html +49 -0
  326. data/app/assets/javascripts/swat/bower_components/ng-clip/example/index.html +68 -0
  327. data/app/assets/javascripts/swat/bower_components/ng-clip/example/ng-repeat.html +44 -0
  328. data/app/assets/javascripts/swat/bower_components/ng-clip/npm-debug.log +145 -0
  329. data/app/assets/javascripts/swat/bower_components/ng-clip/src/ngClip.js +84 -0
  330. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/.jshintrc +70 -0
  331. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.Core.js +2017 -0
  332. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.Core.min.js +10 -0
  333. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.js +2581 -0
  334. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.min.js +10 -0
  335. data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.swf +0 -0
  336. data/app/assets/javascripts/swat/bower_components.coffee +12 -0
  337. data/app/assets/stylesheets/swat/application.sass +59 -0
  338. data/app/assets/stylesheets/swat/default-theme.css +394 -0
  339. data/app/assets/stylesheets/swat/font-awesome.css +1801 -0
  340. data/app/assets/stylesheets/swat/fonts/FontAwesome.otf +0 -0
  341. data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.eot +0 -0
  342. data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.svg +565 -0
  343. data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.ttf +0 -0
  344. data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.woff +0 -0
  345. data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.woff2 +0 -0
  346. data/app/assets/stylesheets/swat/swat_theme.sass +177 -0
  347. data/app/controllers/swat/api/revisions_controller.rb +27 -0
  348. data/app/controllers/swat/api/test_cases_controller.rb +20 -0
  349. data/app/controllers/swat/application_controller.rb +4 -0
  350. data/app/controllers/swat/info/states_controller.rb +12 -0
  351. data/app/controllers/swat/pages/base_pages_controller.rb +7 -0
  352. data/app/controllers/swat/pages/revisions_controller.rb +8 -0
  353. data/app/controllers/swat/revisions_controller.rb +4 -0
  354. data/app/helpers/swat/application_helper.rb +4 -0
  355. data/app/models/concerns/root_revision_ext.rb +14 -0
  356. data/app/models/full_revision.rb +88 -0
  357. data/app/models/revision.rb +84 -0
  358. data/app/models/revision_status_calculator.rb +98 -0
  359. data/app/models/test_case.rb +25 -0
  360. data/app/views/layouts/swat/application.slim +36 -0
  361. data/app/views/layouts/swat/page.slim +2 -0
  362. data/app/views/swat/application/index.slim +0 -0
  363. data/app/views/swat/pages/revisions/index.slim +25 -0
  364. data/app/views/swat/pages/revisions/show.slim +43 -0
  365. data/app/views/swat/shared/_footer.slim +5 -0
  366. data/app/views/swat/shared/_header.slim +9 -0
  367. data/bin/rails +12 -0
  368. data/config/routes.rb +38 -0
  369. data/fixtures/firebase_collection.rb +97 -0
  370. data/lib/sw2at-ui.rb +19 -0
  371. data/lib/swat/engine.rb +5 -0
  372. data/lib/swat/ui/config.rb +28 -0
  373. data/lib/swat/ui/rspec_commands.rb +191 -0
  374. data/lib/swat/ui/rspec_setup.rb +42 -0
  375. data/lib/swat/ui/stats_collector.rb +90 -0
  376. data/lib/swat/ui/version.rb +5 -0
  377. data/lib/tasks/swat_tasks.rake +36 -0
  378. data/spec/lib/commands_spec.rb +88 -0
  379. data/spec/models/calculator_spec.rb +130 -0
  380. data/spec/models/full_revision_spec.rb +263 -0
  381. data/spec/models/revision_spec.rb +59 -0
  382. data/spec/models/testcase_spec.rb +94 -0
  383. data/spec/spec_helper.rb +45 -0
  384. data/sw2at-ui.gemspec +465 -0
  385. data/test/helper.rb +34 -0
  386. data/test/test_sw2at-ui.rb +7 -0
  387. metadata +628 -0
@@ -0,0 +1,314 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ goog.provide('ng.material.components.sticky');
8
+ goog.require('ng.material.components.content');
9
+ goog.require('ng.material.core');
10
+ (function() {
11
+ 'use strict';
12
+
13
+ /*
14
+ * @ngdoc module
15
+ * @name material.components.sticky
16
+ * @description
17
+ *
18
+ * Sticky effects for md
19
+ */
20
+
21
+ angular.module('material.components.sticky', [
22
+ 'material.core',
23
+ 'material.components.content'
24
+ ])
25
+ .factory('$mdSticky', MdSticky);
26
+
27
+ /*
28
+ * @ngdoc service
29
+ * @name $mdSticky
30
+ * @module material.components.sticky
31
+ *
32
+ * @description
33
+ * The `$mdSticky`service provides a mixin to make elements sticky.
34
+ *
35
+ * @returns A `$mdSticky` function that takes three arguments:
36
+ * - `scope`
37
+ * - `element`: The element that will be 'sticky'
38
+ * - `elementClone`: A clone of the element, that will be shown
39
+ * when the user starts scrolling past the original element.
40
+ * If not provided, it will use the result of `element.clone()`.
41
+ */
42
+
43
+ function MdSticky($document, $mdConstant, $compile, $$rAF, $mdUtil) {
44
+
45
+ var browserStickySupport = checkStickySupport();
46
+
47
+ /**
48
+ * Registers an element as sticky, used internally by directives to register themselves
49
+ */
50
+ return function registerStickyElement(scope, element, stickyClone) {
51
+ var contentCtrl = element.controller('mdContent');
52
+ if (!contentCtrl) return;
53
+
54
+ if (browserStickySupport) {
55
+ element.css({
56
+ position: browserStickySupport,
57
+ top: 0,
58
+ 'z-index': 2
59
+ });
60
+ } else {
61
+ var $$sticky = contentCtrl.$element.data('$$sticky');
62
+ if (!$$sticky) {
63
+ $$sticky = setupSticky(contentCtrl);
64
+ contentCtrl.$element.data('$$sticky', $$sticky);
65
+ }
66
+
67
+ var deregister = $$sticky.add(element, stickyClone || element.clone());
68
+ scope.$on('$destroy', deregister);
69
+ }
70
+ };
71
+
72
+ function setupSticky(contentCtrl) {
73
+ var contentEl = contentCtrl.$element;
74
+
75
+ // Refresh elements is very expensive, so we use the debounced
76
+ // version when possible.
77
+ var debouncedRefreshElements = $$rAF.throttle(refreshElements);
78
+
79
+ // setupAugmentedScrollEvents gives us `$scrollstart` and `$scroll`,
80
+ // more reliable than `scroll` on android.
81
+ setupAugmentedScrollEvents(contentEl);
82
+ contentEl.on('$scrollstart', debouncedRefreshElements);
83
+ contentEl.on('$scroll', onScroll);
84
+
85
+ var self;
86
+ var stickyBaseoffset = contentEl.prop('offsetTop');
87
+ return self = {
88
+ prev: null,
89
+ current: null, //the currently stickied item
90
+ next: null,
91
+ items: [],
92
+ add: add,
93
+ refreshElements: refreshElements
94
+ };
95
+
96
+ /***************
97
+ * Public
98
+ ***************/
99
+ // Add an element and its sticky clone to this content's sticky collection
100
+ function add(element, stickyClone) {
101
+ stickyClone.addClass('md-sticky-clone');
102
+ stickyClone.css('top', stickyBaseoffset + 'px');
103
+
104
+ var item = {
105
+ element: element,
106
+ clone: stickyClone
107
+ };
108
+ self.items.push(item);
109
+
110
+ contentEl.parent().prepend(item.clone);
111
+
112
+ debouncedRefreshElements();
113
+
114
+ return function remove() {
115
+ self.items.forEach(function(item, index) {
116
+ if (item.element[0] === element[0]) {
117
+ self.items.splice(index, 1);
118
+ item.clone.remove();
119
+ }
120
+ });
121
+ debouncedRefreshElements();
122
+ };
123
+ }
124
+
125
+ function refreshElements() {
126
+ // Sort our collection of elements by their current position in the DOM.
127
+ // We need to do this because our elements' order of being added may not
128
+ // be the same as their order of display.
129
+ self.items.forEach(refreshPosition);
130
+ self.items = self.items.sort(function(a, b) {
131
+ return a.top < b.top ? -1 : 1;
132
+ });
133
+
134
+ // Find which item in the list should be active,
135
+ // based upon the content's current scroll position
136
+ var item;
137
+ var currentScrollTop = contentEl.prop('scrollTop');
138
+ for (var i = self.items.length - 1; i >= 0; i--) {
139
+ if (currentScrollTop > self.items[i].top) {
140
+ item = self.items[i];
141
+ break;
142
+ }
143
+ }
144
+ setCurrentItem(item);
145
+ }
146
+
147
+
148
+ /***************
149
+ * Private
150
+ ***************/
151
+
152
+ // Find the `top` of an item relative to the content element,
153
+ // and also the height.
154
+ function refreshPosition(item) {
155
+ // Find the top of an item by adding to the offsetHeight until we reach the
156
+ // content element.
157
+ var current = item.element[0];
158
+ item.top = 0;
159
+ item.left = 0;
160
+ while (current && current !== contentEl[0]) {
161
+ item.top += current.offsetTop;
162
+ item.left += current.offsetLeft;
163
+ current = current.offsetParent;
164
+ }
165
+ item.height = item.element.prop('offsetHeight');
166
+ item.clone.css('margin-left', item.left + 'px');
167
+ }
168
+
169
+
170
+ // As we scroll, push in and select the correct sticky element.
171
+ function onScroll() {
172
+ var scrollTop = contentEl.prop('scrollTop');
173
+ var isScrollingDown = scrollTop > (onScroll.prevScrollTop || 0);
174
+ onScroll.prevScrollTop = scrollTop;
175
+
176
+ // At the top?
177
+ if (scrollTop === 0) {
178
+ setCurrentItem(null);
179
+
180
+ // Going to next item?
181
+ } else if (isScrollingDown && self.next) {
182
+ if (self.next.top - scrollTop <= 0) {
183
+ // Sticky the next item if we've scrolled past its position.
184
+ setCurrentItem(self.next);
185
+ } else if (self.current) {
186
+ // Push the current item up when we're almost at the next item.
187
+ if (self.next.top - scrollTop <= self.next.height) {
188
+ translate(self.current, self.next.top - self.next.height - scrollTop);
189
+ } else {
190
+ translate(self.current, null);
191
+ }
192
+ }
193
+
194
+ // Scrolling up with a current sticky item?
195
+ } else if (!isScrollingDown && self.current) {
196
+ if (scrollTop < self.current.top) {
197
+ // Sticky the previous item if we've scrolled up past
198
+ // the original position of the currently stickied item.
199
+ setCurrentItem(self.prev);
200
+ }
201
+ // Scrolling up, and just bumping into the item above (just set to current)?
202
+ // If we have a next item bumping into the current item, translate
203
+ // the current item up from the top as it scrolls into view.
204
+ if (self.current && self.next) {
205
+ if (scrollTop >= self.next.top - self.current.height) {
206
+ translate(self.current, self.next.top - scrollTop - self.current.height);
207
+ } else {
208
+ translate(self.current, null);
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ function setCurrentItem(item) {
215
+ if (self.current === item) return;
216
+ // Deactivate currently active item
217
+ if (self.current) {
218
+ translate(self.current, null);
219
+ setStickyState(self.current, null);
220
+ }
221
+
222
+ // Activate new item if given
223
+ if (item) {
224
+ setStickyState(item, 'active');
225
+ }
226
+
227
+ self.current = item;
228
+ var index = self.items.indexOf(item);
229
+ // If index === -1, index + 1 = 0. It works out.
230
+ self.next = self.items[index + 1];
231
+ self.prev = self.items[index - 1];
232
+ setStickyState(self.next, 'next');
233
+ setStickyState(self.prev, 'prev');
234
+ }
235
+
236
+ function setStickyState(item, state) {
237
+ if (!item || item.state === state) return;
238
+ if (item.state) {
239
+ item.clone.attr('sticky-prev-state', item.state);
240
+ item.element.attr('sticky-prev-state', item.state);
241
+ }
242
+ item.clone.attr('sticky-state', state);
243
+ item.element.attr('sticky-state', state);
244
+ item.state = state;
245
+ }
246
+
247
+ function translate(item, amount) {
248
+ if (!item) return;
249
+ if (amount === null || amount === undefined) {
250
+ if (item.translateY) {
251
+ item.translateY = null;
252
+ item.clone.css($mdConstant.CSS.TRANSFORM, '');
253
+ }
254
+ } else {
255
+ item.translateY = amount;
256
+ item.clone.css(
257
+ $mdConstant.CSS.TRANSFORM,
258
+ 'translate3d(' + item.left + 'px,' + amount + 'px,0)'
259
+ );
260
+ }
261
+ }
262
+ }
263
+
264
+ // Function to check for browser sticky support
265
+ function checkStickySupport($el) {
266
+ var stickyProp;
267
+ var testEl = angular.element('<div>');
268
+ $document[0].body.appendChild(testEl[0]);
269
+
270
+ var stickyProps = ['sticky', '-webkit-sticky'];
271
+ for (var i = 0; i < stickyProps.length; ++i) {
272
+ testEl.css({position: stickyProps[i], top: 0, 'z-index': 2});
273
+ if (testEl.css('position') == stickyProps[i]) {
274
+ stickyProp = stickyProps[i];
275
+ break;
276
+ }
277
+ }
278
+ testEl.remove();
279
+ return stickyProp;
280
+ }
281
+
282
+ // Android 4.4 don't accurately give scroll events.
283
+ // To fix this problem, we setup a fake scroll event. We say:
284
+ // > If a scroll or touchmove event has happened in the last DELAY milliseconds,
285
+ // then send a `$scroll` event every animationFrame.
286
+ // Additionally, we add $scrollstart and $scrollend events.
287
+ function setupAugmentedScrollEvents(element) {
288
+ var SCROLL_END_DELAY = 200;
289
+ var isScrolling;
290
+ var lastScrollTime;
291
+ element.on('scroll touchmove', function() {
292
+ if (!isScrolling) {
293
+ isScrolling = true;
294
+ $$rAF(loopScrollEvent);
295
+ element.triggerHandler('$scrollstart');
296
+ }
297
+ element.triggerHandler('$scroll');
298
+ lastScrollTime = +$mdUtil.now();
299
+ });
300
+
301
+ function loopScrollEvent() {
302
+ if (+$mdUtil.now() - lastScrollTime > SCROLL_END_DELAY) {
303
+ isScrolling = false;
304
+ element.triggerHandler('$scrollend');
305
+ } else {
306
+ element.triggerHandler('$scroll');
307
+ $$rAF(loopScrollEvent);
308
+ }
309
+ }
310
+ }
311
+
312
+ }
313
+ MdSticky.$inject = ["$document", "$mdConstant", "$compile", "$$rAF", "$mdUtil"];
314
+ })();
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ .md-subheader.md-THEME_NAME-theme {
8
+ color: '{{ foreground-2-0.23 }}';
9
+ background-color: '{{background-hue-3}}'; }
10
+ .md-subheader.md-THEME_NAME-theme.md-primary {
11
+ color: '{{primary-color}}'; }
12
+ .md-subheader.md-THEME_NAME-theme.md-accent {
13
+ color: '{{accent-color}}'; }
14
+ .md-subheader.md-THEME_NAME-theme.md-warn {
15
+ color: '{{warn-color}}'; }
@@ -0,0 +1,62 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ @-webkit-keyframes subheaderStickyHoverIn {
8
+ 0% {
9
+ box-shadow: 0 0 0 0 transparent; }
10
+
11
+ 100% {
12
+ box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
13
+
14
+ @keyframes subheaderStickyHoverIn {
15
+ 0% {
16
+ box-shadow: 0 0 0 0 transparent; }
17
+
18
+ 100% {
19
+ box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
20
+
21
+ @-webkit-keyframes subheaderStickyHoverOut {
22
+ 0% {
23
+ box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
24
+
25
+ 100% {
26
+ box-shadow: 0 0 0 0 transparent; } }
27
+
28
+ @keyframes subheaderStickyHoverOut {
29
+ 0% {
30
+ box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
31
+
32
+ 100% {
33
+ box-shadow: 0 0 0 0 transparent; } }
34
+
35
+ .md-subheader {
36
+ display: block;
37
+ font-size: 0.9em;
38
+ font-weight: 400;
39
+ line-height: 1em;
40
+ padding: 16px 0px 16px 16px;
41
+ margin: 0 0 0 0;
42
+ margin-right: 16px;
43
+ position: relative; }
44
+ .md-subheader:not(.md-sticky-no-effect) {
45
+ transition: 0.2s ease-out margin; }
46
+ .md-subheader:not(.md-sticky-no-effect):after {
47
+ position: absolute;
48
+ left: 0;
49
+ bottom: 0;
50
+ top: 0;
51
+ right: -16px;
52
+ content: ''; }
53
+ .md-subheader:not(.md-sticky-no-effect).md-sticky-clone {
54
+ z-index: 2; }
55
+ .md-subheader:not(.md-sticky-no-effect)[sticky-state="active"] {
56
+ margin-top: -2px; }
57
+ .md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state="active"]:after {
58
+ -webkit-animation: subheaderStickyHoverOut 0.3s ease-out both;
59
+ animation: subheaderStickyHoverOut 0.3s ease-out both; }
60
+ .md-subheader .md-subheader-content {
61
+ z-index: 1;
62
+ position: relative; }
@@ -0,0 +1,89 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ goog.provide('ng.material.components.subheader');
8
+ goog.require('ng.material.components.sticky');
9
+ goog.require('ng.material.core');
10
+ (function() {
11
+ 'use strict';
12
+
13
+ /**
14
+ * @ngdoc module
15
+ * @name material.components.subheader
16
+ * @description
17
+ * SubHeader module
18
+ *
19
+ * Subheaders are special list tiles that delineate distinct sections of a
20
+ * list or grid list and are typically related to the current filtering or
21
+ * sorting criteria. Subheader tiles are either displayed inline with tiles or
22
+ * can be associated with content, for example, in an adjacent column.
23
+ *
24
+ * Upon scrolling, subheaders remain pinned to the top of the screen and remain
25
+ * pinned until pushed on or off screen by the next subheader. @see [Material
26
+ * Design Specifications](https://www.google.com/design/spec/components/subheaders.html)
27
+ *
28
+ * > To improve the visual grouping of content, use the system color for your subheaders.
29
+ *
30
+ */
31
+ angular.module('material.components.subheader', [
32
+ 'material.core',
33
+ 'material.components.sticky'
34
+ ])
35
+ .directive('mdSubheader', MdSubheaderDirective);
36
+
37
+ /**
38
+ * @ngdoc directive
39
+ * @name mdSubheader
40
+ * @module material.components.subheader
41
+ *
42
+ * @restrict E
43
+ *
44
+ * @description
45
+ * The `<md-subheader>` directive is a subheader for a section
46
+ *
47
+ * @usage
48
+ * <hljs lang="html">
49
+ * <md-subheader>Online Friends</md-subheader>
50
+ * </hljs>
51
+ */
52
+
53
+ function MdSubheaderDirective($mdSticky, $compile, $mdTheming) {
54
+ return {
55
+ restrict: 'E',
56
+ replace: true,
57
+ transclude: true,
58
+ template:
59
+ '<h2 class="md-subheader">' +
60
+ '<span class="md-subheader-content"></span>' +
61
+ '</h2>',
62
+ compile: function(element, attr, transclude) {
63
+ var outerHTML = element[0].outerHTML;
64
+ return function postLink(scope, element, attr) {
65
+ $mdTheming(element);
66
+ function getContent(el) {
67
+ return angular.element(el[0].querySelector('.md-subheader-content'));
68
+ }
69
+
70
+ // Transclude the user-given contents of the subheader
71
+ // the conventional way.
72
+ transclude(scope, function(clone) {
73
+ getContent(element).append(clone);
74
+ });
75
+
76
+ // Create another clone, that uses the outer and inner contents
77
+ // of the element, that will be 'stickied' as the user scrolls.
78
+ transclude(scope, function(clone) {
79
+ var stickyClone = $compile(angular.element(outerHTML))(scope);
80
+ $mdTheming(stickyClone);
81
+ getContent(stickyClone).append(clone);
82
+ $mdSticky(scope, element, stickyClone);
83
+ });
84
+ };
85
+ }
86
+ };
87
+ }
88
+ MdSubheaderDirective.$inject = ["$mdSticky", "$compile", "$mdTheming"];
89
+ })();
@@ -0,0 +1,79 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ goog.provide('ng.material.components.swipe');
8
+
9
+ (function() {
10
+ 'use strict';
11
+
12
+
13
+ /**
14
+ * @ngdoc module
15
+ * @name material.components.swipe
16
+ * @description Swipe module!
17
+ */
18
+ /**
19
+ * @ngdoc directive
20
+ * @module material.components.swipe
21
+ * @name mdSwipeLeft
22
+ *
23
+ * @restrict A
24
+ *
25
+ * @description
26
+ * The md-swipe-left directives allows you to specify custom behavior when an element is swiped
27
+ * left.
28
+ *
29
+ * @usage
30
+ * <hljs lang="html">
31
+ * <div md-swipe-left="onSwipeLeft()">Swipe me left!</div>
32
+ * </hljs>
33
+ */
34
+
35
+ /**
36
+ * @ngdoc directive
37
+ * @module material.components.swipe
38
+ * @name mdSwipeRight
39
+ *
40
+ * @restrict A
41
+ *
42
+ * @description
43
+ * The md-swipe-right directives allows you to specify custom behavior when an element is swiped
44
+ * right.
45
+ *
46
+ * @usage
47
+ * <hljs lang="html">
48
+ * <div md-swipe-right="onSwipeRight()">Swipe me right!</div>
49
+ * </hljs>
50
+ */
51
+
52
+ var module = angular.module('material.components.swipe',[]);
53
+
54
+ ['SwipeLeft', 'SwipeRight'].forEach(function(name) {
55
+ var directiveName = 'md' + name;
56
+ var eventName = '$md.' + name.toLowerCase();
57
+
58
+ module.directive(directiveName, /*@ngInject*/ ["$parse", function($parse) {
59
+ return {
60
+ restrict: 'A',
61
+ link: postLink
62
+ };
63
+
64
+ function postLink(scope, element, attr) {
65
+ var fn = $parse(attr[directiveName]);
66
+
67
+ element.on(eventName, function(ev) {
68
+ scope.$apply(function() {
69
+ fn(scope, {
70
+ $event: ev
71
+ });
72
+ });
73
+ });
74
+
75
+ }
76
+ }]);
77
+ });
78
+
79
+ })();
@@ -0,0 +1,29 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-switch.md-THEME_NAME-theme .md-thumb {
8
+ background-color: '{{background-50}}'; }
9
+ md-switch.md-THEME_NAME-theme .md-bar {
10
+ background-color: '{{background-500}}'; }
11
+ md-switch.md-THEME_NAME-theme.md-checked .md-thumb {
12
+ background-color: '{{accent-color}}'; }
13
+ md-switch.md-THEME_NAME-theme.md-checked .md-bar {
14
+ background-color: '{{accent-color-0.5}}'; }
15
+ md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb {
16
+ background-color: '{{primary-color}}'; }
17
+ md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar {
18
+ background-color: '{{primary-color-0.5}}'; }
19
+ md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb {
20
+ background-color: '{{warn-color}}'; }
21
+ md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar {
22
+ background-color: '{{warn-color-0.5}}'; }
23
+ md-switch.md-THEME_NAME-theme[disabled] .md-thumb {
24
+ background-color: '{{background-400}}'; }
25
+ md-switch.md-THEME_NAME-theme[disabled] .md-bar {
26
+ background-color: '{{foreground-4}}'; }
27
+ md-switch.md-THEME_NAME-theme:focus .md-label:not(:empty) {
28
+ border-color: '{{foreground-1}}';
29
+ border-style: dotted; }
@@ -0,0 +1,81 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-switch {
8
+ display: -webkit-flex;
9
+ display: -ms-flexbox;
10
+ display: flex;
11
+ -webkit-align-items: center;
12
+ -ms-flex-align: center;
13
+ align-items: center;
14
+ margin: 15px;
15
+ white-space: nowrap;
16
+ cursor: pointer;
17
+ outline: none;
18
+ -webkit-user-select: none;
19
+ -moz-user-select: none;
20
+ -ms-user-select: none;
21
+ user-select: none; }
22
+ md-switch .md-container {
23
+ cursor: -webkit-grab;
24
+ cursor: grab;
25
+ width: 36px;
26
+ height: 24px;
27
+ position: relative;
28
+ -webkit-user-select: none;
29
+ -moz-user-select: none;
30
+ -ms-user-select: none;
31
+ user-select: none;
32
+ margin-right: 8px; }
33
+ md-switch:not([disabled]) .md-dragging, md-switch:not([disabled]).md-dragging .md-container {
34
+ cursor: -webkit-grabbing;
35
+ cursor: grabbing; }
36
+ md-switch .md-label {
37
+ border-color: transparent;
38
+ border-width: 0px; }
39
+ md-switch .md-bar {
40
+ left: 1px;
41
+ width: 34px;
42
+ top: 5px;
43
+ height: 14px;
44
+ border-radius: 8px;
45
+ position: absolute; }
46
+ md-switch .md-thumb-container {
47
+ top: 2px;
48
+ left: 0;
49
+ width: 16px;
50
+ position: absolute;
51
+ -webkit-transform: translate3d(0, 0, 0);
52
+ transform: translate3d(0, 0, 0);
53
+ z-index: 1; }
54
+ md-switch.md-checked .md-thumb-container {
55
+ -webkit-transform: translate3d(100%, 0, 0);
56
+ transform: translate3d(100%, 0, 0); }
57
+ md-switch .md-thumb {
58
+ position: absolute;
59
+ margin: 0;
60
+ left: 0;
61
+ top: 0;
62
+ outline: none;
63
+ height: 20px;
64
+ width: 20px;
65
+ border-radius: 50%;
66
+ box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
67
+ md-switch .md-thumb .md-ripple-container {
68
+ position: absolute;
69
+ display: block;
70
+ width: auto;
71
+ height: auto;
72
+ left: -20px;
73
+ top: -20px;
74
+ right: -20px;
75
+ bottom: -20px; }
76
+ md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb-container, md-switch:not(.md-dragging) .md-thumb {
77
+ transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
78
+ transition-property: -webkit-transform, background-color;
79
+ transition-property: transform, background-color; }
80
+ md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb {
81
+ transition-delay: 0.05s; }