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,263 @@
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.bottomSheet');
8
+ goog.require('ng.material.components.backdrop');
9
+ goog.require('ng.material.core');
10
+ (function() {
11
+ 'use strict';
12
+
13
+ /**
14
+ * @ngdoc module
15
+ * @name material.components.bottomSheet
16
+ * @description
17
+ * BottomSheet
18
+ */
19
+ angular.module('material.components.bottomSheet', [
20
+ 'material.core',
21
+ 'material.components.backdrop'
22
+ ])
23
+ .directive('mdBottomSheet', MdBottomSheetDirective)
24
+ .provider('$mdBottomSheet', MdBottomSheetProvider);
25
+
26
+ function MdBottomSheetDirective() {
27
+ return {
28
+ restrict: 'E'
29
+ };
30
+ }
31
+
32
+ /**
33
+ * @ngdoc service
34
+ * @name $mdBottomSheet
35
+ * @module material.components.bottomSheet
36
+ *
37
+ * @description
38
+ * `$mdBottomSheet` opens a bottom sheet over the app and provides a simple promise API.
39
+ *
40
+ * ### Restrictions
41
+ *
42
+ * - The bottom sheet's template must have an outer `<md-bottom-sheet>` element.
43
+ * - Add the `md-grid` class to the bottom sheet for a grid layout.
44
+ * - Add the `md-list` class to the bottom sheet for a list layout.
45
+ *
46
+ * @usage
47
+ * <hljs lang="html">
48
+ * <div ng-controller="MyController">
49
+ * <md-button ng-click="openBottomSheet()">
50
+ * Open a Bottom Sheet!
51
+ * </md-button>
52
+ * </div>
53
+ * </hljs>
54
+ * <hljs lang="js">
55
+ * var app = angular.module('app', ['ngMaterial']);
56
+ * app.controller('MyController', function($scope, $mdBottomSheet) {
57
+ * $scope.openBottomSheet = function() {
58
+ * $mdBottomSheet.show({
59
+ * template: '<md-bottom-sheet>Hello!</md-bottom-sheet>'
60
+ * });
61
+ * };
62
+ * });
63
+ * </hljs>
64
+ */
65
+
66
+ /**
67
+ * @ngdoc method
68
+ * @name $mdBottomSheet#show
69
+ *
70
+ * @description
71
+ * Show a bottom sheet with the specified options.
72
+ *
73
+ * @param {object} options An options object, with the following properties:
74
+ *
75
+ * - `templateUrl` - `{string=}`: The url of an html template file that will
76
+ * be used as the content of the bottom sheet. Restrictions: the template must
77
+ * have an outer `md-bottom-sheet` element.
78
+ * - `template` - `{string=}`: Same as templateUrl, except this is an actual
79
+ * template string.
80
+ * - `controller` - `{string=}`: The controller to associate with this bottom sheet.
81
+ * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
82
+ * be used as names of values to inject into the controller. For example,
83
+ * `locals: {three: 3}` would inject `three` into the controller with the value
84
+ * of 3.
85
+ * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
86
+ * the location of the click will be used as the starting point for the opening animation
87
+ * of the the dialog.
88
+ * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
89
+ * and the bottom sheet will not open until the promises resolve.
90
+ * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
91
+ * - `parent` - `{element=}`: The element to append the bottom sheet to. Defaults to appending
92
+ * to the root element of the application.
93
+ * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the bottom sheet is open.
94
+ * Default true.
95
+ *
96
+ * @returns {promise} A promise that can be resolved with `$mdBottomSheet.hide()` or
97
+ * rejected with `$mdBottomSheet.cancel()`.
98
+ */
99
+
100
+ /**
101
+ * @ngdoc method
102
+ * @name $mdBottomSheet#hide
103
+ *
104
+ * @description
105
+ * Hide the existing bottom sheet and resolve the promise returned from
106
+ * `$mdBottomSheet.show()`.
107
+ *
108
+ * @param {*=} response An argument for the resolved promise.
109
+ *
110
+ */
111
+
112
+ /**
113
+ * @ngdoc method
114
+ * @name $mdBottomSheet#cancel
115
+ *
116
+ * @description
117
+ * Hide the existing bottom sheet and reject the promise returned from
118
+ * `$mdBottomSheet.show()`.
119
+ *
120
+ * @param {*=} response An argument for the rejected promise.
121
+ *
122
+ */
123
+
124
+ function MdBottomSheetProvider($$interimElementProvider) {
125
+ // how fast we need to flick down to close the sheet, pixels/ms
126
+ var CLOSING_VELOCITY = 0.5;
127
+ var PADDING = 80; // same as css
128
+
129
+ bottomSheetDefaults.$inject = ["$animate", "$mdConstant", "$timeout", "$$rAF", "$compile", "$mdTheming", "$mdBottomSheet", "$rootElement", "$rootScope", "$mdGesture"];
130
+ return $$interimElementProvider('$mdBottomSheet')
131
+ .setDefaults({
132
+ methods: ['disableParentScroll', 'escapeToClose', 'targetEvent'],
133
+ options: bottomSheetDefaults
134
+ });
135
+
136
+ /* @ngInject */
137
+ function bottomSheetDefaults($animate, $mdConstant, $timeout, $$rAF, $compile, $mdTheming, $mdBottomSheet, $rootElement, $rootScope, $mdGesture) {
138
+ var backdrop;
139
+
140
+ return {
141
+ themable: true,
142
+ targetEvent: null,
143
+ onShow: onShow,
144
+ onRemove: onRemove,
145
+ escapeToClose: true,
146
+ disableParentScroll: true
147
+ };
148
+
149
+ function onShow(scope, element, options) {
150
+ // Add a backdrop that will close on click
151
+ backdrop = $compile('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(scope);
152
+ backdrop.on('click', function() {
153
+ $timeout($mdBottomSheet.cancel);
154
+ });
155
+
156
+ $mdTheming.inherit(backdrop, options.parent);
157
+
158
+ $animate.enter(backdrop, options.parent, null);
159
+
160
+ var bottomSheet = new BottomSheet(element, options.parent);
161
+ options.bottomSheet = bottomSheet;
162
+
163
+ // Give up focus on calling item
164
+ options.targetEvent && angular.element(options.targetEvent.target).blur();
165
+ $mdTheming.inherit(bottomSheet.element, options.parent);
166
+
167
+ if (options.disableParentScroll) {
168
+ options.lastOverflow = options.parent.css('overflow');
169
+ options.parent.css('overflow', 'hidden');
170
+ }
171
+
172
+ return $animate.enter(bottomSheet.element, options.parent)
173
+ .then(function() {
174
+ var focusable = angular.element(
175
+ element[0].querySelector('button') ||
176
+ element[0].querySelector('a') ||
177
+ element[0].querySelector('[ng-click]')
178
+ );
179
+ focusable.focus();
180
+
181
+ if (options.escapeToClose) {
182
+ options.rootElementKeyupCallback = function(e) {
183
+ if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
184
+ $timeout($mdBottomSheet.cancel);
185
+ }
186
+ };
187
+ $rootElement.on('keyup', options.rootElementKeyupCallback);
188
+ }
189
+ });
190
+
191
+ }
192
+
193
+ function onRemove(scope, element, options) {
194
+ var bottomSheet = options.bottomSheet;
195
+
196
+
197
+ $animate.leave(backdrop);
198
+ return $animate.leave(bottomSheet.element).then(function() {
199
+ if (options.disableParentScroll) {
200
+ options.parent.css('overflow', options.lastOverflow);
201
+ delete options.lastOverflow;
202
+ }
203
+
204
+ bottomSheet.cleanup();
205
+
206
+ // Restore focus
207
+ options.targetEvent && angular.element(options.targetEvent.target).focus();
208
+ });
209
+ }
210
+
211
+ /**
212
+ * BottomSheet class to apply bottom-sheet behavior to an element
213
+ */
214
+ function BottomSheet(element, parent) {
215
+ var deregister = $mdGesture.register(parent, 'drag', { horizontal: false });
216
+ parent.on('$md.dragstart', onDragStart)
217
+ .on('$md.drag', onDrag)
218
+ .on('$md.dragend', onDragEnd);
219
+
220
+ return {
221
+ element: element,
222
+ cleanup: function cleanup() {
223
+ deregister();
224
+ parent.off('$md.dragstart', onDragStart)
225
+ .off('$md.drag', onDrag)
226
+ .off('$md.dragend', onDragEnd);
227
+ }
228
+ };
229
+
230
+ function onDragStart(ev) {
231
+ // Disable transitions on transform so that it feels fast
232
+ element.css($mdConstant.CSS.TRANSITION_DURATION, '0ms');
233
+ }
234
+
235
+ function onDrag(ev) {
236
+ var transform = ev.pointer.distanceY;
237
+ if (transform < 5) {
238
+ // Slow down drag when trying to drag up, and stop after PADDING
239
+ transform = Math.max(-PADDING, transform / 2);
240
+ }
241
+ element.css($mdConstant.CSS.TRANSFORM, 'translate3d(0,' + (PADDING + transform) + 'px,0)');
242
+ }
243
+
244
+ function onDragEnd(ev) {
245
+ if (ev.pointer.distanceY > 0 &&
246
+ (ev.pointer.distanceY > 20 || Math.abs(ev.pointer.velocityY) > CLOSING_VELOCITY)) {
247
+ var distanceRemaining = element.prop('offsetHeight') - ev.pointer.distanceY;
248
+ var transitionDuration = Math.min(distanceRemaining / ev.pointer.velocityY * 0.75, 500);
249
+ element.css($mdConstant.CSS.TRANSITION_DURATION, transitionDuration + 'ms');
250
+ $timeout($mdBottomSheet.cancel);
251
+ } else {
252
+ element.css($mdConstant.CSS.TRANSITION_DURATION, '');
253
+ element.css($mdConstant.CSS.TRANSFORM, '');
254
+ }
255
+ }
256
+ }
257
+
258
+ }
259
+
260
+ }
261
+ MdBottomSheetProvider.$inject = ["$$interimElementProvider"];
262
+
263
+ })();
@@ -0,0 +1,49 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-toolbar .md-button.md-THEME_NAME-theme.md-fab {
8
+ background-color: white; }
9
+
10
+ .md-button.md-THEME_NAME-theme {
11
+ border-radius: 3px; }
12
+ .md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):focus {
13
+ background-color: '{{background-500-0.2}}'; }
14
+ .md-button.md-THEME_NAME-theme.md-primary {
15
+ color: '{{primary-color}}'; }
16
+ .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab {
17
+ color: '{{primary-contrast}}';
18
+ background-color: '{{primary-color}}'; }
19
+ .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):focus, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):focus {
20
+ background-color: '{{primary-600}}'; }
21
+ .md-button.md-THEME_NAME-theme.md-fab {
22
+ border-radius: 50%;
23
+ background-color: '{{accent-color}}';
24
+ color: '{{accent-contrast}}'; }
25
+ .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):focus {
26
+ background-color: '{{accent-A700}}'; }
27
+ .md-button.md-THEME_NAME-theme.md-raised {
28
+ color: '{{background-contrast}}';
29
+ background-color: '{{background-50}}'; }
30
+ .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):focus {
31
+ background-color: '{{background-200}}'; }
32
+ .md-button.md-THEME_NAME-theme.md-warn {
33
+ color: '{{warn-color}}'; }
34
+ .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab {
35
+ color: '{{warn-contrast}}';
36
+ background-color: '{{warn-color}}'; }
37
+ .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):focus, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):focus {
38
+ background-color: '{{warn-700}}'; }
39
+ .md-button.md-THEME_NAME-theme.md-accent {
40
+ color: '{{accent-color}}'; }
41
+ .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab {
42
+ color: '{{accent-contrast}}';
43
+ background-color: '{{accent-color}}'; }
44
+ .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):focus, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):focus {
45
+ background-color: '{{accent-700}}'; }
46
+ .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] {
47
+ color: '{{foreground-3}}';
48
+ background-color: transparent;
49
+ cursor: not-allowed; }
@@ -0,0 +1,134 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ /**
8
+ * Position a FAB button.
9
+ */
10
+ .md-button {
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ -ms-user-select: none;
14
+ user-select: none;
15
+ position: relative;
16
+ outline: none;
17
+ border: 0;
18
+ padding: 6px;
19
+ margin: 0;
20
+ background: transparent;
21
+ white-space: nowrap;
22
+ text-align: center;
23
+ text-transform: uppercase;
24
+ font-weight: 500;
25
+ font-style: inherit;
26
+ font-variant: inherit;
27
+ font-size: inherit;
28
+ font-family: inherit;
29
+ line-height: inherit;
30
+ text-decoration: none;
31
+ cursor: pointer;
32
+ overflow: hidden;
33
+ transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
34
+ transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
35
+ .md-button:focus {
36
+ outline: none; }
37
+ .md-button.ng-hide {
38
+ transition: none; }
39
+ .md-button.md-cornered {
40
+ border-radius: 0; }
41
+ .md-button.md-icon {
42
+ padding: 0;
43
+ background: none; }
44
+ .md-button.md-raised {
45
+ -webkit-transform: translate3d(0, 0, 0);
46
+ transform: translate3d(0, 0, 0); }
47
+ .md-button.md-fab {
48
+ z-index: 20;
49
+ width: 56px;
50
+ height: 56px;
51
+ border-radius: 50%;
52
+ border-radius: 50%;
53
+ overflow: hidden;
54
+ -webkit-transform: translate3d(0, 0, 0);
55
+ transform: translate3d(0, 0, 0);
56
+ transition: 0.2s linear;
57
+ transition-property: -webkit-transform, box-shadow;
58
+ transition-property: transform, box-shadow; }
59
+ .md-button.md-fab.md-fab-bottom-right {
60
+ top: auto;
61
+ right: 20px;
62
+ bottom: 20px;
63
+ left: auto;
64
+ position: absolute; }
65
+ .md-button.md-fab.md-fab-bottom-left {
66
+ top: auto;
67
+ right: auto;
68
+ bottom: 20px;
69
+ left: 20px;
70
+ position: absolute; }
71
+ .md-button.md-fab.md-fab-top-right {
72
+ top: 20px;
73
+ right: 20px;
74
+ bottom: auto;
75
+ left: auto;
76
+ position: absolute; }
77
+ .md-button.md-fab.md-fab-top-left {
78
+ top: 20px;
79
+ right: auto;
80
+ bottom: auto;
81
+ left: 20px;
82
+ position: absolute; }
83
+ .md-button.md-fab md-icon {
84
+ line-height: 56px;
85
+ margin-top: 0; }
86
+ .md-button.md-fab.md-mini {
87
+ width: 40px;
88
+ height: 40px; }
89
+ .md-button.md-fab.md-mini md-icon {
90
+ line-height: 40px; }
91
+ .md-button:not([disabled]).md-raised:focus, .md-button:not([disabled]).md-raised:hover, .md-button:not([disabled]).md-fab:focus, .md-button:not([disabled]).md-fab:hover {
92
+ -webkit-transform: translate3d(0, -1px, 0);
93
+ transform: translate3d(0, -1px, 0); }
94
+
95
+ .md-toast-open-top .md-button.md-fab-top-left, .md-toast-open-top .md-button.md-fab-top-right {
96
+ -webkit-transform: translate3d(0, 42px, 0);
97
+ transform: translate3d(0, 42px, 0); }
98
+ .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):focus, .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):focus, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
99
+ -webkit-transform: translate3d(0, 41px, 0);
100
+ transform: translate3d(0, 41px, 0); }
101
+
102
+ .md-toast-open-bottom .md-button.md-fab-bottom-left, .md-toast-open-bottom .md-button.md-fab-bottom-right {
103
+ -webkit-transform: translate3d(0, -42px, 0);
104
+ transform: translate3d(0, -42px, 0); }
105
+ .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):focus, .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):focus, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
106
+ -webkit-transform: translate3d(0, -43px, 0);
107
+ transform: translate3d(0, -43px, 0); }
108
+
109
+ .md-button-group {
110
+ display: -webkit-flex;
111
+ display: -ms-flexbox;
112
+ display: flex;
113
+ -webkit-flex: 1;
114
+ -ms-flex: 1;
115
+ flex: 1;
116
+ width: 100%; }
117
+
118
+ .md-button-group > .md-button {
119
+ -webkit-flex: 1;
120
+ -ms-flex: 1;
121
+ flex: 1;
122
+ display: block;
123
+ overflow: hidden;
124
+ width: 0;
125
+ border-width: 1px 0px 1px 1px;
126
+ border-radius: 0;
127
+ text-align: center;
128
+ text-overflow: ellipsis;
129
+ white-space: nowrap; }
130
+ .md-button-group > .md-button:first-child {
131
+ border-radius: 2px 0px 0px 2px; }
132
+ .md-button-group > .md-button:last-child {
133
+ border-right-width: 1px;
134
+ border-radius: 0px 2px 2px 0px; }
@@ -0,0 +1,101 @@
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.button');
8
+ goog.require('ng.material.core');
9
+ (function() {
10
+ 'use strict';
11
+
12
+ /**
13
+ * @ngdoc module
14
+ * @name material.components.button
15
+ * @description
16
+ *
17
+ * Button
18
+ */
19
+ angular.module('material.components.button', [
20
+ 'material.core'
21
+ ])
22
+ .directive('mdButton', MdButtonDirective);
23
+
24
+ /**
25
+ * @ngdoc directive
26
+ * @name mdButton
27
+ * @module material.components.button
28
+ *
29
+ * @restrict E
30
+ *
31
+ * @description
32
+ * `<md-button>` is a button directive with optional ink ripples (default enabled).
33
+ *
34
+ * If you supply a `href` or `ng-href` attribute, it will become an `<a>` element. Otherwise, it will
35
+ * become a `<button>` element.
36
+ *
37
+ * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
38
+ * the FAB button is in the accent color by default. The primary color palette may be used with
39
+ * the `md-primary` class.
40
+ *
41
+ * @param {boolean=} md-no-ink If present, disable ripple ink effects.
42
+ * @param {expression=} ng-disabled En/Disable based on the expression
43
+ * @param {string=} md-ripple-size Overrides the default ripple size logic. Options: `full`, `partial`, `auto`
44
+ * @param {string=} aria-label Adds alternative text to button for accessibility, useful for icon buttons.
45
+ * If no default text is found, a warning will be logged.
46
+ *
47
+ * @usage
48
+ * <hljs lang="html">
49
+ * <md-button>
50
+ * Button
51
+ * </md-button>
52
+ * <md-button href="http://google.com" class="md-button-colored">
53
+ * I'm a link
54
+ * </md-button>
55
+ * <md-button ng-disabled="true" class="md-colored">
56
+ * I'm a disabled button
57
+ * </md-button>
58
+ * </hljs>
59
+ */
60
+ function MdButtonDirective($mdInkRipple, $mdTheming, $mdAria) {
61
+
62
+ return {
63
+ restrict: 'E',
64
+ replace: true,
65
+ transclude: true,
66
+ template: getTemplate,
67
+ link: postLink
68
+ };
69
+
70
+ function isAnchor(attr) {
71
+ return angular.isDefined(attr.href) || angular.isDefined(attr.ngHref);
72
+ }
73
+
74
+ function getTemplate(element, attr) {
75
+ return isAnchor(attr) ?
76
+ '<a class="md-button" ng-transclude></a>' :
77
+ '<button class="md-button" ng-transclude></button>';
78
+ }
79
+
80
+ function postLink(scope, element, attr) {
81
+ var node = element[0];
82
+ $mdTheming(element);
83
+ $mdInkRipple.attachButtonBehavior(scope, element);
84
+
85
+ var elementHasText = node.textContent.trim();
86
+ if (!elementHasText) {
87
+ $mdAria.expect(element, 'aria-label');
88
+ }
89
+
90
+ // For anchor elements, we have to set tabindex manually when the
91
+ // element is disabled
92
+ if (isAnchor(attr) && angular.isDefined(attr.ngDisabled) ) {
93
+ scope.$watch(attr.ngDisabled, function(isDisabled) {
94
+ element.attr('tabindex', isDisabled ? -1 : 0);
95
+ });
96
+ }
97
+ }
98
+
99
+ }
100
+ MdButtonDirective.$inject = ["$mdInkRipple", "$mdTheming", "$mdAria"];
101
+ })();
@@ -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-card.md-THEME_NAME-theme {
8
+ border-radius: 2px; }
9
+ md-card.md-THEME_NAME-theme .md-card-image {
10
+ border-radius: 2px 2px 0 0; }
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-card {
8
+ box-sizing: border-box;
9
+ display: -webkit-flex;
10
+ display: -ms-flexbox;
11
+ display: flex;
12
+ -webkit-flex-direction: column;
13
+ -ms-flex-direction: column;
14
+ flex-direction: column;
15
+ margin: 8px;
16
+ box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
17
+ md-card > img, md-card :not(md-card-content) img {
18
+ -webkit-order: 0;
19
+ -ms-flex-order: 0;
20
+ order: 0;
21
+ width: 100%; }
22
+ md-card md-card-content {
23
+ -webkit-order: 1;
24
+ -ms-flex-order: 1;
25
+ order: 1;
26
+ padding: 16px; }
@@ -0,0 +1,60 @@
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.card');
8
+ goog.require('ng.material.core');
9
+ (function() {
10
+ 'use strict';
11
+
12
+ /**
13
+ * @ngdoc module
14
+ * @name material.components.card
15
+ *
16
+ * @description
17
+ * Card components.
18
+ */
19
+ angular.module('material.components.card', [
20
+ 'material.core'
21
+ ])
22
+ .directive('mdCard', mdCardDirective);
23
+
24
+
25
+
26
+ /**
27
+ * @ngdoc directive
28
+ * @name mdCard
29
+ * @module material.components.card
30
+ *
31
+ * @restrict E
32
+ *
33
+ * @description
34
+ * The `<md-card>` directive is a container element used within `<md-content>` containers.
35
+ *
36
+ * Cards have constant width and variable heights; where the maximum height is limited to what can
37
+ * fit within a single view on a platform, but it can temporarily expand as needed
38
+ *
39
+ * @usage
40
+ * <hljs lang="html">
41
+ * <md-card>
42
+ * <img src="img/washedout.png" class="md-card-image">
43
+ * <h2>Paracosm</h2>
44
+ * <p>
45
+ * The titles of Washed Out's breakthrough song and the first single from Paracosm share the * two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
46
+ * </p>
47
+ * </md-card>
48
+ * </hljs>
49
+ *
50
+ */
51
+ function mdCardDirective($mdTheming) {
52
+ return {
53
+ restrict: 'E',
54
+ link: function($scope, $element, $attr) {
55
+ $mdTheming($element);
56
+ }
57
+ };
58
+ }
59
+ mdCardDirective.$inject = ["$mdTheming"];
60
+ })();
@@ -0,0 +1,38 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.1
6
+ */
7
+ md-checkbox.md-THEME_NAME-theme .md-ripple {
8
+ color: '{{accent-600}}'; }
9
+ md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple {
10
+ color: '{{background-600}}'; }
11
+ md-checkbox.md-THEME_NAME-theme .md-icon {
12
+ border-color: '{{foreground-2}}'; }
13
+ md-checkbox.md-THEME_NAME-theme.md-checked .md-icon {
14
+ background-color: '{{accent-color-0.87}}'; }
15
+ md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after {
16
+ border-color: '{{background-200}}'; }
17
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple {
18
+ color: '{{primary-600}}'; }
19
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple {
20
+ color: '{{background-600}}'; }
21
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon {
22
+ border-color: '{{foreground-2}}'; }
23
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon {
24
+ background-color: '{{primary-color-0.87}}'; }
25
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after {
26
+ border-color: '{{background-200}}'; }
27
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple {
28
+ color: '{{warn-600}}'; }
29
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon {
30
+ border-color: '{{foreground-2}}'; }
31
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon {
32
+ background-color: '{{warn-color-0.87}}'; }
33
+ md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after {
34
+ border-color: '{{background-200}}'; }
35
+ md-checkbox.md-THEME_NAME-theme[disabled] .md-icon {
36
+ border-color: '{{foreground-3}}'; }
37
+ md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon {
38
+ background-color: '{{foreground-3}}'; }