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,69 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-toolbar {
8
+ display: -webkit-flex;
9
+ display: -ms-flexbox;
10
+ display: flex;
11
+ -webkit-flex-direction: column;
12
+ -ms-flex-direction: column;
13
+ flex-direction: column;
14
+ position: relative;
15
+ z-index: 2;
16
+ font-size: 1.3em;
17
+ min-height: 64px;
18
+ width: 100%;
19
+ box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
20
+ md-toolbar.md-tall {
21
+ height: 128px;
22
+ min-height: 128px;
23
+ max-height: 128px; }
24
+ md-toolbar.md-medium-tall {
25
+ height: 88px;
26
+ min-height: 88px;
27
+ max-height: 88px; }
28
+ md-toolbar.md-medium-tall .md-toolbar-tools {
29
+ height: 48px;
30
+ min-height: 48px;
31
+ max-height: 48px; }
32
+ md-toolbar .md-indent {
33
+ margin-left: 64px; }
34
+
35
+ .md-toolbar-tools {
36
+ display: -webkit-flex;
37
+ display: -ms-flexbox;
38
+ display: flex;
39
+ -webkit-align-items: center;
40
+ -ms-flex-align: center;
41
+ align-items: center;
42
+ -webkit-flex-direction: row;
43
+ -ms-flex-direction: row;
44
+ flex-direction: row;
45
+ width: 100%;
46
+ height: 64px;
47
+ max-height: 64px;
48
+ font-size: inherit;
49
+ font-weight: normal;
50
+ padding: 0 16px;
51
+ margin: 0; }
52
+ .md-toolbar-tools > * {
53
+ font-size: inherit; }
54
+ .md-toolbar-tools h2, .md-toolbar-tools h3 {
55
+ font-weight: normal; }
56
+ .md-toolbar-tools a {
57
+ color: inherit;
58
+ text-decoration: none; }
59
+ .md-toolbar-tools .fill-height {
60
+ display: -webkit-flex;
61
+ display: -ms-flexbox;
62
+ display: flex;
63
+ -webkit-align-items: center;
64
+ -ms-flex-align: center;
65
+ align-items: center; }
66
+ .md-toolbar-tools .md-tools {
67
+ margin-left: auto; }
68
+ .md-toolbar-tools .md-button {
69
+ font-size: 14px; }
@@ -0,0 +1,161 @@
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.toolbar');
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.toolbar
16
+ */
17
+ angular.module('material.components.toolbar', [
18
+ 'material.core',
19
+ 'material.components.content'
20
+ ])
21
+ .directive('mdToolbar', mdToolbarDirective);
22
+
23
+ /**
24
+ * @ngdoc directive
25
+ * @name mdToolbar
26
+ * @module material.components.toolbar
27
+ * @restrict E
28
+ * @description
29
+ * `md-toolbar` is used to place a toolbar in your app.
30
+ *
31
+ * Toolbars are usually used above a content area to display the title of the
32
+ * current page, and show relevant action buttons for that page.
33
+ *
34
+ * You can change the height of the toolbar by adding either the
35
+ * `md-medium-tall` or `md-tall` class to the toolbar.
36
+ *
37
+ * @usage
38
+ * <hljs lang="html">
39
+ * <div layout="column" layout-fill>
40
+ * <md-toolbar>
41
+ *
42
+ * <div class="md-toolbar-tools">
43
+ * <span>My App's Title</span>
44
+ *
45
+ * <!-- fill up the space between left and right area -->
46
+ * <span flex></span>
47
+ *
48
+ * <md-button>
49
+ * Right Bar Button
50
+ * </md-button>
51
+ * </div>
52
+ *
53
+ * </md-toolbar>
54
+ * <md-content>
55
+ * Hello!
56
+ * </md-content>
57
+ * </div>
58
+ * </hljs>
59
+ *
60
+ * @param {boolean=} md-scroll-shrink Whether the header should shrink away as
61
+ * the user scrolls down, and reveal itself as the user scrolls up.
62
+ * Note: for scrollShrink to work, the toolbar must be a sibling of a
63
+ * `md-content` element, placed before it. See the scroll shrink demo.
64
+ *
65
+ *
66
+ * @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's
67
+ * shrinking by. For example, if 0.25 is given then the toolbar will shrink
68
+ * at one fourth the rate at which the user scrolls down. Default 0.5.
69
+ */
70
+ function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming) {
71
+
72
+ return {
73
+ restrict: 'E',
74
+ controller: angular.noop,
75
+ link: function(scope, element, attr) {
76
+ $mdTheming(element);
77
+
78
+ if (angular.isDefined(attr.mdScrollShrink)) {
79
+ setupScrollShrink();
80
+ }
81
+
82
+ function setupScrollShrink() {
83
+ // Current "y" position of scroll
84
+ var y = 0;
85
+ // Store the last scroll top position
86
+ var prevScrollTop = 0;
87
+
88
+ var shrinkSpeedFactor = attr.mdShrinkSpeedFactor || 0.5;
89
+
90
+ var toolbarHeight;
91
+ var contentElement;
92
+
93
+ var debouncedContentScroll = $$rAF.throttle(onContentScroll);
94
+ var debouncedUpdateHeight = $mdUtil.debounce(updateToolbarHeight, 5 * 1000);
95
+
96
+ // Wait for $mdContentLoaded event from mdContent directive.
97
+ // If the mdContent element is a sibling of our toolbar, hook it up
98
+ // to scroll events.
99
+ scope.$on('$mdContentLoaded', onMdContentLoad);
100
+
101
+ function onMdContentLoad($event, newContentEl) {
102
+ // Toolbar and content must be siblings
103
+ if (element.parent()[0] === newContentEl.parent()[0]) {
104
+ // unhook old content event listener if exists
105
+ if (contentElement) {
106
+ contentElement.off('scroll', debouncedContentScroll);
107
+ }
108
+
109
+ newContentEl.on('scroll', debouncedContentScroll);
110
+ newContentEl.attr('scroll-shrink', 'true');
111
+
112
+ contentElement = newContentEl;
113
+ $$rAF(updateToolbarHeight);
114
+ }
115
+ }
116
+
117
+ function updateToolbarHeight() {
118
+ toolbarHeight = element.prop('offsetHeight');
119
+ // Add a negative margin-top the size of the toolbar to the content el.
120
+ // The content will start transformed down the toolbarHeight amount,
121
+ // so everything looks normal.
122
+ //
123
+ // As the user scrolls down, the content will be transformed up slowly
124
+ // to put the content underneath where the toolbar was.
125
+ contentElement.css(
126
+ 'margin-top',
127
+ (-toolbarHeight * shrinkSpeedFactor) + 'px'
128
+ );
129
+ onContentScroll();
130
+ }
131
+
132
+ function onContentScroll(e) {
133
+ var scrollTop = e ? e.target.scrollTop : prevScrollTop;
134
+
135
+ debouncedUpdateHeight();
136
+
137
+ y = Math.min(
138
+ toolbarHeight / shrinkSpeedFactor,
139
+ Math.max(0, y + scrollTop - prevScrollTop)
140
+ );
141
+
142
+ element.css(
143
+ $mdConstant.CSS.TRANSFORM,
144
+ 'translate3d(0,' + (-y * shrinkSpeedFactor) + 'px,0)'
145
+ );
146
+ contentElement.css(
147
+ $mdConstant.CSS.TRANSFORM,
148
+ 'translate3d(0,' + ((toolbarHeight - y) * shrinkSpeedFactor) + 'px,0)'
149
+ );
150
+
151
+ prevScrollTop = scrollTop;
152
+ }
153
+
154
+ }
155
+
156
+ }
157
+ };
158
+
159
+ }
160
+ mdToolbarDirective.$inject = ["$$rAF", "$mdConstant", "$mdUtil", "$mdTheming"];
161
+ })();
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-tooltip.md-THEME_NAME-theme {
8
+ color: '{{background-A100}}'; }
9
+ md-tooltip.md-THEME_NAME-theme .md-background {
10
+ background-color: '{{foreground-2}}'; }
@@ -0,0 +1,133 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ @-webkit-keyframes tooltipBackgroundShow {
8
+ 0% {
9
+ -webkit-transform: scale(0.2);
10
+ transform: scale(0.2);
11
+ opacity: 0.25; }
12
+
13
+ 50% {
14
+ opacity: 1; }
15
+
16
+ 100% {
17
+ -webkit-transform: scale(1);
18
+ transform: scale(1);
19
+ opacity: 1; } }
20
+
21
+ @keyframes tooltipBackgroundShow {
22
+ 0% {
23
+ -webkit-transform: scale(0.2);
24
+ transform: scale(0.2);
25
+ opacity: 0.25; }
26
+
27
+ 50% {
28
+ opacity: 1; }
29
+
30
+ 100% {
31
+ -webkit-transform: scale(1);
32
+ transform: scale(1);
33
+ opacity: 1; } }
34
+
35
+ @-webkit-keyframes tooltipBackgroundHide {
36
+ 0% {
37
+ opacity: 1; }
38
+
39
+ 100% {
40
+ opacity: 0; } }
41
+
42
+ @keyframes tooltipBackgroundHide {
43
+ 0% {
44
+ opacity: 1; }
45
+
46
+ 100% {
47
+ opacity: 0; } }
48
+
49
+ md-tooltip {
50
+ position: absolute;
51
+ font-size: 14px;
52
+ z-index: 100;
53
+ overflow: hidden;
54
+ pointer-events: none;
55
+ border-radius: 4px;
56
+ /**
57
+ * Depending on the tooltip's size as a multiple of 32 (set by JS),
58
+ * change the background's animation duration.
59
+ * The larger the tooltip, the less time the background should take to ripple outwards.
60
+ */ }
61
+ md-tooltip[md-direction="bottom"] {
62
+ -webkit-transform: translate3d(0, -30%, 0);
63
+ transform: translate3d(0, -30%, 0);
64
+ margin-top: 8px; }
65
+ md-tooltip[md-direction="top"] {
66
+ -webkit-transform: translate3d(0, 30%, 0);
67
+ transform: translate3d(0, 30%, 0);
68
+ margin-bottom: 8px; }
69
+ md-tooltip .md-background {
70
+ position: absolute;
71
+ left: 50%;
72
+ width: 256px;
73
+ height: 256px;
74
+ margin-left: -128px;
75
+ margin-top: -128px;
76
+ border-radius: 256px;
77
+ opacity: 0.25;
78
+ -webkit-transform: scale(0.2);
79
+ transform: scale(0.2); }
80
+ md-tooltip .md-content {
81
+ max-width: 240px;
82
+ white-space: nowrap;
83
+ overflow: hidden;
84
+ text-overflow: ellipsis;
85
+ padding: 8px;
86
+ background: transparent;
87
+ opacity: 0.3;
88
+ transition: inherit; }
89
+ md-tooltip.md-hide {
90
+ transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
91
+ md-tooltip.md-show {
92
+ transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
93
+ pointer-events: auto;
94
+ -webkit-transform: translate3d(0, 0, 0);
95
+ transform: translate3d(0, 0, 0); }
96
+ md-tooltip.md-show .md-background {
97
+ -webkit-transform: scale(1);
98
+ transform: scale(1);
99
+ opacity: 1;
100
+ -webkit-animation: tooltipBackgroundShow linear;
101
+ animation: tooltipBackgroundShow linear; }
102
+ md-tooltip.md-show .md-content {
103
+ opacity: 0.99; }
104
+ md-tooltip.md-hide .md-background {
105
+ -webkit-transform: scale(1);
106
+ transform: scale(1);
107
+ opacity: 0;
108
+ -webkit-animation: tooltipBackgroundHide 0.2s linear;
109
+ animation: tooltipBackgroundHide 0.2s linear; }
110
+ md-tooltip[width-32="1"].md-show .md-background {
111
+ -webkit-animation-duration: 900ms;
112
+ animation-duration: 900ms; }
113
+ md-tooltip[width-32="2"].md-show .md-background {
114
+ -webkit-animation-duration: 800ms;
115
+ animation-duration: 800ms; }
116
+ md-tooltip[width-32="3"].md-show .md-background {
117
+ -webkit-animation-duration: 700ms;
118
+ animation-duration: 700ms; }
119
+ md-tooltip[width-32="4"].md-show .md-background {
120
+ -webkit-animation-duration: 600ms;
121
+ animation-duration: 600ms; }
122
+ md-tooltip[width-32="5"].md-show .md-background {
123
+ -webkit-animation-duration: 500ms;
124
+ animation-duration: 500ms; }
125
+ md-tooltip[width-32="6"].md-show .md-background {
126
+ -webkit-animation-duration: 400ms;
127
+ animation-duration: 400ms; }
128
+ md-tooltip[width-32="7"].md-show .md-background {
129
+ -webkit-animation-duration: 300ms;
130
+ animation-duration: 300ms; }
131
+ md-tooltip[width-32="8"].md-show .md-background {
132
+ -webkit-animation-duration: 200ms;
133
+ animation-duration: 200ms; }
@@ -0,0 +1,199 @@
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.tooltip');
8
+ goog.require('ng.material.core');
9
+ (function() {
10
+ 'use strict';
11
+
12
+ /**
13
+ * @ngdoc module
14
+ * @name material.components.tooltip
15
+ */
16
+ angular.module('material.components.tooltip', [
17
+ 'material.core'
18
+ ])
19
+ .directive('mdTooltip', MdTooltipDirective);
20
+
21
+ /**
22
+ * @ngdoc directive
23
+ * @name mdTooltip
24
+ * @module material.components.tooltip
25
+ * @description
26
+ * Tooltips are used to describe elements that are interactive and primarily graphical (not textual).
27
+ *
28
+ * Place a `<md-tooltip>` as a child of the element it describes.
29
+ *
30
+ * A tooltip will activate when the user focuses, hovers over, or touches the parent.
31
+ *
32
+ * @usage
33
+ * <hljs lang="html">
34
+ * <md-icon icon="/img/icons/ic_play_arrow_24px.svg">
35
+ * <md-tooltip>
36
+ * Play Music
37
+ * </md-tooltip>
38
+ * </md-icon>
39
+ * </hljs>
40
+ *
41
+ * @param {expression=} md-visible Boolean bound to whether the tooltip is
42
+ * currently visible.
43
+ * @param {number=} md-delay How many milliseconds to wait to show the tooltip after the user focuses, hovers, or touches the parent. Defaults to 400ms.
44
+ */
45
+ function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdTheming, $rootElement) {
46
+
47
+ var TOOLTIP_SHOW_DELAY = 400;
48
+ var TOOLTIP_WINDOW_EDGE_SPACE = 8;
49
+
50
+ return {
51
+ restrict: 'E',
52
+ transclude: true,
53
+ template:
54
+ '<div class="md-background"></div>' +
55
+ '<div class="md-content" ng-transclude></div>',
56
+ scope: {
57
+ visible: '=?mdVisible',
58
+ delay: '=?mdDelay'
59
+ },
60
+ link: postLink
61
+ };
62
+
63
+ function postLink(scope, element, attr, contentCtrl) {
64
+ $mdTheming(element);
65
+ var parent = element.parent();
66
+
67
+ // Look for the nearest parent md-content, stopping at the rootElement.
68
+ var current = element.parent()[0];
69
+ while (current && current !== $rootElement[0] && current !== document.body) {
70
+ if (current.tagName && current.tagName.toLowerCase() == 'md-content') break;
71
+ current = current.parentNode;
72
+ }
73
+ var tooltipParent = angular.element(current || document.body);
74
+
75
+ if (!angular.isDefined(attr.mdDelay)) {
76
+ scope.delay = TOOLTIP_SHOW_DELAY;
77
+ }
78
+
79
+ // We will re-attach tooltip when visible
80
+ element.detach();
81
+ element.attr('role', 'tooltip');
82
+ element.attr('id', attr.id || ('tooltip_' + $mdUtil.nextUid()));
83
+
84
+ parent.on('focus mouseenter touchstart', function() {
85
+ setVisible(true);
86
+ });
87
+ parent.on('blur mouseleave touchend touchcancel', function() {
88
+ // Don't hide the tooltip if the parent is still focused.
89
+ if ($document[0].activeElement === parent[0]) return;
90
+ setVisible(false);
91
+ });
92
+
93
+ scope.$watch('visible', function(isVisible) {
94
+ if (isVisible) showTooltip();
95
+ else hideTooltip();
96
+ });
97
+
98
+ var debouncedOnResize = $$rAF.throttle(function windowResize() {
99
+ // Reposition on resize
100
+ if (scope.visible) positionTooltip();
101
+ });
102
+ angular.element($window).on('resize', debouncedOnResize);
103
+
104
+ // Be sure to completely cleanup the element on destroy
105
+ scope.$on('$destroy', function() {
106
+ scope.visible = false;
107
+ element.remove();
108
+ angular.element($window).off('resize', debouncedOnResize);
109
+ });
110
+
111
+ // *******
112
+ // Methods
113
+ // *******
114
+
115
+ // If setting visible to true, debounce to scope.delay ms
116
+ // If setting visible to false and no timeout is active, instantly hide the tooltip.
117
+ function setVisible(value) {
118
+ setVisible.value = !!value;
119
+
120
+ if (!setVisible.queued) {
121
+ if (value) {
122
+ setVisible.queued = true;
123
+ $timeout(function() {
124
+ scope.visible = setVisible.value;
125
+ setVisible.queued = false;
126
+ }, scope.delay);
127
+
128
+ } else {
129
+ $timeout(function() { scope.visible = false; });
130
+ }
131
+ }
132
+ }
133
+
134
+ function showTooltip() {
135
+ // Insert the element before positioning it, so we can get position
136
+ // (tooltip is hidden by default)
137
+ element.removeClass('md-hide');
138
+ parent.attr('aria-describedby', element.attr('id'));
139
+ tooltipParent.append(element);
140
+
141
+ // Wait until the element has been in the dom for two frames before
142
+ // fading it in.
143
+ // Additionally, we position the tooltip twice to avoid positioning bugs
144
+ positionTooltip();
145
+ $$rAF(function() {
146
+
147
+ $$rAF(function() {
148
+ positionTooltip();
149
+ if (!scope.visible) return;
150
+ element.addClass('md-show');
151
+ });
152
+
153
+ });
154
+ }
155
+
156
+ function hideTooltip() {
157
+ element.removeClass('md-show').addClass('md-hide');
158
+ parent.removeAttr('aria-describedby');
159
+ $timeout(function() {
160
+ if (scope.visible) return;
161
+ element.detach();
162
+ }, 200, false);
163
+ }
164
+
165
+ function positionTooltip() {
166
+ var tipRect = $mdUtil.elementRect(element, tooltipParent);
167
+ var parentRect = $mdUtil.elementRect(parent, tooltipParent);
168
+
169
+ // Default to bottom position if possible
170
+ var tipDirection = 'bottom';
171
+ var newPosition = {
172
+ left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
173
+ top: parentRect.top + parentRect.height
174
+ };
175
+
176
+ // If element bleeds over left/right of the window, place it on the edge of the window.
177
+ newPosition.left = Math.min(
178
+ newPosition.left,
179
+ tooltipParent.prop('scrollWidth') - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE
180
+ );
181
+ newPosition.left = Math.max(newPosition.left, TOOLTIP_WINDOW_EDGE_SPACE);
182
+
183
+ // If element bleeds over the bottom of the window, place it above the parent.
184
+ if (newPosition.top + tipRect.height > tooltipParent.prop('scrollHeight')) {
185
+ newPosition.top = parentRect.top - tipRect.height;
186
+ tipDirection = 'top';
187
+ }
188
+
189
+ element.css({top: newPosition.top + 'px', left: newPosition.left + 'px'});
190
+ // Tell the CSS the size of this tooltip, as a multiple of 32.
191
+ element.attr('width-32', Math.ceil(tipRect.width / 32));
192
+ element.attr('md-direction', tipDirection);
193
+ }
194
+
195
+ }
196
+
197
+ }
198
+ MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$mdUtil", "$mdTheming", "$rootElement"];
199
+ })();
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ .md-whiteframe-z1 {
8
+ box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
9
+
10
+ .md-whiteframe-z2 {
11
+ box-shadow: 0px 8px 17px rgba(0, 0, 0, 0.2); }
12
+
13
+ .md-whiteframe-z3 {
14
+ box-shadow: 0px 17px 50px rgba(0, 0, 0, 0.19); }
15
+
16
+ .md-whiteframe-z4 {
17
+ box-shadow: 0px 16px 28px 0 rgba(0, 0, 0, 0.22); }
18
+
19
+ .md-whiteframe-z5 {
20
+ box-shadow: 0px 27px 24px 0 rgba(0, 0, 0, 0.2); }
@@ -0,0 +1,17 @@
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.whiteframe');
8
+
9
+ (function() {
10
+ 'use strict';
11
+
12
+ /**
13
+ * @ngdoc module
14
+ * @name material.components.whiteframe
15
+ */
16
+ angular.module('material.components.whiteframe', []);
17
+ })();