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,495 @@
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
+ * @ngdoc module
12
+ * @name material.components.dialog
13
+ */
14
+ angular.module('material.components.dialog', [
15
+ 'material.core',
16
+ 'material.components.backdrop'
17
+ ])
18
+ .directive('mdDialog', MdDialogDirective)
19
+ .provider('$mdDialog', MdDialogProvider);
20
+
21
+ function MdDialogDirective($$rAF, $mdTheming) {
22
+ return {
23
+ restrict: 'E',
24
+ link: function(scope, element, attr) {
25
+ $mdTheming(element);
26
+ $$rAF(function() {
27
+ var content = element[0].querySelector('md-content');
28
+ if (content && content.scrollHeight > content.clientHeight) {
29
+ element.addClass('md-content-overflow');
30
+ }
31
+ });
32
+ }
33
+ };
34
+ }
35
+ MdDialogDirective.$inject = ["$$rAF", "$mdTheming"];
36
+
37
+ /**
38
+ * @ngdoc service
39
+ * @name $mdDialog
40
+ * @module material.components.dialog
41
+ *
42
+ * @description
43
+ * `$mdDialog` opens a dialog over the app and provides a simple promise API.
44
+ *
45
+ * ### Restrictions
46
+ *
47
+ * - The dialog is always given an isolate scope.
48
+ * - The dialog's template must have an outer `<md-dialog>` element.
49
+ * Inside, use an `<md-content>` element for the dialog's content, and use
50
+ * an element with class `md-actions` for the dialog's actions.
51
+ *
52
+ * @usage
53
+ * ##### HTML
54
+ *
55
+ * <hljs lang="html">
56
+ * <div ng-app="demoApp" ng-controller="EmployeeController">
57
+ * <md-button ng-click="showAlert()" class="md-raised md-warn">
58
+ * Employee Alert!
59
+ * </md-button>
60
+ * <md-button ng-click="closeAlert()" ng-disabled="!hasAlert()" class="md-raised">
61
+ * Close Alert
62
+ * </md-button>
63
+ * <md-button ng-click="showGreeting($event)" class="md-raised md-primary" >
64
+ * Greet Employee
65
+ * </md-button>
66
+ * </div>
67
+ * </hljs>
68
+ *
69
+ * ##### JavaScript
70
+ *
71
+ * <hljs lang="js">
72
+ * (function(angular, undefined){
73
+ * "use strict";
74
+ *
75
+ * angular
76
+ * .module('demoApp', ['ngMaterial'])
77
+ * .controller('EmployeeController', EmployeeEditor)
78
+ * .controller('GreetingController', GreetingController);
79
+ *
80
+ * // Fictitious Employee Editor to show how to use simple and complex dialogs.
81
+ *
82
+ * function EmployeeEditor($scope, $mdDialog) {
83
+ * var alert;
84
+ *
85
+ * $scope.showAlert = showAlert;
86
+ * $scope.closeAlert = closeAlert;
87
+ * $scope.showGreeting = showCustomGreeting;
88
+ *
89
+ * $scope.hasAlert = function() { return !!alert };
90
+ * $scope.userName = $scope.userName || 'Bobby';
91
+ *
92
+ * // Dialog #1 - Show simple alert dialog and cache
93
+ * // reference to dialog instance
94
+ *
95
+ * function showAlert() {
96
+ * alert = $mdDialog.alert()
97
+ * .title('Attention, ' + $scope.userName)
98
+ * .content('This is an example of how easy dialogs can be!')
99
+ * .ok('Close');
100
+ *
101
+ * $mdDialog
102
+ * .show( alert )
103
+ * .finally(function() {
104
+ * alert = undefined;
105
+ * });
106
+ * }
107
+ *
108
+ * // Close the specified dialog instance and resolve with 'finished' flag
109
+ * // Normally this is not needed, just use '$mdDialog.hide()' to close
110
+ * // the most recent dialog popup.
111
+ *
112
+ * function closeAlert() {
113
+ * $mdDialog.hide( alert, "finished" );
114
+ * alert = undefined;
115
+ * }
116
+ *
117
+ * // Dialog #2 - Demonstrate more complex dialogs construction and popup.
118
+ *
119
+ * function showCustomGreeting($event) {
120
+ * $mdDialog.show({
121
+ * targetEvent: $event,
122
+ * template:
123
+ * '<md-dialog>' +
124
+ *
125
+ * ' <md-content>Hello {{ employee }}!</md-content>' +
126
+ *
127
+ * ' <div class="md-actions">' +
128
+ * ' <md-button ng-click="closeDialog()">' +
129
+ * ' Close Greeting' +
130
+ *
131
+ * ' </md-button>' +
132
+ * ' </div>' +
133
+ * '</md-dialog>',
134
+ * controller: 'GreetingController',
135
+ * onComplete: afterShowAnimation,
136
+ * locals: { employee: $scope.userName }
137
+ * });
138
+ *
139
+ * // When the 'enter' animation finishes...
140
+ *
141
+ * function afterShowAnimation(scope, element, options) {
142
+ * // post-show code here: DOM element focus, etc.
143
+ * }
144
+ * }
145
+ * }
146
+ *
147
+ * // Greeting controller used with the more complex 'showCustomGreeting()' custom dialog
148
+ *
149
+ * function GreetingController($scope, $mdDialog, employee) {
150
+ * // Assigned from construction <code>locals</code> options...
151
+ * $scope.employee = employee;
152
+ *
153
+ * $scope.closeDialog = function() {
154
+ * // Easily hides most recent dialog shown...
155
+ * // no specific instance reference is needed.
156
+ * $mdDialog.hide();
157
+ * };
158
+ * }
159
+ *
160
+ * })(angular);
161
+ * </hljs>
162
+ */
163
+
164
+ /**
165
+ * @ngdoc method
166
+ * @name $mdDialog#alert
167
+ *
168
+ * @description
169
+ * Builds a preconfigured dialog with the specified message.
170
+ *
171
+ * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
172
+ *
173
+ * - $mdDialogPreset#title(string) - sets title to string
174
+ * - $mdDialogPreset#content(string) - sets content / message to string
175
+ * - $mdDialogPreset#ok(string) - sets okay button text to string
176
+ *
177
+ */
178
+
179
+ /**
180
+ * @ngdoc method
181
+ * @name $mdDialog#confirm
182
+ *
183
+ * @description
184
+ * Builds a preconfigured dialog with the specified message. You can call show and the promise returned
185
+ * will be resolved only if the user clicks the confirm action on the dialog.
186
+ *
187
+ * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
188
+ *
189
+ * Additionally, it supports the following methods:
190
+ *
191
+ * - $mdDialogPreset#title(string) - sets title to string
192
+ * - $mdDialogPreset#content(string) - sets content / message to string
193
+ * - $mdDialogPreset#ok(string) - sets okay button text to string
194
+ * - $mdDialogPreset#cancel(string) - sets cancel button text to string
195
+ *
196
+ */
197
+
198
+ /**
199
+ * @ngdoc method
200
+ * @name $mdDialog#show
201
+ *
202
+ * @description
203
+ * Show a dialog with the specified options.
204
+ *
205
+ * @param {object} optionsOrPreset Either provide an `$mdDialogPreset` returned from `alert()`,
206
+ * `confirm()` or an options object with the following properties:
207
+ * - `templateUrl` - `{string=}`: The url of a template that will be used as the content
208
+ * of the dialog.
209
+ * - `template` - `{string=}`: Same as templateUrl, except this is an actual template string.
210
+ * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
211
+ * the location of the click will be used as the starting point for the opening animation
212
+ * of the the dialog.
213
+ * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the dialog is open.
214
+ * Default true.
215
+ * - `hasBackdrop` - `{boolean=}`: Whether there should be an opaque backdrop behind the dialog.
216
+ * Default true.
217
+ * - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the dialog to
218
+ * close it. Default true.
219
+ * - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
220
+ * Default true.
221
+ * - `controller` - `{string=}`: The controller to associate with the dialog. The controller
222
+ * will be injected with the local `$hideDialog`, which is a function used to hide the dialog.
223
+ * - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
224
+ * of values to inject into the controller. For example, `locals: {three: 3}` would inject
225
+ * `three` into the controller, with the value 3. If `bindToController` is true, they will be
226
+ * copied to the controller instead.
227
+ * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in
228
+ * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values, and the
229
+ * dialog will not open until all of the promises resolve.
230
+ * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
231
+ * - `parent` - `{element=}`: The element to append the dialog to. Defaults to appending
232
+ * to the root element of the application.
233
+ * - `onComplete` `{function=}`: Callback function used to announce when the show() action is
234
+ * finished.
235
+ *
236
+ * @returns {promise} A promise that can be resolved with `$mdDialog.hide()` or
237
+ * rejected with `mdDialog.cancel()`.
238
+ */
239
+
240
+ /**
241
+ * @ngdoc method
242
+ * @name $mdDialog#hide
243
+ *
244
+ * @description
245
+ * Hide an existing dialog and resolve the promise returned from `$mdDialog.show()`.
246
+ *
247
+ * @param {*=} response An argument for the resolved promise.
248
+ */
249
+
250
+ /**
251
+ * @ngdoc method
252
+ * @name $mdDialog#cancel
253
+ *
254
+ * @description
255
+ * Hide an existing dialog and reject the promise returned from `$mdDialog.show()`.
256
+ *
257
+ * @param {*=} response An argument for the rejected promise.
258
+ */
259
+
260
+ function MdDialogProvider($$interimElementProvider) {
261
+
262
+ var alertDialogMethods = ['title', 'content', 'ariaLabel', 'ok'];
263
+
264
+ advancedDialogOptions.$inject = ["$mdDialog"];
265
+ dialogDefaultOptions.$inject = ["$timeout", "$rootElement", "$compile", "$animate", "$mdAria", "$document", "$mdUtil", "$mdConstant", "$mdTheming", "$$rAF", "$q", "$mdDialog"];
266
+ return $$interimElementProvider('$mdDialog')
267
+ .setDefaults({
268
+ methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent'],
269
+ options: dialogDefaultOptions
270
+ })
271
+ .addPreset('alert', {
272
+ methods: ['title', 'content', 'ariaLabel', 'ok'],
273
+ options: advancedDialogOptions
274
+ })
275
+ .addPreset('confirm', {
276
+ methods: ['title', 'content', 'ariaLabel', 'ok', 'cancel'],
277
+ options: advancedDialogOptions
278
+ });
279
+
280
+ /* @ngInject */
281
+ function advancedDialogOptions($mdDialog) {
282
+ return {
283
+ template: [
284
+ '<md-dialog aria-label="{{ dialog.ariaLabel }}">',
285
+ '<md-content>',
286
+ '<h2>{{ dialog.title }}</h2>',
287
+ '<p>{{ dialog.content }}</p>',
288
+ '</md-content>',
289
+ '<div class="md-actions">',
290
+ '<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()">',
291
+ '{{ dialog.cancel }}',
292
+ '</md-button>',
293
+ '<md-button ng-click="dialog.hide()" class="md-primary">',
294
+ '{{ dialog.ok }}',
295
+ '</md-button>',
296
+ '</div>',
297
+ '</md-dialog>'
298
+ ].join(''),
299
+ controller: function mdDialogCtrl() {
300
+ this.hide = function() {
301
+ $mdDialog.hide(true);
302
+ };
303
+ this.abort = function() {
304
+ $mdDialog.cancel();
305
+ };
306
+ },
307
+ controllerAs: 'dialog',
308
+ bindToController: true
309
+ };
310
+ }
311
+
312
+ /* @ngInject */
313
+ function dialogDefaultOptions($timeout, $rootElement, $compile, $animate, $mdAria, $document,
314
+ $mdUtil, $mdConstant, $mdTheming, $$rAF, $q, $mdDialog) {
315
+ return {
316
+ hasBackdrop: true,
317
+ isolateScope: true,
318
+ onShow: onShow,
319
+ onRemove: onRemove,
320
+ clickOutsideToClose: true,
321
+ escapeToClose: true,
322
+ targetEvent: null,
323
+ disableParentScroll: true,
324
+ transformTemplate: function(template) {
325
+ return '<div class="md-dialog-container">' + template + '</div>';
326
+ }
327
+ };
328
+
329
+
330
+ // On show method for dialogs
331
+ function onShow(scope, element, options) {
332
+ // Incase the user provides a raw dom element, always wrap it in jqLite
333
+ options.parent = angular.element(options.parent);
334
+
335
+ options.popInTarget = angular.element((options.targetEvent || {}).target);
336
+ var closeButton = findCloseButton();
337
+
338
+ configureAria(element.find('md-dialog'));
339
+
340
+ if (options.hasBackdrop) {
341
+ options.backdrop = angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">');
342
+ $mdTheming.inherit(options.backdrop, options.parent);
343
+ $animate.enter(options.backdrop, options.parent);
344
+ }
345
+
346
+ if (options.disableParentScroll) {
347
+ options.oldOverflowStyle = options.parent.css('overflow');
348
+ options.parent.css('overflow', 'hidden');
349
+ }
350
+
351
+ return dialogPopIn(
352
+ element,
353
+ options.parent,
354
+ options.popInTarget && options.popInTarget.length && options.popInTarget
355
+ )
356
+ .then(function() {
357
+ if (options.escapeToClose) {
358
+ options.rootElementKeyupCallback = function(e) {
359
+ if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
360
+ $timeout($mdDialog.cancel);
361
+ }
362
+ };
363
+ $rootElement.on('keyup', options.rootElementKeyupCallback);
364
+ }
365
+
366
+ if (options.clickOutsideToClose) {
367
+ options.dialogClickOutsideCallback = function(e) {
368
+ // Only close if we click the flex container outside the backdrop
369
+ if (e.target === element[0]) {
370
+ $timeout($mdDialog.cancel);
371
+ }
372
+ };
373
+ element.on('click', options.dialogClickOutsideCallback);
374
+ }
375
+ closeButton.focus();
376
+ });
377
+
378
+
379
+ function findCloseButton() {
380
+ //If no element with class dialog-close, try to find the last
381
+ //button child in md-actions and assume it is a close button
382
+ var closeButton = element[0].querySelector('.dialog-close');
383
+ if (!closeButton) {
384
+ var actionButtons = element[0].querySelectorAll('.md-actions button');
385
+ closeButton = actionButtons[ actionButtons.length - 1 ];
386
+ }
387
+ return angular.element(closeButton);
388
+ }
389
+
390
+ }
391
+
392
+ // On remove function for all dialogs
393
+ function onRemove(scope, element, options) {
394
+
395
+ if (options.backdrop) {
396
+ $animate.leave(options.backdrop);
397
+ }
398
+ if (options.disableParentScroll) {
399
+ options.parent.css('overflow', options.oldOverflowStyle);
400
+ $document[0].removeEventListener('scroll', options.captureScroll, true);
401
+ }
402
+ if (options.escapeToClose) {
403
+ $rootElement.off('keyup', options.rootElementKeyupCallback);
404
+ }
405
+ if (options.clickOutsideToClose) {
406
+ element.off('click', options.dialogClickOutsideCallback);
407
+ }
408
+ return dialogPopOut(
409
+ element,
410
+ options.parent,
411
+ options.popInTarget && options.popInTarget.length && options.popInTarget
412
+ ).then(function() {
413
+ options.scope.$destroy();
414
+ element.remove();
415
+ options.popInTarget && options.popInTarget.focus();
416
+ });
417
+
418
+ }
419
+
420
+ /**
421
+ * Inject ARIA-specific attributes appropriate for Dialogs
422
+ */
423
+ function configureAria(element) {
424
+ element.attr({
425
+ 'role': 'dialog'
426
+ });
427
+
428
+ var dialogContent = element.find('md-content');
429
+ if (dialogContent.length === 0){
430
+ dialogContent = element;
431
+ }
432
+ $mdAria.expectAsync(element, 'aria-label', function() {
433
+ var words = dialogContent.text().split(/\s+/);
434
+ if (words.length > 3) words = words.slice(0,3).concat('...');
435
+ return words.join(' ');
436
+ });
437
+ }
438
+
439
+ function dialogPopIn(container, parentElement, clickElement) {
440
+ var dialogEl = container.find('md-dialog');
441
+
442
+ parentElement.append(container);
443
+ transformToClickElement(dialogEl, clickElement);
444
+
445
+ $$rAF(function() {
446
+ dialogEl.addClass('transition-in')
447
+ .css($mdConstant.CSS.TRANSFORM, '');
448
+ });
449
+
450
+ return dialogTransitionEnd(dialogEl);
451
+ }
452
+
453
+ function dialogPopOut(container, parentElement, clickElement) {
454
+ var dialogEl = container.find('md-dialog');
455
+
456
+ dialogEl.addClass('transition-out').removeClass('transition-in');
457
+ transformToClickElement(dialogEl, clickElement);
458
+
459
+ return dialogTransitionEnd(dialogEl);
460
+ }
461
+
462
+ function transformToClickElement(dialogEl, clickElement) {
463
+ if (clickElement) {
464
+ var clickRect = clickElement[0].getBoundingClientRect();
465
+ var dialogRect = dialogEl[0].getBoundingClientRect();
466
+
467
+ var scaleX = Math.min(0.5, clickRect.width / dialogRect.width);
468
+ var scaleY = Math.min(0.5, clickRect.height / dialogRect.height);
469
+
470
+ dialogEl.css($mdConstant.CSS.TRANSFORM, 'translate3d(' +
471
+ (-dialogRect.left + clickRect.left + clickRect.width/2 - dialogRect.width/2) + 'px,' +
472
+ (-dialogRect.top + clickRect.top + clickRect.height/2 - dialogRect.height/2) + 'px,' +
473
+ '0) scale(' + scaleX + ',' + scaleY + ')'
474
+ );
475
+ }
476
+ }
477
+
478
+ function dialogTransitionEnd(dialogEl) {
479
+ var deferred = $q.defer();
480
+ dialogEl.on($mdConstant.CSS.TRANSITIONEND, finished);
481
+ function finished(ev) {
482
+ //Make sure this transitionend didn't bubble up from a child
483
+ if (ev.target === dialogEl[0]) {
484
+ dialogEl.off($mdConstant.CSS.TRANSITIONEND, finished);
485
+ deferred.resolve();
486
+ }
487
+ }
488
+ return deferred.promise;
489
+ }
490
+
491
+ }
492
+ }
493
+ MdDialogProvider.$inject = ["$$interimElementProvider"];
494
+
495
+ })();
@@ -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-dialog-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;left:0;top:0;right:0;bottom:0;z-index:80}md-dialog{opacity:0;min-width:240px;max-width:80%;max-height:80%;position:relative;overflow:hidden;box-shadow:0 27px 24px 0 rgba(0,0,0,.2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-dialog.transition-in{opacity:1;-webkit-transition:all .4s cubic-bezier(0.25,.8,.25,1);transition:all .4s cubic-bezier(0.25,.8,.25,1);-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-dialog.transition-out{-webkit-transition:all .4s cubic-bezier(0.25,.8,.25,1);transition:all .4s cubic-bezier(0.25,.8,.25,1);-webkit-transform:translate3d(0,100%,0) scale(0.2);transform:translate3d(0,100%,0) scale(0.2)}md-dialog md-content{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1;padding:24px;overflow:auto;-webkit-overflow-scrolling:touch}md-dialog md-content:not([layout=row]) :first-child{margin-top:0}md-dialog .md-actions{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;box-sizing:border-box;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding:16px;min-height:40px}md-dialog .md-actions>*{margin-left:8px}md-dialog.md-content-overflow .md-actions{border-top:1px solid}
@@ -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,t){return{restrict:"E",link:function(n,o){t(o),e(function(){var e=o[0].querySelector("md-content");e&&e.scrollHeight>e.clientHeight&&o.addClass("md-content-overflow")})}}}function t(e){function t(e){return{template:['<md-dialog aria-label="{{ dialog.ariaLabel }}">',"<md-content>","<h2>{{ dialog.title }}</h2>","<p>{{ dialog.content }}</p>","</md-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0}}function n(e,t,n,o,a,i,l,r,c,d,s,u){function p(n,a,i){function l(){var e=a[0].querySelector(".dialog-close");if(!e){var t=a[0].querySelectorAll(".md-actions button");e=t[t.length-1]}return angular.element(e)}i.parent=angular.element(i.parent),i.popInTarget=angular.element((i.targetEvent||{}).target);var d=l();return g(a.find("md-dialog")),i.hasBackdrop&&(i.backdrop=angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),c.inherit(i.backdrop,i.parent),o.enter(i.backdrop,i.parent)),i.disableParentScroll&&(i.oldOverflowStyle=i.parent.css("overflow"),i.parent.css("overflow","hidden")),f(a,i.parent,i.popInTarget&&i.popInTarget.length&&i.popInTarget).then(function(){i.escapeToClose&&(i.rootElementKeyupCallback=function(t){t.keyCode===r.KEY_CODE.ESCAPE&&e(u.cancel)},t.on("keyup",i.rootElementKeyupCallback)),i.clickOutsideToClose&&(i.dialogClickOutsideCallback=function(t){t.target===a[0]&&e(u.cancel)},a.on("click",i.dialogClickOutsideCallback)),d.focus()})}function m(e,n,a){return a.backdrop&&o.leave(a.backdrop),a.disableParentScroll&&(a.parent.css("overflow",a.oldOverflowStyle),i[0].removeEventListener("scroll",a.captureScroll,!0)),a.escapeToClose&&t.off("keyup",a.rootElementKeyupCallback),a.clickOutsideToClose&&n.off("click",a.dialogClickOutsideCallback),h(n,a.parent,a.popInTarget&&a.popInTarget.length&&a.popInTarget).then(function(){a.scope.$destroy(),n.remove(),a.popInTarget&&a.popInTarget.focus()})}function g(e){e.attr({role:"dialog"});var t=e.find("md-content");0===t.length&&(t=e),a.expectAsync(e,"aria-label",function(){var e=t.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})}function f(e,t,n){var o=e.find("md-dialog");return t.append(e),k(o,n),d(function(){o.addClass("transition-in").css(r.CSS.TRANSFORM,"")}),v(o)}function h(e,t,n){var o=e.find("md-dialog");return o.addClass("transition-out").removeClass("transition-in"),k(o,n),v(o)}function k(e,t){if(t){var n=t[0].getBoundingClientRect(),o=e[0].getBoundingClientRect(),a=Math.min(.5,n.width/o.width),i=Math.min(.5,n.height/o.height);e.css(r.CSS.TRANSFORM,"translate3d("+(-o.left+n.left+n.width/2-o.width/2)+"px,"+(-o.top+n.top+n.height/2-o.height/2)+"px,0) scale("+a+","+i+")")}}function v(e){function t(o){o.target===e[0]&&(e.off(r.CSS.TRANSITIONEND,t),n.resolve())}var n=s.defer();return e.on(r.CSS.TRANSITIONEND,t),n.promise}return{hasBackdrop:!0,isolateScope:!0,onShow:p,onRemove:m,clickOutsideToClose:!0,escapeToClose:!0,targetEvent:null,disableParentScroll:!0,transformTemplate:function(e){return'<div class="md-dialog-container">'+e+"</div>"}}}return t.$inject=["$mdDialog"],n.$inject=["$timeout","$rootElement","$compile","$animate","$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$$rAF","$q","$mdDialog"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent"],options:n}).addPreset("alert",{methods:["title","content","ariaLabel","ok"],options:t}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel"],options:t})}angular.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",t),e.$inject=["$$rAF","$mdTheming"],t.$inject=["$$interimElementProvider"]}();
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "angular-material-divider",
3
+ "version": "0.7.0-rc3",
4
+ "dependencies": {
5
+ "angular-material-core": "0.7.0-rc3"
6
+ }
7
+ }
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-divider.md-THEME_NAME-theme {
8
+ border-top-color: '{{foreground-4}}'; }
@@ -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-divider.md-THEME_NAME-theme{border-top-color:'{{foreground-4}}'}
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-divider {
8
+ display: block;
9
+ border-top: 1px solid;
10
+ margin: 0; }
11
+ md-divider[md-inset] {
12
+ margin-left: 80px; }
@@ -0,0 +1,48 @@
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
+ * @ngdoc module
12
+ * @name material.components.divider
13
+ * @description Divider module!
14
+ */
15
+ angular.module('material.components.divider', [
16
+ 'material.core'
17
+ ])
18
+ .directive('mdDivider', MdDividerDirective);
19
+
20
+ function MdDividerController(){}
21
+
22
+ /**
23
+ * @ngdoc directive
24
+ * @name mdDivider
25
+ * @module material.components.divider
26
+ * @restrict E
27
+ *
28
+ * @description
29
+ * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content.
30
+ *
31
+ * @param {boolean=} md-inset Add this attribute to activate the inset divider style.
32
+ * @usage
33
+ * <hljs lang="html">
34
+ * <md-divider></md-divider>
35
+ *
36
+ * <md-divider md-inset></md-divider>
37
+ * </hljs>
38
+ *
39
+ */
40
+ function MdDividerDirective($mdTheming) {
41
+ return {
42
+ restrict: 'E',
43
+ link: $mdTheming,
44
+ controller: [MdDividerController]
45
+ };
46
+ }
47
+ MdDividerDirective.$inject = ["$mdTheming"];
48
+ })();
@@ -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-divider{display:block;border-top:1px solid;margin:0}md-divider[md-inset]{margin-left:80px}
@@ -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 i(){}function e(e){return{restrict:"E",link:e,controller:[i]}}angular.module("material.components.divider",["material.core"]).directive("mdDivider",e),e.$inject=["$mdTheming"]}();
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "angular-material-icon",
3
+ "version": "0.7.0-rc3",
4
+ "dependencies": {
5
+ "angular-material-core": "0.7.0-rc3"
6
+ }
7
+ }
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.7.0-rc3
6
+ */
7
+ md-icon {
8
+ margin: auto;
9
+ padding: 0;
10
+ display: inline-block;
11
+ margin-top: 5px;
12
+ background-repeat: no-repeat no-repeat;
13
+ pointer-events: none;
14
+ display: -webkit-box;
15
+ display: -webkit-flex;
16
+ display: -ms-flexbox;
17
+ display: flex; }
18
+ md-icon object.md-icon {
19
+ display: inline-block; }
20
+
21
+ svg, object {
22
+ fill: currentColor;
23
+ color: currentColor; }
24
+