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
data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.js
ADDED
@@ -0,0 +1,411 @@
|
|
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.slider
|
13
|
+
*/
|
14
|
+
angular.module('material.components.slider', [
|
15
|
+
'material.core'
|
16
|
+
])
|
17
|
+
.directive('mdSlider', SliderDirective);
|
18
|
+
|
19
|
+
/**
|
20
|
+
* @ngdoc directive
|
21
|
+
* @name mdSlider
|
22
|
+
* @module material.components.slider
|
23
|
+
* @restrict E
|
24
|
+
* @description
|
25
|
+
* The `<md-slider>` component allows the user to choose from a range of
|
26
|
+
* values.
|
27
|
+
*
|
28
|
+
* It has two modes: 'normal' mode, where the user slides between a wide range
|
29
|
+
* of values, and 'discrete' mode, where the user slides between only a few
|
30
|
+
* select values.
|
31
|
+
*
|
32
|
+
* To enable discrete mode, add the `md-discrete` attribute to a slider,
|
33
|
+
* and use the `step` attribute to change the distance between
|
34
|
+
* values the user is allowed to pick.
|
35
|
+
*
|
36
|
+
* @usage
|
37
|
+
* <h4>Normal Mode</h4>
|
38
|
+
* <hljs lang="html">
|
39
|
+
* <md-slider ng-model="myValue" min="5" max="500">
|
40
|
+
* </md-slider>
|
41
|
+
* </hljs>
|
42
|
+
* <h4>Discrete Mode</h4>
|
43
|
+
* <hljs lang="html">
|
44
|
+
* <md-slider md-discrete ng-model="myDiscreteValue" step="10" min="10" max="130">
|
45
|
+
* </md-slider>
|
46
|
+
* </hljs>
|
47
|
+
*
|
48
|
+
* @param {boolean=} md-discrete Whether to enable discrete mode.
|
49
|
+
* @param {number=} step The distance between values the user is allowed to pick. Default 1.
|
50
|
+
* @param {number=} min The minimum value the user is allowed to pick. Default 0.
|
51
|
+
* @param {number=} max The maximum value the user is allowed to pick. Default 100.
|
52
|
+
*/
|
53
|
+
function SliderDirective($mdTheming) {
|
54
|
+
return {
|
55
|
+
scope: {},
|
56
|
+
require: ['?ngModel', 'mdSlider'],
|
57
|
+
controller: SliderController,
|
58
|
+
template:
|
59
|
+
'<div class="md-track-container">' +
|
60
|
+
'<div class="md-track"></div>' +
|
61
|
+
'<div class="md-track md-track-fill"></div>' +
|
62
|
+
'<div class="md-track-ticks"></div>' +
|
63
|
+
'</div>' +
|
64
|
+
'<div class="md-thumb-container">' +
|
65
|
+
'<div class="md-thumb"></div>' +
|
66
|
+
'<div class="md-focus-thumb"></div>' +
|
67
|
+
'<div class="md-focus-ring"></div>' +
|
68
|
+
'<div class="md-sign">' +
|
69
|
+
'<span class="md-thumb-text"></span>' +
|
70
|
+
'</div>' +
|
71
|
+
'<div class="md-disabled-thumb"></div>' +
|
72
|
+
'</div>',
|
73
|
+
link: postLink
|
74
|
+
};
|
75
|
+
|
76
|
+
function postLink(scope, element, attr, ctrls) {
|
77
|
+
$mdTheming(element);
|
78
|
+
var ngModelCtrl = ctrls[0] || {
|
79
|
+
// Mock ngModelController if it doesn't exist to give us
|
80
|
+
// the minimum functionality needed
|
81
|
+
$setViewValue: function(val) {
|
82
|
+
this.$viewValue = val;
|
83
|
+
this.$viewChangeListeners.forEach(function(cb) { cb(); });
|
84
|
+
},
|
85
|
+
$parsers: [],
|
86
|
+
$formatters: [],
|
87
|
+
$viewChangeListeners: []
|
88
|
+
};
|
89
|
+
|
90
|
+
var sliderCtrl = ctrls[1];
|
91
|
+
sliderCtrl.init(ngModelCtrl);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
SliderDirective.$inject = ["$mdTheming"];
|
95
|
+
|
96
|
+
/**
|
97
|
+
* We use a controller for all the logic so that we can expose a few
|
98
|
+
* things to unit tests
|
99
|
+
*/
|
100
|
+
function SliderController($scope, $element, $attrs, $$rAF, $window, $mdAria, $mdUtil, $mdConstant) {
|
101
|
+
|
102
|
+
this.init = function init(ngModelCtrl) {
|
103
|
+
var thumb = angular.element($element[0].querySelector('.md-thumb'));
|
104
|
+
var thumbText = angular.element($element[0].querySelector('.md-thumb-text'));
|
105
|
+
var thumbContainer = thumb.parent();
|
106
|
+
var trackContainer = angular.element($element[0].querySelector('.md-track-container'));
|
107
|
+
var activeTrack = angular.element($element[0].querySelector('.md-track-fill'));
|
108
|
+
var tickContainer = angular.element($element[0].querySelector('.md-track-ticks'));
|
109
|
+
var throttledRefreshDimensions = $mdUtil.throttle(refreshSliderDimensions, 5000);
|
110
|
+
|
111
|
+
// Default values, overridable by $attrss
|
112
|
+
$attrs.min ? $attrs.$observe('min', updateMin) : updateMin(0);
|
113
|
+
$attrs.max ? $attrs.$observe('max', updateMax) : updateMax(100);
|
114
|
+
$attrs.step ? $attrs.$observe('step', updateStep) : updateStep(1);
|
115
|
+
|
116
|
+
// We have to manually stop the $watch on ngDisabled because it exists
|
117
|
+
// on the parent $scope, and won't be automatically destroyed when
|
118
|
+
// the component is destroyed.
|
119
|
+
var stopDisabledWatch = angular.noop;
|
120
|
+
if ($attrs.ngDisabled) {
|
121
|
+
stopDisabledWatch = $scope.$parent.$watch($attrs.ngDisabled, updateAriaDisabled);
|
122
|
+
}
|
123
|
+
|
124
|
+
$mdAria.expect($element, 'aria-label');
|
125
|
+
|
126
|
+
$element.attr('tabIndex', 0);
|
127
|
+
$element.attr('role', 'slider');
|
128
|
+
$element.on('keydown', keydownListener);
|
129
|
+
|
130
|
+
var hammertime = new Hammer($element[0], {
|
131
|
+
recognizers: [
|
132
|
+
[Hammer.Pan, { direction: Hammer.DIRECTION_HORIZONTAL }]
|
133
|
+
]
|
134
|
+
});
|
135
|
+
hammertime.on('hammer.input', onInput);
|
136
|
+
hammertime.on('panstart', onPanStart);
|
137
|
+
hammertime.on('pan', onPan);
|
138
|
+
hammertime.on('panend', onPanEnd);
|
139
|
+
|
140
|
+
// On resize, recalculate the slider's dimensions and re-render
|
141
|
+
function updateAll() {
|
142
|
+
refreshSliderDimensions();
|
143
|
+
ngModelRender();
|
144
|
+
redrawTicks();
|
145
|
+
}
|
146
|
+
setTimeout(updateAll);
|
147
|
+
|
148
|
+
var debouncedUpdateAll = $$rAF.debounce(updateAll);
|
149
|
+
angular.element($window).on('resize', debouncedUpdateAll);
|
150
|
+
|
151
|
+
$scope.$on('$destroy', function() {
|
152
|
+
angular.element($window).off('resize', debouncedUpdateAll);
|
153
|
+
hammertime.destroy();
|
154
|
+
stopDisabledWatch();
|
155
|
+
});
|
156
|
+
|
157
|
+
ngModelCtrl.$render = ngModelRender;
|
158
|
+
ngModelCtrl.$viewChangeListeners.push(ngModelRender);
|
159
|
+
ngModelCtrl.$formatters.push(minMaxValidator);
|
160
|
+
ngModelCtrl.$formatters.push(stepValidator);
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Attributes
|
164
|
+
*/
|
165
|
+
var min;
|
166
|
+
var max;
|
167
|
+
var step;
|
168
|
+
function updateMin(value) {
|
169
|
+
min = parseFloat(value);
|
170
|
+
$element.attr('aria-valuemin', value);
|
171
|
+
updateAll();
|
172
|
+
}
|
173
|
+
function updateMax(value) {
|
174
|
+
max = parseFloat(value);
|
175
|
+
$element.attr('aria-valuemax', value);
|
176
|
+
updateAll();
|
177
|
+
}
|
178
|
+
function updateStep(value) {
|
179
|
+
step = parseFloat(value);
|
180
|
+
redrawTicks();
|
181
|
+
}
|
182
|
+
function updateAriaDisabled(isDisabled) {
|
183
|
+
$element.attr('aria-disabled', !!isDisabled);
|
184
|
+
}
|
185
|
+
|
186
|
+
// Draw the ticks with canvas.
|
187
|
+
// The alternative to drawing ticks with canvas is to draw one $element for each tick,
|
188
|
+
// which could quickly become a performance bottleneck.
|
189
|
+
var tickCanvas, tickCtx;
|
190
|
+
function redrawTicks() {
|
191
|
+
if (!angular.isDefined($attrs.mdDiscrete)) return;
|
192
|
+
|
193
|
+
var numSteps = Math.floor( (max - min) / step );
|
194
|
+
if (!tickCanvas) {
|
195
|
+
var trackTicksStyle = $window.getComputedStyle(tickContainer[0]);
|
196
|
+
tickCanvas = angular.element('<canvas style="position:absolute;">');
|
197
|
+
tickCtx = tickCanvas[0].getContext('2d');
|
198
|
+
tickCtx.fillStyle = trackTicksStyle.backgroundColor || 'black';
|
199
|
+
tickContainer.append(tickCanvas);
|
200
|
+
}
|
201
|
+
var dimensions = getSliderDimensions();
|
202
|
+
tickCanvas[0].width = dimensions.width;
|
203
|
+
tickCanvas[0].height = dimensions.height;
|
204
|
+
|
205
|
+
var distance;
|
206
|
+
for (var i = 0; i <= numSteps; i++) {
|
207
|
+
distance = Math.floor(dimensions.width * (i / numSteps));
|
208
|
+
tickCtx.fillRect(distance - 1, 0, 2, dimensions.height);
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Refreshing Dimensions
|
215
|
+
*/
|
216
|
+
var sliderDimensions = {};
|
217
|
+
refreshSliderDimensions();
|
218
|
+
function refreshSliderDimensions() {
|
219
|
+
sliderDimensions = trackContainer[0].getBoundingClientRect();
|
220
|
+
}
|
221
|
+
function getSliderDimensions() {
|
222
|
+
throttledRefreshDimensions();
|
223
|
+
return sliderDimensions;
|
224
|
+
}
|
225
|
+
|
226
|
+
/**
|
227
|
+
* left/right arrow listener
|
228
|
+
*/
|
229
|
+
function keydownListener(ev) {
|
230
|
+
if($element[0].hasAttribute('disabled')) {
|
231
|
+
return;
|
232
|
+
}
|
233
|
+
|
234
|
+
var changeAmount;
|
235
|
+
if (ev.keyCode === $mdConstant.KEY_CODE.LEFT_ARROW) {
|
236
|
+
changeAmount = -step;
|
237
|
+
} else if (ev.keyCode === $mdConstant.KEY_CODE.RIGHT_ARROW) {
|
238
|
+
changeAmount = step;
|
239
|
+
}
|
240
|
+
if (changeAmount) {
|
241
|
+
if (ev.metaKey || ev.ctrlKey || ev.altKey) {
|
242
|
+
changeAmount *= 4;
|
243
|
+
}
|
244
|
+
ev.preventDefault();
|
245
|
+
ev.stopPropagation();
|
246
|
+
$scope.$evalAsync(function() {
|
247
|
+
setModelValue(ngModelCtrl.$viewValue + changeAmount);
|
248
|
+
});
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
/**
|
253
|
+
* ngModel setters and validators
|
254
|
+
*/
|
255
|
+
function setModelValue(value) {
|
256
|
+
ngModelCtrl.$setViewValue( minMaxValidator(stepValidator(value)) );
|
257
|
+
}
|
258
|
+
function ngModelRender() {
|
259
|
+
|
260
|
+
if (isNaN(ngModelCtrl.$viewValue)) {
|
261
|
+
ngModelCtrl.$viewValue = ngModelCtrl.$modelValue;
|
262
|
+
}
|
263
|
+
|
264
|
+
var percent = (ngModelCtrl.$viewValue - min) / (max - min);
|
265
|
+
$scope.modelValue = ngModelCtrl.$viewValue;
|
266
|
+
$element.attr('aria-valuenow', ngModelCtrl.$viewValue);
|
267
|
+
setSliderPercent(percent);
|
268
|
+
thumbText.text( ngModelCtrl.$viewValue );
|
269
|
+
}
|
270
|
+
|
271
|
+
function minMaxValidator(value) {
|
272
|
+
if (angular.isNumber(value)) {
|
273
|
+
return Math.max(min, Math.min(max, value));
|
274
|
+
}
|
275
|
+
}
|
276
|
+
function stepValidator(value) {
|
277
|
+
if (angular.isNumber(value)) {
|
278
|
+
return Math.round(value / step) * step;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
/**
|
283
|
+
* @param percent 0-1
|
284
|
+
*/
|
285
|
+
function setSliderPercent(percent) {
|
286
|
+
activeTrack.css('width', (percent * 100) + '%');
|
287
|
+
thumbContainer.css(
|
288
|
+
$mdConstant.CSS.TRANSFORM,
|
289
|
+
'translate3d(' + getSliderDimensions().width * percent + 'px,0,0)'
|
290
|
+
);
|
291
|
+
$element.toggleClass('md-min', percent === 0);
|
292
|
+
}
|
293
|
+
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Slide listeners
|
297
|
+
*/
|
298
|
+
var isSliding = false;
|
299
|
+
var isDiscrete = angular.isDefined($attrs.mdDiscrete);
|
300
|
+
|
301
|
+
function onInput(ev) {
|
302
|
+
if (!isSliding && ev.eventType === Hammer.INPUT_START &&
|
303
|
+
!$element[0].hasAttribute('disabled')) {
|
304
|
+
|
305
|
+
isSliding = true;
|
306
|
+
|
307
|
+
$element.addClass('active');
|
308
|
+
$element[0].focus();
|
309
|
+
refreshSliderDimensions();
|
310
|
+
|
311
|
+
onPan(ev);
|
312
|
+
|
313
|
+
ev.srcEvent.stopPropagation();
|
314
|
+
|
315
|
+
} else if (isSliding && ev.eventType === Hammer.INPUT_END) {
|
316
|
+
|
317
|
+
if ( isSliding && isDiscrete ) onPanEnd(ev);
|
318
|
+
isSliding = false;
|
319
|
+
|
320
|
+
$element.removeClass('panning active');
|
321
|
+
}
|
322
|
+
}
|
323
|
+
function onPanStart() {
|
324
|
+
if (!isSliding) return;
|
325
|
+
$element.addClass('panning');
|
326
|
+
}
|
327
|
+
function onPan(ev) {
|
328
|
+
if (!isSliding) return;
|
329
|
+
|
330
|
+
// While panning discrete, update only the
|
331
|
+
// visual positioning but not the model value.
|
332
|
+
|
333
|
+
if ( isDiscrete ) adjustThumbPosition( ev.center.x );
|
334
|
+
else doSlide( ev.center.x );
|
335
|
+
|
336
|
+
ev.preventDefault();
|
337
|
+
ev.srcEvent.stopPropagation();
|
338
|
+
}
|
339
|
+
|
340
|
+
function onPanEnd(ev) {
|
341
|
+
if ( isDiscrete && !$element[0].hasAttribute('disabled') ) {
|
342
|
+
// Convert exact to closest discrete value.
|
343
|
+
// Slide animate the thumb... and then update the model value.
|
344
|
+
|
345
|
+
var exactVal = percentToValue( positionToPercent( ev.center.x ));
|
346
|
+
var closestVal = minMaxValidator( stepValidator(exactVal) );
|
347
|
+
|
348
|
+
setSliderPercent( valueToPercent(closestVal));
|
349
|
+
$$rAF(function(){
|
350
|
+
setModelValue( closestVal );
|
351
|
+
});
|
352
|
+
|
353
|
+
ev.preventDefault();
|
354
|
+
ev.srcEvent.stopPropagation();
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
/**
|
359
|
+
* Expose for testing
|
360
|
+
*/
|
361
|
+
this._onInput = onInput;
|
362
|
+
this._onPanStart = onPanStart;
|
363
|
+
this._onPan = onPan;
|
364
|
+
|
365
|
+
/**
|
366
|
+
* Slide the UI by changing the model value
|
367
|
+
* @param x
|
368
|
+
*/
|
369
|
+
function doSlide( x ) {
|
370
|
+
$scope.$evalAsync( function() {
|
371
|
+
setModelValue( percentToValue( positionToPercent(x) ));
|
372
|
+
});
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Slide the UI without changing the model (while dragging/panning)
|
377
|
+
* @param x
|
378
|
+
*/
|
379
|
+
function adjustThumbPosition( x ) {
|
380
|
+
var exactVal = percentToValue( positionToPercent( x ));
|
381
|
+
var closestVal = minMaxValidator( stepValidator(exactVal) );
|
382
|
+
setSliderPercent( positionToPercent(x) );
|
383
|
+
thumbText.text( closestVal );
|
384
|
+
}
|
385
|
+
|
386
|
+
/**
|
387
|
+
* Convert horizontal position on slider to percentage value of offset from beginning...
|
388
|
+
* @param x
|
389
|
+
* @returns {number}
|
390
|
+
*/
|
391
|
+
function positionToPercent( x ) {
|
392
|
+
return Math.max(0, Math.min(1, (x - sliderDimensions.left) / (sliderDimensions.width)));
|
393
|
+
}
|
394
|
+
|
395
|
+
/**
|
396
|
+
* Convert percentage offset on slide to equivalent model value
|
397
|
+
* @param percent
|
398
|
+
* @returns {*}
|
399
|
+
*/
|
400
|
+
function percentToValue( percent ) {
|
401
|
+
return (min + percent * (max - min));
|
402
|
+
}
|
403
|
+
|
404
|
+
function valueToPercent( val ) {
|
405
|
+
return (val - min)/(max - min);
|
406
|
+
}
|
407
|
+
|
408
|
+
};
|
409
|
+
}
|
410
|
+
SliderController.$inject = ["$scope", "$element", "$attrs", "$$rAF", "$window", "$mdAria", "$mdUtil", "$mdConstant"];
|
411
|
+
})();
|
data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.css
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.0-rc3
|
6
|
+
*/@-webkit-keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}@keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}md-slider{height:48px;position:relative;display:block;margin-left:4px;margin-right:4px}md-slider .md-track-container{width:100%;position:absolute;top:23px;height:2px}md-slider .md-track{position:absolute;left:0;right:0;height:100%}md-slider .md-track-fill{-webkit-transition:width .05s linear;transition:width .05s linear}md-slider .md-track-ticks{position:absolute;left:0;right:0;height:100%}md-slider .md-thumb-container{position:absolute;left:0;top:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition:-webkit-transform .1s linear;transition:transform .1s linear}md-slider .md-thumb{z-index:1;position:absolute;left:-19px;top:5px;width:38px;height:38px;border-radius:38px;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transition:all .1s linear;transition:all .1s linear}md-slider .md-thumb:after{content:'';position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:32px;border:3px solid}md-slider .md-sign{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:-14px;top:-20px;width:28px;height:28px;border-radius:28px;-webkit-transform:scale(0.4) translate3d(0,70px,0);transform:scale(0.4) translate3d(0,70px,0);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}md-slider .md-sign:after{position:absolute;content:'';left:0;border-radius:16px;top:19px;border-left:14px solid transparent;border-right:14px solid transparent;border-top:16px solid;opacity:0;-webkit-transform:translate3d(0,-8px,0);transform:translate3d(0,-8px,0);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}md-slider .md-sign .md-thumb-text{z-index:1;font-size:12px;font-weight:700}md-slider .md-focus-thumb{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;display:none;opacity:0;background-color:silver;-webkit-animation:sliderFocusThumb .4s linear;animation:sliderFocusThumb .4s linear}md-slider .md-focus-ring{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;border:2px solid #D6D6D6;background-color:transparent;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .2s linear;transition:all .2s linear}md-slider .md-disabled-thumb{position:absolute;left:-22px;top:2px;width:44px;height:44px;border-radius:44px;-webkit-transform:scale(0.35);transform:scale(0.35);border:6px solid;display:none}md-slider.md-min .md-thumb:after{background-color:#fff}md-slider.md-min .md-sign{opacity:0}md-slider:focus{outline:0}md-slider.panning .md-thumb-container,md-slider.panning .md-track-fill{-webkit-transition:none;transition:none}md-slider:not([md-discrete]) .md-sign,md-slider:not([md-discrete]) .md-track-ticks{display:none}md-slider:not([md-discrete]):not([disabled]):hover .md-thumb{-webkit-transform:scale(0.6);transform:scale(0.6)}md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb{display:block}md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring{-webkit-transform:scale(1);transform:scale(1)}md-slider:not([md-discrete]):not([disabled]).active .md-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-thumb{-webkit-transform:scale(0.85);transform:scale(0.85)}md-slider[md-discrete] .md-focus-ring,md-slider[md-discrete] .md-focus-thumb{display:none}md-slider[md-discrete]:not([disabled]).active .md-sign,md-slider[md-discrete]:not([disabled]).active .md-sign:after,md-slider[md-discrete]:not([disabled]):focus .md-sign,md-slider[md-discrete]:not([disabled]):focus .md-sign:after{opacity:1;-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-slider[disabled] .md-sign,md-slider[disabled] .md-track-fill{display:none}md-slider[disabled] .md-thumb{-webkit-transform:scale(0.35);transform:scale(0.35)}md-slider[disabled] .md-disabled-thumb{display:block}
|
data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/slider/slider.min.js
ADDED
@@ -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){function n(t,n,a,i){e(n);var r=i[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},o=i[1];o.init(r)}return{scope:{},require:["?ngModel","mdSlider"],controller:t,template:'<div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div>',link:n}}function t(e,t,n,a,i,r,o,s){this.init=function(l){function u(){h(),b(),f()}function c(e){L=parseFloat(e),t.attr("aria-valuemin",e),u()}function d(e){z=parseFloat(e),t.attr("aria-valuemax",e),u()}function m(e){U=parseFloat(e),f()}function v(e){t.attr("aria-disabled",!!e)}function f(){if(angular.isDefined(n.mdDiscrete)){var e=Math.floor((z-L)/U);if(!j){var t=i.getComputedStyle(O[0]);j=angular.element('<canvas style="position:absolute;">'),W=j[0].getContext("2d"),W.fillStyle=t.backgroundColor||"black",O.append(j)}var a=p();j[0].width=a.width,j[0].height=a.height;for(var r,o=0;e>=o;o++)r=Math.floor(a.width*(o/e)),W.fillRect(r-1,0,2,a.height)}}function h(){Y=P[0].getBoundingClientRect()}function p(){return H(),Y}function g(n){if(!t[0].hasAttribute("disabled")){var a;n.keyCode===s.KEY_CODE.LEFT_ARROW?a=-U:n.keyCode===s.KEY_CODE.RIGHT_ARROW&&(a=U),a&&((n.metaKey||n.ctrlKey||n.altKey)&&(a*=4),n.preventDefault(),n.stopPropagation(),e.$evalAsync(function(){$(l.$viewValue+a)}))}}function $(e){l.$setViewValue(w(y(e)))}function b(){isNaN(l.$viewValue)&&(l.$viewValue=l.$modelValue);var n=(l.$viewValue-L)/(z-L);e.modelValue=l.$viewValue,t.attr("aria-valuenow",l.$viewValue),C(n),_.text(l.$viewValue)}function w(e){return angular.isNumber(e)?Math.max(L,Math.min(z,e)):void 0}function y(e){return angular.isNumber(e)?Math.round(e/U)*U:void 0}function C(e){I.css("width",100*e+"%"),M.css(s.CSS.TRANSFORM,"translate3d("+p().width*e+"px,0,0)"),t.toggleClass("md-min",0===e)}function k(e){B||e.eventType!==Hammer.INPUT_START||t[0].hasAttribute("disabled")?B&&e.eventType===Hammer.INPUT_END&&(B&&G&&V(e),B=!1,t.removeClass("panning active")):(B=!0,t.addClass("active"),t[0].focus(),h(),S(e),e.srcEvent.stopPropagation())}function x(){B&&t.addClass("panning")}function S(e){B&&(G?T(e.center.x):D(e.center.x),e.preventDefault(),e.srcEvent.stopPropagation())}function V(e){if(G&&!t[0].hasAttribute("disabled")){var n=R(A(e.center.x)),i=w(y(n));C(E(i)),a(function(){$(i)}),e.preventDefault(),e.srcEvent.stopPropagation()}}function D(t){e.$evalAsync(function(){$(R(A(t)))})}function T(e){var t=R(A(e)),n=w(y(t));C(A(e)),_.text(n)}function A(e){return Math.max(0,Math.min(1,(e-Y.left)/Y.width))}function R(e){return L+e*(z-L)}function E(e){return(e-L)/(z-L)}var N=angular.element(t[0].querySelector(".md-thumb")),_=angular.element(t[0].querySelector(".md-thumb-text")),M=N.parent(),P=angular.element(t[0].querySelector(".md-track-container")),I=angular.element(t[0].querySelector(".md-track-fill")),O=angular.element(t[0].querySelector(".md-track-ticks")),H=o.throttle(h,5e3);n.min?n.$observe("min",c):c(0),n.max?n.$observe("max",d):d(100),n.step?n.$observe("step",m):m(1);var q=angular.noop;n.ngDisabled&&(q=e.$parent.$watch(n.ngDisabled,v)),r.expect(t,"aria-label"),t.attr("tabIndex",0),t.attr("role","slider"),t.on("keydown",g);var F=new Hammer(t[0],{recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]]});F.on("hammer.input",k),F.on("panstart",x),F.on("pan",S),F.on("panend",V),setTimeout(u);var K=a.debounce(u);angular.element(i).on("resize",K),e.$on("$destroy",function(){angular.element(i).off("resize",K),F.destroy(),q()}),l.$render=b,l.$viewChangeListeners.push(b),l.$formatters.push(w),l.$formatters.push(y);var L,z,U,j,W,Y={};h();var B=!1,G=angular.isDefined(n.mdDiscrete);this._onInput=k,this._onPanStart=x,this._onPan=S}}angular.module("material.components.slider",["material.core"]).directive("mdSlider",e),e.$inject=["$mdTheming"],t.$inject=["$scope","$element","$attrs","$$rAF","$window","$mdAria","$mdUtil","$mdConstant"]}();
|
data/app/assets/javascripts/swat/bower_components/angular-material/modules/js/sticky/sticky.css
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.0-rc3
|
6
|
+
*/
|
7
|
+
.md-sticky-clone {
|
8
|
+
z-index: 1;
|
9
|
+
top: 0;
|
10
|
+
left: 0;
|
11
|
+
right: 0;
|
12
|
+
position: absolute !important;
|
13
|
+
-webkit-transform: translate3d(-9999px, -9999px, 0);
|
14
|
+
transform: translate3d(-9999px, -9999px, 0); }
|
15
|
+
.md-sticky-clone[sticky-state="active"] {
|
16
|
+
-webkit-transform: translate3d(0, 0, 0);
|
17
|
+
transform: translate3d(0, 0, 0); }
|
18
|
+
.md-sticky-clone[sticky-state="active"]:not(.md-sticky-no-effect):after {
|
19
|
+
-webkit-animation: subheaderStickyHoverIn 0.3s ease-out both;
|
20
|
+
animation: subheaderStickyHoverIn 0.3s ease-out both; }
|