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,213 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ (function() {
8
+ 'use strict';
9
+
10
+
11
+ /**
12
+ * @ngdoc module
13
+ * @name material.components.swipe
14
+ * @description Swipe module!
15
+ */
16
+ angular.module('material.components.swipe',[])
17
+ .factory('$mdSwipe', MdSwipeFactory)
18
+ .directive('mdSwipeLeft', MdSwipeLeftDirective)
19
+ .directive('mdSwipeRight', MdSwipeRightDirective);
20
+
21
+ /*
22
+ * @ngdoc service
23
+ * @module material.components.swipe
24
+ * @name $mdSwipe
25
+ * @description
26
+ * This service allows directives to easily attach swipe and pan listeners to
27
+ * the specified element.
28
+ */
29
+
30
+ function MdSwipeFactory() {
31
+ // match expected API functionality
32
+ var attachNoop = function(){ return angular.noop; };
33
+
34
+ /**
35
+ * SwipeService constructor pre-captures scope and customized event types
36
+ *
37
+ * @param scope
38
+ * @param eventTypes
39
+ * @returns {*}
40
+ * @constructor
41
+ */
42
+ return function SwipeService(scope, eventTypes) {
43
+ if ( !eventTypes ) eventTypes = "swipeleft swiperight";
44
+
45
+ // publish configureFor() method for specific element instance
46
+ return function configureFor(element, onSwipeCallback, attachLater ) {
47
+ var hammertime = new Hammer(element[0], {
48
+ recognizers : addRecognizers([], eventTypes )
49
+ });
50
+
51
+ // Attach swipe listeners now
52
+ if ( !attachLater ) attachSwipe();
53
+
54
+ // auto-disconnect during destroy
55
+ scope.$on('$destroy', function() {
56
+ hammertime.destroy();
57
+ });
58
+
59
+ return attachSwipe;
60
+
61
+ // **********************
62
+ // Internal methods
63
+ // **********************
64
+
65
+ /**
66
+ * Delegate swipe event to callback function
67
+ * and ensure $digest is triggered.
68
+ *
69
+ * @param ev HammerEvent
70
+ */
71
+ function swipeHandler(ev) {
72
+
73
+ // Prevent triggering parent hammer listeners
74
+ ev.srcEvent.stopPropagation();
75
+
76
+ if ( angular.isFunction(onSwipeCallback) ) {
77
+ scope.$apply(function() {
78
+ onSwipeCallback(ev);
79
+ });
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Enable listeners and return detach() fn
85
+ */
86
+ function attachSwipe() {
87
+ hammertime.on(eventTypes, swipeHandler );
88
+
89
+ return function detachSwipe() {
90
+ hammertime.off( eventTypes );
91
+ };
92
+ }
93
+
94
+ /**
95
+ * Add optional recognizers such as panleft, panright
96
+ */
97
+ function addRecognizers(list, events) {
98
+ var hasPanning = (events.indexOf("pan") > -1);
99
+ var hasSwipe = (events.indexOf("swipe") > -1);
100
+
101
+ if (hasPanning) {
102
+ list.push([ Hammer.Pan, { direction: Hammer.DIRECTION_HORIZONTAL } ]);
103
+ }
104
+ if (hasSwipe) {
105
+ list.push([ Hammer.Swipe, { direction: Hammer.DIRECTION_HORIZONTAL } ]);
106
+ }
107
+
108
+ return list;
109
+ }
110
+
111
+ };
112
+ };
113
+ }
114
+
115
+ /**
116
+ * @ngdoc directive
117
+ * @module material.components.swipe
118
+ * @name mdSwipeLeft
119
+ *
120
+ * @restrict A
121
+ *
122
+ * @description
123
+ * The `<div md-swipe-left="expression">` directive identifies an element on which
124
+ * HammerJS horizontal swipe left and pan left support will be active. The swipe/pan action
125
+ * can result in custom activity trigger by evaluating `expression`.
126
+ *
127
+ * @param {boolean=} mdNoPan Use of attribute indicates flag to disable detection of `panleft` activity
128
+ *
129
+ * @usage
130
+ * <hljs lang="html">
131
+ *
132
+ * <div class="animate-switch-container"
133
+ * ng-switch on="data.selectedIndex"
134
+ * md-swipe-left="data.selectedIndex+=1;"
135
+ * md-swipe-right="data.selectedIndex-=1;" >
136
+ *
137
+ * </div>
138
+ * </hljs>
139
+ *
140
+ */
141
+ function MdSwipeLeftDirective($parse, $mdSwipe) {
142
+ return {
143
+ restrict: 'A',
144
+ link : swipePostLink( $parse, $mdSwipe, "SwipeLeft" )
145
+ };
146
+ }
147
+ MdSwipeLeftDirective.$inject = ["$parse", "$mdSwipe"];
148
+
149
+ /**
150
+ * @ngdoc directive
151
+ * @module material.components.swipe
152
+ * @name mdSwipeRight
153
+ *
154
+ * @restrict A
155
+ *
156
+ * @description
157
+ * The `<div md-swipe-right="expression">` directive identifies functionality
158
+ * that attaches HammerJS horizontal swipe right and pan right support to an element. The swipe/pan action
159
+ * can result in activity trigger by evaluating `expression`
160
+ *
161
+ * @param {boolean=} mdNoPan Use of attribute indicates flag to disable detection of `panright` activity
162
+ *
163
+ * @usage
164
+ * <hljs lang="html">
165
+ *
166
+ * <div class="animate-switch-container"
167
+ * ng-switch on="data.selectedIndex"
168
+ * md-swipe-left="data.selectedIndex+=1;"
169
+ * md-swipe-right="data.selectedIndex-=1;" >
170
+ *
171
+ * </div>
172
+ * </hljs>
173
+ *
174
+ */
175
+ function MdSwipeRightDirective($parse, $mdSwipe) {
176
+ return {
177
+ restrict: 'A',
178
+ link : swipePostLink( $parse, $mdSwipe, "SwipeRight" )
179
+ };
180
+ }
181
+ MdSwipeRightDirective.$inject = ["$parse", "$mdSwipe"];
182
+
183
+ /**
184
+ * Factory to build PostLink function specific to Swipe or Pan direction
185
+ *
186
+ * @param $parse
187
+ * @param $mdSwipe
188
+ * @param name
189
+ * @returns {Function}
190
+ */
191
+ function swipePostLink($parse, $mdSwipe, name ) {
192
+
193
+ return function(scope, element, attrs) {
194
+ var direction = name.toLowerCase();
195
+ var directiveName= "md" + name;
196
+
197
+ var parentGetter = $parse(attrs[directiveName]) || angular.noop;
198
+ var configureSwipe = $mdSwipe(scope, direction);
199
+ var requestSwipe = function(locals) {
200
+ // build function to request scope-specific swipe response
201
+ parentGetter(scope, locals);
202
+ };
203
+
204
+ configureSwipe( element, function onHandleSwipe(ev) {
205
+ if ( ev.type == direction ) {
206
+ requestSwipe();
207
+ }
208
+ });
209
+
210
+ };
211
+ }
212
+
213
+ })();
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ !function(){"use strict";function n(){return function(n,e){return e||(e="swipeleft swiperight"),function(i,t,r){function o(e){e.srcEvent.stopPropagation(),angular.isFunction(t)&&n.$apply(function(){t(e)})}function u(){return a.on(e,o),function(){a.off(e)}}function c(n,e){var i=e.indexOf("pan")>-1,t=e.indexOf("swipe")>-1;return i&&n.push([Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]),t&&n.push([Hammer.Swipe,{direction:Hammer.DIRECTION_HORIZONTAL}]),n}var a=new Hammer(i[0],{recognizers:c([],e)});return r||u(),n.$on("$destroy",function(){a.destroy()}),u}}}function e(n,e){return{restrict:"A",link:t(n,e,"SwipeLeft")}}function i(n,e){return{restrict:"A",link:t(n,e,"SwipeRight")}}function t(n,e,i){return function(t,r,o){var u=i.toLowerCase(),c="md"+i,a=n(o[c])||angular.noop,f=e(t,u),p=function(n){a(t,n)};f(r,function(n){n.type==u&&p()})}}angular.module("material.components.swipe",[]).factory("$mdSwipe",n).directive("mdSwipeLeft",e).directive("mdSwipeRight",i),e.$inject=["$parse","$mdSwipe"],i.$inject=["$parse","$mdSwipe"]}();
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "angular-material-switch",
3
+ "version": "0.7.0-rc3",
4
+ "dependencies": {
5
+ "angular-material-core": "0.7.0-rc3",
6
+ "angular-material-checkbox": "0.7.0-rc3"
7
+ }
8
+ }
@@ -0,0 +1,29 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-switch.md-THEME_NAME-theme .md-thumb {
8
+ background-color: '{{background-50}}'; }
9
+ md-switch.md-THEME_NAME-theme .md-bar {
10
+ background-color: '{{background-500}}'; }
11
+ md-switch.md-THEME_NAME-theme.md-checked .md-thumb {
12
+ background-color: '{{primary-color}}'; }
13
+ md-switch.md-THEME_NAME-theme.md-checked .md-bar {
14
+ background-color: '{{primary-color-0.5}}'; }
15
+ md-switch.md-THEME_NAME-theme.md-checked.md-accent .md-thumb {
16
+ background-color: '{{accent-color}}'; }
17
+ md-switch.md-THEME_NAME-theme.md-checked.md-accent .md-bar {
18
+ background-color: '{{accent-color-0.5}}'; }
19
+ md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb {
20
+ background-color: '{{warn-color}}'; }
21
+ md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar {
22
+ background-color: '{{warn-color-0.5}}'; }
23
+ md-switch.md-THEME_NAME-theme[disabled] .md-thumb {
24
+ background-color: '{{background-400}}'; }
25
+ md-switch.md-THEME_NAME-theme[disabled] .md-bar {
26
+ background-color: '{{foreground-4}}'; }
27
+ md-switch.md-THEME_NAME-theme:focus .md-label:not(:empty) {
28
+ border-color: '{{foreground-1}}';
29
+ border-style: dotted; }
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */md-switch.md-THEME_NAME-theme .md-thumb{background-color:'{{background-50}}'}md-switch.md-THEME_NAME-theme .md-bar{background-color:'{{background-500}}'}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:'{{primary-color}}'}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:'{{primary-color-0.5}}'}md-switch.md-THEME_NAME-theme.md-checked.md-accent .md-thumb{background-color:'{{accent-color}}'}md-switch.md-THEME_NAME-theme.md-checked.md-accent .md-bar{background-color:'{{accent-color-0.5}}'}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:'{{warn-color}}'}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:'{{warn-color-0.5}}'}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:'{{background-400}}'}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:'{{foreground-4}}'}md-switch.md-THEME_NAME-theme:focus .md-label:not(:empty){border-color:'{{foreground-1}}';border-style:dotted}
@@ -0,0 +1,77 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-switch {
8
+ display: -webkit-box;
9
+ display: -webkit-flex;
10
+ display: -ms-flexbox;
11
+ display: flex;
12
+ -webkit-box-align: center;
13
+ -webkit-align-items: center;
14
+ -ms-flex-align: center;
15
+ align-items: center; }
16
+ md-switch .md-container {
17
+ cursor: -webkit-grab;
18
+ cursor: grab;
19
+ width: 36px;
20
+ height: 24px;
21
+ position: relative;
22
+ -webkit-user-select: none;
23
+ -moz-user-select: none;
24
+ -ms-user-select: none;
25
+ user-select: none;
26
+ margin-right: 8px; }
27
+ md-switch:not([disabled]) .md-dragging, md-switch:not([disabled]).md-dragging .md-container {
28
+ cursor: -webkit-grabbing;
29
+ cursor: grabbing; }
30
+ md-switch .md-label {
31
+ border-color: transparent;
32
+ border-width: 1px; }
33
+ md-switch .md-bar {
34
+ left: 1px;
35
+ width: 34px;
36
+ top: 5px;
37
+ height: 14px;
38
+ border-radius: 8px;
39
+ position: absolute; }
40
+ md-switch .md-thumb-container {
41
+ top: 2px;
42
+ left: 0;
43
+ width: 16px;
44
+ position: absolute;
45
+ -webkit-transform: translate3d(0, 0, 0);
46
+ transform: translate3d(0, 0, 0);
47
+ z-index: 1; }
48
+ md-switch.md-checked .md-thumb-container {
49
+ -webkit-transform: translate3d(100%, 0, 0);
50
+ transform: translate3d(100%, 0, 0); }
51
+ md-switch .md-thumb {
52
+ position: absolute;
53
+ margin: 0;
54
+ left: 0;
55
+ top: 0;
56
+ outline: none;
57
+ height: 20px;
58
+ width: 20px;
59
+ border-radius: 50%;
60
+ box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
61
+ md-switch .md-thumb .md-ripple-container {
62
+ position: absolute;
63
+ display: block;
64
+ width: auto;
65
+ height: auto;
66
+ left: -20px;
67
+ top: -20px;
68
+ right: -20px;
69
+ bottom: -20px; }
70
+ md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb-container, md-switch:not(.md-dragging) .md-thumb {
71
+ -webkit-transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
72
+ transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
73
+ -webkit-transition-property: -webkit-transform, background-color;
74
+ transition-property: transform, background-color; }
75
+ md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb {
76
+ -webkit-transition-delay: 0.05s;
77
+ transition-delay: 0.05s; }
@@ -0,0 +1,144 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ (function() {
8
+ 'use strict';
9
+
10
+ /**
11
+ * @private
12
+ * @ngdoc module
13
+ * @name material.components.switch
14
+ */
15
+
16
+ angular.module('material.components.switch', [
17
+ 'material.core',
18
+ 'material.components.checkbox'
19
+ ])
20
+ .directive('mdSwitch', MdSwitch);
21
+
22
+ /**
23
+ * @private
24
+ * @ngdoc directive
25
+ * @module material.components.switch
26
+ * @name mdSwitch
27
+ * @restrict E
28
+ *
29
+ * The switch directive is used very much like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
30
+ *
31
+ * @param {string} ng-model Assignable angular expression to data-bind to.
32
+ * @param {string=} name Property name of the form under which the control is published.
33
+ * @param {expression=} ng-true-value The value to which the expression should be set when selected.
34
+ * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
35
+ * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
36
+ * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects.
37
+ * @param {string=} aria-label Publish the button label used by screen-readers for accessibility. Defaults to the switch's text.
38
+ *
39
+ * @usage
40
+ * <hljs lang="html">
41
+ * <md-switch ng-model="isActive" aria-label="Finished?">
42
+ * Finished ?
43
+ * </md-switch>
44
+ *
45
+ * <md-switch md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
46
+ * No Ink Effects
47
+ * </md-switch>
48
+ *
49
+ * <md-switch ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
50
+ * Disabled
51
+ * </md-switch>
52
+ *
53
+ * </hljs>
54
+ */
55
+ function MdSwitch(mdCheckboxDirective, $mdTheming, $mdUtil, $document, $mdConstant, $parse, $$rAF) {
56
+ var checkboxDirective = mdCheckboxDirective[0];
57
+
58
+ return {
59
+ restrict: 'E',
60
+ transclude: true,
61
+ template:
62
+ '<div class="md-container">' +
63
+ '<div class="md-bar"></div>' +
64
+ '<div class="md-thumb-container">' +
65
+ '<div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div>' +
66
+ '</div>'+
67
+ '</div>' +
68
+ '<div ng-transclude class="md-label">' +
69
+ '</div>',
70
+ require: '?ngModel',
71
+ compile: compile
72
+ };
73
+
74
+ function compile(element, attr) {
75
+ var checkboxLink = checkboxDirective.compile(element, attr);
76
+ // no transition on initial load
77
+ element.addClass('md-dragging');
78
+
79
+ return function (scope, element, attr, ngModel) {
80
+ ngModel = ngModel || $mdUtil.fakeNgModel();
81
+ var disabledGetter = $parse(attr.ngDisabled);
82
+ var thumbContainer = angular.element(element[0].querySelector('.md-thumb-container'));
83
+ var switchContainer = angular.element(element[0].querySelector('.md-container'));
84
+
85
+ // no transition on initial load
86
+ $$rAF(function() {
87
+ element.removeClass('md-dragging');
88
+ });
89
+
90
+ // Tell the checkbox we don't want a click listener.
91
+ // Our drag listener tells us everything, using more granular events.
92
+ attr.mdNoClick = true;
93
+ checkboxLink(scope, element, attr, ngModel);
94
+
95
+ $mdUtil.attachDragBehavior(scope, switchContainer);
96
+
97
+ // These events are triggered by setup drag
98
+ switchContainer.on('$md.dragstart', onDragStart)
99
+ .on('$md.drag', onDrag)
100
+ .on('$md.dragend', onDragEnd);
101
+
102
+ function onDragStart(ev, drag) {
103
+ // Don't go if ng-disabled===true
104
+ if (disabledGetter(scope)) return ev.preventDefault();
105
+
106
+ drag.width = thumbContainer.prop('offsetWidth');
107
+ element.addClass('md-dragging');
108
+ }
109
+ function onDrag(ev, drag) {
110
+ var percent = drag.distance / drag.width;
111
+
112
+ //if checked, start from right. else, start from left
113
+ var translate = ngModel.$viewValue ? 1 - percent : -percent;
114
+ // Make sure the switch stays inside its bounds, 0-1%
115
+ translate = Math.max(0, Math.min(1, translate));
116
+
117
+ thumbContainer.css($mdConstant.CSS.TRANSFORM, 'translate3d(' + (100*translate) + '%,0,0)');
118
+ drag.translate = translate;
119
+ }
120
+ function onDragEnd(ev, drag) {
121
+ if (disabledGetter(scope)) return false;
122
+
123
+ element.removeClass('md-dragging');
124
+ thumbContainer.css($mdConstant.CSS.TRANSFORM, '');
125
+
126
+ // We changed if there is no distance (this is a click a click),
127
+ // or if the drag distance is >50% of the total.
128
+ var isChanged = Math.abs(drag.distance || 0) < 2 ||
129
+ (ngModel.$viewValue ? drag.translate < 0.5 : drag.translate > 0.5);
130
+ if (isChanged) {
131
+ scope.$apply(function() {
132
+ ngModel.$setViewValue(!ngModel.$viewValue);
133
+ ngModel.$render();
134
+ });
135
+ }
136
+ }
137
+ };
138
+ }
139
+
140
+
141
+ }
142
+ MdSwitch.$inject = ["mdCheckboxDirective", "$mdTheming", "$mdUtil", "$document", "$mdConstant", "$parse", "$$rAF"];
143
+
144
+ })();
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */md-switch{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}md-switch .md-container{cursor:-webkit-grab;cursor:grab;width:36px;height:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:8px}md-switch:not([disabled]) .md-dragging,md-switch:not([disabled]).md-dragging .md-container{cursor:-webkit-grabbing;cursor:grabbing}md-switch .md-label{border-color:transparent;border-width:1px}md-switch .md-bar{left:1px;width:34px;top:5px;height:14px;border-radius:8px;position:absolute}md-switch .md-thumb-container{top:2px;left:0;width:16px;position:absolute;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:1}md-switch.md-checked .md-thumb-container{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}md-switch .md-thumb{position:absolute;margin:0;left:0;top:0;outline:0;height:20px;width:20px;border-radius:50%;box-shadow:0 2px 5px 0 rgba(0,0,0,.26)}md-switch .md-thumb .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-20px;top:-20px;right:-20px;bottom:-20px}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb,md-switch:not(.md-dragging) .md-thumb-container{-webkit-transition:all .5s cubic-bezier(0.35,0,.25,1);transition:all .5s cubic-bezier(0.35,0,.25,1);-webkit-transition-property:-webkit-transform,background-color;transition-property:transform,background-color}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb{-webkit-transition-delay:.05s;transition-delay:.05s}
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ !function(){"use strict";function e(e,a,t,n,i,r,d){function c(e,a){var n=l.compile(e,a);return e.addClass("md-dragging"),function(e,a,c,l){function s(t,n){return u(e)?t.preventDefault():(n.width=v.prop("offsetWidth"),a.addClass("md-dragging"),void 0)}function m(e,a){var t=a.distance/a.width,n=l.$viewValue?1-t:-t;n=Math.max(0,Math.min(1,n)),v.css(i.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),a.translate=n}function o(t,n){if(u(e))return!1;a.removeClass("md-dragging"),v.css(i.CSS.TRANSFORM,"");var r=Math.abs(n.distance||0)<2||(l.$viewValue?n.translate<.5:n.translate>.5);r&&e.$apply(function(){l.$setViewValue(!l.$viewValue),l.$render()})}l=l||t.fakeNgModel();var u=r(c.ngDisabled),v=angular.element(a[0].querySelector(".md-thumb-container")),g=angular.element(a[0].querySelector(".md-container"));d(function(){a.removeClass("md-dragging")}),c.mdNoClick=!0,n(e,a,c,l),t.attachDragBehavior(e,g),g.on("$md.dragstart",s).on("$md.drag",m).on("$md.dragend",o)}}var l=e[0];return{restrict:"E",transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:"?ngModel",compile:c}}angular.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e),e.$inject=["mdCheckboxDirective","$mdTheming","$mdUtil","$document","$mdConstant","$parse","$$rAF"]}();
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "angular-material-tabs",
3
+ "version": "0.7.0-rc3",
4
+ "dependencies": {
5
+ "angular-material-core": "0.7.0-rc3"
6
+ }
7
+ }
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-tabs.md-THEME_NAME-theme .md-header {
8
+ background-color: '{{primary-color}}'; }
9
+ md-tabs.md-THEME_NAME-theme.md-accent .md-header {
10
+ background-color: '{{accent-color}}'; }
11
+ md-tabs.md-THEME_NAME-theme.md-accent md-tab:not([disabled]) {
12
+ color: '{{accent-100}}'; }
13
+ md-tabs.md-THEME_NAME-theme.md-accent md-tab:not([disabled]).active {
14
+ color: '{{accent-contrast}}'; }
15
+ md-tabs.md-THEME_NAME-theme.md-warn .md-header {
16
+ background-color: '{{warn-color}}'; }
17
+ md-tabs.md-THEME_NAME-theme.md-warn md-tab:not([disabled]) {
18
+ color: '{{warn-100}}'; }
19
+ md-tabs.md-THEME_NAME-theme.md-warn md-tab:not([disabled]).active {
20
+ color: '{{warn-contrast}}'; }
21
+ md-tabs.md-THEME_NAME-theme md-tabs-ink-bar {
22
+ color: '{{primary-contrast}}';
23
+ background: '{{primary-contrast}}'; }
24
+ md-tabs.md-THEME_NAME-theme md-tab {
25
+ color: '{{primary-100}}'; }
26
+ md-tabs.md-THEME_NAME-theme md-tab.active {
27
+ color: '{{primary-contrast}}'; }
28
+ md-tabs.md-THEME_NAME-theme md-tab[disabled] {
29
+ color: '{{foreground-4}}'; }
30
+ md-tabs.md-THEME_NAME-theme md-tab:focus {
31
+ color: '{{primary-contrast}}';
32
+ background-color: '{{primary-contrast-0.1}}'; }
33
+ md-tabs.md-THEME_NAME-theme md-tab .md-ripple-container {
34
+ color: '{{primary-contrast}}'; }
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */md-tabs.md-THEME_NAME-theme .md-header{background-color:'{{primary-color}}'}md-tabs.md-THEME_NAME-theme.md-accent .md-header{background-color:'{{accent-color}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tab:not([disabled]){color:'{{accent-100}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tab:not([disabled]).active{color:'{{accent-contrast}}'}md-tabs.md-THEME_NAME-theme.md-warn .md-header{background-color:'{{warn-color}}'}md-tabs.md-THEME_NAME-theme.md-warn md-tab:not([disabled]){color:'{{warn-100}}'}md-tabs.md-THEME_NAME-theme.md-warn md-tab:not([disabled]).active{color:'{{warn-contrast}}'}md-tabs.md-THEME_NAME-theme md-tabs-ink-bar{color:'{{primary-contrast}}';background:0 0}md-tabs.md-THEME_NAME-theme md-tab{color:'{{primary-100}}'}md-tabs.md-THEME_NAME-theme md-tab.active{color:'{{primary-contrast}}'}md-tabs.md-THEME_NAME-theme md-tab[disabled]{color:'{{foreground-4}}'}md-tabs.md-THEME_NAME-theme md-tab:focus{color:'{{primary-contrast}}';background-color:'{{primary-contrast-0.1}}'}md-tabs.md-THEME_NAME-theme md-tab .md-ripple-container{color:'{{primary-contrast}}'}