sw2at-ui 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/Gemfile +21 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +51 -0
- data/VERSION +1 -0
- data/app/assets/images/swat/loading-green.gif +0 -0
- data/app/assets/javascripts/swat/.bowerrc +3 -0
- data/app/assets/javascripts/swat/app/app.coffee +38 -0
- data/app/assets/javascripts/swat/app/controllers/revision.coffee +25 -0
- data/app/assets/javascripts/swat/app/controllers/revisions.coffee +10 -0
- data/app/assets/javascripts/swat/app/controllers/root.coffee +8 -0
- data/app/assets/javascripts/swat/app/factories/response.coffee +9 -0
- data/app/assets/javascripts/swat/app/factories/revision_model.coffee +20 -0
- data/app/assets/javascripts/swat/app/services/revision.coffee +16 -0
- data/app/assets/javascripts/swat/app/services/test_case.coffee +8 -0
- data/app/assets/javascripts/swat/application.coffee +5 -0
- data/app/assets/javascripts/swat/bower.json +16 -0
- data/app/assets/javascripts/swat/bower_components/angular/angular-csp.css +21 -0
- data/app/assets/javascripts/swat/bower_components/angular/angular.js +28133 -0
- data/app/assets/javascripts/swat/bower_components/angular/angular.min.js +289 -0
- data/app/assets/javascripts/swat/bower_components/angular/index.js +2 -0
- data/app/assets/javascripts/swat/bower_components/angular-animate/angular-animate.js +2137 -0
- data/app/assets/javascripts/swat/bower_components/angular-animate/angular-animate.min.js +33 -0
- data/app/assets/javascripts/swat/bower_components/angular-aria/angular-aria.js +339 -0
- data/app/assets/javascripts/swat/bower_components/angular-aria/angular-aria.min.js +12 -0
- data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-csp.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-tpls.js +4840 -0
- data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js +10 -0
- data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap.js +4461 -0
- data/app/assets/javascripts/swat/bower_components/angular-bootstrap/ui-bootstrap.min.js +9 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/LICENSE.txt +21 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.css +6228 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.js +8602 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/angular-material.min.js +277 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/default-theme.css +394 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop.css +54 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/backdrop/backdrop.js +40 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css +161 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js +263 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button-default-theme.css +49 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button.css +134 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/button/button.js +101 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card-default-theme.css +10 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card.css +26 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/card/card.js +60 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css +38 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox.css +78 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/checkbox/checkbox.js +135 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content.css +24 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/content/content.js +87 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/core.css +2736 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/core.js +3090 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/core/default-theme.js +1 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css +11 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog.css +75 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/dialog/dialog.js +500 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider.css +12 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/divider/divider.js +50 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/icon/icon.css +24 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/icon/icon.js +52 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input-default-theme.css +39 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input.css +113 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/input/input.js +355 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/list/list.css +56 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/list/list.js +96 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/menu/menu.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/menu/menu.js +29 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css +35 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css +1395 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js +129 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css +26 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css +366 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js +130 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css +39 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton.css +66 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/radioButton/radioButton.js +302 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav.css +86 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sidenav/sidenav.js +320 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider-default-theme.css +55 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider.css +210 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/slider/slider.js +391 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sticky/sticky.css +20 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/sticky/sticky.js +314 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader.css +62 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/subheader/subheader.js +89 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/swipe/swipe.js +79 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch-default-theme.css +29 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch.css +81 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/switch/switch.js +171 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css +34 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs.css +171 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tabs/tabs.js +1009 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField-default-theme.css +29 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField.css +72 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/textField/textField.js +145 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast-default-theme.css +17 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.css +110 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.js +236 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css +17 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar.css +69 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toolbar/toolbar.js +161 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css +10 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip.css +133 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/tooltip/tooltip.js +199 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css +20 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js +17 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/css/angular-material-layout.css +2582 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.css +54 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.js +38 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/backdrop.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/backdrop/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css +188 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js +293 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/bottomSheet/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button-default-theme.css +42 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.css +132 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.js +94 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/button/button.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card-default-theme.css +10 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.css +31 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.js +58 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/card/card.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css +38 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.css +79 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.js +133 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/checkbox/checkbox.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.css +24 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.js +60 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/content/content.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.css +3067 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.js +2780 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/core.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/core/default-theme.js +1 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css +11 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.css +88 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.js +495 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/dialog/dialog.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.css +12 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.js +48 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/divider/divider.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.css +24 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.js +50 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/icon/icon.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input-default-theme.css +40 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.css +102 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.js +333 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/input/input.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.css +61 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js +94 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/bower.json +5 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.js +27 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/menu/menu.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css +35 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.css +1445 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.js +127 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css +28 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.css +368 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.js +128 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css +39 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.css +67 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.js +296 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/radioButton/radioButton.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.css +90 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.js +302 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sidenav/sidenav.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider-default-theme.css +55 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.css +218 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.js +411 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.css +20 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.js +309 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.css +61 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.js +86 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/subheader/subheader.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/bower.json +5 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/swipe.js +213 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/swipe/swipe.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch-default-theme.css +29 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.css +77 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.js +144 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/switch/switch.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css +34 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.css +181 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.js +992 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tabs/tabs.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField-default-theme.css +29 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.css +76 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.js +143 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/textField/textField.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/bower.json +9 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast-default-theme.css +17 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.css +115 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.js +235 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toast/toast.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/bower.json +8 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css +17 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.css +78 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.js +158 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/toolbar/toolbar.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/bower.json +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css +10 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.css +136 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.js +197 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/tooltip/tooltip.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/bower.json +5 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.css +20 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.js +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css +6 -0
- data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-resource/angular-resource.js +668 -0
- data/app/assets/javascripts/swat/bower_components/angular-resource/angular-resource.min.js +13 -0
- data/app/assets/javascripts/swat/bower_components/angular-resource/index.js +2 -0
- data/app/assets/javascripts/swat/bower_components/angular-route/angular-route.js +991 -0
- data/app/assets/javascripts/swat/bower_components/angular-route/angular-route.min.js +15 -0
- data/app/assets/javascripts/swat/bower_components/angular-route/index.js +2 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/LICENSE.txt +21 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/api/angular-ui-router.d.ts +126 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/release/angular-ui-router.js +4370 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/release/angular-ui-router.min.js +7 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/common.js +292 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/resolve.js +252 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/state.js +1465 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateDirectives.js +285 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js +39 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/templateFactory.js +110 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/urlMatcherFactory.js +1050 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/urlRouter.js +427 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/view.js +71 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/viewDirective.js +303 -0
- data/app/assets/javascripts/swat/bower_components/angular-ui-router/src/viewScroll.js +52 -0
- data/app/assets/javascripts/swat/bower_components/lodash/lodash.js +12235 -0
- data/app/assets/javascripts/swat/bower_components/lodash/lodash.min.js +98 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/.editorconfig +10 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/.gitignore +3 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/Gruntfile.js +96 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js +2 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/example/bootstrap-tooltip.html +49 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/example/index.html +68 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/example/ng-repeat.html +44 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/npm-debug.log +145 -0
- data/app/assets/javascripts/swat/bower_components/ng-clip/src/ngClip.js +84 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/.jshintrc +70 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.Core.js +2017 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.Core.min.js +10 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.js +2581 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.min.js +10 -0
- data/app/assets/javascripts/swat/bower_components/zeroclipboard/dist/ZeroClipboard.swf +0 -0
- data/app/assets/javascripts/swat/bower_components.coffee +12 -0
- data/app/assets/stylesheets/swat/application.sass +59 -0
- data/app/assets/stylesheets/swat/default-theme.css +394 -0
- data/app/assets/stylesheets/swat/font-awesome.css +1801 -0
- data/app/assets/stylesheets/swat/fonts/FontAwesome.otf +0 -0
- data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.svg +565 -0
- data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/swat/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/swat/swat_theme.sass +177 -0
- data/app/controllers/swat/api/revisions_controller.rb +27 -0
- data/app/controllers/swat/api/test_cases_controller.rb +20 -0
- data/app/controllers/swat/application_controller.rb +4 -0
- data/app/controllers/swat/info/states_controller.rb +12 -0
- data/app/controllers/swat/pages/base_pages_controller.rb +7 -0
- data/app/controllers/swat/pages/revisions_controller.rb +8 -0
- data/app/controllers/swat/revisions_controller.rb +4 -0
- data/app/helpers/swat/application_helper.rb +4 -0
- data/app/models/concerns/root_revision_ext.rb +14 -0
- data/app/models/full_revision.rb +88 -0
- data/app/models/revision.rb +84 -0
- data/app/models/revision_status_calculator.rb +98 -0
- data/app/models/test_case.rb +25 -0
- data/app/views/layouts/swat/application.slim +36 -0
- data/app/views/layouts/swat/page.slim +2 -0
- data/app/views/swat/application/index.slim +0 -0
- data/app/views/swat/pages/revisions/index.slim +25 -0
- data/app/views/swat/pages/revisions/show.slim +43 -0
- data/app/views/swat/shared/_footer.slim +5 -0
- data/app/views/swat/shared/_header.slim +9 -0
- data/bin/rails +12 -0
- data/config/routes.rb +38 -0
- data/fixtures/firebase_collection.rb +97 -0
- data/lib/sw2at-ui.rb +19 -0
- data/lib/swat/engine.rb +5 -0
- data/lib/swat/ui/config.rb +28 -0
- data/lib/swat/ui/rspec_commands.rb +191 -0
- data/lib/swat/ui/rspec_setup.rb +42 -0
- data/lib/swat/ui/stats_collector.rb +90 -0
- data/lib/swat/ui/version.rb +5 -0
- data/lib/tasks/swat_tasks.rake +36 -0
- data/spec/lib/commands_spec.rb +88 -0
- data/spec/models/calculator_spec.rb +130 -0
- data/spec/models/full_revision_spec.rb +263 -0
- data/spec/models/revision_spec.rb +59 -0
- data/spec/models/testcase_spec.rb +94 -0
- data/spec/spec_helper.rb +45 -0
- data/sw2at-ui.gemspec +465 -0
- data/test/helper.rb +34 -0
- data/test/test_sw2at-ui.rb +7 -0
- metadata +628 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-toolbar {
|
8
|
+
display: -webkit-flex;
|
9
|
+
display: -ms-flexbox;
|
10
|
+
display: flex;
|
11
|
+
-webkit-flex-direction: column;
|
12
|
+
-ms-flex-direction: column;
|
13
|
+
flex-direction: column;
|
14
|
+
position: relative;
|
15
|
+
z-index: 2;
|
16
|
+
font-size: 1.3em;
|
17
|
+
min-height: 64px;
|
18
|
+
width: 100%;
|
19
|
+
box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
|
20
|
+
md-toolbar.md-tall {
|
21
|
+
height: 128px;
|
22
|
+
min-height: 128px;
|
23
|
+
max-height: 128px; }
|
24
|
+
md-toolbar.md-medium-tall {
|
25
|
+
height: 88px;
|
26
|
+
min-height: 88px;
|
27
|
+
max-height: 88px; }
|
28
|
+
md-toolbar.md-medium-tall .md-toolbar-tools {
|
29
|
+
height: 48px;
|
30
|
+
min-height: 48px;
|
31
|
+
max-height: 48px; }
|
32
|
+
md-toolbar .md-indent {
|
33
|
+
margin-left: 64px; }
|
34
|
+
|
35
|
+
.md-toolbar-tools {
|
36
|
+
display: -webkit-flex;
|
37
|
+
display: -ms-flexbox;
|
38
|
+
display: flex;
|
39
|
+
-webkit-align-items: center;
|
40
|
+
-ms-flex-align: center;
|
41
|
+
align-items: center;
|
42
|
+
-webkit-flex-direction: row;
|
43
|
+
-ms-flex-direction: row;
|
44
|
+
flex-direction: row;
|
45
|
+
width: 100%;
|
46
|
+
height: 64px;
|
47
|
+
max-height: 64px;
|
48
|
+
font-size: inherit;
|
49
|
+
font-weight: normal;
|
50
|
+
padding: 0 16px;
|
51
|
+
margin: 0; }
|
52
|
+
.md-toolbar-tools > * {
|
53
|
+
font-size: inherit; }
|
54
|
+
.md-toolbar-tools h2, .md-toolbar-tools h3 {
|
55
|
+
font-weight: normal; }
|
56
|
+
.md-toolbar-tools a {
|
57
|
+
color: inherit;
|
58
|
+
text-decoration: none; }
|
59
|
+
.md-toolbar-tools .fill-height {
|
60
|
+
display: -webkit-flex;
|
61
|
+
display: -ms-flexbox;
|
62
|
+
display: flex;
|
63
|
+
-webkit-align-items: center;
|
64
|
+
-ms-flex-align: center;
|
65
|
+
align-items: center; }
|
66
|
+
.md-toolbar-tools .md-tools {
|
67
|
+
margin-left: auto; }
|
68
|
+
.md-toolbar-tools .md-button {
|
69
|
+
font-size: 14px; }
|
@@ -0,0 +1,161 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
goog.provide('ng.material.components.toolbar');
|
8
|
+
goog.require('ng.material.components.content');
|
9
|
+
goog.require('ng.material.core');
|
10
|
+
(function() {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @ngdoc module
|
15
|
+
* @name material.components.toolbar
|
16
|
+
*/
|
17
|
+
angular.module('material.components.toolbar', [
|
18
|
+
'material.core',
|
19
|
+
'material.components.content'
|
20
|
+
])
|
21
|
+
.directive('mdToolbar', mdToolbarDirective);
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @ngdoc directive
|
25
|
+
* @name mdToolbar
|
26
|
+
* @module material.components.toolbar
|
27
|
+
* @restrict E
|
28
|
+
* @description
|
29
|
+
* `md-toolbar` is used to place a toolbar in your app.
|
30
|
+
*
|
31
|
+
* Toolbars are usually used above a content area to display the title of the
|
32
|
+
* current page, and show relevant action buttons for that page.
|
33
|
+
*
|
34
|
+
* You can change the height of the toolbar by adding either the
|
35
|
+
* `md-medium-tall` or `md-tall` class to the toolbar.
|
36
|
+
*
|
37
|
+
* @usage
|
38
|
+
* <hljs lang="html">
|
39
|
+
* <div layout="column" layout-fill>
|
40
|
+
* <md-toolbar>
|
41
|
+
*
|
42
|
+
* <div class="md-toolbar-tools">
|
43
|
+
* <span>My App's Title</span>
|
44
|
+
*
|
45
|
+
* <!-- fill up the space between left and right area -->
|
46
|
+
* <span flex></span>
|
47
|
+
*
|
48
|
+
* <md-button>
|
49
|
+
* Right Bar Button
|
50
|
+
* </md-button>
|
51
|
+
* </div>
|
52
|
+
*
|
53
|
+
* </md-toolbar>
|
54
|
+
* <md-content>
|
55
|
+
* Hello!
|
56
|
+
* </md-content>
|
57
|
+
* </div>
|
58
|
+
* </hljs>
|
59
|
+
*
|
60
|
+
* @param {boolean=} md-scroll-shrink Whether the header should shrink away as
|
61
|
+
* the user scrolls down, and reveal itself as the user scrolls up.
|
62
|
+
* Note: for scrollShrink to work, the toolbar must be a sibling of a
|
63
|
+
* `md-content` element, placed before it. See the scroll shrink demo.
|
64
|
+
*
|
65
|
+
*
|
66
|
+
* @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's
|
67
|
+
* shrinking by. For example, if 0.25 is given then the toolbar will shrink
|
68
|
+
* at one fourth the rate at which the user scrolls down. Default 0.5.
|
69
|
+
*/
|
70
|
+
function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming) {
|
71
|
+
|
72
|
+
return {
|
73
|
+
restrict: 'E',
|
74
|
+
controller: angular.noop,
|
75
|
+
link: function(scope, element, attr) {
|
76
|
+
$mdTheming(element);
|
77
|
+
|
78
|
+
if (angular.isDefined(attr.mdScrollShrink)) {
|
79
|
+
setupScrollShrink();
|
80
|
+
}
|
81
|
+
|
82
|
+
function setupScrollShrink() {
|
83
|
+
// Current "y" position of scroll
|
84
|
+
var y = 0;
|
85
|
+
// Store the last scroll top position
|
86
|
+
var prevScrollTop = 0;
|
87
|
+
|
88
|
+
var shrinkSpeedFactor = attr.mdShrinkSpeedFactor || 0.5;
|
89
|
+
|
90
|
+
var toolbarHeight;
|
91
|
+
var contentElement;
|
92
|
+
|
93
|
+
var debouncedContentScroll = $$rAF.throttle(onContentScroll);
|
94
|
+
var debouncedUpdateHeight = $mdUtil.debounce(updateToolbarHeight, 5 * 1000);
|
95
|
+
|
96
|
+
// Wait for $mdContentLoaded event from mdContent directive.
|
97
|
+
// If the mdContent element is a sibling of our toolbar, hook it up
|
98
|
+
// to scroll events.
|
99
|
+
scope.$on('$mdContentLoaded', onMdContentLoad);
|
100
|
+
|
101
|
+
function onMdContentLoad($event, newContentEl) {
|
102
|
+
// Toolbar and content must be siblings
|
103
|
+
if (element.parent()[0] === newContentEl.parent()[0]) {
|
104
|
+
// unhook old content event listener if exists
|
105
|
+
if (contentElement) {
|
106
|
+
contentElement.off('scroll', debouncedContentScroll);
|
107
|
+
}
|
108
|
+
|
109
|
+
newContentEl.on('scroll', debouncedContentScroll);
|
110
|
+
newContentEl.attr('scroll-shrink', 'true');
|
111
|
+
|
112
|
+
contentElement = newContentEl;
|
113
|
+
$$rAF(updateToolbarHeight);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
function updateToolbarHeight() {
|
118
|
+
toolbarHeight = element.prop('offsetHeight');
|
119
|
+
// Add a negative margin-top the size of the toolbar to the content el.
|
120
|
+
// The content will start transformed down the toolbarHeight amount,
|
121
|
+
// so everything looks normal.
|
122
|
+
//
|
123
|
+
// As the user scrolls down, the content will be transformed up slowly
|
124
|
+
// to put the content underneath where the toolbar was.
|
125
|
+
contentElement.css(
|
126
|
+
'margin-top',
|
127
|
+
(-toolbarHeight * shrinkSpeedFactor) + 'px'
|
128
|
+
);
|
129
|
+
onContentScroll();
|
130
|
+
}
|
131
|
+
|
132
|
+
function onContentScroll(e) {
|
133
|
+
var scrollTop = e ? e.target.scrollTop : prevScrollTop;
|
134
|
+
|
135
|
+
debouncedUpdateHeight();
|
136
|
+
|
137
|
+
y = Math.min(
|
138
|
+
toolbarHeight / shrinkSpeedFactor,
|
139
|
+
Math.max(0, y + scrollTop - prevScrollTop)
|
140
|
+
);
|
141
|
+
|
142
|
+
element.css(
|
143
|
+
$mdConstant.CSS.TRANSFORM,
|
144
|
+
'translate3d(0,' + (-y * shrinkSpeedFactor) + 'px,0)'
|
145
|
+
);
|
146
|
+
contentElement.css(
|
147
|
+
$mdConstant.CSS.TRANSFORM,
|
148
|
+
'translate3d(0,' + ((toolbarHeight - y) * shrinkSpeedFactor) + 'px,0)'
|
149
|
+
);
|
150
|
+
|
151
|
+
prevScrollTop = scrollTop;
|
152
|
+
}
|
153
|
+
|
154
|
+
}
|
155
|
+
|
156
|
+
}
|
157
|
+
};
|
158
|
+
|
159
|
+
}
|
160
|
+
mdToolbarDirective.$inject = ["$$rAF", "$mdConstant", "$mdUtil", "$mdTheming"];
|
161
|
+
})();
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-tooltip.md-THEME_NAME-theme {
|
8
|
+
color: '{{background-A100}}'; }
|
9
|
+
md-tooltip.md-THEME_NAME-theme .md-background {
|
10
|
+
background-color: '{{foreground-2}}'; }
|
@@ -0,0 +1,133 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
@-webkit-keyframes tooltipBackgroundShow {
|
8
|
+
0% {
|
9
|
+
-webkit-transform: scale(0.2);
|
10
|
+
transform: scale(0.2);
|
11
|
+
opacity: 0.25; }
|
12
|
+
|
13
|
+
50% {
|
14
|
+
opacity: 1; }
|
15
|
+
|
16
|
+
100% {
|
17
|
+
-webkit-transform: scale(1);
|
18
|
+
transform: scale(1);
|
19
|
+
opacity: 1; } }
|
20
|
+
|
21
|
+
@keyframes tooltipBackgroundShow {
|
22
|
+
0% {
|
23
|
+
-webkit-transform: scale(0.2);
|
24
|
+
transform: scale(0.2);
|
25
|
+
opacity: 0.25; }
|
26
|
+
|
27
|
+
50% {
|
28
|
+
opacity: 1; }
|
29
|
+
|
30
|
+
100% {
|
31
|
+
-webkit-transform: scale(1);
|
32
|
+
transform: scale(1);
|
33
|
+
opacity: 1; } }
|
34
|
+
|
35
|
+
@-webkit-keyframes tooltipBackgroundHide {
|
36
|
+
0% {
|
37
|
+
opacity: 1; }
|
38
|
+
|
39
|
+
100% {
|
40
|
+
opacity: 0; } }
|
41
|
+
|
42
|
+
@keyframes tooltipBackgroundHide {
|
43
|
+
0% {
|
44
|
+
opacity: 1; }
|
45
|
+
|
46
|
+
100% {
|
47
|
+
opacity: 0; } }
|
48
|
+
|
49
|
+
md-tooltip {
|
50
|
+
position: absolute;
|
51
|
+
font-size: 14px;
|
52
|
+
z-index: 100;
|
53
|
+
overflow: hidden;
|
54
|
+
pointer-events: none;
|
55
|
+
border-radius: 4px;
|
56
|
+
/**
|
57
|
+
* Depending on the tooltip's size as a multiple of 32 (set by JS),
|
58
|
+
* change the background's animation duration.
|
59
|
+
* The larger the tooltip, the less time the background should take to ripple outwards.
|
60
|
+
*/ }
|
61
|
+
md-tooltip[md-direction="bottom"] {
|
62
|
+
-webkit-transform: translate3d(0, -30%, 0);
|
63
|
+
transform: translate3d(0, -30%, 0);
|
64
|
+
margin-top: 8px; }
|
65
|
+
md-tooltip[md-direction="top"] {
|
66
|
+
-webkit-transform: translate3d(0, 30%, 0);
|
67
|
+
transform: translate3d(0, 30%, 0);
|
68
|
+
margin-bottom: 8px; }
|
69
|
+
md-tooltip .md-background {
|
70
|
+
position: absolute;
|
71
|
+
left: 50%;
|
72
|
+
width: 256px;
|
73
|
+
height: 256px;
|
74
|
+
margin-left: -128px;
|
75
|
+
margin-top: -128px;
|
76
|
+
border-radius: 256px;
|
77
|
+
opacity: 0.25;
|
78
|
+
-webkit-transform: scale(0.2);
|
79
|
+
transform: scale(0.2); }
|
80
|
+
md-tooltip .md-content {
|
81
|
+
max-width: 240px;
|
82
|
+
white-space: nowrap;
|
83
|
+
overflow: hidden;
|
84
|
+
text-overflow: ellipsis;
|
85
|
+
padding: 8px;
|
86
|
+
background: transparent;
|
87
|
+
opacity: 0.3;
|
88
|
+
transition: inherit; }
|
89
|
+
md-tooltip.md-hide {
|
90
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
|
91
|
+
md-tooltip.md-show {
|
92
|
+
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
93
|
+
pointer-events: auto;
|
94
|
+
-webkit-transform: translate3d(0, 0, 0);
|
95
|
+
transform: translate3d(0, 0, 0); }
|
96
|
+
md-tooltip.md-show .md-background {
|
97
|
+
-webkit-transform: scale(1);
|
98
|
+
transform: scale(1);
|
99
|
+
opacity: 1;
|
100
|
+
-webkit-animation: tooltipBackgroundShow linear;
|
101
|
+
animation: tooltipBackgroundShow linear; }
|
102
|
+
md-tooltip.md-show .md-content {
|
103
|
+
opacity: 0.99; }
|
104
|
+
md-tooltip.md-hide .md-background {
|
105
|
+
-webkit-transform: scale(1);
|
106
|
+
transform: scale(1);
|
107
|
+
opacity: 0;
|
108
|
+
-webkit-animation: tooltipBackgroundHide 0.2s linear;
|
109
|
+
animation: tooltipBackgroundHide 0.2s linear; }
|
110
|
+
md-tooltip[width-32="1"].md-show .md-background {
|
111
|
+
-webkit-animation-duration: 900ms;
|
112
|
+
animation-duration: 900ms; }
|
113
|
+
md-tooltip[width-32="2"].md-show .md-background {
|
114
|
+
-webkit-animation-duration: 800ms;
|
115
|
+
animation-duration: 800ms; }
|
116
|
+
md-tooltip[width-32="3"].md-show .md-background {
|
117
|
+
-webkit-animation-duration: 700ms;
|
118
|
+
animation-duration: 700ms; }
|
119
|
+
md-tooltip[width-32="4"].md-show .md-background {
|
120
|
+
-webkit-animation-duration: 600ms;
|
121
|
+
animation-duration: 600ms; }
|
122
|
+
md-tooltip[width-32="5"].md-show .md-background {
|
123
|
+
-webkit-animation-duration: 500ms;
|
124
|
+
animation-duration: 500ms; }
|
125
|
+
md-tooltip[width-32="6"].md-show .md-background {
|
126
|
+
-webkit-animation-duration: 400ms;
|
127
|
+
animation-duration: 400ms; }
|
128
|
+
md-tooltip[width-32="7"].md-show .md-background {
|
129
|
+
-webkit-animation-duration: 300ms;
|
130
|
+
animation-duration: 300ms; }
|
131
|
+
md-tooltip[width-32="8"].md-show .md-background {
|
132
|
+
-webkit-animation-duration: 200ms;
|
133
|
+
animation-duration: 200ms; }
|
@@ -0,0 +1,199 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
goog.provide('ng.material.components.tooltip');
|
8
|
+
goog.require('ng.material.core');
|
9
|
+
(function() {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @ngdoc module
|
14
|
+
* @name material.components.tooltip
|
15
|
+
*/
|
16
|
+
angular.module('material.components.tooltip', [
|
17
|
+
'material.core'
|
18
|
+
])
|
19
|
+
.directive('mdTooltip', MdTooltipDirective);
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @ngdoc directive
|
23
|
+
* @name mdTooltip
|
24
|
+
* @module material.components.tooltip
|
25
|
+
* @description
|
26
|
+
* Tooltips are used to describe elements that are interactive and primarily graphical (not textual).
|
27
|
+
*
|
28
|
+
* Place a `<md-tooltip>` as a child of the element it describes.
|
29
|
+
*
|
30
|
+
* A tooltip will activate when the user focuses, hovers over, or touches the parent.
|
31
|
+
*
|
32
|
+
* @usage
|
33
|
+
* <hljs lang="html">
|
34
|
+
* <md-icon icon="/img/icons/ic_play_arrow_24px.svg">
|
35
|
+
* <md-tooltip>
|
36
|
+
* Play Music
|
37
|
+
* </md-tooltip>
|
38
|
+
* </md-icon>
|
39
|
+
* </hljs>
|
40
|
+
*
|
41
|
+
* @param {expression=} md-visible Boolean bound to whether the tooltip is
|
42
|
+
* currently visible.
|
43
|
+
* @param {number=} md-delay How many milliseconds to wait to show the tooltip after the user focuses, hovers, or touches the parent. Defaults to 400ms.
|
44
|
+
*/
|
45
|
+
function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdTheming, $rootElement) {
|
46
|
+
|
47
|
+
var TOOLTIP_SHOW_DELAY = 400;
|
48
|
+
var TOOLTIP_WINDOW_EDGE_SPACE = 8;
|
49
|
+
|
50
|
+
return {
|
51
|
+
restrict: 'E',
|
52
|
+
transclude: true,
|
53
|
+
template:
|
54
|
+
'<div class="md-background"></div>' +
|
55
|
+
'<div class="md-content" ng-transclude></div>',
|
56
|
+
scope: {
|
57
|
+
visible: '=?mdVisible',
|
58
|
+
delay: '=?mdDelay'
|
59
|
+
},
|
60
|
+
link: postLink
|
61
|
+
};
|
62
|
+
|
63
|
+
function postLink(scope, element, attr, contentCtrl) {
|
64
|
+
$mdTheming(element);
|
65
|
+
var parent = element.parent();
|
66
|
+
|
67
|
+
// Look for the nearest parent md-content, stopping at the rootElement.
|
68
|
+
var current = element.parent()[0];
|
69
|
+
while (current && current !== $rootElement[0] && current !== document.body) {
|
70
|
+
if (current.tagName && current.tagName.toLowerCase() == 'md-content') break;
|
71
|
+
current = current.parentNode;
|
72
|
+
}
|
73
|
+
var tooltipParent = angular.element(current || document.body);
|
74
|
+
|
75
|
+
if (!angular.isDefined(attr.mdDelay)) {
|
76
|
+
scope.delay = TOOLTIP_SHOW_DELAY;
|
77
|
+
}
|
78
|
+
|
79
|
+
// We will re-attach tooltip when visible
|
80
|
+
element.detach();
|
81
|
+
element.attr('role', 'tooltip');
|
82
|
+
element.attr('id', attr.id || ('tooltip_' + $mdUtil.nextUid()));
|
83
|
+
|
84
|
+
parent.on('focus mouseenter touchstart', function() {
|
85
|
+
setVisible(true);
|
86
|
+
});
|
87
|
+
parent.on('blur mouseleave touchend touchcancel', function() {
|
88
|
+
// Don't hide the tooltip if the parent is still focused.
|
89
|
+
if ($document[0].activeElement === parent[0]) return;
|
90
|
+
setVisible(false);
|
91
|
+
});
|
92
|
+
|
93
|
+
scope.$watch('visible', function(isVisible) {
|
94
|
+
if (isVisible) showTooltip();
|
95
|
+
else hideTooltip();
|
96
|
+
});
|
97
|
+
|
98
|
+
var debouncedOnResize = $$rAF.throttle(function windowResize() {
|
99
|
+
// Reposition on resize
|
100
|
+
if (scope.visible) positionTooltip();
|
101
|
+
});
|
102
|
+
angular.element($window).on('resize', debouncedOnResize);
|
103
|
+
|
104
|
+
// Be sure to completely cleanup the element on destroy
|
105
|
+
scope.$on('$destroy', function() {
|
106
|
+
scope.visible = false;
|
107
|
+
element.remove();
|
108
|
+
angular.element($window).off('resize', debouncedOnResize);
|
109
|
+
});
|
110
|
+
|
111
|
+
// *******
|
112
|
+
// Methods
|
113
|
+
// *******
|
114
|
+
|
115
|
+
// If setting visible to true, debounce to scope.delay ms
|
116
|
+
// If setting visible to false and no timeout is active, instantly hide the tooltip.
|
117
|
+
function setVisible(value) {
|
118
|
+
setVisible.value = !!value;
|
119
|
+
|
120
|
+
if (!setVisible.queued) {
|
121
|
+
if (value) {
|
122
|
+
setVisible.queued = true;
|
123
|
+
$timeout(function() {
|
124
|
+
scope.visible = setVisible.value;
|
125
|
+
setVisible.queued = false;
|
126
|
+
}, scope.delay);
|
127
|
+
|
128
|
+
} else {
|
129
|
+
$timeout(function() { scope.visible = false; });
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
function showTooltip() {
|
135
|
+
// Insert the element before positioning it, so we can get position
|
136
|
+
// (tooltip is hidden by default)
|
137
|
+
element.removeClass('md-hide');
|
138
|
+
parent.attr('aria-describedby', element.attr('id'));
|
139
|
+
tooltipParent.append(element);
|
140
|
+
|
141
|
+
// Wait until the element has been in the dom for two frames before
|
142
|
+
// fading it in.
|
143
|
+
// Additionally, we position the tooltip twice to avoid positioning bugs
|
144
|
+
positionTooltip();
|
145
|
+
$$rAF(function() {
|
146
|
+
|
147
|
+
$$rAF(function() {
|
148
|
+
positionTooltip();
|
149
|
+
if (!scope.visible) return;
|
150
|
+
element.addClass('md-show');
|
151
|
+
});
|
152
|
+
|
153
|
+
});
|
154
|
+
}
|
155
|
+
|
156
|
+
function hideTooltip() {
|
157
|
+
element.removeClass('md-show').addClass('md-hide');
|
158
|
+
parent.removeAttr('aria-describedby');
|
159
|
+
$timeout(function() {
|
160
|
+
if (scope.visible) return;
|
161
|
+
element.detach();
|
162
|
+
}, 200, false);
|
163
|
+
}
|
164
|
+
|
165
|
+
function positionTooltip() {
|
166
|
+
var tipRect = $mdUtil.elementRect(element, tooltipParent);
|
167
|
+
var parentRect = $mdUtil.elementRect(parent, tooltipParent);
|
168
|
+
|
169
|
+
// Default to bottom position if possible
|
170
|
+
var tipDirection = 'bottom';
|
171
|
+
var newPosition = {
|
172
|
+
left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
|
173
|
+
top: parentRect.top + parentRect.height
|
174
|
+
};
|
175
|
+
|
176
|
+
// If element bleeds over left/right of the window, place it on the edge of the window.
|
177
|
+
newPosition.left = Math.min(
|
178
|
+
newPosition.left,
|
179
|
+
tooltipParent.prop('scrollWidth') - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE
|
180
|
+
);
|
181
|
+
newPosition.left = Math.max(newPosition.left, TOOLTIP_WINDOW_EDGE_SPACE);
|
182
|
+
|
183
|
+
// If element bleeds over the bottom of the window, place it above the parent.
|
184
|
+
if (newPosition.top + tipRect.height > tooltipParent.prop('scrollHeight')) {
|
185
|
+
newPosition.top = parentRect.top - tipRect.height;
|
186
|
+
tipDirection = 'top';
|
187
|
+
}
|
188
|
+
|
189
|
+
element.css({top: newPosition.top + 'px', left: newPosition.left + 'px'});
|
190
|
+
// Tell the CSS the size of this tooltip, as a multiple of 32.
|
191
|
+
element.attr('width-32', Math.ceil(tipRect.width / 32));
|
192
|
+
element.attr('md-direction', tipDirection);
|
193
|
+
}
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
}
|
198
|
+
MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$mdUtil", "$mdTheming", "$rootElement"];
|
199
|
+
})();
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
.md-whiteframe-z1 {
|
8
|
+
box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); }
|
9
|
+
|
10
|
+
.md-whiteframe-z2 {
|
11
|
+
box-shadow: 0px 8px 17px rgba(0, 0, 0, 0.2); }
|
12
|
+
|
13
|
+
.md-whiteframe-z3 {
|
14
|
+
box-shadow: 0px 17px 50px rgba(0, 0, 0, 0.19); }
|
15
|
+
|
16
|
+
.md-whiteframe-z4 {
|
17
|
+
box-shadow: 0px 16px 28px 0 rgba(0, 0, 0, 0.22); }
|
18
|
+
|
19
|
+
.md-whiteframe-z5 {
|
20
|
+
box-shadow: 0px 27px 24px 0 rgba(0, 0, 0, 0.2); }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
goog.provide('ng.material.components.whiteframe');
|
8
|
+
|
9
|
+
(function() {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @ngdoc module
|
14
|
+
* @name material.components.whiteframe
|
15
|
+
*/
|
16
|
+
angular.module('material.components.whiteframe', []);
|
17
|
+
})();
|