ish_lib_assets 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/images/200x200/devops.png +0 -0
- data/app/assets/images/200x200/html5.jpg +0 -0
- data/app/assets/images/200x200/nodejs.png +0 -0
- data/app/assets/images/200x200/project_management.jpg +0 -0
- data/app/assets/images/200x200/ror.jpg +0 -0
- data/app/assets/images/200x200/uiux.jpg +0 -0
- data/app/assets/images/400x400/contact-us.png +0 -0
- data/app/assets/images/400x400/devops.png +0 -0
- data/app/assets/images/400x400/html5.jpg +0 -0
- data/app/assets/images/400x400/nodejs.png +0 -0
- data/app/assets/images/400x400/project_management.jpg +0 -0
- data/app/assets/images/400x400/ror.jpg +0 -0
- data/app/assets/images/400x400/the-cloud.png +0 -0
- data/app/assets/images/400x400/uiux.jpg +0 -0
- data/app/assets/images/backgrounds/10.jpg +0 -0
- data/app/assets/images/backgrounds/11.jpg +0 -0
- data/app/assets/images/backgrounds/12.jpg +0 -0
- data/app/assets/images/backgrounds/6.jpg +0 -0
- data/app/assets/images/backgrounds/7.jpg +0 -0
- data/app/assets/images/backgrounds/8.jpg +0 -0
- data/app/assets/images/backgrounds/9.jpg +0 -0
- data/app/assets/images/backgrounds/970_grey-blue.png +0 -0
- data/app/assets/images/backgrounds/970_white.png +0 -0
- data/app/assets/images/backgrounds/970_yellow.png +0 -0
- data/app/assets/images/backgrounds/bg-circles.png +0 -0
- data/app/assets/images/backgrounds/bg5.jpg +0 -0
- data/app/assets/images/backgrounds/bg6.jpg +0 -0
- data/app/assets/images/backgrounds/bg_texture_dark.jpg +0 -0
- data/app/assets/images/backgrounds/bkg_bg.gif +0 -0
- data/app/assets/images/backgrounds/blue-seamless.jpg +0 -0
- data/app/assets/images/backgrounds/flower_1.jpg +0 -0
- data/app/assets/images/backgrounds/glitch1.jpg +0 -0
- data/app/assets/images/backgrounds/glitch2.jpg +0 -0
- data/app/assets/images/backgrounds/gray-1.jpg +0 -0
- data/app/assets/images/backgrounds/havaianas.jpg +0 -0
- data/app/assets/images/backgrounds/light-purple.jpg +0 -0
- data/app/assets/images/backgrounds/noise.jpg +0 -0
- data/app/assets/images/backgrounds/paper.jpg +0 -0
- data/app/assets/images/backgrounds/pattern_011.gif +0 -0
- data/app/assets/images/backgrounds/pattern_013.gif +0 -0
- data/app/assets/images/backgrounds/pattern_016.gif +0 -0
- data/app/assets/images/backgrounds/pattern_020.gif +0 -0
- data/app/assets/images/backgrounds/pattern_022.gif +0 -0
- data/app/assets/images/backgrounds/pattern_044.gif +0 -0
- data/app/assets/images/backgrounds/pattern_062.gif +0 -0
- data/app/assets/images/backgrounds/pattern_096.gif +0 -0
- data/app/assets/images/backgrounds/pattern_153.gif +0 -0
- data/app/assets/images/backgrounds/pattern_154.gif +0 -0
- data/app/assets/images/backgrounds/pattern_156.gif +0 -0
- data/app/assets/images/backgrounds/pattern_157.gif +0 -0
- data/app/assets/images/backgrounds/skull_1.jpg +0 -0
- data/app/assets/images/backgrounds/sky.jpg +0 -0
- data/app/assets/images/backgrounds/sky2.jpg +0 -0
- data/app/assets/images/backgrounds/sky3.jpg +0 -0
- data/app/assets/images/backgrounds/sky4.jpg +0 -0
- data/app/assets/images/backgrounds/sky5.jpg +0 -0
- data/app/assets/images/backgrounds/transparent_40.png +0 -0
- data/app/assets/images/backgrounds/transparent_70.png +0 -0
- data/app/assets/images/backgrounds/transparent_90.png +0 -0
- data/app/assets/images/backgrounds/white-seamless.jpg +0 -0
- data/app/assets/images/backgrounds/white_970x5.png +0 -0
- data/app/assets/images/backgrounds/white_blue_1.jpg +0 -0
- data/app/assets/images/cac/dot-footer.png +0 -0
- data/app/assets/images/cac/dot-header.png +0 -0
- data/app/assets/images/cac/list-style.png +0 -0
- data/app/assets/images/cac/map.png +0 -0
- data/app/assets/images/cac/phone.png +0 -0
- data/app/assets/images/cac/phone_number.png +0 -0
- data/app/assets/images/cac/screenshots/about.png +0 -0
- data/app/assets/images/cac/screenshots/contact.png +0 -0
- data/app/assets/images/cac/screenshots/home.png +0 -0
- data/app/assets/images/cac/screenshots/home.psd +0 -0
- data/app/assets/images/cac/screenshots/portfolio.png +0 -0
- data/app/assets/images/cac/screenshots/services.png +0 -0
- data/app/assets/images/cac/screenshots/team.png +0 -0
- data/app/assets/images/cac/sfbay.jpg +0 -0
- data/app/assets/images/cac/sprite.png +0 -0
- data/app/assets/images/cac/team/lizza.jpg +0 -0
- data/app/assets/images/cac/team/lizza_raw.jpg +0 -0
- data/app/assets/images/cac/team/piousbox.jpg +0 -0
- data/app/assets/images/close.png +0 -0
- data/app/assets/images/contact.png +0 -0
- data/app/assets/images/controls.png +0 -0
- data/app/assets/images/favicon.gif +0 -0
- data/app/assets/images/favicons/cac.gif +0 -0
- data/app/assets/images/favicons/ish.gif +0 -0
- data/app/assets/images/favicons/manager.ico +0 -0
- data/app/assets/images/favicons/piousbox.gif +0 -0
- data/app/assets/images/favicons/ppf.gif +0 -0
- data/app/assets/images/flags/br.png +0 -0
- data/app/assets/images/flags/en.png +0 -0
- data/app/assets/images/flags/pt.png +0 -0
- data/app/assets/images/flags/ru.png +0 -0
- data/app/assets/images/flags/us.png +0 -0
- data/app/assets/images/grad-hr.png +0 -0
- data/app/assets/images/gradient.png +0 -0
- data/app/assets/images/icons/100x100/hazard.png +0 -0
- data/app/assets/images/icons/100x100/venue.png +0 -0
- data/app/assets/images/icons/10x10/thumbs_down.png +0 -0
- data/app/assets/images/icons/10x10/thumbs_up.png +0 -0
- data/app/assets/images/icons/128x128/manager.png +0 -0
- data/app/assets/images/icons/12x12/tag.png +0 -0
- data/app/assets/images/icons/14x14/bullet.png +0 -0
- data/app/assets/images/icons/16x16/cancel.png +0 -0
- data/app/assets/images/icons/16x16/delete.png +0 -0
- data/app/assets/images/icons/16x16/expand_down.png +0 -0
- data/app/assets/images/icons/16x16/new_16.png +0 -0
- data/app/assets/images/icons/16x16/search.png +0 -0
- data/app/assets/images/icons/16x16/uploadify-cancel.png +0 -0
- data/app/assets/images/icons/20x20/edit.png +0 -0
- data/app/assets/images/icons/20x20/email.gif +0 -0
- data/app/assets/images/icons/20x20/expand.gif +0 -0
- data/app/assets/images/icons/20x20/eye-crossed.png +0 -0
- data/app/assets/images/icons/20x20/eye.png +0 -0
- data/app/assets/images/icons/20x20/facebook.gif +0 -0
- data/app/assets/images/icons/20x20/gmail.gif +0 -0
- data/app/assets/images/icons/20x20/java.gif +0 -0
- data/app/assets/images/icons/20x20/linkedin.png +0 -0
- data/app/assets/images/icons/20x20/lock.gif +0 -0
- data/app/assets/images/icons/20x20/new.png +0 -0
- data/app/assets/images/icons/20x20/pdf.gif +0 -0
- data/app/assets/images/icons/20x20/php.jpg +0 -0
- data/app/assets/images/icons/20x20/private.png +0 -0
- data/app/assets/images/icons/20x20/private2.png +0 -0
- data/app/assets/images/icons/20x20/public.png +0 -0
- data/app/assets/images/icons/20x20/public2.png +0 -0
- data/app/assets/images/icons/20x20/python.png +0 -0
- data/app/assets/images/icons/20x20/search.png +0 -0
- data/app/assets/images/icons/20x20/top.gif +0 -0
- data/app/assets/images/icons/20x20/trash.png +0 -0
- data/app/assets/images/icons/20x20/wiki.gif +0 -0
- data/app/assets/images/icons/20x20/wp.gif +0 -0
- data/app/assets/images/icons/20x20/youtube.png +0 -0
- data/app/assets/images/icons/24x24/configure.png +0 -0
- data/app/assets/images/icons/24x24/customize.png +0 -0
- data/app/assets/images/icons/24x24/edit.png +0 -0
- data/app/assets/images/icons/24x24/trash.png +0 -0
- data/app/assets/images/icons/28x28/customize.png +0 -0
- data/app/assets/images/icons/28x28/expand.png +0 -0
- data/app/assets/images/icons/32x32/comment.png +0 -0
- data/app/assets/images/icons/32x32/delicious.png +0 -0
- data/app/assets/images/icons/32x32/doc.png +0 -0
- data/app/assets/images/icons/32x32/email.png +0 -0
- data/app/assets/images/icons/32x32/expand_down.png +0 -0
- data/app/assets/images/icons/32x32/facebook.png +0 -0
- data/app/assets/images/icons/32x32/github.png +0 -0
- data/app/assets/images/icons/32x32/home.png +0 -0
- data/app/assets/images/icons/32x32/linkedin.png +0 -0
- data/app/assets/images/icons/32x32/list.png +0 -0
- data/app/assets/images/icons/32x32/logout.png +0 -0
- data/app/assets/images/icons/32x32/manager.png +0 -0
- data/app/assets/images/icons/32x32/myspace.png +0 -0
- data/app/assets/images/icons/32x32/new.png +0 -0
- data/app/assets/images/icons/32x32/new_addritem.png +0 -0
- data/app/assets/images/icons/32x32/pdf.png +0 -0
- data/app/assets/images/icons/32x32/photos_new.png +0 -0
- data/app/assets/images/icons/32x32/print.png +0 -0
- data/app/assets/images/icons/32x32/scratchpad.png +0 -0
- data/app/assets/images/icons/32x32/search.png +0 -0
- data/app/assets/images/icons/32x32/sharethis.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_down.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_down_2.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_up.png +0 -0
- data/app/assets/images/icons/32x32/thumbs_up_2.png +0 -0
- data/app/assets/images/icons/32x32/trac.gif +0 -0
- data/app/assets/images/icons/32x32/trash.png +0 -0
- data/app/assets/images/icons/32x32/twitter.png +0 -0
- data/app/assets/images/icons/32x32/upload.png +0 -0
- data/app/assets/images/icons/32x32/word.png +0 -0
- data/app/assets/images/icons/40x40/search_40x40.png +0 -0
- data/app/assets/images/icons/48x48/city.png +0 -0
- data/app/assets/images/icons/48x48/new_photo.png +0 -0
- data/app/assets/images/icons/64x64/extended_forms.png +0 -0
- data/app/assets/images/icons/64x64/facebook.png +0 -0
- data/app/assets/images/icons/64x64/facebook_flat.png +0 -0
- data/app/assets/images/icons/64x64/github.png +0 -0
- data/app/assets/images/icons/64x64/github_flat.png +0 -0
- data/app/assets/images/icons/64x64/google.png +0 -0
- data/app/assets/images/icons/64x64/linkedin.png +0 -0
- data/app/assets/images/icons/64x64/linkedin_flat.png +0 -0
- data/app/assets/images/icons/64x64/manager.png +0 -0
- data/app/assets/images/icons/64x64/my-profile.png +0 -0
- data/app/assets/images/icons/64x64/new_addritem.png +0 -0
- data/app/assets/images/icons/64x64/new_photo.png +0 -0
- data/app/assets/images/icons/64x64/new_report.png +0 -0
- data/app/assets/images/icons/64x64/openid.png +0 -0
- data/app/assets/images/icons/64x64/rails.png +0 -0
- data/app/assets/images/icons/64x64/scratchpad.png +0 -0
- data/app/assets/images/icons/64x64/settings.png +0 -0
- data/app/assets/images/icons/64x64/twitter.png +0 -0
- data/app/assets/images/icons/64x64/yahoo_64.png +0 -0
- data/app/assets/images/icons/64x64/youtube_flat.png +0 -0
- data/app/assets/images/icons/96x96/doc.png +0 -0
- data/app/assets/images/icons/96x96/pdf.png +0 -0
- data/app/assets/images/icons/96x96/venue.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/delicious.png +0 -0
- data/app/assets/images/icons/edit.png +0 -0
- data/app/assets/images/icons/email.gif +0 -0
- data/app/assets/images/icons/expand.gif +0 -0
- data/app/assets/images/icons/facebook.gif +0 -0
- data/app/assets/images/icons/gmail.gif +0 -0
- data/app/assets/images/icons/hazard.png +0 -0
- data/app/assets/images/icons/new_16.png +0 -0
- data/app/assets/images/icons/open.png +0 -0
- data/app/assets/images/icons/php.jpg +0 -0
- data/app/assets/images/icons/rails.png +0 -0
- data/app/assets/images/icons/search_40x40.png +0 -0
- data/app/assets/images/icons/tag.png +0 -0
- data/app/assets/images/icons/top.gif +0 -0
- data/app/assets/images/icons/trash/calendar.png +0 -0
- data/app/assets/images/left.png +0 -0
- data/app/assets/images/loading-100x100.gif +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/login_with_facebook.png +0 -0
- data/app/assets/images/logos/100x100/ish.png +0 -0
- data/app/assets/images/logos/100x100/ish_logo_100.png +0 -0
- data/app/assets/images/logos/100x100/logo100x100.png +0 -0
- data/app/assets/images/logos/200x200/ish_logo_200.gif +0 -0
- data/app/assets/images/logos/20x20/ish.gif +0 -0
- data/app/assets/images/logos/400x400/cac.jpg +0 -0
- data/app/assets/images/logos/400x400/ish.png +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.gif +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.jpg +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.png +0 -0
- data/app/assets/images/logos/400x400/ish_logo_400.psd +0 -0
- data/app/assets/images/logos/40x40/ish.png +0 -0
- data/app/assets/images/logos/40x40/ish_logo_40.png +0 -0
- data/app/assets/images/logos/45x45/ish.png +0 -0
- data/app/assets/images/logos/60x60/logo_60x60.png +0 -0
- type_on gray].eps +0 -0
- type_on white].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on gray].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on white].eps +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-gray].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-white].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-gray].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logo100x100.png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logo30.jpg +0 -0
- data/app/assets/images/logos/Infinite Shelter/logoGray.png +0 -0
- data/app/assets/images/logos/Infinite Shelter/logoWhite.png +0 -0
- data/app/assets/images/logos/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
- data/app/assets/images/logos/cac.png +0 -0
- data/app/assets/images/logos/cac/CAC_logo_02_FINAL.eps +0 -0
- data/app/assets/images/logos/cac/cac.jpg +0 -0
- data/app/assets/images/logos/cac/cac.png +0 -0
- data/app/assets/images/logos/cac_long.jpg +0 -0
- data/app/assets/images/logos/ish.png +0 -0
- data/app/assets/images/logos/ish_logo_100.png +0 -0
- data/app/assets/images/logos/ish_logo_20.gif +0 -0
- data/app/assets/images/logos/ish_logo_200.gif +0 -0
- data/app/assets/images/logos/ish_logo_40.gif +0 -0
- data/app/assets/images/logos/ish_logo_40.png +0 -0
- data/app/assets/images/logos/ish_logo_400.gif +0 -0
- data/app/assets/images/logos/ish_logo_400.jpg +0 -0
- data/app/assets/images/logos/ish_logo_400.png +0 -0
- data/app/assets/images/logos/ish_logo_400.psd +0 -0
- data/app/assets/images/logos/logo.png +0 -0
- data/app/assets/images/logos/logo100x100.png +0 -0
- data/app/assets/images/logos/logo_60x60.png +0 -0
- data/app/assets/images/logos/organizer.png +0 -0
- data/app/assets/images/logos/ppf.gif +0 -0
- data/app/assets/images/logos/travel.png +0 -0
- data/app/assets/images/logos/travel_guide.png +0 -0
- data/app/assets/images/missing.png +0 -0
- data/app/assets/images/next.png +0 -0
- data/app/assets/images/no_photo.png +0 -0
- data/app/assets/images/no_photo_mini.png +0 -0
- data/app/assets/images/organizer/blue-arrow-right.png +0 -0
- data/app/assets/images/organizer/sprite2.png +0 -0
- data/app/assets/images/ppf.gif +0 -0
- data/app/assets/images/prev.png +0 -0
- data/app/assets/images/resume/language.png +0 -0
- data/app/assets/images/resume/main-nav-left.png +0 -0
- data/app/assets/images/resume/main-nav-right-active.png +0 -0
- data/app/assets/images/resume/main-nav-right.png +0 -0
- data/app/assets/images/resume/user-name-left.png +0 -0
- data/app/assets/images/resume/user-name-right.png +0 -0
- data/app/assets/images/right.png +0 -0
- data/app/assets/images/showv/about-us.jpg +0 -0
- data/app/assets/images/showv/arrows-ffffff.png +0 -0
- data/app/assets/images/showv/dragon_head_bottom.jpg +0 -0
- data/app/assets/images/showv/dragon_head_top.jpg +0 -0
- data/app/assets/images/showv/menu-border.png +0 -0
- data/app/assets/images/showv/shadow.png +0 -0
- data/app/assets/images/showv/subhead-bg.png +0 -0
- data/app/assets/images/showv/world.jpg +0 -0
- data/app/assets/images/src/contact-us.png +0 -0
- data/app/assets/images/src/devops-cropped.png +0 -0
- data/app/assets/images/src/devops.png +0 -0
- data/app/assets/images/src/html5.jpg +0 -0
- data/app/assets/images/src/html5_cropped.jpg +0 -0
- data/app/assets/images/src/nodejs.png +0 -0
- data/app/assets/images/src/nodejs_cropped.png +0 -0
- data/app/assets/images/src/project_management.jpg +0 -0
- data/app/assets/images/src/ror.jpg +0 -0
- data/app/assets/images/src/the-cloud.png +0 -0
- data/app/assets/images/src/uiux.jpg +0 -0
- data/app/assets/images/venue.png +0 -0
- data/app/assets/images/wait.gif +0 -0
- data/app/assets/javascripts/application.js +8 -0
- data/app/assets/javascripts/application.js~ +8 -0
- data/app/assets/javascripts/application_foundation.js +19 -0
- data/app/assets/javascripts/ish_lib_assets/application.js +13 -0
- data/app/assets/javascripts/photos_multiadd.coffee +35 -0
- data/app/assets/javascripts/utils.coffee +36 -0
- data/app/assets/stylesheets/application.css +25 -0
- data/app/assets/stylesheets/application.css~ +10 -0
- data/app/assets/stylesheets/application_foundation/galleries.sass +11 -0
- data/app/assets/stylesheets/application_foundation/header_footer.sass +21 -0
- data/app/assets/stylesheets/application_foundation/layout.sass +10 -0
- data/app/assets/stylesheets/application_foundation/newsitems.sass +20 -0
- data/app/assets/stylesheets/application_foundation/reports.sass +16 -0
- data/app/assets/stylesheets/application_foundation/users.sass +4 -0
- data/app/assets/stylesheets/application_foundation/videos.sass +11 -0
- data/app/assets/stylesheets/application_manager.css +6 -0
- data/app/assets/stylesheets/application_print.css +6 -0
- data/app/assets/stylesheets/application_resume.css +13 -0
- data/app/assets/stylesheets/application_resume.css~ +13 -0
- data/app/assets/stylesheets/application_resume_2.css +13 -0
- data/app/assets/stylesheets/application_resume_2.css~ +13 -0
- data/app/assets/stylesheets/common/_ads.sass +77 -0
- data/app/assets/stylesheets/common/_maps.sass +63 -0
- data/app/assets/stylesheets/common/_rate_this.sass +23 -0
- data/app/assets/stylesheets/common/_set_locale.sass +37 -0
- data/app/assets/stylesheets/common/blog.sass +7 -0
- data/app/assets/stylesheets/common/cities.sass +202 -0
- data/app/assets/stylesheets/common/common.sass +111 -0
- data/app/assets/stylesheets/common/devise.sass +29 -0
- data/app/assets/stylesheets/common/events.sass +9 -0
- data/app/assets/stylesheets/common/features.sass +28 -0
- data/app/assets/stylesheets/common/form.sass +19 -0
- data/app/assets/stylesheets/common/galleries.sass +216 -0
- data/app/assets/stylesheets/common/hf2.sass +91 -0
- data/app/assets/stylesheets/common/newsitems.sass +31 -0
- data/app/assets/stylesheets/common/photos.sass +32 -0
- data/app/assets/stylesheets/common/rate_me.sass +8 -0
- data/app/assets/stylesheets/common/reports.sass +269 -0
- data/app/assets/stylesheets/common/tags.sass +64 -0
- data/app/assets/stylesheets/common/trash/blog.sass +7 -0
- data/app/assets/stylesheets/common/users.sass +96 -0
- data/app/assets/stylesheets/common/users_organizer.sass +31 -0
- data/app/assets/stylesheets/common/users_organizer_forms.sass +126 -0
- data/app/assets/stylesheets/common/utils.sass +123 -0
- data/app/assets/stylesheets/common/vars.sass +44 -0
- data/app/assets/stylesheets/common/venues.sass +88 -0
- data/app/assets/stylesheets/common/videos.sass +10 -0
- data/app/assets/stylesheets/common/welcome.sass +21 -0
- data/app/assets/stylesheets/common_2/_maps.sass +63 -0
- data/app/assets/stylesheets/common_2/_rate_this.sass +23 -0
- data/app/assets/stylesheets/common_2/_set_locale.sass +37 -0
- data/app/assets/stylesheets/common_2/common.sass +43 -0
- data/app/assets/stylesheets/common_2/hf_application.sass +177 -0
- data/app/assets/stylesheets/common_2/hf_application_mini.sass +98 -0
- data/app/assets/stylesheets/common_2/photos.sass +5 -0
- data/app/assets/stylesheets/common_2/photos.sass~ +12 -0
- data/app/assets/stylesheets/common_2/users_organizer.sass +33 -0
- data/app/assets/stylesheets/common_2/users_organizer_forms.sass +126 -0
- data/app/assets/stylesheets/common_2/vars.sass +235 -0
- data/app/assets/stylesheets/ish_lib_assets/application.css +15 -0
- data/app/assets/stylesheets/manager/_search.sass +9 -0
- data/app/assets/stylesheets/manager/cities.sass +22 -0
- data/app/assets/stylesheets/manager/features.sass +5 -0
- data/app/assets/stylesheets/manager/galleries.sass +58 -0
- data/app/assets/stylesheets/manager/hf.sass +38 -0
- data/app/assets/stylesheets/manager/layout_manager.sass +32 -0
- data/app/assets/stylesheets/manager/manager.sass +55 -0
- data/app/assets/stylesheets/manager/newsitems.sass +3 -0
- data/app/assets/stylesheets/manager/photos.sass +19 -0
- data/app/assets/stylesheets/manager/reports.sass +66 -0
- data/app/assets/stylesheets/manager/sites.sass +27 -0
- data/app/assets/stylesheets/manager/tags.sass +34 -0
- data/app/assets/stylesheets/manager/users.sass +14 -0
- data/app/assets/stylesheets/manager/vars.sass +4 -0
- data/app/assets/stylesheets/manager/venues.sass +20 -0
- data/app/assets/stylesheets/manager/welcome.sass +13 -0
- data/app/assets/stylesheets/print/default.sass +20 -0
- data/app/assets/stylesheets/print/vars.sass +3 -0
- data/app/assets/stylesheets/resume/github.sass +9 -0
- data/app/assets/stylesheets/resume/hf.sass +18 -0
- data/app/assets/stylesheets/resume/layout_piousbox.sass +56 -0
- data/app/assets/stylesheets/resume/reports.sass +21 -0
- data/app/assets/stylesheets/resume/resume.sass +387 -0
- data/app/assets/stylesheets/resume/vars.sass +3 -0
- data/app/assets/stylesheets/spec_runner.css +5 -0
- data/app/controllers/ish_lib_assets/application_controller.rb +5 -0
- data/app/helpers/application_helper.rb +96 -0
- data/app/helpers/devise_helper.rb +9 -0
- data/app/helpers/images_helper.rb +200 -0
- data/app/helpers/ish_lib_assets/application_helper.rb +7 -0
- data/app/helpers/ish_lib_assets/application_helper.rb~ +7 -0
- data/app/views/layouts/ish_lib_assets/application.html.erb +14 -0
- data/app/views/templates/_blah_template.haml +2 -0
- data/app/views/templates/blah_template.haml~ +0 -0
- data/app/views/templates/kaminari/_first_page.haml +9 -0
- data/app/views/templates/kaminari/_first_page.haml~ +9 -0
- data/app/views/templates/kaminari/_gap.haml +8 -0
- data/app/views/templates/kaminari/_last_page.haml +9 -0
- data/app/views/templates/kaminari/_last_page.haml~ +9 -0
- data/app/views/templates/kaminari/_next_page.haml +9 -0
- data/app/views/templates/kaminari/_next_page.haml~ +9 -0
- data/app/views/templates/kaminari/_page.haml +10 -0
- data/app/views/templates/kaminari/_page.haml~ +10 -0
- data/app/views/templates/kaminari/_paginator.haml +18 -0
- data/app/views/templates/kaminari/_paginator.haml~ +18 -0
- data/app/views/templates/kaminari/_prev_page.haml +9 -0
- data/app/views/templates/kaminari/_prev_page.haml~ +9 -0
- data/config/routes.rb +2 -0
- data/lib/ish_lib_assets.rb +4 -0
- data/lib/ish_lib_assets/engine.rb +9 -0
- data/lib/ish_lib_assets/engine.rb~ +9 -0
- data/lib/ish_lib_assets/version.rb +3 -0
- data/lib/ish_lib_assets/version.rb~ +3 -0
- data/lib/tasks/ish_lib_assets_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/ish_lib_assets_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- data/vendor/assets/images/close.png +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/images/loading.gif +0 -0
- data/vendor/assets/images/next.png +0 -0
- data/vendor/assets/images/prev.png +0 -0
- data/vendor/assets/javascripts/angular.js +14847 -0
- data/vendor/assets/javascripts/angular/angular-animate.js +1375 -0
- data/vendor/assets/javascripts/angular/angular-cookies.js +202 -0
- data/vendor/assets/javascripts/angular/angular-csp.css +13 -0
- data/vendor/assets/javascripts/angular/angular-loader.js +410 -0
- data/vendor/assets/javascripts/angular/angular-mocks.js +2116 -0
- data/vendor/assets/javascripts/angular/angular-resource.js +594 -0
- data/vendor/assets/javascripts/angular/angular-route.js +911 -0
- data/vendor/assets/javascripts/angular/angular-sanitize.js +622 -0
- data/vendor/assets/javascripts/angular/angular-scenario.js +32544 -0
- data/vendor/assets/javascripts/angular/angular-touch.js +563 -0
- data/vendor/assets/javascripts/angular/angular.js +20539 -0
- data/vendor/assets/javascripts/angular/errors.json +1 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af-na.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_af.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_am-et.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_am.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-001.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ae.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-bh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-dz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-eg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-iq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-jo.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-kw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-lb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ly.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ma.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-om.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-qa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-tn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ye.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ar.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bg-bg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-bd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_bn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-ad.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_cs-cz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_cs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_da-dk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_da.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-at.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-de.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-li.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de-lu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_de.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el-cy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el-gr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_el.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-as.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-au.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-fm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gb.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-hk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ie.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-iso.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-jm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-na.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-nz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ph.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-sg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tc.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-um.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en-zw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_en.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-419.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ar.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-bo.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-co.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-do.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ea.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ec.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-hn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ic.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-mx.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ni.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pe.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-py.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-sv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-us.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-uy.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ve.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_et-ee.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_et.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_eu-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_eu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-af.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-ir.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fa.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fi-fi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fil-ph.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fil.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-be.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bj.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ca.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ci.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-dj.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-fr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ga.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-km.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-lu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mc.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mf.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mg.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ml.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ne.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-re.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-yt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_fr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gl-es.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw-ch.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gu-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_gu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_he-il.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_he.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hi-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hr-hr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hu-hu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_hu.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_id-id.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_id.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_is-is.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_is.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it-it.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it-sm.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_it.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_iw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ja-jp.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ja.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_kn-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_kn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ko-kr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ko.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ln-cd.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ln.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lt-lt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lv-lv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_lv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ml-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ml.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mr-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ms-my.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ms.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mt-mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_mt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-cw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-nl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-sx.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_nl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_no.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_or-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_or.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pl-pl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-br.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-pt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_pt.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ro-ro.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ro.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ru-ru.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ru.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sk-sk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sl-si.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sq-al.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sq.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-cyrl-rs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-latn-rs.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sv-se.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sv.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sw-tz.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_sw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ta-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ta.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_te-in.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_te.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_th-th.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_th.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tl.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tr-tr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_tr.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_uk-ua.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_uk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ur-pk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_ur.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_vi-vn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_vi.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-cn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hans-cn.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hk.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-tw.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zh.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zu-za.js +99 -0
- data/vendor/assets/javascripts/angular/i18n/angular-locale_zu.js +99 -0
- data/vendor/assets/javascripts/angular/version.json +1 -0
- data/vendor/assets/javascripts/angular/version.txt +1 -0
- data/vendor/assets/javascripts/custom.modernizr.js +4 -0
- data/vendor/assets/javascripts/fancybox/blank.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_loading.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_loading@2x.gif +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_overlay.png +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_sprite.png +0 -0
- data/vendor/assets/javascripts/fancybox/fancybox_sprite@2x.png +0 -0
- data/vendor/assets/javascripts/fancybox/helpers/fancybox_buttons.png +0 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.css +97 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.js +122 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-media.js +199 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.css +55 -0
- data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.js +162 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.css +274 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.js +2020 -0
- data/vendor/assets/javascripts/fancybox/jquery.fancybox.pack.js +46 -0
- data/vendor/assets/javascripts/fastclick.js +761 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.js +8921 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.min.js +4 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/jquery.js +9842 -0
- data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/what-input.js +295 -0
- data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
- data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
- data/vendor/assets/javascripts/foundation/foundation.js +8921 -0
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
- data/vendor/assets/javascripts/foundation/foundation.min.js +10 -0
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
- data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
- data/vendor/assets/javascripts/jasmine/assert.coffee +62 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/MIT.LICENSE +20 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine-html.js +190 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.css +166 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.js +2476 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine_favicon.png +0 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/MIT.LICENSE +20 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine-html.js +681 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.css +82 -0
- data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.js +2600 -0
- data/vendor/assets/javascripts/jquery-file-upload/README.md +68 -0
- data/vendor/assets/javascripts/jquery-file-upload/application.js +79 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.postmessage-transport.js +117 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.xdr-transport.js +85 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/postmessage.html +75 -0
- data/vendor/assets/javascripts/jquery-file-upload/cors/result.html +20 -0
- data/vendor/assets/javascripts/jquery-file-upload/index.html +176 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload-ui.js +547 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload.js +1477 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.iframe-transport.js +217 -0
- data/vendor/assets/javascripts/jquery-file-upload/jquery.ui.widget.js +572 -0
- data/vendor/assets/javascripts/jquery-file-upload/package.json +60 -0
- data/vendor/assets/javascripts/jquery-file-upload/progressbar.gif +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app.yaml +12 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app/main.go +360 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/resize/resize.go +246 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/favicon.ico +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/robots.txt +2 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/app.yaml +16 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/main.py +145 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/favicon.ico +0 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/robots.txt +2 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/php/index.php +384 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/test/index.html +105 -0
- data/vendor/assets/javascripts/jquery-file-upload/trash/test/test.js +1116 -0
- data/vendor/assets/javascripts/jquery-file-upload/vendor/jquery.ui.widget.js +282 -0
- data/vendor/assets/javascripts/jquery/jquery-1.7.1.js +9266 -0
- data/vendor/assets/javascripts/jquery/jquery-1.7.1.min.js +4 -0
- data/vendor/assets/javascripts/jquery/jquery-2.2.2.js +9842 -0
- data/vendor/assets/javascripts/jquery/jquery-ui.min.js +13 -0
- data/vendor/assets/javascripts/jquery/jquery-uploadify.js +986 -0
- data/vendor/assets/javascripts/jquery/jquery.autocomplete.js +645 -0
- data/vendor/assets/javascripts/jquery/jquery.cookie.js +107 -0
- data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.js +409 -0
- data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.min.js +10 -0
- data/vendor/assets/javascripts/jquery/jquery.js +9842 -0
- data/vendor/assets/javascripts/json2.js +482 -0
- data/vendor/assets/javascripts/mustache.js +536 -0
- data/vendor/assets/javascripts/order.js +189 -0
- data/vendor/assets/javascripts/placeholder.js +426 -0
- data/vendor/assets/javascripts/rails.js +393 -0
- data/vendor/assets/javascripts/share_this.js +3 -0
- data/vendor/assets/javascripts/underscore.js +999 -0
- data/vendor/assets/javascripts/what-input.js +295 -0
- data/vendor/assets/stylesheets/fancybox/jquery.fancybox.css +274 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/app.css +0 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.css +4148 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.min.css +2 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/index.html +169 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/app.js +1 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.js +8921 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.min.js +4 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/jquery.js +9842 -0
- data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/what-input.js +295 -0
- data/vendor/assets/stylesheets/foundation/foundation.css +4148 -0
- data/vendor/assets/stylesheets/jquery-file-upload/jquery.fileupload-ui.css +56 -0
- data/vendor/assets/stylesheets/reset-min.css +2 -0
- data/vendor/assets/stylesheets/trash/active_admin.css.scss +32 -0
- data/vendor/assets/stylesheets/trash/bootstrap-responsive.css +1092 -0
- data/vendor/assets/stylesheets/trash/bootstrap-responsive.min.css +9 -0
- data/vendor/assets/stylesheets/trash/bootstrap.css +6039 -0
- data/vendor/assets/stylesheets/trash/bootstrap.min.css +9 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.css +5331 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.min.css +1 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/normalize.css +410 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/index.html +166 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation.min.js +10 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.abide.js +201 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.accordion.js +41 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.alert.js +34 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.clearing.js +450 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.dropdown.js +184 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.interchange.js +304 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.joyride.js +839 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.js +416 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.magellan.js +118 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.offcanvas.js +37 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.orbit.js +434 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.reveal.js +347 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tab.js +37 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tooltip.js +202 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.topbar.js +380 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/jquery.js +8829 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/modernizr.js +4 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/custom.modernizr.js +4 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/fastclick.js +761 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.autocomplete.js +645 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.cookie.js +107 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.js +8829 -0
- data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/placeholder.js +426 -0
- data/vendor/assets/stylesheets/trash/foundation-5.css +5331 -0
- data/vendor/assets/stylesheets/trash/foundation.min.css +1 -0
- data/vendor/assets/stylesheets/trash/grid.css +280 -0
- data/vendor/assets/stylesheets/trash/lightbox.css +210 -0
- data/vendor/assets/stylesheets/trash/normalize.css +410 -0
- data/vendor/assets/stylesheets/trash/scaffolds.css.scss +69 -0
- data/vendor/assets/stylesheets/trash/screen.css +858 -0
- data/vendor/assets/stylesheets/trash/uploadify.css +92 -0
- metadata +977 -0
@@ -0,0 +1,1375 @@
|
|
1
|
+
/**
|
2
|
+
* @license AngularJS v1.2.6
|
3
|
+
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
4
|
+
* License: MIT
|
5
|
+
*/
|
6
|
+
(function(window, angular, undefined) {'use strict';
|
7
|
+
|
8
|
+
/* jshint maxlen: false */
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @ngdoc overview
|
12
|
+
* @name ngAnimate
|
13
|
+
* @description
|
14
|
+
*
|
15
|
+
* # ngAnimate
|
16
|
+
*
|
17
|
+
* The `ngAnimate` module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives.
|
18
|
+
*
|
19
|
+
* {@installModule animate}
|
20
|
+
*
|
21
|
+
* <div doc-module-components="ngAnimate"></div>
|
22
|
+
*
|
23
|
+
* # Usage
|
24
|
+
*
|
25
|
+
* To see animations in action, all that is required is to define the appropriate CSS classes
|
26
|
+
* or to register a JavaScript animation via the myModule.animation() function. The directives that support animation automatically are:
|
27
|
+
* `ngRepeat`, `ngInclude`, `ngIf`, `ngSwitch`, `ngShow`, `ngHide`, `ngView` and `ngClass`. Custom directives can take advantage of animation
|
28
|
+
* by using the `$animate` service.
|
29
|
+
*
|
30
|
+
* Below is a more detailed breakdown of the supported animation events provided by pre-existing ng directives:
|
31
|
+
*
|
32
|
+
* | Directive | Supported Animations |
|
33
|
+
* |---------------------------------------------------------- |----------------------------------------------------|
|
34
|
+
* | {@link ng.directive:ngRepeat#usage_animations ngRepeat} | enter, leave and move |
|
35
|
+
* | {@link ngRoute.directive:ngView#usage_animations ngView} | enter and leave |
|
36
|
+
* | {@link ng.directive:ngInclude#usage_animations ngInclude} | enter and leave |
|
37
|
+
* | {@link ng.directive:ngSwitch#usage_animations ngSwitch} | enter and leave |
|
38
|
+
* | {@link ng.directive:ngIf#usage_animations ngIf} | enter and leave |
|
39
|
+
* | {@link ng.directive:ngClass#usage_animations ngClass} | add and remove |
|
40
|
+
* | {@link ng.directive:ngShow#usage_animations ngShow & ngHide} | add and remove (the ng-hide class value) |
|
41
|
+
*
|
42
|
+
* You can find out more information about animations upon visiting each directive page.
|
43
|
+
*
|
44
|
+
* Below is an example of how to apply animations to a directive that supports animation hooks:
|
45
|
+
*
|
46
|
+
* <pre>
|
47
|
+
* <style type="text/css">
|
48
|
+
* .slide.ng-enter, .slide.ng-leave {
|
49
|
+
* -webkit-transition:0.5s linear all;
|
50
|
+
* transition:0.5s linear all;
|
51
|
+
* }
|
52
|
+
*
|
53
|
+
* .slide.ng-enter { } /* starting animations for enter */
|
54
|
+
* .slide.ng-enter-active { } /* terminal animations for enter */
|
55
|
+
* .slide.ng-leave { } /* starting animations for leave */
|
56
|
+
* .slide.ng-leave-active { } /* terminal animations for leave */
|
57
|
+
* </style>
|
58
|
+
*
|
59
|
+
* <!--
|
60
|
+
* the animate service will automatically add .ng-enter and .ng-leave to the element
|
61
|
+
* to trigger the CSS transition/animations
|
62
|
+
* -->
|
63
|
+
* <ANY class="slide" ng-include="..."></ANY>
|
64
|
+
* </pre>
|
65
|
+
*
|
66
|
+
* Keep in mind that if an animation is running, any child elements cannot be animated until the parent element's
|
67
|
+
* animation has completed.
|
68
|
+
*
|
69
|
+
* <h2>CSS-defined Animations</h2>
|
70
|
+
* The animate service will automatically apply two CSS classes to the animated element and these two CSS classes
|
71
|
+
* are designed to contain the start and end CSS styling. Both CSS transitions and keyframe animations are supported
|
72
|
+
* and can be used to play along with this naming structure.
|
73
|
+
*
|
74
|
+
* The following code below demonstrates how to perform animations using **CSS transitions** with Angular:
|
75
|
+
*
|
76
|
+
* <pre>
|
77
|
+
* <style type="text/css">
|
78
|
+
* /*
|
79
|
+
* The animate class is apart of the element and the ng-enter class
|
80
|
+
* is attached to the element once the enter animation event is triggered
|
81
|
+
* */
|
82
|
+
* .reveal-animation.ng-enter {
|
83
|
+
* -webkit-transition: 1s linear all; /* Safari/Chrome */
|
84
|
+
* transition: 1s linear all; /* All other modern browsers and IE10+ */
|
85
|
+
*
|
86
|
+
* /* The animation preparation code */
|
87
|
+
* opacity: 0;
|
88
|
+
* }
|
89
|
+
*
|
90
|
+
* /*
|
91
|
+
* Keep in mind that you want to combine both CSS
|
92
|
+
* classes together to avoid any CSS-specificity
|
93
|
+
* conflicts
|
94
|
+
* */
|
95
|
+
* .reveal-animation.ng-enter.ng-enter-active {
|
96
|
+
* /* The animation code itself */
|
97
|
+
* opacity: 1;
|
98
|
+
* }
|
99
|
+
* </style>
|
100
|
+
*
|
101
|
+
* <div class="view-container">
|
102
|
+
* <div ng-view class="reveal-animation"></div>
|
103
|
+
* </div>
|
104
|
+
* </pre>
|
105
|
+
*
|
106
|
+
* The following code below demonstrates how to perform animations using **CSS animations** with Angular:
|
107
|
+
*
|
108
|
+
* <pre>
|
109
|
+
* <style type="text/css">
|
110
|
+
* .reveal-animation.ng-enter {
|
111
|
+
* -webkit-animation: enter_sequence 1s linear; /* Safari/Chrome */
|
112
|
+
* animation: enter_sequence 1s linear; /* IE10+ and Future Browsers */
|
113
|
+
* }
|
114
|
+
* @-webkit-keyframes enter_sequence {
|
115
|
+
* from { opacity:0; }
|
116
|
+
* to { opacity:1; }
|
117
|
+
* }
|
118
|
+
* @keyframes enter_sequence {
|
119
|
+
* from { opacity:0; }
|
120
|
+
* to { opacity:1; }
|
121
|
+
* }
|
122
|
+
* </style>
|
123
|
+
*
|
124
|
+
* <div class="view-container">
|
125
|
+
* <div ng-view class="reveal-animation"></div>
|
126
|
+
* </div>
|
127
|
+
* </pre>
|
128
|
+
*
|
129
|
+
* Both CSS3 animations and transitions can be used together and the animate service will figure out the correct duration and delay timing.
|
130
|
+
*
|
131
|
+
* Upon DOM mutation, the event class is added first (something like `ng-enter`), then the browser prepares itself to add
|
132
|
+
* the active class (in this case `ng-enter-active`) which then triggers the animation. The animation module will automatically
|
133
|
+
* detect the CSS code to determine when the animation ends. Once the animation is over then both CSS classes will be
|
134
|
+
* removed from the DOM. If a browser does not support CSS transitions or CSS animations then the animation will start and end
|
135
|
+
* immediately resulting in a DOM element that is at its final state. This final state is when the DOM element
|
136
|
+
* has no CSS transition/animation classes applied to it.
|
137
|
+
*
|
138
|
+
* <h3>CSS Staggering Animations</h3>
|
139
|
+
* A Staggering animation is a collection of animations that are issued with a slight delay in between each successive operation resulting in a
|
140
|
+
* curtain-like effect. The ngAnimate module, as of 1.2.0, supports staggering animations and the stagger effect can be
|
141
|
+
* performed by creating a **ng-EVENT-stagger** CSS class and attaching that class to the base CSS class used for
|
142
|
+
* the animation. The style property expected within the stagger class can either be a **transition-delay** or an
|
143
|
+
* **animation-delay** property (or both if your animation contains both transitions and keyframe animations).
|
144
|
+
*
|
145
|
+
* <pre>
|
146
|
+
* .my-animation.ng-enter {
|
147
|
+
* /* standard transition code */
|
148
|
+
* -webkit-transition: 1s linear all;
|
149
|
+
* transition: 1s linear all;
|
150
|
+
* opacity:0;
|
151
|
+
* }
|
152
|
+
* .my-animation.ng-enter-stagger {
|
153
|
+
* /* this will have a 100ms delay between each successive leave animation */
|
154
|
+
* -webkit-transition-delay: 0.1s;
|
155
|
+
* transition-delay: 0.1s;
|
156
|
+
*
|
157
|
+
* /* in case the stagger doesn't work then these two values
|
158
|
+
* must be set to 0 to avoid an accidental CSS inheritance */
|
159
|
+
* -webkit-transition-duration: 0s;
|
160
|
+
* transition-duration: 0s;
|
161
|
+
* }
|
162
|
+
* .my-animation.ng-enter.ng-enter-active {
|
163
|
+
* /* standard transition styles */
|
164
|
+
* opacity:1;
|
165
|
+
* }
|
166
|
+
* </pre>
|
167
|
+
*
|
168
|
+
* Staggering animations work by default in ngRepeat (so long as the CSS class is defined). Outside of ngRepeat, to use staggering animations
|
169
|
+
* on your own, they can be triggered by firing multiple calls to the same event on $animate. However, the restrictions surrounding this
|
170
|
+
* are that each of the elements must have the same CSS className value as well as the same parent element. A stagger operation
|
171
|
+
* will also be reset if more than 10ms has passed after the last animation has been fired.
|
172
|
+
*
|
173
|
+
* The following code will issue the **ng-leave-stagger** event on the element provided:
|
174
|
+
*
|
175
|
+
* <pre>
|
176
|
+
* var kids = parent.children();
|
177
|
+
*
|
178
|
+
* $animate.leave(kids[0]); //stagger index=0
|
179
|
+
* $animate.leave(kids[1]); //stagger index=1
|
180
|
+
* $animate.leave(kids[2]); //stagger index=2
|
181
|
+
* $animate.leave(kids[3]); //stagger index=3
|
182
|
+
* $animate.leave(kids[4]); //stagger index=4
|
183
|
+
*
|
184
|
+
* $timeout(function() {
|
185
|
+
* //stagger has reset itself
|
186
|
+
* $animate.leave(kids[5]); //stagger index=0
|
187
|
+
* $animate.leave(kids[6]); //stagger index=1
|
188
|
+
* }, 100, false);
|
189
|
+
* </pre>
|
190
|
+
*
|
191
|
+
* Stagger animations are currently only supported within CSS-defined animations.
|
192
|
+
*
|
193
|
+
* <h2>JavaScript-defined Animations</h2>
|
194
|
+
* In the event that you do not want to use CSS3 transitions or CSS3 animations or if you wish to offer animations on browsers that do not
|
195
|
+
* yet support CSS transitions/animations, then you can make use of JavaScript animations defined inside of your AngularJS module.
|
196
|
+
*
|
197
|
+
* <pre>
|
198
|
+
* //!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with the module that you used to define your application.
|
199
|
+
* var ngModule = angular.module('YourApp', ['ngAnimate']);
|
200
|
+
* ngModule.animation('.my-crazy-animation', function() {
|
201
|
+
* return {
|
202
|
+
* enter: function(element, done) {
|
203
|
+
* //run the animation here and call done when the animation is complete
|
204
|
+
* return function(cancelled) {
|
205
|
+
* //this (optional) function will be called when the animation
|
206
|
+
* //completes or when the animation is cancelled (the cancelled
|
207
|
+
* //flag will be set to true if cancelled).
|
208
|
+
* };
|
209
|
+
* },
|
210
|
+
* leave: function(element, done) { },
|
211
|
+
* move: function(element, done) { },
|
212
|
+
*
|
213
|
+
* //animation that can be triggered before the class is added
|
214
|
+
* beforeAddClass: function(element, className, done) { },
|
215
|
+
*
|
216
|
+
* //animation that can be triggered after the class is added
|
217
|
+
* addClass: function(element, className, done) { },
|
218
|
+
*
|
219
|
+
* //animation that can be triggered before the class is removed
|
220
|
+
* beforeRemoveClass: function(element, className, done) { },
|
221
|
+
*
|
222
|
+
* //animation that can be triggered after the class is removed
|
223
|
+
* removeClass: function(element, className, done) { }
|
224
|
+
* };
|
225
|
+
* });
|
226
|
+
* </pre>
|
227
|
+
*
|
228
|
+
* JavaScript-defined animations are created with a CSS-like class selector and a collection of events which are set to run
|
229
|
+
* a javascript callback function. When an animation is triggered, $animate will look for a matching animation which fits
|
230
|
+
* the element's CSS class attribute value and then run the matching animation event function (if found).
|
231
|
+
* In other words, if the CSS classes present on the animated element match any of the JavaScript animations then the callback function will
|
232
|
+
* be executed. It should be also noted that only simple, single class selectors are allowed (compound class selectors are not supported).
|
233
|
+
*
|
234
|
+
* Within a JavaScript animation, an object containing various event callback animation functions is expected to be returned.
|
235
|
+
* As explained above, these callbacks are triggered based on the animation event. Therefore if an enter animation is run,
|
236
|
+
* and the JavaScript animation is found, then the enter callback will handle that animation (in addition to the CSS keyframe animation
|
237
|
+
* or transition code that is defined via a stylesheet).
|
238
|
+
*
|
239
|
+
*/
|
240
|
+
|
241
|
+
angular.module('ngAnimate', ['ng'])
|
242
|
+
|
243
|
+
/**
|
244
|
+
* @ngdoc object
|
245
|
+
* @name ngAnimate.$animateProvider
|
246
|
+
* @description
|
247
|
+
*
|
248
|
+
* The `$animateProvider` allows developers to register JavaScript animation event handlers directly inside of a module.
|
249
|
+
* When an animation is triggered, the $animate service will query the $animate service to find any animations that match
|
250
|
+
* the provided name value.
|
251
|
+
*
|
252
|
+
* Requires the {@link ngAnimate `ngAnimate`} module to be installed.
|
253
|
+
*
|
254
|
+
* Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application.
|
255
|
+
*
|
256
|
+
*/
|
257
|
+
.config(['$provide', '$animateProvider', function($provide, $animateProvider) {
|
258
|
+
var noop = angular.noop;
|
259
|
+
var forEach = angular.forEach;
|
260
|
+
var selectors = $animateProvider.$$selectors;
|
261
|
+
|
262
|
+
var ELEMENT_NODE = 1;
|
263
|
+
var NG_ANIMATE_STATE = '$$ngAnimateState';
|
264
|
+
var NG_ANIMATE_CLASS_NAME = 'ng-animate';
|
265
|
+
var rootAnimateState = {running: true};
|
266
|
+
|
267
|
+
function extractElementNode(element) {
|
268
|
+
for(var i = 0; i < element.length; i++) {
|
269
|
+
var elm = element[i];
|
270
|
+
if(elm.nodeType == ELEMENT_NODE) {
|
271
|
+
return elm;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
function isMatchingElement(elm1, elm2) {
|
277
|
+
return extractElementNode(elm1) == extractElementNode(elm2);
|
278
|
+
}
|
279
|
+
|
280
|
+
$provide.decorator('$animate', ['$delegate', '$injector', '$sniffer', '$rootElement', '$timeout', '$rootScope', '$document',
|
281
|
+
function($delegate, $injector, $sniffer, $rootElement, $timeout, $rootScope, $document) {
|
282
|
+
|
283
|
+
$rootElement.data(NG_ANIMATE_STATE, rootAnimateState);
|
284
|
+
|
285
|
+
// disable animations during bootstrap, but once we bootstrapped, wait again
|
286
|
+
// for another digest until enabling animations. The reason why we digest twice
|
287
|
+
// is because all structural animations (enter, leave and move) all perform a
|
288
|
+
// post digest operation before animating. If we only wait for a single digest
|
289
|
+
// to pass then the structural animation would render its animation on page load.
|
290
|
+
// (which is what we're trying to avoid when the application first boots up.)
|
291
|
+
$rootScope.$$postDigest(function() {
|
292
|
+
$rootScope.$$postDigest(function() {
|
293
|
+
rootAnimateState.running = false;
|
294
|
+
});
|
295
|
+
});
|
296
|
+
|
297
|
+
var classNameFilter = $animateProvider.classNameFilter();
|
298
|
+
var isAnimatableClassName = !classNameFilter
|
299
|
+
? function() { return true; }
|
300
|
+
: function(className) {
|
301
|
+
return classNameFilter.test(className);
|
302
|
+
};
|
303
|
+
|
304
|
+
function lookup(name) {
|
305
|
+
if (name) {
|
306
|
+
var matches = [],
|
307
|
+
flagMap = {},
|
308
|
+
classes = name.substr(1).split('.');
|
309
|
+
|
310
|
+
//the empty string value is the default animation
|
311
|
+
//operation which performs CSS transition and keyframe
|
312
|
+
//animations sniffing. This is always included for each
|
313
|
+
//element animation procedure if the browser supports
|
314
|
+
//transitions and/or keyframe animations
|
315
|
+
if ($sniffer.transitions || $sniffer.animations) {
|
316
|
+
classes.push('');
|
317
|
+
}
|
318
|
+
|
319
|
+
for(var i=0; i < classes.length; i++) {
|
320
|
+
var klass = classes[i],
|
321
|
+
selectorFactoryName = selectors[klass];
|
322
|
+
if(selectorFactoryName && !flagMap[klass]) {
|
323
|
+
matches.push($injector.get(selectorFactoryName));
|
324
|
+
flagMap[klass] = true;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
return matches;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
/**
|
332
|
+
* @ngdoc object
|
333
|
+
* @name ngAnimate.$animate
|
334
|
+
* @function
|
335
|
+
*
|
336
|
+
* @description
|
337
|
+
* The `$animate` service provides animation detection support while performing DOM operations (enter, leave and move) as well as during addClass and removeClass operations.
|
338
|
+
* When any of these operations are run, the $animate service
|
339
|
+
* will examine any JavaScript-defined animations (which are defined by using the $animateProvider provider object)
|
340
|
+
* as well as any CSS-defined animations against the CSS classes present on the element once the DOM operation is run.
|
341
|
+
*
|
342
|
+
* The `$animate` service is used behind the scenes with pre-existing directives and animation with these directives
|
343
|
+
* will work out of the box without any extra configuration.
|
344
|
+
*
|
345
|
+
* Requires the {@link ngAnimate `ngAnimate`} module to be installed.
|
346
|
+
*
|
347
|
+
* Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application.
|
348
|
+
*
|
349
|
+
*/
|
350
|
+
return {
|
351
|
+
/**
|
352
|
+
* @ngdoc function
|
353
|
+
* @name ngAnimate.$animate#enter
|
354
|
+
* @methodOf ngAnimate.$animate
|
355
|
+
* @function
|
356
|
+
*
|
357
|
+
* @description
|
358
|
+
* Appends the element to the parentElement element that resides in the document and then runs the enter animation. Once
|
359
|
+
* the animation is started, the following CSS classes will be present on the element for the duration of the animation:
|
360
|
+
*
|
361
|
+
* Below is a breakdown of each step that occurs during enter animation:
|
362
|
+
*
|
363
|
+
* | Animation Step | What the element class attribute looks like |
|
364
|
+
* |----------------------------------------------------------------------------------------------|---------------------------------------------|
|
365
|
+
* | 1. $animate.enter(...) is called | class="my-animation" |
|
366
|
+
* | 2. element is inserted into the parentElement element or beside the afterElement element | class="my-animation" |
|
367
|
+
* | 3. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" |
|
368
|
+
* | 4. the .ng-enter class is added to the element | class="my-animation ng-animate ng-enter" |
|
369
|
+
* | 5. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-enter" |
|
370
|
+
* | 6. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-enter" |
|
371
|
+
* | 7. the .ng-enter-active and .ng-animate-active classes are added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-enter ng-enter-active" |
|
372
|
+
* | 8. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-enter ng-enter-active" |
|
373
|
+
* | 9. The animation ends and all generated CSS classes are removed from the element | class="my-animation" |
|
374
|
+
* | 10. The doneCallback() callback is fired (if provided) | class="my-animation" |
|
375
|
+
*
|
376
|
+
* @param {jQuery/jqLite element} element the element that will be the focus of the enter animation
|
377
|
+
* @param {jQuery/jqLite element} parentElement the parent element of the element that will be the focus of the enter animation
|
378
|
+
* @param {jQuery/jqLite element} afterElement the sibling element (which is the previous element) of the element that will be the focus of the enter animation
|
379
|
+
* @param {function()=} doneCallback the callback function that will be called once the animation is complete
|
380
|
+
*/
|
381
|
+
enter : function(element, parentElement, afterElement, doneCallback) {
|
382
|
+
this.enabled(false, element);
|
383
|
+
$delegate.enter(element, parentElement, afterElement);
|
384
|
+
$rootScope.$$postDigest(function() {
|
385
|
+
performAnimation('enter', 'ng-enter', element, parentElement, afterElement, noop, doneCallback);
|
386
|
+
});
|
387
|
+
},
|
388
|
+
|
389
|
+
/**
|
390
|
+
* @ngdoc function
|
391
|
+
* @name ngAnimate.$animate#leave
|
392
|
+
* @methodOf ngAnimate.$animate
|
393
|
+
* @function
|
394
|
+
*
|
395
|
+
* @description
|
396
|
+
* Runs the leave animation operation and, upon completion, removes the element from the DOM. Once
|
397
|
+
* the animation is started, the following CSS classes will be added for the duration of the animation:
|
398
|
+
*
|
399
|
+
* Below is a breakdown of each step that occurs during leave animation:
|
400
|
+
*
|
401
|
+
* | Animation Step | What the element class attribute looks like |
|
402
|
+
* |----------------------------------------------------------------------------------------------|---------------------------------------------|
|
403
|
+
* | 1. $animate.leave(...) is called | class="my-animation" |
|
404
|
+
* | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" |
|
405
|
+
* | 3. the .ng-leave class is added to the element | class="my-animation ng-animate ng-leave" |
|
406
|
+
* | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-leave" |
|
407
|
+
* | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-leave" |
|
408
|
+
* | 6. the .ng-leave-active and .ng-animate-active classes is added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-leave ng-leave-active" |
|
409
|
+
* | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-leave ng-leave-active" |
|
410
|
+
* | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation" |
|
411
|
+
* | 9. The element is removed from the DOM | ... |
|
412
|
+
* | 10. The doneCallback() callback is fired (if provided) | ... |
|
413
|
+
*
|
414
|
+
* @param {jQuery/jqLite element} element the element that will be the focus of the leave animation
|
415
|
+
* @param {function()=} doneCallback the callback function that will be called once the animation is complete
|
416
|
+
*/
|
417
|
+
leave : function(element, doneCallback) {
|
418
|
+
cancelChildAnimations(element);
|
419
|
+
this.enabled(false, element);
|
420
|
+
$rootScope.$$postDigest(function() {
|
421
|
+
performAnimation('leave', 'ng-leave', element, null, null, function() {
|
422
|
+
$delegate.leave(element);
|
423
|
+
}, doneCallback);
|
424
|
+
});
|
425
|
+
},
|
426
|
+
|
427
|
+
/**
|
428
|
+
* @ngdoc function
|
429
|
+
* @name ngAnimate.$animate#move
|
430
|
+
* @methodOf ngAnimate.$animate
|
431
|
+
* @function
|
432
|
+
*
|
433
|
+
* @description
|
434
|
+
* Fires the move DOM operation. Just before the animation starts, the animate service will either append it into the parentElement container or
|
435
|
+
* add the element directly after the afterElement element if present. Then the move animation will be run. Once
|
436
|
+
* the animation is started, the following CSS classes will be added for the duration of the animation:
|
437
|
+
*
|
438
|
+
* Below is a breakdown of each step that occurs during move animation:
|
439
|
+
*
|
440
|
+
* | Animation Step | What the element class attribute looks like |
|
441
|
+
* |----------------------------------------------------------------------------------------------|---------------------------------------------|
|
442
|
+
* | 1. $animate.move(...) is called | class="my-animation" |
|
443
|
+
* | 2. element is moved into the parentElement element or beside the afterElement element | class="my-animation" |
|
444
|
+
* | 3. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" |
|
445
|
+
* | 4. the .ng-move class is added to the element | class="my-animation ng-animate ng-move" |
|
446
|
+
* | 5. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-move" |
|
447
|
+
* | 6. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-move" |
|
448
|
+
* | 7. the .ng-move-active and .ng-animate-active classes is added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-move ng-move-active" |
|
449
|
+
* | 8. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-move ng-move-active" |
|
450
|
+
* | 9. The animation ends and all generated CSS classes are removed from the element | class="my-animation" |
|
451
|
+
* | 10. The doneCallback() callback is fired (if provided) | class="my-animation" |
|
452
|
+
*
|
453
|
+
* @param {jQuery/jqLite element} element the element that will be the focus of the move animation
|
454
|
+
* @param {jQuery/jqLite element} parentElement the parentElement element of the element that will be the focus of the move animation
|
455
|
+
* @param {jQuery/jqLite element} afterElement the sibling element (which is the previous element) of the element that will be the focus of the move animation
|
456
|
+
* @param {function()=} doneCallback the callback function that will be called once the animation is complete
|
457
|
+
*/
|
458
|
+
move : function(element, parentElement, afterElement, doneCallback) {
|
459
|
+
cancelChildAnimations(element);
|
460
|
+
this.enabled(false, element);
|
461
|
+
$delegate.move(element, parentElement, afterElement);
|
462
|
+
$rootScope.$$postDigest(function() {
|
463
|
+
performAnimation('move', 'ng-move', element, parentElement, afterElement, noop, doneCallback);
|
464
|
+
});
|
465
|
+
},
|
466
|
+
|
467
|
+
/**
|
468
|
+
* @ngdoc function
|
469
|
+
* @name ngAnimate.$animate#addClass
|
470
|
+
* @methodOf ngAnimate.$animate
|
471
|
+
*
|
472
|
+
* @description
|
473
|
+
* Triggers a custom animation event based off the className variable and then attaches the className value to the element as a CSS class.
|
474
|
+
* Unlike the other animation methods, the animate service will suffix the className value with {@type -add} in order to provide
|
475
|
+
* the animate service the setup and active CSS classes in order to trigger the animation (this will be skipped if no CSS transitions
|
476
|
+
* or keyframes are defined on the -add or base CSS class).
|
477
|
+
*
|
478
|
+
* Below is a breakdown of each step that occurs during addClass animation:
|
479
|
+
*
|
480
|
+
* | Animation Step | What the element class attribute looks like |
|
481
|
+
* |------------------------------------------------------------------------------------------------|---------------------------------------------|
|
482
|
+
* | 1. $animate.addClass(element, 'super') is called | class="my-animation" |
|
483
|
+
* | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" |
|
484
|
+
* | 3. the .super-add class are added to the element | class="my-animation ng-animate super-add" |
|
485
|
+
* | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate super-add" |
|
486
|
+
* | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate super-add" |
|
487
|
+
* | 6. the .super, .super-add-active and .ng-animate-active classes are added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active super super-add super-add-active" |
|
488
|
+
* | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation super-add super-add-active" |
|
489
|
+
* | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation super" |
|
490
|
+
* | 9. The super class is kept on the element | class="my-animation super" |
|
491
|
+
* | 10. The doneCallback() callback is fired (if provided) | class="my-animation super" |
|
492
|
+
*
|
493
|
+
* @param {jQuery/jqLite element} element the element that will be animated
|
494
|
+
* @param {string} className the CSS class that will be added to the element and then animated
|
495
|
+
* @param {function()=} doneCallback the callback function that will be called once the animation is complete
|
496
|
+
*/
|
497
|
+
addClass : function(element, className, doneCallback) {
|
498
|
+
performAnimation('addClass', className, element, null, null, function() {
|
499
|
+
$delegate.addClass(element, className);
|
500
|
+
}, doneCallback);
|
501
|
+
},
|
502
|
+
|
503
|
+
/**
|
504
|
+
* @ngdoc function
|
505
|
+
* @name ngAnimate.$animate#removeClass
|
506
|
+
* @methodOf ngAnimate.$animate
|
507
|
+
*
|
508
|
+
* @description
|
509
|
+
* Triggers a custom animation event based off the className variable and then removes the CSS class provided by the className value
|
510
|
+
* from the element. Unlike the other animation methods, the animate service will suffix the className value with {@type -remove} in
|
511
|
+
* order to provide the animate service the setup and active CSS classes in order to trigger the animation (this will be skipped if
|
512
|
+
* no CSS transitions or keyframes are defined on the -remove or base CSS classes).
|
513
|
+
*
|
514
|
+
* Below is a breakdown of each step that occurs during removeClass animation:
|
515
|
+
*
|
516
|
+
* | Animation Step | What the element class attribute looks like |
|
517
|
+
* |-----------------------------------------------------------------------------------------------|---------------------------------------------|
|
518
|
+
* | 1. $animate.removeClass(element, 'super') is called | class="my-animation super" |
|
519
|
+
* | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation super ng-animate" |
|
520
|
+
* | 3. the .super-remove class are added to the element | class="my-animation super ng-animate super-remove"|
|
521
|
+
* | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation super ng-animate super-remove" |
|
522
|
+
* | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation super ng-animate super-remove" |
|
523
|
+
* | 6. the .super-remove-active and .ng-animate-active classes are added and .super is removed (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active super-remove super-remove-active" |
|
524
|
+
* | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active super-remove super-remove-active" |
|
525
|
+
* | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation" |
|
526
|
+
* | 9. The doneCallback() callback is fired (if provided) | class="my-animation" |
|
527
|
+
*
|
528
|
+
*
|
529
|
+
* @param {jQuery/jqLite element} element the element that will be animated
|
530
|
+
* @param {string} className the CSS class that will be animated and then removed from the element
|
531
|
+
* @param {function()=} doneCallback the callback function that will be called once the animation is complete
|
532
|
+
*/
|
533
|
+
removeClass : function(element, className, doneCallback) {
|
534
|
+
performAnimation('removeClass', className, element, null, null, function() {
|
535
|
+
$delegate.removeClass(element, className);
|
536
|
+
}, doneCallback);
|
537
|
+
},
|
538
|
+
|
539
|
+
/**
|
540
|
+
* @ngdoc function
|
541
|
+
* @name ngAnimate.$animate#enabled
|
542
|
+
* @methodOf ngAnimate.$animate
|
543
|
+
* @function
|
544
|
+
*
|
545
|
+
* @param {boolean=} value If provided then set the animation on or off.
|
546
|
+
* @param {jQuery/jqLite element=} element If provided then the element will be used to represent the enable/disable operation
|
547
|
+
* @return {boolean} Current animation state.
|
548
|
+
*
|
549
|
+
* @description
|
550
|
+
* Globally enables/disables animations.
|
551
|
+
*
|
552
|
+
*/
|
553
|
+
enabled : function(value, element) {
|
554
|
+
switch(arguments.length) {
|
555
|
+
case 2:
|
556
|
+
if(value) {
|
557
|
+
cleanup(element);
|
558
|
+
} else {
|
559
|
+
var data = element.data(NG_ANIMATE_STATE) || {};
|
560
|
+
data.disabled = true;
|
561
|
+
element.data(NG_ANIMATE_STATE, data);
|
562
|
+
}
|
563
|
+
break;
|
564
|
+
|
565
|
+
case 1:
|
566
|
+
rootAnimateState.disabled = !value;
|
567
|
+
break;
|
568
|
+
|
569
|
+
default:
|
570
|
+
value = !rootAnimateState.disabled;
|
571
|
+
break;
|
572
|
+
}
|
573
|
+
return !!value;
|
574
|
+
}
|
575
|
+
};
|
576
|
+
|
577
|
+
/*
|
578
|
+
all animations call this shared animation triggering function internally.
|
579
|
+
The animationEvent variable refers to the JavaScript animation event that will be triggered
|
580
|
+
and the className value is the name of the animation that will be applied within the
|
581
|
+
CSS code. Element, parentElement and afterElement are provided DOM elements for the animation
|
582
|
+
and the onComplete callback will be fired once the animation is fully complete.
|
583
|
+
*/
|
584
|
+
function performAnimation(animationEvent, className, element, parentElement, afterElement, domOperation, doneCallback) {
|
585
|
+
var currentClassName, classes, node = extractElementNode(element);
|
586
|
+
if(node) {
|
587
|
+
currentClassName = node.className;
|
588
|
+
classes = currentClassName + ' ' + className;
|
589
|
+
}
|
590
|
+
|
591
|
+
//transcluded directives may sometimes fire an animation using only comment nodes
|
592
|
+
//best to catch this early on to prevent any animation operations from occurring
|
593
|
+
if(!node || !isAnimatableClassName(classes)) {
|
594
|
+
fireDOMOperation();
|
595
|
+
closeAnimation();
|
596
|
+
return;
|
597
|
+
}
|
598
|
+
|
599
|
+
var animationLookup = (' ' + classes).replace(/\s+/g,'.');
|
600
|
+
if (!parentElement) {
|
601
|
+
parentElement = afterElement ? afterElement.parent() : element.parent();
|
602
|
+
}
|
603
|
+
|
604
|
+
var matches = lookup(animationLookup);
|
605
|
+
var isClassBased = animationEvent == 'addClass' || animationEvent == 'removeClass';
|
606
|
+
var ngAnimateState = element.data(NG_ANIMATE_STATE) || {};
|
607
|
+
|
608
|
+
//skip the animation if animations are disabled, a parent is already being animated,
|
609
|
+
//the element is not currently attached to the document body or then completely close
|
610
|
+
//the animation if any matching animations are not found at all.
|
611
|
+
//NOTE: IE8 + IE9 should close properly (run closeAnimation()) in case a NO animation is not found.
|
612
|
+
if (animationsDisabled(element, parentElement) || matches.length === 0) {
|
613
|
+
fireDOMOperation();
|
614
|
+
closeAnimation();
|
615
|
+
return;
|
616
|
+
}
|
617
|
+
|
618
|
+
var animations = [];
|
619
|
+
//only add animations if the currently running animation is not structural
|
620
|
+
//or if there is no animation running at all
|
621
|
+
if(!ngAnimateState.running || !(isClassBased && ngAnimateState.structural)) {
|
622
|
+
forEach(matches, function(animation) {
|
623
|
+
//add the animation to the queue to if it is allowed to be cancelled
|
624
|
+
if(!animation.allowCancel || animation.allowCancel(element, animationEvent, className)) {
|
625
|
+
var beforeFn, afterFn = animation[animationEvent];
|
626
|
+
|
627
|
+
//Special case for a leave animation since there is no point in performing an
|
628
|
+
//animation on a element node that has already been removed from the DOM
|
629
|
+
if(animationEvent == 'leave') {
|
630
|
+
beforeFn = afterFn;
|
631
|
+
afterFn = null; //this must be falsy so that the animation is skipped for leave
|
632
|
+
} else {
|
633
|
+
beforeFn = animation['before' + animationEvent.charAt(0).toUpperCase() + animationEvent.substr(1)];
|
634
|
+
}
|
635
|
+
animations.push({
|
636
|
+
before : beforeFn,
|
637
|
+
after : afterFn
|
638
|
+
});
|
639
|
+
}
|
640
|
+
});
|
641
|
+
}
|
642
|
+
|
643
|
+
//this would mean that an animation was not allowed so let the existing
|
644
|
+
//animation do it's thing and close this one early
|
645
|
+
if(animations.length === 0) {
|
646
|
+
fireDOMOperation();
|
647
|
+
fireDoneCallbackAsync();
|
648
|
+
return;
|
649
|
+
}
|
650
|
+
|
651
|
+
//this value will be searched for class-based CSS className lookup. Therefore,
|
652
|
+
//we prefix and suffix the current className value with spaces to avoid substring
|
653
|
+
//lookups of className tokens
|
654
|
+
var futureClassName = ' ' + currentClassName + ' ';
|
655
|
+
if(ngAnimateState.running) {
|
656
|
+
//if an animation is currently running on the element then lets take the steps
|
657
|
+
//to cancel that animation and fire any required callbacks
|
658
|
+
$timeout.cancel(ngAnimateState.closeAnimationTimeout);
|
659
|
+
cleanup(element);
|
660
|
+
cancelAnimations(ngAnimateState.animations);
|
661
|
+
|
662
|
+
//if the class is removed during the reflow then it will revert the styles temporarily
|
663
|
+
//back to the base class CSS styling causing a jump-like effect to occur. This check
|
664
|
+
//here ensures that the domOperation is only performed after the reflow has commenced
|
665
|
+
if(ngAnimateState.beforeComplete) {
|
666
|
+
(ngAnimateState.done || noop)(true);
|
667
|
+
} else if(isClassBased && !ngAnimateState.structural) {
|
668
|
+
//class-based animations will compare element className values after cancelling the
|
669
|
+
//previous animation to see if the element properties already contain the final CSS
|
670
|
+
//class and if so then the animation will be skipped. Since the domOperation will
|
671
|
+
//be performed only after the reflow is complete then our element's className value
|
672
|
+
//will be invalid. Therefore the same string manipulation that would occur within the
|
673
|
+
//DOM operation will be performed below so that the class comparison is valid...
|
674
|
+
futureClassName = ngAnimateState.event == 'removeClass' ?
|
675
|
+
futureClassName.replace(ngAnimateState.className, '') :
|
676
|
+
futureClassName + ngAnimateState.className + ' ';
|
677
|
+
}
|
678
|
+
}
|
679
|
+
|
680
|
+
//There is no point in perform a class-based animation if the element already contains
|
681
|
+
//(on addClass) or doesn't contain (on removeClass) the className being animated.
|
682
|
+
//The reason why this is being called after the previous animations are cancelled
|
683
|
+
//is so that the CSS classes present on the element can be properly examined.
|
684
|
+
var classNameToken = ' ' + className + ' ';
|
685
|
+
if((animationEvent == 'addClass' && futureClassName.indexOf(classNameToken) >= 0) ||
|
686
|
+
(animationEvent == 'removeClass' && futureClassName.indexOf(classNameToken) == -1)) {
|
687
|
+
fireDOMOperation();
|
688
|
+
fireDoneCallbackAsync();
|
689
|
+
return;
|
690
|
+
}
|
691
|
+
|
692
|
+
//the ng-animate class does nothing, but it's here to allow for
|
693
|
+
//parent animations to find and cancel child animations when needed
|
694
|
+
element.addClass(NG_ANIMATE_CLASS_NAME);
|
695
|
+
|
696
|
+
element.data(NG_ANIMATE_STATE, {
|
697
|
+
running:true,
|
698
|
+
event:animationEvent,
|
699
|
+
className:className,
|
700
|
+
structural:!isClassBased,
|
701
|
+
animations:animations,
|
702
|
+
done:onBeforeAnimationsComplete
|
703
|
+
});
|
704
|
+
|
705
|
+
//first we run the before animations and when all of those are complete
|
706
|
+
//then we perform the DOM operation and run the next set of animations
|
707
|
+
invokeRegisteredAnimationFns(animations, 'before', onBeforeAnimationsComplete);
|
708
|
+
|
709
|
+
function onBeforeAnimationsComplete(cancelled) {
|
710
|
+
fireDOMOperation();
|
711
|
+
if(cancelled === true) {
|
712
|
+
closeAnimation();
|
713
|
+
return;
|
714
|
+
}
|
715
|
+
|
716
|
+
//set the done function to the final done function
|
717
|
+
//so that the DOM event won't be executed twice by accident
|
718
|
+
//if the after animation is cancelled as well
|
719
|
+
var data = element.data(NG_ANIMATE_STATE);
|
720
|
+
if(data) {
|
721
|
+
data.done = closeAnimation;
|
722
|
+
element.data(NG_ANIMATE_STATE, data);
|
723
|
+
}
|
724
|
+
invokeRegisteredAnimationFns(animations, 'after', closeAnimation);
|
725
|
+
}
|
726
|
+
|
727
|
+
function invokeRegisteredAnimationFns(animations, phase, allAnimationFnsComplete) {
|
728
|
+
var endFnName = phase + 'End';
|
729
|
+
forEach(animations, function(animation, index) {
|
730
|
+
var animationPhaseCompleted = function() {
|
731
|
+
progress(index, phase);
|
732
|
+
};
|
733
|
+
|
734
|
+
//there are no before functions for enter + move since the DOM
|
735
|
+
//operations happen before the performAnimation method fires
|
736
|
+
if(phase == 'before' && (animationEvent == 'enter' || animationEvent == 'move')) {
|
737
|
+
animationPhaseCompleted();
|
738
|
+
return;
|
739
|
+
}
|
740
|
+
|
741
|
+
if(animation[phase]) {
|
742
|
+
animation[endFnName] = isClassBased ?
|
743
|
+
animation[phase](element, className, animationPhaseCompleted) :
|
744
|
+
animation[phase](element, animationPhaseCompleted);
|
745
|
+
} else {
|
746
|
+
animationPhaseCompleted();
|
747
|
+
}
|
748
|
+
});
|
749
|
+
|
750
|
+
function progress(index, phase) {
|
751
|
+
var phaseCompletionFlag = phase + 'Complete';
|
752
|
+
var currentAnimation = animations[index];
|
753
|
+
currentAnimation[phaseCompletionFlag] = true;
|
754
|
+
(currentAnimation[endFnName] || noop)();
|
755
|
+
|
756
|
+
for(var i=0;i<animations.length;i++) {
|
757
|
+
if(!animations[i][phaseCompletionFlag]) return;
|
758
|
+
}
|
759
|
+
|
760
|
+
allAnimationFnsComplete();
|
761
|
+
}
|
762
|
+
}
|
763
|
+
|
764
|
+
function fireDoneCallbackAsync() {
|
765
|
+
doneCallback && $timeout(doneCallback, 0, false);
|
766
|
+
}
|
767
|
+
|
768
|
+
//it is less complicated to use a flag than managing and cancelling
|
769
|
+
//timeouts containing multiple callbacks.
|
770
|
+
function fireDOMOperation() {
|
771
|
+
if(!fireDOMOperation.hasBeenRun) {
|
772
|
+
fireDOMOperation.hasBeenRun = true;
|
773
|
+
domOperation();
|
774
|
+
}
|
775
|
+
}
|
776
|
+
|
777
|
+
function closeAnimation() {
|
778
|
+
if(!closeAnimation.hasBeenRun) {
|
779
|
+
closeAnimation.hasBeenRun = true;
|
780
|
+
var data = element.data(NG_ANIMATE_STATE);
|
781
|
+
if(data) {
|
782
|
+
/* only structural animations wait for reflow before removing an
|
783
|
+
animation, but class-based animations don't. An example of this
|
784
|
+
failing would be when a parent HTML tag has a ng-class attribute
|
785
|
+
causing ALL directives below to skip animations during the digest */
|
786
|
+
if(isClassBased) {
|
787
|
+
cleanup(element);
|
788
|
+
} else {
|
789
|
+
data.closeAnimationTimeout = $timeout(function() {
|
790
|
+
cleanup(element);
|
791
|
+
}, 0, false);
|
792
|
+
element.data(NG_ANIMATE_STATE, data);
|
793
|
+
}
|
794
|
+
}
|
795
|
+
fireDoneCallbackAsync();
|
796
|
+
}
|
797
|
+
}
|
798
|
+
}
|
799
|
+
|
800
|
+
function cancelChildAnimations(element) {
|
801
|
+
var node = extractElementNode(element);
|
802
|
+
forEach(node.querySelectorAll('.' + NG_ANIMATE_CLASS_NAME), function(element) {
|
803
|
+
element = angular.element(element);
|
804
|
+
var data = element.data(NG_ANIMATE_STATE);
|
805
|
+
if(data) {
|
806
|
+
cancelAnimations(data.animations);
|
807
|
+
cleanup(element);
|
808
|
+
}
|
809
|
+
});
|
810
|
+
}
|
811
|
+
|
812
|
+
function cancelAnimations(animations) {
|
813
|
+
var isCancelledFlag = true;
|
814
|
+
forEach(animations, function(animation) {
|
815
|
+
if(!animations.beforeComplete) {
|
816
|
+
(animation.beforeEnd || noop)(isCancelledFlag);
|
817
|
+
}
|
818
|
+
if(!animations.afterComplete) {
|
819
|
+
(animation.afterEnd || noop)(isCancelledFlag);
|
820
|
+
}
|
821
|
+
});
|
822
|
+
}
|
823
|
+
|
824
|
+
function cleanup(element) {
|
825
|
+
if(isMatchingElement(element, $rootElement)) {
|
826
|
+
if(!rootAnimateState.disabled) {
|
827
|
+
rootAnimateState.running = false;
|
828
|
+
rootAnimateState.structural = false;
|
829
|
+
}
|
830
|
+
} else {
|
831
|
+
element.removeClass(NG_ANIMATE_CLASS_NAME);
|
832
|
+
element.removeData(NG_ANIMATE_STATE);
|
833
|
+
}
|
834
|
+
}
|
835
|
+
|
836
|
+
function animationsDisabled(element, parentElement) {
|
837
|
+
if (rootAnimateState.disabled) return true;
|
838
|
+
|
839
|
+
if(isMatchingElement(element, $rootElement)) {
|
840
|
+
return rootAnimateState.disabled || rootAnimateState.running;
|
841
|
+
}
|
842
|
+
|
843
|
+
do {
|
844
|
+
//the element did not reach the root element which means that it
|
845
|
+
//is not apart of the DOM. Therefore there is no reason to do
|
846
|
+
//any animations on it
|
847
|
+
if(parentElement.length === 0) break;
|
848
|
+
|
849
|
+
var isRoot = isMatchingElement(parentElement, $rootElement);
|
850
|
+
var state = isRoot ? rootAnimateState : parentElement.data(NG_ANIMATE_STATE);
|
851
|
+
var result = state && (!!state.disabled || !!state.running);
|
852
|
+
if(isRoot || result) {
|
853
|
+
return result;
|
854
|
+
}
|
855
|
+
|
856
|
+
if(isRoot) return true;
|
857
|
+
}
|
858
|
+
while(parentElement = parentElement.parent());
|
859
|
+
|
860
|
+
return true;
|
861
|
+
}
|
862
|
+
}]);
|
863
|
+
|
864
|
+
$animateProvider.register('', ['$window', '$sniffer', '$timeout', function($window, $sniffer, $timeout) {
|
865
|
+
// Detect proper transitionend/animationend event names.
|
866
|
+
var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMATIONEND_EVENT;
|
867
|
+
|
868
|
+
// If unprefixed events are not supported but webkit-prefixed are, use the latter.
|
869
|
+
// Otherwise, just use W3C names, browsers not supporting them at all will just ignore them.
|
870
|
+
// Note: Chrome implements `window.onwebkitanimationend` and doesn't implement `window.onanimationend`
|
871
|
+
// but at the same time dispatches the `animationend` event and not `webkitAnimationEnd`.
|
872
|
+
// Register both events in case `window.onanimationend` is not supported because of that,
|
873
|
+
// do the same for `transitionend` as Safari is likely to exhibit similar behavior.
|
874
|
+
// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit
|
875
|
+
// therefore there is no reason to test anymore for other vendor prefixes: http://caniuse.com/#search=transition
|
876
|
+
if (window.ontransitionend === undefined && window.onwebkittransitionend !== undefined) {
|
877
|
+
CSS_PREFIX = '-webkit-';
|
878
|
+
TRANSITION_PROP = 'WebkitTransition';
|
879
|
+
TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';
|
880
|
+
} else {
|
881
|
+
TRANSITION_PROP = 'transition';
|
882
|
+
TRANSITIONEND_EVENT = 'transitionend';
|
883
|
+
}
|
884
|
+
|
885
|
+
if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) {
|
886
|
+
CSS_PREFIX = '-webkit-';
|
887
|
+
ANIMATION_PROP = 'WebkitAnimation';
|
888
|
+
ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';
|
889
|
+
} else {
|
890
|
+
ANIMATION_PROP = 'animation';
|
891
|
+
ANIMATIONEND_EVENT = 'animationend';
|
892
|
+
}
|
893
|
+
|
894
|
+
var DURATION_KEY = 'Duration';
|
895
|
+
var PROPERTY_KEY = 'Property';
|
896
|
+
var DELAY_KEY = 'Delay';
|
897
|
+
var ANIMATION_ITERATION_COUNT_KEY = 'IterationCount';
|
898
|
+
var NG_ANIMATE_PARENT_KEY = '$$ngAnimateKey';
|
899
|
+
var NG_ANIMATE_CSS_DATA_KEY = '$$ngAnimateCSS3Data';
|
900
|
+
var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
|
901
|
+
var CLOSING_TIME_BUFFER = 1.5;
|
902
|
+
var ONE_SECOND = 1000;
|
903
|
+
|
904
|
+
var animationCounter = 0;
|
905
|
+
var lookupCache = {};
|
906
|
+
var parentCounter = 0;
|
907
|
+
var animationReflowQueue = [];
|
908
|
+
var animationElementQueue = [];
|
909
|
+
var animationTimer;
|
910
|
+
var closingAnimationTime = 0;
|
911
|
+
var timeOut = false;
|
912
|
+
function afterReflow(element, callback) {
|
913
|
+
$timeout.cancel(animationTimer);
|
914
|
+
|
915
|
+
animationReflowQueue.push(callback);
|
916
|
+
|
917
|
+
var node = extractElementNode(element);
|
918
|
+
element = angular.element(node);
|
919
|
+
animationElementQueue.push(element);
|
920
|
+
|
921
|
+
var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY);
|
922
|
+
closingAnimationTime = Math.max(closingAnimationTime,
|
923
|
+
(elementData.maxDelay + elementData.maxDuration) * CLOSING_TIME_BUFFER * ONE_SECOND);
|
924
|
+
|
925
|
+
//by placing a counter we can avoid an accidental
|
926
|
+
//race condition which may close an animation when
|
927
|
+
//a follow-up animation is midway in its animation
|
928
|
+
elementData.animationCount = animationCounter;
|
929
|
+
|
930
|
+
animationTimer = $timeout(function() {
|
931
|
+
forEach(animationReflowQueue, function(fn) {
|
932
|
+
fn();
|
933
|
+
});
|
934
|
+
|
935
|
+
//copy the list of elements so that successive
|
936
|
+
//animations won't conflict if they're added before
|
937
|
+
//the closing animation timeout has run
|
938
|
+
var elementQueueSnapshot = [];
|
939
|
+
var animationCounterSnapshot = animationCounter;
|
940
|
+
forEach(animationElementQueue, function(elm) {
|
941
|
+
elementQueueSnapshot.push(elm);
|
942
|
+
});
|
943
|
+
|
944
|
+
$timeout(function() {
|
945
|
+
closeAllAnimations(elementQueueSnapshot, animationCounterSnapshot);
|
946
|
+
elementQueueSnapshot = null;
|
947
|
+
}, closingAnimationTime, false);
|
948
|
+
|
949
|
+
animationReflowQueue = [];
|
950
|
+
animationElementQueue = [];
|
951
|
+
animationTimer = null;
|
952
|
+
lookupCache = {};
|
953
|
+
closingAnimationTime = 0;
|
954
|
+
animationCounter++;
|
955
|
+
}, 10, false);
|
956
|
+
}
|
957
|
+
|
958
|
+
function closeAllAnimations(elements, count) {
|
959
|
+
forEach(elements, function(element) {
|
960
|
+
var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY);
|
961
|
+
if(elementData && elementData.animationCount == count) {
|
962
|
+
(elementData.closeAnimationFn || noop)();
|
963
|
+
}
|
964
|
+
});
|
965
|
+
}
|
966
|
+
|
967
|
+
function getElementAnimationDetails(element, cacheKey) {
|
968
|
+
var data = cacheKey ? lookupCache[cacheKey] : null;
|
969
|
+
if(!data) {
|
970
|
+
var transitionDuration = 0;
|
971
|
+
var transitionDelay = 0;
|
972
|
+
var animationDuration = 0;
|
973
|
+
var animationDelay = 0;
|
974
|
+
var transitionDelayStyle;
|
975
|
+
var animationDelayStyle;
|
976
|
+
var transitionDurationStyle;
|
977
|
+
var transitionPropertyStyle;
|
978
|
+
|
979
|
+
//we want all the styles defined before and after
|
980
|
+
forEach(element, function(element) {
|
981
|
+
if (element.nodeType == ELEMENT_NODE) {
|
982
|
+
var elementStyles = $window.getComputedStyle(element) || {};
|
983
|
+
|
984
|
+
transitionDurationStyle = elementStyles[TRANSITION_PROP + DURATION_KEY];
|
985
|
+
|
986
|
+
transitionDuration = Math.max(parseMaxTime(transitionDurationStyle), transitionDuration);
|
987
|
+
|
988
|
+
transitionPropertyStyle = elementStyles[TRANSITION_PROP + PROPERTY_KEY];
|
989
|
+
|
990
|
+
transitionDelayStyle = elementStyles[TRANSITION_PROP + DELAY_KEY];
|
991
|
+
|
992
|
+
transitionDelay = Math.max(parseMaxTime(transitionDelayStyle), transitionDelay);
|
993
|
+
|
994
|
+
animationDelayStyle = elementStyles[ANIMATION_PROP + DELAY_KEY];
|
995
|
+
|
996
|
+
animationDelay = Math.max(parseMaxTime(animationDelayStyle), animationDelay);
|
997
|
+
|
998
|
+
var aDuration = parseMaxTime(elementStyles[ANIMATION_PROP + DURATION_KEY]);
|
999
|
+
|
1000
|
+
if(aDuration > 0) {
|
1001
|
+
aDuration *= parseInt(elementStyles[ANIMATION_PROP + ANIMATION_ITERATION_COUNT_KEY], 10) || 1;
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
animationDuration = Math.max(aDuration, animationDuration);
|
1005
|
+
}
|
1006
|
+
});
|
1007
|
+
data = {
|
1008
|
+
total : 0,
|
1009
|
+
transitionPropertyStyle: transitionPropertyStyle,
|
1010
|
+
transitionDurationStyle: transitionDurationStyle,
|
1011
|
+
transitionDelayStyle: transitionDelayStyle,
|
1012
|
+
transitionDelay: transitionDelay,
|
1013
|
+
transitionDuration: transitionDuration,
|
1014
|
+
animationDelayStyle: animationDelayStyle,
|
1015
|
+
animationDelay: animationDelay,
|
1016
|
+
animationDuration: animationDuration
|
1017
|
+
};
|
1018
|
+
if(cacheKey) {
|
1019
|
+
lookupCache[cacheKey] = data;
|
1020
|
+
}
|
1021
|
+
}
|
1022
|
+
return data;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
function parseMaxTime(str) {
|
1026
|
+
var maxValue = 0;
|
1027
|
+
var values = angular.isString(str) ?
|
1028
|
+
str.split(/\s*,\s*/) :
|
1029
|
+
[];
|
1030
|
+
forEach(values, function(value) {
|
1031
|
+
maxValue = Math.max(parseFloat(value) || 0, maxValue);
|
1032
|
+
});
|
1033
|
+
return maxValue;
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
function getCacheKey(element) {
|
1037
|
+
var parentElement = element.parent();
|
1038
|
+
var parentID = parentElement.data(NG_ANIMATE_PARENT_KEY);
|
1039
|
+
if(!parentID) {
|
1040
|
+
parentElement.data(NG_ANIMATE_PARENT_KEY, ++parentCounter);
|
1041
|
+
parentID = parentCounter;
|
1042
|
+
}
|
1043
|
+
return parentID + '-' + extractElementNode(element).className;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
function animateSetup(element, className) {
|
1047
|
+
var cacheKey = getCacheKey(element);
|
1048
|
+
var eventCacheKey = cacheKey + ' ' + className;
|
1049
|
+
var stagger = {};
|
1050
|
+
var ii = lookupCache[eventCacheKey] ? ++lookupCache[eventCacheKey].total : 0;
|
1051
|
+
|
1052
|
+
if(ii > 0) {
|
1053
|
+
var staggerClassName = className + '-stagger';
|
1054
|
+
var staggerCacheKey = cacheKey + ' ' + staggerClassName;
|
1055
|
+
var applyClasses = !lookupCache[staggerCacheKey];
|
1056
|
+
|
1057
|
+
applyClasses && element.addClass(staggerClassName);
|
1058
|
+
|
1059
|
+
stagger = getElementAnimationDetails(element, staggerCacheKey);
|
1060
|
+
|
1061
|
+
applyClasses && element.removeClass(staggerClassName);
|
1062
|
+
}
|
1063
|
+
|
1064
|
+
element.addClass(className);
|
1065
|
+
|
1066
|
+
var timings = getElementAnimationDetails(element, eventCacheKey);
|
1067
|
+
|
1068
|
+
/* there is no point in performing a reflow if the animation
|
1069
|
+
timeout is empty (this would cause a flicker bug normally
|
1070
|
+
in the page. There is also no point in performing an animation
|
1071
|
+
that only has a delay and no duration */
|
1072
|
+
var maxDelay = Math.max(timings.transitionDelay, timings.animationDelay);
|
1073
|
+
var maxDuration = Math.max(timings.transitionDuration, timings.animationDuration);
|
1074
|
+
if(maxDuration === 0) {
|
1075
|
+
element.removeClass(className);
|
1076
|
+
return false;
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
//temporarily disable the transition so that the enter styles
|
1080
|
+
//don't animate twice (this is here to avoid a bug in Chrome/FF).
|
1081
|
+
var activeClassName = '';
|
1082
|
+
timings.transitionDuration > 0 ?
|
1083
|
+
blockTransitions(element) :
|
1084
|
+
blockKeyframeAnimations(element);
|
1085
|
+
|
1086
|
+
forEach(className.split(' '), function(klass, i) {
|
1087
|
+
activeClassName += (i > 0 ? ' ' : '') + klass + '-active';
|
1088
|
+
});
|
1089
|
+
|
1090
|
+
element.data(NG_ANIMATE_CSS_DATA_KEY, {
|
1091
|
+
className : className,
|
1092
|
+
activeClassName : activeClassName,
|
1093
|
+
maxDuration : maxDuration,
|
1094
|
+
maxDelay : maxDelay,
|
1095
|
+
classes : className + ' ' + activeClassName,
|
1096
|
+
timings : timings,
|
1097
|
+
stagger : stagger,
|
1098
|
+
ii : ii
|
1099
|
+
});
|
1100
|
+
|
1101
|
+
return true;
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
function blockTransitions(element) {
|
1105
|
+
extractElementNode(element).style[TRANSITION_PROP + PROPERTY_KEY] = 'none';
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
function blockKeyframeAnimations(element) {
|
1109
|
+
extractElementNode(element).style[ANIMATION_PROP] = 'none 0s';
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
function unblockTransitions(element) {
|
1113
|
+
var prop = TRANSITION_PROP + PROPERTY_KEY;
|
1114
|
+
var node = extractElementNode(element);
|
1115
|
+
if(node.style[prop] && node.style[prop].length > 0) {
|
1116
|
+
node.style[prop] = '';
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
|
1120
|
+
function unblockKeyframeAnimations(element) {
|
1121
|
+
var prop = ANIMATION_PROP;
|
1122
|
+
var node = extractElementNode(element);
|
1123
|
+
if(node.style[prop] && node.style[prop].length > 0) {
|
1124
|
+
node.style[prop] = '';
|
1125
|
+
}
|
1126
|
+
}
|
1127
|
+
|
1128
|
+
function animateRun(element, className, activeAnimationComplete) {
|
1129
|
+
var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY);
|
1130
|
+
var node = extractElementNode(element);
|
1131
|
+
if(node.className.indexOf(className) == -1 || !elementData) {
|
1132
|
+
activeAnimationComplete();
|
1133
|
+
return;
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
var timings = elementData.timings;
|
1137
|
+
var stagger = elementData.stagger;
|
1138
|
+
var maxDuration = elementData.maxDuration;
|
1139
|
+
var activeClassName = elementData.activeClassName;
|
1140
|
+
var maxDelayTime = Math.max(timings.transitionDelay, timings.animationDelay) * ONE_SECOND;
|
1141
|
+
var startTime = Date.now();
|
1142
|
+
var css3AnimationEvents = ANIMATIONEND_EVENT + ' ' + TRANSITIONEND_EVENT;
|
1143
|
+
var ii = elementData.ii;
|
1144
|
+
|
1145
|
+
var style = '', appliedStyles = [];
|
1146
|
+
if(timings.transitionDuration > 0) {
|
1147
|
+
var propertyStyle = timings.transitionPropertyStyle;
|
1148
|
+
if(propertyStyle.indexOf('all') == -1) {
|
1149
|
+
style += CSS_PREFIX + 'transition-property: ' + propertyStyle + ';';
|
1150
|
+
style += CSS_PREFIX + 'transition-duration: ' + timings.transitionDurationStyle + 's;';
|
1151
|
+
appliedStyles.push(CSS_PREFIX + 'transition-property');
|
1152
|
+
appliedStyles.push(CSS_PREFIX + 'transition-duration');
|
1153
|
+
}
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
if(ii > 0) {
|
1157
|
+
if(stagger.transitionDelay > 0 && stagger.transitionDuration === 0) {
|
1158
|
+
var delayStyle = timings.transitionDelayStyle;
|
1159
|
+
style += CSS_PREFIX + 'transition-delay: ' +
|
1160
|
+
prepareStaggerDelay(delayStyle, stagger.transitionDelay, ii) + '; ';
|
1161
|
+
appliedStyles.push(CSS_PREFIX + 'transition-delay');
|
1162
|
+
}
|
1163
|
+
|
1164
|
+
if(stagger.animationDelay > 0 && stagger.animationDuration === 0) {
|
1165
|
+
style += CSS_PREFIX + 'animation-delay: ' +
|
1166
|
+
prepareStaggerDelay(timings.animationDelayStyle, stagger.animationDelay, ii) + '; ';
|
1167
|
+
appliedStyles.push(CSS_PREFIX + 'animation-delay');
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
if(appliedStyles.length > 0) {
|
1172
|
+
//the element being animated may sometimes contain comment nodes in
|
1173
|
+
//the jqLite object, so we're safe to use a single variable to house
|
1174
|
+
//the styles since there is always only one element being animated
|
1175
|
+
var oldStyle = node.getAttribute('style') || '';
|
1176
|
+
node.setAttribute('style', oldStyle + ' ' + style);
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
element.on(css3AnimationEvents, onAnimationProgress);
|
1180
|
+
element.addClass(activeClassName);
|
1181
|
+
elementData.closeAnimationFn = function() {
|
1182
|
+
onEnd();
|
1183
|
+
activeAnimationComplete();
|
1184
|
+
};
|
1185
|
+
return onEnd;
|
1186
|
+
|
1187
|
+
// This will automatically be called by $animate so
|
1188
|
+
// there is no need to attach this internally to the
|
1189
|
+
// timeout done method.
|
1190
|
+
function onEnd(cancelled) {
|
1191
|
+
element.off(css3AnimationEvents, onAnimationProgress);
|
1192
|
+
element.removeClass(activeClassName);
|
1193
|
+
animateClose(element, className);
|
1194
|
+
var node = extractElementNode(element);
|
1195
|
+
for (var i in appliedStyles) {
|
1196
|
+
node.style.removeProperty(appliedStyles[i]);
|
1197
|
+
}
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
function onAnimationProgress(event) {
|
1201
|
+
event.stopPropagation();
|
1202
|
+
var ev = event.originalEvent || event;
|
1203
|
+
var timeStamp = ev.$manualTimeStamp || ev.timeStamp || Date.now();
|
1204
|
+
|
1205
|
+
/* Firefox (or possibly just Gecko) likes to not round values up
|
1206
|
+
* when a ms measurement is used for the animation */
|
1207
|
+
var elapsedTime = parseFloat(ev.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES));
|
1208
|
+
|
1209
|
+
/* $manualTimeStamp is a mocked timeStamp value which is set
|
1210
|
+
* within browserTrigger(). This is only here so that tests can
|
1211
|
+
* mock animations properly. Real events fallback to event.timeStamp,
|
1212
|
+
* or, if they don't, then a timeStamp is automatically created for them.
|
1213
|
+
* We're checking to see if the timeStamp surpasses the expected delay,
|
1214
|
+
* but we're using elapsedTime instead of the timeStamp on the 2nd
|
1215
|
+
* pre-condition since animations sometimes close off early */
|
1216
|
+
if(Math.max(timeStamp - startTime, 0) >= maxDelayTime && elapsedTime >= maxDuration) {
|
1217
|
+
activeAnimationComplete();
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
function prepareStaggerDelay(delayStyle, staggerDelay, index) {
|
1223
|
+
var style = '';
|
1224
|
+
forEach(delayStyle.split(','), function(val, i) {
|
1225
|
+
style += (i > 0 ? ',' : '') +
|
1226
|
+
(index * staggerDelay + parseInt(val, 10)) + 's';
|
1227
|
+
});
|
1228
|
+
return style;
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
function animateBefore(element, className) {
|
1232
|
+
if(animateSetup(element, className)) {
|
1233
|
+
return function(cancelled) {
|
1234
|
+
cancelled && animateClose(element, className);
|
1235
|
+
};
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
function animateAfter(element, className, afterAnimationComplete) {
|
1240
|
+
if(element.data(NG_ANIMATE_CSS_DATA_KEY)) {
|
1241
|
+
return animateRun(element, className, afterAnimationComplete);
|
1242
|
+
} else {
|
1243
|
+
animateClose(element, className);
|
1244
|
+
afterAnimationComplete();
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
function animate(element, className, animationComplete) {
|
1249
|
+
//If the animateSetup function doesn't bother returning a
|
1250
|
+
//cancellation function then it means that there is no animation
|
1251
|
+
//to perform at all
|
1252
|
+
var preReflowCancellation = animateBefore(element, className);
|
1253
|
+
if(!preReflowCancellation) {
|
1254
|
+
animationComplete();
|
1255
|
+
return;
|
1256
|
+
}
|
1257
|
+
|
1258
|
+
//There are two cancellation functions: one is before the first
|
1259
|
+
//reflow animation and the second is during the active state
|
1260
|
+
//animation. The first function will take care of removing the
|
1261
|
+
//data from the element which will not make the 2nd animation
|
1262
|
+
//happen in the first place
|
1263
|
+
var cancel = preReflowCancellation;
|
1264
|
+
afterReflow(element, function() {
|
1265
|
+
unblockTransitions(element);
|
1266
|
+
unblockKeyframeAnimations(element);
|
1267
|
+
//once the reflow is complete then we point cancel to
|
1268
|
+
//the new cancellation function which will remove all of the
|
1269
|
+
//animation properties from the active animation
|
1270
|
+
cancel = animateAfter(element, className, animationComplete);
|
1271
|
+
});
|
1272
|
+
|
1273
|
+
return function(cancelled) {
|
1274
|
+
(cancel || noop)(cancelled);
|
1275
|
+
};
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
function animateClose(element, className) {
|
1279
|
+
element.removeClass(className);
|
1280
|
+
element.removeData(NG_ANIMATE_CSS_DATA_KEY);
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
return {
|
1284
|
+
allowCancel : function(element, animationEvent, className) {
|
1285
|
+
//always cancel the current animation if it is a
|
1286
|
+
//structural animation
|
1287
|
+
var oldClasses = (element.data(NG_ANIMATE_CSS_DATA_KEY) || {}).classes;
|
1288
|
+
if(!oldClasses || ['enter','leave','move'].indexOf(animationEvent) >= 0) {
|
1289
|
+
return true;
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
var parentElement = element.parent();
|
1293
|
+
var clone = angular.element(extractElementNode(element).cloneNode());
|
1294
|
+
|
1295
|
+
//make the element super hidden and override any CSS style values
|
1296
|
+
clone.attr('style','position:absolute; top:-9999px; left:-9999px');
|
1297
|
+
clone.removeAttr('id');
|
1298
|
+
clone.empty();
|
1299
|
+
|
1300
|
+
forEach(oldClasses.split(' '), function(klass) {
|
1301
|
+
clone.removeClass(klass);
|
1302
|
+
});
|
1303
|
+
|
1304
|
+
var suffix = animationEvent == 'addClass' ? '-add' : '-remove';
|
1305
|
+
clone.addClass(suffixClasses(className, suffix));
|
1306
|
+
parentElement.append(clone);
|
1307
|
+
|
1308
|
+
var timings = getElementAnimationDetails(clone);
|
1309
|
+
clone.remove();
|
1310
|
+
|
1311
|
+
return Math.max(timings.transitionDuration, timings.animationDuration) > 0;
|
1312
|
+
},
|
1313
|
+
|
1314
|
+
enter : function(element, animationCompleted) {
|
1315
|
+
return animate(element, 'ng-enter', animationCompleted);
|
1316
|
+
},
|
1317
|
+
|
1318
|
+
leave : function(element, animationCompleted) {
|
1319
|
+
return animate(element, 'ng-leave', animationCompleted);
|
1320
|
+
},
|
1321
|
+
|
1322
|
+
move : function(element, animationCompleted) {
|
1323
|
+
return animate(element, 'ng-move', animationCompleted);
|
1324
|
+
},
|
1325
|
+
|
1326
|
+
beforeAddClass : function(element, className, animationCompleted) {
|
1327
|
+
var cancellationMethod = animateBefore(element, suffixClasses(className, '-add'));
|
1328
|
+
if(cancellationMethod) {
|
1329
|
+
afterReflow(element, function() {
|
1330
|
+
unblockTransitions(element);
|
1331
|
+
unblockKeyframeAnimations(element);
|
1332
|
+
animationCompleted();
|
1333
|
+
});
|
1334
|
+
return cancellationMethod;
|
1335
|
+
}
|
1336
|
+
animationCompleted();
|
1337
|
+
},
|
1338
|
+
|
1339
|
+
addClass : function(element, className, animationCompleted) {
|
1340
|
+
return animateAfter(element, suffixClasses(className, '-add'), animationCompleted);
|
1341
|
+
},
|
1342
|
+
|
1343
|
+
beforeRemoveClass : function(element, className, animationCompleted) {
|
1344
|
+
var cancellationMethod = animateBefore(element, suffixClasses(className, '-remove'));
|
1345
|
+
if(cancellationMethod) {
|
1346
|
+
afterReflow(element, function() {
|
1347
|
+
unblockTransitions(element);
|
1348
|
+
unblockKeyframeAnimations(element);
|
1349
|
+
animationCompleted();
|
1350
|
+
});
|
1351
|
+
return cancellationMethod;
|
1352
|
+
}
|
1353
|
+
animationCompleted();
|
1354
|
+
},
|
1355
|
+
|
1356
|
+
removeClass : function(element, className, animationCompleted) {
|
1357
|
+
return animateAfter(element, suffixClasses(className, '-remove'), animationCompleted);
|
1358
|
+
}
|
1359
|
+
};
|
1360
|
+
|
1361
|
+
function suffixClasses(classes, suffix) {
|
1362
|
+
var className = '';
|
1363
|
+
classes = angular.isArray(classes) ? classes : classes.split(/\s+/);
|
1364
|
+
forEach(classes, function(klass, i) {
|
1365
|
+
if(klass && klass.length > 0) {
|
1366
|
+
className += (i > 0 ? ' ' : '') + klass + suffix;
|
1367
|
+
}
|
1368
|
+
});
|
1369
|
+
return className;
|
1370
|
+
}
|
1371
|
+
}]);
|
1372
|
+
}]);
|
1373
|
+
|
1374
|
+
|
1375
|
+
})(window, window.angular);
|