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,29 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
|
8
|
+
text-shadow: '{{foreground-shadow}}'; }
|
9
|
+
md-input-group.md-THEME_NAME-theme input::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme input::-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-ms-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-ms-input-placeholder {
|
10
|
+
color: '{{foreground-3}}'; }
|
11
|
+
md-input-group.md-THEME_NAME-theme label {
|
12
|
+
text-shadow: '{{foreground-shadow}}';
|
13
|
+
color: '{{foreground-3}}'; }
|
14
|
+
md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
|
15
|
+
color: '{{foreground-1}}';
|
16
|
+
border-color: '{{foreground-4}}'; }
|
17
|
+
md-input-group.md-THEME_NAME-theme.md-input-focused input, md-input-group.md-THEME_NAME-theme.md-input-focused textarea {
|
18
|
+
border-color: '{{primary-500}}'; }
|
19
|
+
md-input-group.md-THEME_NAME-theme.md-input-focused label {
|
20
|
+
color: '{{primary-500}}'; }
|
21
|
+
md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent input, md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent textarea {
|
22
|
+
border-color: '{{accent-500}}'; }
|
23
|
+
md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent label {
|
24
|
+
color: '{{accent-500}}'; }
|
25
|
+
md-input-group.md-THEME_NAME-theme.md-input-has-value:not(.md-input-focused) label {
|
26
|
+
color: '{{foreground-2}}'; }
|
27
|
+
md-input-group.md-THEME_NAME-theme .md-input[disabled] {
|
28
|
+
border-bottom-color: '{{foreground-4}}';
|
29
|
+
color: '{{foreground-3}}'; }
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-input-group label, .md-input-group label {
|
8
|
+
display: block;
|
9
|
+
font-size: 0.75em; }
|
10
|
+
md-input-group textarea, md-input-group input[type="text"], md-input-group input[type="password"], md-input-group input[type="datetime"], md-input-group input[type="datetime-local"], md-input-group input[type="date"], md-input-group input[type="month"], md-input-group input[type="time"], md-input-group input[type="week"], md-input-group input[type="number"], md-input-group input[type="email"], md-input-group input[type="url"], md-input-group input[type="search"], md-input-group input[type="tel"], md-input-group input[type="color"], .md-input-group textarea, .md-input-group input[type="text"], .md-input-group input[type="password"], .md-input-group input[type="datetime"], .md-input-group input[type="datetime-local"], .md-input-group input[type="date"], .md-input-group input[type="month"], .md-input-group input[type="time"], .md-input-group input[type="week"], .md-input-group input[type="number"], .md-input-group input[type="email"], .md-input-group input[type="url"], .md-input-group input[type="search"], .md-input-group input[type="tel"], .md-input-group input[type="color"] {
|
11
|
+
display: block;
|
12
|
+
border-width: 0 0 1px 0;
|
13
|
+
padding-top: 2px;
|
14
|
+
line-height: 26px;
|
15
|
+
padding-bottom: 1px; }
|
16
|
+
md-input-group textarea:focus, md-input-group input[type="text"]:focus, md-input-group input[type="password"]:focus, md-input-group input[type="datetime"]:focus, md-input-group input[type="datetime-local"]:focus, md-input-group input[type="date"]:focus, md-input-group input[type="month"]:focus, md-input-group input[type="time"]:focus, md-input-group input[type="week"]:focus, md-input-group input[type="number"]:focus, md-input-group input[type="email"]:focus, md-input-group input[type="url"]:focus, md-input-group input[type="search"]:focus, md-input-group input[type="tel"]:focus, md-input-group input[type="color"]:focus, .md-input-group textarea:focus, .md-input-group input[type="text"]:focus, .md-input-group input[type="password"]:focus, .md-input-group input[type="datetime"]:focus, .md-input-group input[type="datetime-local"]:focus, .md-input-group input[type="date"]:focus, .md-input-group input[type="month"]:focus, .md-input-group input[type="time"]:focus, .md-input-group input[type="week"]:focus, .md-input-group input[type="number"]:focus, .md-input-group input[type="email"]:focus, .md-input-group input[type="url"]:focus, .md-input-group input[type="search"]:focus, .md-input-group input[type="tel"]:focus, .md-input-group input[type="color"]:focus {
|
17
|
+
outline: 0; }
|
18
|
+
md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
|
19
|
+
background: none; }
|
20
|
+
|
21
|
+
md-input-group, .md-input-group {
|
22
|
+
padding-bottom: 2px;
|
23
|
+
margin: 10px 0 8px 0;
|
24
|
+
position: relative;
|
25
|
+
display: block; }
|
26
|
+
md-input-group label, .md-input-group label {
|
27
|
+
font-size: 1em;
|
28
|
+
z-index: 1;
|
29
|
+
pointer-events: none;
|
30
|
+
-webkit-font-smoothing: antialiased; }
|
31
|
+
md-input-group label:hover, .md-input-group label:hover {
|
32
|
+
cursor: text; }
|
33
|
+
md-input-group label, .md-input-group label {
|
34
|
+
-webkit-transform: translate3d(0, 22px, 0);
|
35
|
+
transform: translate3d(0, 22px, 0);
|
36
|
+
-webkit-transform-origin: left center;
|
37
|
+
transform-origin: left center;
|
38
|
+
transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
|
39
|
+
transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1); }
|
40
|
+
md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
|
41
|
+
border-bottom-width: 1px;
|
42
|
+
transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1); }
|
43
|
+
md-input-group.md-input-focused label, .md-input-group.md-input-focused label {
|
44
|
+
-webkit-transform: translate3d(0, 4px, 0) scale(0.75);
|
45
|
+
transform: translate3d(0, 4px, 0) scale(0.75); }
|
46
|
+
md-input-group.md-input-focused input, md-input-group.md-input-focused textarea, .md-input-group.md-input-focused input, .md-input-group.md-input-focused textarea {
|
47
|
+
border-bottom-width: 2px; }
|
48
|
+
md-input-group.md-input-focused input, .md-input-group.md-input-focused input {
|
49
|
+
padding-bottom: 0px; }
|
50
|
+
md-input-group.md-input-has-value label, .md-input-group.md-input-has-value label {
|
51
|
+
-webkit-transform: translate3d(0, 4px, 0) scale(0.75);
|
52
|
+
transform: translate3d(0, 4px, 0) scale(0.75); }
|
53
|
+
md-input-group.md-input-has-value:not(.md-input-focused) label, .md-input-group.md-input-has-value:not(.md-input-focused) label {
|
54
|
+
-webkit-transform: translate3d(0, 4px, 0) scale(0.75);
|
55
|
+
transform: translate3d(0, 4px, 0) scale(0.75); }
|
56
|
+
md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
|
57
|
+
border-bottom-width: 0px; }
|
58
|
+
md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
|
59
|
+
background-size: 3px 1px;
|
60
|
+
background-position: 0 bottom;
|
61
|
+
background-size: 2px 1px;
|
62
|
+
background-repeat: repeat-x;
|
63
|
+
pointer-events: none; }
|
64
|
+
md-input-group[disabled] label, .md-input-group[disabled] label {
|
65
|
+
-webkit-transform: translate3d(0, 4px, 0) scale(0.75);
|
66
|
+
transform: translate3d(0, 4px, 0) scale(0.75); }
|
67
|
+
md-input-group[disabled] *:not(.md-input-has-value) label, .md-input-group[disabled] *:not(.md-input-has-value) label {
|
68
|
+
-webkit-transform: translate3d(0, 22px, 0);
|
69
|
+
transform: translate3d(0, 22px, 0);
|
70
|
+
-webkit-transform-origin: left center;
|
71
|
+
transform-origin: left center;
|
72
|
+
transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1); }
|
@@ -0,0 +1,145 @@
|
|
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.textField');
|
8
|
+
goog.require('ng.material.core');
|
9
|
+
(function() {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @ngdoc module
|
14
|
+
* @name material.components.textField
|
15
|
+
* @description
|
16
|
+
* Form
|
17
|
+
*/
|
18
|
+
angular.module('material.components.textField', [
|
19
|
+
'material.core'
|
20
|
+
])
|
21
|
+
.directive('mdInputGroup', mdInputGroupDirective)
|
22
|
+
.directive('mdInput', mdInputDirective)
|
23
|
+
.directive('mdTextFloat', mdTextFloatDirective);
|
24
|
+
|
25
|
+
|
26
|
+
function mdTextFloatDirective($mdTheming, $mdUtil, $parse, $log) {
|
27
|
+
return {
|
28
|
+
restrict: 'E',
|
29
|
+
replace: true,
|
30
|
+
scope : {
|
31
|
+
fid : '@?mdFid',
|
32
|
+
label : '@?',
|
33
|
+
value : '=ngModel'
|
34
|
+
},
|
35
|
+
compile : function(element, attr) {
|
36
|
+
|
37
|
+
$log.warn('<md-text-float> is deprecated. Please use `<md-input-container>` and `<input>`.' +
|
38
|
+
'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
|
39
|
+
|
40
|
+
if ( angular.isUndefined(attr.mdFid) ) {
|
41
|
+
attr.mdFid = $mdUtil.nextUid();
|
42
|
+
}
|
43
|
+
|
44
|
+
return {
|
45
|
+
pre : function(scope, element, attrs) {
|
46
|
+
var disabledParsed = $parse(attrs.ngDisabled);
|
47
|
+
scope.isDisabled = function() {
|
48
|
+
return disabledParsed(scope.$parent);
|
49
|
+
};
|
50
|
+
|
51
|
+
scope.inputType = attrs.type || "text";
|
52
|
+
},
|
53
|
+
post: $mdTheming
|
54
|
+
};
|
55
|
+
},
|
56
|
+
template:
|
57
|
+
'<md-input-group tabindex="-1">' +
|
58
|
+
' <label for="{{fid}}" >{{label}}</label>' +
|
59
|
+
' <md-input id="{{fid}}" ng-disabled="isDisabled()" ng-model="value" type="{{inputType}}"></md-input>' +
|
60
|
+
'</md-input-group>'
|
61
|
+
};
|
62
|
+
}
|
63
|
+
mdTextFloatDirective.$inject = ["$mdTheming", "$mdUtil", "$parse", "$log"];
|
64
|
+
|
65
|
+
function mdInputGroupDirective($log) {
|
66
|
+
return {
|
67
|
+
restrict: 'CE',
|
68
|
+
controller: ['$element', function($element) {
|
69
|
+
|
70
|
+
$log.warn('<md-input-group> is deprecated. Please use `<md-input-container>` and `<input>`.' +
|
71
|
+
'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
|
72
|
+
this.setFocused = function(isFocused) {
|
73
|
+
$element.toggleClass('md-input-focused', !!isFocused);
|
74
|
+
};
|
75
|
+
this.setHasValue = function(hasValue) {
|
76
|
+
$element.toggleClass('md-input-has-value', hasValue );
|
77
|
+
};
|
78
|
+
}]
|
79
|
+
};
|
80
|
+
|
81
|
+
}
|
82
|
+
mdInputGroupDirective.$inject = ["$log"];
|
83
|
+
|
84
|
+
function mdInputDirective($mdUtil, $log) {
|
85
|
+
return {
|
86
|
+
restrict: 'E',
|
87
|
+
replace: true,
|
88
|
+
template: '<input >',
|
89
|
+
require: ['^?mdInputGroup', '?ngModel'],
|
90
|
+
link: function(scope, element, attr, ctrls) {
|
91
|
+
if ( !ctrls[0] ) return;
|
92
|
+
|
93
|
+
$log.warn('<md-input> is deprecated. Please use `<md-input-container>` and `<input>`.' +
|
94
|
+
'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
|
95
|
+
|
96
|
+
var inputGroupCtrl = ctrls[0];
|
97
|
+
var ngModelCtrl = ctrls[1];
|
98
|
+
|
99
|
+
scope.$watch(scope.isDisabled, function(isDisabled) {
|
100
|
+
element.attr('aria-disabled', !!isDisabled);
|
101
|
+
element.attr('tabindex', !!isDisabled);
|
102
|
+
});
|
103
|
+
element.attr('type', attr.type || element.parent().attr('type') || "text");
|
104
|
+
|
105
|
+
// When the input value changes, check if it "has" a value, and
|
106
|
+
// set the appropriate class on the input group
|
107
|
+
if (ngModelCtrl) {
|
108
|
+
//Add a $formatter so we don't use up the render function
|
109
|
+
ngModelCtrl.$formatters.push(function(value) {
|
110
|
+
inputGroupCtrl.setHasValue( isNotEmpty(value) );
|
111
|
+
return value;
|
112
|
+
});
|
113
|
+
}
|
114
|
+
|
115
|
+
element
|
116
|
+
.on('input', function() {
|
117
|
+
inputGroupCtrl.setHasValue( isNotEmpty() );
|
118
|
+
})
|
119
|
+
.on('focus', function(e) {
|
120
|
+
// When the input focuses, add the focused class to the group
|
121
|
+
inputGroupCtrl.setFocused(true);
|
122
|
+
})
|
123
|
+
.on('blur', function(e) {
|
124
|
+
// When the input blurs, remove the focused class from the group
|
125
|
+
inputGroupCtrl.setFocused(false);
|
126
|
+
inputGroupCtrl.setHasValue( isNotEmpty() );
|
127
|
+
});
|
128
|
+
|
129
|
+
scope.$on('$destroy', function() {
|
130
|
+
inputGroupCtrl.setFocused(false);
|
131
|
+
inputGroupCtrl.setHasValue(false);
|
132
|
+
});
|
133
|
+
|
134
|
+
|
135
|
+
function isNotEmpty(value) {
|
136
|
+
value = angular.isUndefined(value) ? element.val() : value;
|
137
|
+
return (angular.isDefined(value) && (value!==null) &&
|
138
|
+
(value.toString().trim() !== ""));
|
139
|
+
}
|
140
|
+
}
|
141
|
+
};
|
142
|
+
}
|
143
|
+
mdInputDirective.$inject = ["$mdUtil", "$log"];
|
144
|
+
|
145
|
+
})();
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-toast.md-THEME_NAME-theme {
|
8
|
+
background-color: '{{foreground-1}}';
|
9
|
+
color: '{{background-50}}'; }
|
10
|
+
md-toast.md-THEME_NAME-theme .md-button {
|
11
|
+
color: '{{background-50}}'; }
|
12
|
+
md-toast.md-THEME_NAME-theme .md-button.md-highlight {
|
13
|
+
color: '{{primary-A200}}'; }
|
14
|
+
md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent {
|
15
|
+
color: '{{accent-A200}}'; }
|
16
|
+
md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn {
|
17
|
+
color: '{{warn-A200}}'; }
|
data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.css
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-toast {
|
8
|
+
display: -webkit-flex;
|
9
|
+
display: -ms-flexbox;
|
10
|
+
display: flex;
|
11
|
+
position: absolute;
|
12
|
+
box-sizing: border-box;
|
13
|
+
-webkit-align-items: center;
|
14
|
+
-ms-flex-align: center;
|
15
|
+
align-items: center;
|
16
|
+
min-height: 48px;
|
17
|
+
padding-left: 24px;
|
18
|
+
padding-right: 24px;
|
19
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
20
|
+
border-radius: 2px;
|
21
|
+
font-size: 14px;
|
22
|
+
cursor: default;
|
23
|
+
max-width: 879px;
|
24
|
+
max-height: 40px;
|
25
|
+
height: 24px;
|
26
|
+
z-index: 90;
|
27
|
+
opacity: 1;
|
28
|
+
-webkit-transform: translate3d(0, 0, 0) rotateZ(0deg);
|
29
|
+
transform: translate3d(0, 0, 0) rotateZ(0deg);
|
30
|
+
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
31
|
+
/* Transition differently when swiping */ }
|
32
|
+
md-toast.md-capsule {
|
33
|
+
border-radius: 24px; }
|
34
|
+
md-toast.ng-leave-active {
|
35
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
|
36
|
+
md-toast.md-swipeleft, md-toast.md-swiperight, md-toast.md-swipeup, md-toast.md-swipedown {
|
37
|
+
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
|
38
|
+
md-toast.ng-enter {
|
39
|
+
-webkit-transform: translate3d(0, 100%, 0);
|
40
|
+
transform: translate3d(0, 100%, 0);
|
41
|
+
opacity: 0; }
|
42
|
+
md-toast.ng-enter.md-top {
|
43
|
+
-webkit-transform: translate3d(0, -100%, 0);
|
44
|
+
transform: translate3d(0, -100%, 0); }
|
45
|
+
md-toast.ng-enter.ng-enter-active {
|
46
|
+
-webkit-transform: translate3d(0, 0, 0);
|
47
|
+
transform: translate3d(0, 0, 0);
|
48
|
+
opacity: 1; }
|
49
|
+
md-toast.ng-leave.ng-leave-active {
|
50
|
+
opacity: 0;
|
51
|
+
-webkit-transform: translate3d(0, 100%, 0);
|
52
|
+
transform: translate3d(0, 100%, 0); }
|
53
|
+
md-toast.ng-leave.ng-leave-active.md-top {
|
54
|
+
-webkit-transform: translate3d(0, -100%, 0);
|
55
|
+
transform: translate3d(0, -100%, 0); }
|
56
|
+
md-toast.ng-leave.ng-leave-active.md-swipeleft {
|
57
|
+
-webkit-transform: translate3d(-100%, 0%, 0);
|
58
|
+
transform: translate3d(-100%, 0%, 0); }
|
59
|
+
md-toast.ng-leave.ng-leave-active.md-swiperight {
|
60
|
+
-webkit-transform: translate3d(100%, 0%, 0);
|
61
|
+
transform: translate3d(100%, 0%, 0); }
|
62
|
+
md-toast .md-action {
|
63
|
+
line-height: 19px;
|
64
|
+
margin-left: 24px;
|
65
|
+
cursor: pointer;
|
66
|
+
text-transform: uppercase;
|
67
|
+
float: right; }
|
68
|
+
|
69
|
+
@media (max-width: 600px) {
|
70
|
+
md-toast {
|
71
|
+
left: 0;
|
72
|
+
right: 0;
|
73
|
+
width: 100%;
|
74
|
+
max-width: 100%;
|
75
|
+
min-width: 0;
|
76
|
+
border-radius: 0;
|
77
|
+
bottom: 0; }
|
78
|
+
md-toast.md-top {
|
79
|
+
bottom: auto;
|
80
|
+
top: 0; }
|
81
|
+
}
|
82
|
+
|
83
|
+
@media (min-width: 600px) {
|
84
|
+
md-toast {
|
85
|
+
min-width: 288px;
|
86
|
+
/*
|
87
|
+
* When the toast doesn't take up the whole screen,
|
88
|
+
* make it rotate when the user swipes it away
|
89
|
+
*/ }
|
90
|
+
md-toast.md-bottom {
|
91
|
+
bottom: 8px; }
|
92
|
+
md-toast.md-left {
|
93
|
+
left: 8px; }
|
94
|
+
md-toast.md-right {
|
95
|
+
right: 8px; }
|
96
|
+
md-toast.md-top {
|
97
|
+
top: 8px; }
|
98
|
+
md-toast.ng-leave.ng-leave-active.md-swipeleft {
|
99
|
+
-webkit-transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
|
100
|
+
transform: translate3d(-100%, 25%, 0) rotateZ(-15deg); }
|
101
|
+
md-toast.ng-leave.ng-leave-active.md-swiperight {
|
102
|
+
-webkit-transform: translate3d(100%, 25%, 0) rotateZ(15deg);
|
103
|
+
transform: translate3d(100%, 25%, 0) rotateZ(15deg); }
|
104
|
+
md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft {
|
105
|
+
-webkit-transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
|
106
|
+
transform: translate3d(-100%, 0, 0) rotateZ(-15deg); }
|
107
|
+
md-toast.ng-leave.ng-leave-active.md-top.md-swiperight {
|
108
|
+
-webkit-transform: translate3d(100%, 0, 0) rotateZ(15deg);
|
109
|
+
transform: translate3d(100%, 0, 0) rotateZ(15deg); }
|
110
|
+
}
|
data/app/assets/javascripts/swat/bower_components/angular-material/modules/closure/toast/toast.js
ADDED
@@ -0,0 +1,236 @@
|
|
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.toast');
|
8
|
+
goog.require('ng.material.components.button');
|
9
|
+
goog.require('ng.material.core');
|
10
|
+
(function() {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @ngdoc module
|
15
|
+
* @name material.components.toast
|
16
|
+
* @description
|
17
|
+
* Toast
|
18
|
+
*/
|
19
|
+
angular.module('material.components.toast', [
|
20
|
+
'material.core',
|
21
|
+
'material.components.button'
|
22
|
+
])
|
23
|
+
.directive('mdToast', MdToastDirective)
|
24
|
+
.provider('$mdToast', MdToastProvider);
|
25
|
+
|
26
|
+
function MdToastDirective() {
|
27
|
+
return {
|
28
|
+
restrict: 'E'
|
29
|
+
};
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @ngdoc service
|
34
|
+
* @name $mdToast
|
35
|
+
* @module material.components.toast
|
36
|
+
*
|
37
|
+
* @description
|
38
|
+
* `$mdToast` is a service to build a toast nofication on any position
|
39
|
+
* on the screen with an optional duration, and provides a simple promise API.
|
40
|
+
*
|
41
|
+
*
|
42
|
+
* ### Restrictions on custom toasts
|
43
|
+
* - The toast's template must have an outer `<md-toast>` element.
|
44
|
+
* - For a toast action, use element with class `md-action`.
|
45
|
+
* - Add the class `md-capsule` for curved corners.
|
46
|
+
*
|
47
|
+
* @usage
|
48
|
+
* <hljs lang="html">
|
49
|
+
* <div ng-controller="MyController">
|
50
|
+
* <md-button ng-click="openToast()">
|
51
|
+
* Open a Toast!
|
52
|
+
* </md-button>
|
53
|
+
* </div>
|
54
|
+
* </hljs>
|
55
|
+
*
|
56
|
+
* <hljs lang="js">
|
57
|
+
* var app = angular.module('app', ['ngMaterial']);
|
58
|
+
* app.controller('MyController', function($scope, $mdToast) {
|
59
|
+
* $scope.openToast = function($event) {
|
60
|
+
* $mdToast.show($mdToast.simple().content('Hello!'));
|
61
|
+
* // Could also do $mdToast.showSimple('Hello');
|
62
|
+
* };
|
63
|
+
* });
|
64
|
+
* </hljs>
|
65
|
+
*/
|
66
|
+
|
67
|
+
/**
|
68
|
+
* @ngdoc method
|
69
|
+
* @name $mdToast#showSimple
|
70
|
+
*
|
71
|
+
* @description
|
72
|
+
* Convenience method which builds and shows a simple toast.
|
73
|
+
*
|
74
|
+
* @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
|
75
|
+
* rejected with `$mdToast.cancel()`.
|
76
|
+
*
|
77
|
+
*/
|
78
|
+
|
79
|
+
/**
|
80
|
+
* @ngdoc method
|
81
|
+
* @name $mdToast#simple
|
82
|
+
*
|
83
|
+
* @description
|
84
|
+
* Builds a preconfigured toast.
|
85
|
+
*
|
86
|
+
* @returns {obj} a `$mdToastPreset` with the chainable configuration methods:
|
87
|
+
*
|
88
|
+
* - $mdToastPreset#content(string) - sets toast content to string
|
89
|
+
* - $mdToastPreset#action(string) - adds an action button, which resolves the promise returned from `show()` if clicked.
|
90
|
+
* - $mdToastPreset#highlightAction(boolean) - sets action button to be highlighted
|
91
|
+
* - $mdToastPreset#capsule(boolean) - adds 'md-capsule' class to the toast (curved corners)
|
92
|
+
*/
|
93
|
+
|
94
|
+
/**
|
95
|
+
* @ngdoc method
|
96
|
+
* @name $mdToast#build
|
97
|
+
*
|
98
|
+
* @description
|
99
|
+
* Creates a custom `$mdToastPreset` that you can configure.
|
100
|
+
*
|
101
|
+
* @returns {obj} a `$mdToastPreset` with the chainable configuration methods for shows' options (see below).
|
102
|
+
*/
|
103
|
+
|
104
|
+
/**
|
105
|
+
* @ngdoc method
|
106
|
+
* @name $mdToast#show
|
107
|
+
*
|
108
|
+
* @description Shows the toast.
|
109
|
+
*
|
110
|
+
* @param {object} optionsOrPreset Either provide an `$mdToastPreset` returned from `simple()`
|
111
|
+
* and `build()`, or an options object with the following properties:
|
112
|
+
*
|
113
|
+
* - `templateUrl` - `{string=}`: The url of an html template file that will
|
114
|
+
* be used as the content of the toast. Restrictions: the template must
|
115
|
+
* have an outer `md-toast` element.
|
116
|
+
* - `template` - `{string=}`: Same as templateUrl, except this is an actual
|
117
|
+
* template string.
|
118
|
+
* - `hideDelay` - `{number=}`: How many milliseconds the toast should stay
|
119
|
+
* active before automatically closing. Set to 0 or false to have the toast stay open until
|
120
|
+
* closed manually. Default: 3000.
|
121
|
+
* - `position` - `{string=}`: Where to place the toast. Available: any combination
|
122
|
+
* of 'bottom', 'left', 'top', 'right', 'fit'. Default: 'bottom left'.
|
123
|
+
* - `controller` - `{string=}`: The controller to associate with this toast.
|
124
|
+
* The controller will be injected the local `$hideToast`, which is a function
|
125
|
+
* used to hide the toast.
|
126
|
+
* - `locals` - `{string=}`: An object containing key/value pairs. The keys will
|
127
|
+
* be used as names of values to inject into the controller. For example,
|
128
|
+
* `locals: {three: 3}` would inject `three` into the controller with the value
|
129
|
+
* of 3.
|
130
|
+
* - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
|
131
|
+
* and the toast will not open until the promises resolve.
|
132
|
+
* - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
|
133
|
+
* - `parent` - `{element=}`: The element to append the toast to. Defaults to appending
|
134
|
+
* to the root element of the application.
|
135
|
+
*
|
136
|
+
* @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
|
137
|
+
* rejected with `$mdToast.cancel()`.
|
138
|
+
*/
|
139
|
+
|
140
|
+
/**
|
141
|
+
* @ngdoc method
|
142
|
+
* @name $mdToast#hide
|
143
|
+
*
|
144
|
+
* @description
|
145
|
+
* Hide an existing toast and resolve the promise returned from `$mdToast.show()`.
|
146
|
+
*
|
147
|
+
* @param {*=} response An argument for the resolved promise.
|
148
|
+
*
|
149
|
+
*/
|
150
|
+
|
151
|
+
/**
|
152
|
+
* @ngdoc method
|
153
|
+
* @name $mdToast#cancel
|
154
|
+
*
|
155
|
+
* @description
|
156
|
+
* Hide the existing toast and reject the promise returned from
|
157
|
+
* `$mdToast.show()`.
|
158
|
+
*
|
159
|
+
* @param {*=} response An argument for the rejected promise.
|
160
|
+
*
|
161
|
+
*/
|
162
|
+
|
163
|
+
function MdToastProvider($$interimElementProvider) {
|
164
|
+
|
165
|
+
toastDefaultOptions.$inject = ["$timeout", "$animate", "$mdTheming", "$mdToast"];
|
166
|
+
return $$interimElementProvider('$mdToast')
|
167
|
+
.setDefaults({
|
168
|
+
methods: ['position', 'hideDelay', 'capsule'],
|
169
|
+
options: toastDefaultOptions
|
170
|
+
})
|
171
|
+
.addPreset('simple', {
|
172
|
+
argOption: 'content',
|
173
|
+
methods: ['content', 'action', 'highlightAction'],
|
174
|
+
options: /* @ngInject */ ["$mdToast", function($mdToast) {
|
175
|
+
return {
|
176
|
+
template: [
|
177
|
+
'<md-toast ng-class="{\'md-capsule\': toast.capsule}">',
|
178
|
+
'<span flex>{{ toast.content }}</span>',
|
179
|
+
'<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',
|
180
|
+
'{{ toast.action }}',
|
181
|
+
'</md-button>',
|
182
|
+
'</md-toast>'
|
183
|
+
].join(''),
|
184
|
+
controller: function mdToastCtrl() {
|
185
|
+
this.resolve = function() {
|
186
|
+
$mdToast.hide();
|
187
|
+
};
|
188
|
+
},
|
189
|
+
controllerAs: 'toast',
|
190
|
+
bindToController: true
|
191
|
+
};
|
192
|
+
}]
|
193
|
+
});
|
194
|
+
|
195
|
+
/* @ngInject */
|
196
|
+
function toastDefaultOptions($timeout, $animate, $mdTheming, $mdToast) {
|
197
|
+
return {
|
198
|
+
onShow: onShow,
|
199
|
+
onRemove: onRemove,
|
200
|
+
position: 'bottom left',
|
201
|
+
themable: true,
|
202
|
+
hideDelay: 3000
|
203
|
+
};
|
204
|
+
|
205
|
+
function onShow(scope, element, options) {
|
206
|
+
// 'top left' -> 'md-top md-left'
|
207
|
+
element.addClass(options.position.split(' ').map(function(pos) {
|
208
|
+
return 'md-' + pos;
|
209
|
+
}).join(' '));
|
210
|
+
options.parent.addClass(toastOpenClass(options.position));
|
211
|
+
|
212
|
+
options.onSwipe = function(ev, gesture) {
|
213
|
+
//Add swipeleft/swiperight class to element so it can animate correctly
|
214
|
+
element.addClass('md-' + ev.type.replace('$md.',''));
|
215
|
+
$timeout($mdToast.cancel);
|
216
|
+
};
|
217
|
+
element.on('$md.swipeleft $md.swiperight', options.onSwipe);
|
218
|
+
return $animate.enter(element, options.parent);
|
219
|
+
}
|
220
|
+
|
221
|
+
function onRemove(scope, element, options) {
|
222
|
+
element.off('$md.swipeleft $md.swiperight', options.onSwipe);
|
223
|
+
options.parent.removeClass(toastOpenClass(options.position));
|
224
|
+
return $animate.leave(element);
|
225
|
+
}
|
226
|
+
|
227
|
+
function toastOpenClass(position) {
|
228
|
+
return 'md-toast-open-' +
|
229
|
+
(position.indexOf('top') > -1 ? 'top' : 'bottom');
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
}
|
234
|
+
MdToastProvider.$inject = ["$$interimElementProvider"];
|
235
|
+
|
236
|
+
})();
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.7.1
|
6
|
+
*/
|
7
|
+
md-toolbar.md-THEME_NAME-theme {
|
8
|
+
background-color: '{{primary-color}}';
|
9
|
+
color: '{{primary-contrast}}'; }
|
10
|
+
md-toolbar.md-THEME_NAME-theme .md-button {
|
11
|
+
color: '{{primary-contrast}}'; }
|
12
|
+
md-toolbar.md-THEME_NAME-theme.md-accent {
|
13
|
+
background-color: '{{accent-color}}';
|
14
|
+
color: '{{accent-contrast}}'; }
|
15
|
+
md-toolbar.md-THEME_NAME-theme.md-warn {
|
16
|
+
background-color: '{{warn-color}}';
|
17
|
+
color: '{{warn-contrast}}'; }
|