ish_lib_assets 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (868) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/images/200x200/devops.png +0 -0
  6. data/app/assets/images/200x200/html5.jpg +0 -0
  7. data/app/assets/images/200x200/nodejs.png +0 -0
  8. data/app/assets/images/200x200/project_management.jpg +0 -0
  9. data/app/assets/images/200x200/ror.jpg +0 -0
  10. data/app/assets/images/200x200/uiux.jpg +0 -0
  11. data/app/assets/images/400x400/contact-us.png +0 -0
  12. data/app/assets/images/400x400/devops.png +0 -0
  13. data/app/assets/images/400x400/html5.jpg +0 -0
  14. data/app/assets/images/400x400/nodejs.png +0 -0
  15. data/app/assets/images/400x400/project_management.jpg +0 -0
  16. data/app/assets/images/400x400/ror.jpg +0 -0
  17. data/app/assets/images/400x400/the-cloud.png +0 -0
  18. data/app/assets/images/400x400/uiux.jpg +0 -0
  19. data/app/assets/images/backgrounds/10.jpg +0 -0
  20. data/app/assets/images/backgrounds/11.jpg +0 -0
  21. data/app/assets/images/backgrounds/12.jpg +0 -0
  22. data/app/assets/images/backgrounds/6.jpg +0 -0
  23. data/app/assets/images/backgrounds/7.jpg +0 -0
  24. data/app/assets/images/backgrounds/8.jpg +0 -0
  25. data/app/assets/images/backgrounds/9.jpg +0 -0
  26. data/app/assets/images/backgrounds/970_grey-blue.png +0 -0
  27. data/app/assets/images/backgrounds/970_white.png +0 -0
  28. data/app/assets/images/backgrounds/970_yellow.png +0 -0
  29. data/app/assets/images/backgrounds/bg-circles.png +0 -0
  30. data/app/assets/images/backgrounds/bg5.jpg +0 -0
  31. data/app/assets/images/backgrounds/bg6.jpg +0 -0
  32. data/app/assets/images/backgrounds/bg_texture_dark.jpg +0 -0
  33. data/app/assets/images/backgrounds/bkg_bg.gif +0 -0
  34. data/app/assets/images/backgrounds/blue-seamless.jpg +0 -0
  35. data/app/assets/images/backgrounds/flower_1.jpg +0 -0
  36. data/app/assets/images/backgrounds/glitch1.jpg +0 -0
  37. data/app/assets/images/backgrounds/glitch2.jpg +0 -0
  38. data/app/assets/images/backgrounds/gray-1.jpg +0 -0
  39. data/app/assets/images/backgrounds/havaianas.jpg +0 -0
  40. data/app/assets/images/backgrounds/light-purple.jpg +0 -0
  41. data/app/assets/images/backgrounds/noise.jpg +0 -0
  42. data/app/assets/images/backgrounds/paper.jpg +0 -0
  43. data/app/assets/images/backgrounds/pattern_011.gif +0 -0
  44. data/app/assets/images/backgrounds/pattern_013.gif +0 -0
  45. data/app/assets/images/backgrounds/pattern_016.gif +0 -0
  46. data/app/assets/images/backgrounds/pattern_020.gif +0 -0
  47. data/app/assets/images/backgrounds/pattern_022.gif +0 -0
  48. data/app/assets/images/backgrounds/pattern_044.gif +0 -0
  49. data/app/assets/images/backgrounds/pattern_062.gif +0 -0
  50. data/app/assets/images/backgrounds/pattern_096.gif +0 -0
  51. data/app/assets/images/backgrounds/pattern_153.gif +0 -0
  52. data/app/assets/images/backgrounds/pattern_154.gif +0 -0
  53. data/app/assets/images/backgrounds/pattern_156.gif +0 -0
  54. data/app/assets/images/backgrounds/pattern_157.gif +0 -0
  55. data/app/assets/images/backgrounds/skull_1.jpg +0 -0
  56. data/app/assets/images/backgrounds/sky.jpg +0 -0
  57. data/app/assets/images/backgrounds/sky2.jpg +0 -0
  58. data/app/assets/images/backgrounds/sky3.jpg +0 -0
  59. data/app/assets/images/backgrounds/sky4.jpg +0 -0
  60. data/app/assets/images/backgrounds/sky5.jpg +0 -0
  61. data/app/assets/images/backgrounds/transparent_40.png +0 -0
  62. data/app/assets/images/backgrounds/transparent_70.png +0 -0
  63. data/app/assets/images/backgrounds/transparent_90.png +0 -0
  64. data/app/assets/images/backgrounds/white-seamless.jpg +0 -0
  65. data/app/assets/images/backgrounds/white_970x5.png +0 -0
  66. data/app/assets/images/backgrounds/white_blue_1.jpg +0 -0
  67. data/app/assets/images/cac/dot-footer.png +0 -0
  68. data/app/assets/images/cac/dot-header.png +0 -0
  69. data/app/assets/images/cac/list-style.png +0 -0
  70. data/app/assets/images/cac/map.png +0 -0
  71. data/app/assets/images/cac/phone.png +0 -0
  72. data/app/assets/images/cac/phone_number.png +0 -0
  73. data/app/assets/images/cac/screenshots/about.png +0 -0
  74. data/app/assets/images/cac/screenshots/contact.png +0 -0
  75. data/app/assets/images/cac/screenshots/home.png +0 -0
  76. data/app/assets/images/cac/screenshots/home.psd +0 -0
  77. data/app/assets/images/cac/screenshots/portfolio.png +0 -0
  78. data/app/assets/images/cac/screenshots/services.png +0 -0
  79. data/app/assets/images/cac/screenshots/team.png +0 -0
  80. data/app/assets/images/cac/sfbay.jpg +0 -0
  81. data/app/assets/images/cac/sprite.png +0 -0
  82. data/app/assets/images/cac/team/lizza.jpg +0 -0
  83. data/app/assets/images/cac/team/lizza_raw.jpg +0 -0
  84. data/app/assets/images/cac/team/piousbox.jpg +0 -0
  85. data/app/assets/images/close.png +0 -0
  86. data/app/assets/images/contact.png +0 -0
  87. data/app/assets/images/controls.png +0 -0
  88. data/app/assets/images/favicon.gif +0 -0
  89. data/app/assets/images/favicons/cac.gif +0 -0
  90. data/app/assets/images/favicons/ish.gif +0 -0
  91. data/app/assets/images/favicons/manager.ico +0 -0
  92. data/app/assets/images/favicons/piousbox.gif +0 -0
  93. data/app/assets/images/favicons/ppf.gif +0 -0
  94. data/app/assets/images/flags/br.png +0 -0
  95. data/app/assets/images/flags/en.png +0 -0
  96. data/app/assets/images/flags/pt.png +0 -0
  97. data/app/assets/images/flags/ru.png +0 -0
  98. data/app/assets/images/flags/us.png +0 -0
  99. data/app/assets/images/grad-hr.png +0 -0
  100. data/app/assets/images/gradient.png +0 -0
  101. data/app/assets/images/icons/100x100/hazard.png +0 -0
  102. data/app/assets/images/icons/100x100/venue.png +0 -0
  103. data/app/assets/images/icons/10x10/thumbs_down.png +0 -0
  104. data/app/assets/images/icons/10x10/thumbs_up.png +0 -0
  105. data/app/assets/images/icons/128x128/manager.png +0 -0
  106. data/app/assets/images/icons/12x12/tag.png +0 -0
  107. data/app/assets/images/icons/14x14/bullet.png +0 -0
  108. data/app/assets/images/icons/16x16/cancel.png +0 -0
  109. data/app/assets/images/icons/16x16/delete.png +0 -0
  110. data/app/assets/images/icons/16x16/expand_down.png +0 -0
  111. data/app/assets/images/icons/16x16/new_16.png +0 -0
  112. data/app/assets/images/icons/16x16/search.png +0 -0
  113. data/app/assets/images/icons/16x16/uploadify-cancel.png +0 -0
  114. data/app/assets/images/icons/20x20/edit.png +0 -0
  115. data/app/assets/images/icons/20x20/email.gif +0 -0
  116. data/app/assets/images/icons/20x20/expand.gif +0 -0
  117. data/app/assets/images/icons/20x20/eye-crossed.png +0 -0
  118. data/app/assets/images/icons/20x20/eye.png +0 -0
  119. data/app/assets/images/icons/20x20/facebook.gif +0 -0
  120. data/app/assets/images/icons/20x20/gmail.gif +0 -0
  121. data/app/assets/images/icons/20x20/java.gif +0 -0
  122. data/app/assets/images/icons/20x20/linkedin.png +0 -0
  123. data/app/assets/images/icons/20x20/lock.gif +0 -0
  124. data/app/assets/images/icons/20x20/new.png +0 -0
  125. data/app/assets/images/icons/20x20/pdf.gif +0 -0
  126. data/app/assets/images/icons/20x20/php.jpg +0 -0
  127. data/app/assets/images/icons/20x20/private.png +0 -0
  128. data/app/assets/images/icons/20x20/private2.png +0 -0
  129. data/app/assets/images/icons/20x20/public.png +0 -0
  130. data/app/assets/images/icons/20x20/public2.png +0 -0
  131. data/app/assets/images/icons/20x20/python.png +0 -0
  132. data/app/assets/images/icons/20x20/search.png +0 -0
  133. data/app/assets/images/icons/20x20/top.gif +0 -0
  134. data/app/assets/images/icons/20x20/trash.png +0 -0
  135. data/app/assets/images/icons/20x20/wiki.gif +0 -0
  136. data/app/assets/images/icons/20x20/wp.gif +0 -0
  137. data/app/assets/images/icons/20x20/youtube.png +0 -0
  138. data/app/assets/images/icons/24x24/configure.png +0 -0
  139. data/app/assets/images/icons/24x24/customize.png +0 -0
  140. data/app/assets/images/icons/24x24/edit.png +0 -0
  141. data/app/assets/images/icons/24x24/trash.png +0 -0
  142. data/app/assets/images/icons/28x28/customize.png +0 -0
  143. data/app/assets/images/icons/28x28/expand.png +0 -0
  144. data/app/assets/images/icons/32x32/comment.png +0 -0
  145. data/app/assets/images/icons/32x32/delicious.png +0 -0
  146. data/app/assets/images/icons/32x32/doc.png +0 -0
  147. data/app/assets/images/icons/32x32/email.png +0 -0
  148. data/app/assets/images/icons/32x32/expand_down.png +0 -0
  149. data/app/assets/images/icons/32x32/facebook.png +0 -0
  150. data/app/assets/images/icons/32x32/github.png +0 -0
  151. data/app/assets/images/icons/32x32/home.png +0 -0
  152. data/app/assets/images/icons/32x32/linkedin.png +0 -0
  153. data/app/assets/images/icons/32x32/list.png +0 -0
  154. data/app/assets/images/icons/32x32/logout.png +0 -0
  155. data/app/assets/images/icons/32x32/manager.png +0 -0
  156. data/app/assets/images/icons/32x32/myspace.png +0 -0
  157. data/app/assets/images/icons/32x32/new.png +0 -0
  158. data/app/assets/images/icons/32x32/new_addritem.png +0 -0
  159. data/app/assets/images/icons/32x32/pdf.png +0 -0
  160. data/app/assets/images/icons/32x32/photos_new.png +0 -0
  161. data/app/assets/images/icons/32x32/print.png +0 -0
  162. data/app/assets/images/icons/32x32/scratchpad.png +0 -0
  163. data/app/assets/images/icons/32x32/search.png +0 -0
  164. data/app/assets/images/icons/32x32/sharethis.png +0 -0
  165. data/app/assets/images/icons/32x32/thumbs_down.png +0 -0
  166. data/app/assets/images/icons/32x32/thumbs_down_2.png +0 -0
  167. data/app/assets/images/icons/32x32/thumbs_up.png +0 -0
  168. data/app/assets/images/icons/32x32/thumbs_up_2.png +0 -0
  169. data/app/assets/images/icons/32x32/trac.gif +0 -0
  170. data/app/assets/images/icons/32x32/trash.png +0 -0
  171. data/app/assets/images/icons/32x32/twitter.png +0 -0
  172. data/app/assets/images/icons/32x32/upload.png +0 -0
  173. data/app/assets/images/icons/32x32/word.png +0 -0
  174. data/app/assets/images/icons/40x40/search_40x40.png +0 -0
  175. data/app/assets/images/icons/48x48/city.png +0 -0
  176. data/app/assets/images/icons/48x48/new_photo.png +0 -0
  177. data/app/assets/images/icons/64x64/extended_forms.png +0 -0
  178. data/app/assets/images/icons/64x64/facebook.png +0 -0
  179. data/app/assets/images/icons/64x64/facebook_flat.png +0 -0
  180. data/app/assets/images/icons/64x64/github.png +0 -0
  181. data/app/assets/images/icons/64x64/github_flat.png +0 -0
  182. data/app/assets/images/icons/64x64/google.png +0 -0
  183. data/app/assets/images/icons/64x64/linkedin.png +0 -0
  184. data/app/assets/images/icons/64x64/linkedin_flat.png +0 -0
  185. data/app/assets/images/icons/64x64/manager.png +0 -0
  186. data/app/assets/images/icons/64x64/my-profile.png +0 -0
  187. data/app/assets/images/icons/64x64/new_addritem.png +0 -0
  188. data/app/assets/images/icons/64x64/new_photo.png +0 -0
  189. data/app/assets/images/icons/64x64/new_report.png +0 -0
  190. data/app/assets/images/icons/64x64/openid.png +0 -0
  191. data/app/assets/images/icons/64x64/rails.png +0 -0
  192. data/app/assets/images/icons/64x64/scratchpad.png +0 -0
  193. data/app/assets/images/icons/64x64/settings.png +0 -0
  194. data/app/assets/images/icons/64x64/twitter.png +0 -0
  195. data/app/assets/images/icons/64x64/yahoo_64.png +0 -0
  196. data/app/assets/images/icons/64x64/youtube_flat.png +0 -0
  197. data/app/assets/images/icons/96x96/doc.png +0 -0
  198. data/app/assets/images/icons/96x96/pdf.png +0 -0
  199. data/app/assets/images/icons/96x96/venue.png +0 -0
  200. data/app/assets/images/icons/delete.png +0 -0
  201. data/app/assets/images/icons/delicious.png +0 -0
  202. data/app/assets/images/icons/edit.png +0 -0
  203. data/app/assets/images/icons/email.gif +0 -0
  204. data/app/assets/images/icons/expand.gif +0 -0
  205. data/app/assets/images/icons/facebook.gif +0 -0
  206. data/app/assets/images/icons/gmail.gif +0 -0
  207. data/app/assets/images/icons/hazard.png +0 -0
  208. data/app/assets/images/icons/new_16.png +0 -0
  209. data/app/assets/images/icons/open.png +0 -0
  210. data/app/assets/images/icons/php.jpg +0 -0
  211. data/app/assets/images/icons/rails.png +0 -0
  212. data/app/assets/images/icons/search_40x40.png +0 -0
  213. data/app/assets/images/icons/tag.png +0 -0
  214. data/app/assets/images/icons/top.gif +0 -0
  215. data/app/assets/images/icons/trash/calendar.png +0 -0
  216. data/app/assets/images/left.png +0 -0
  217. data/app/assets/images/loading-100x100.gif +0 -0
  218. data/app/assets/images/loading.gif +0 -0
  219. data/app/assets/images/login_with_facebook.png +0 -0
  220. data/app/assets/images/logos/100x100/ish.png +0 -0
  221. data/app/assets/images/logos/100x100/ish_logo_100.png +0 -0
  222. data/app/assets/images/logos/100x100/logo100x100.png +0 -0
  223. data/app/assets/images/logos/200x200/ish_logo_200.gif +0 -0
  224. data/app/assets/images/logos/20x20/ish.gif +0 -0
  225. data/app/assets/images/logos/400x400/cac.jpg +0 -0
  226. data/app/assets/images/logos/400x400/ish.png +0 -0
  227. data/app/assets/images/logos/400x400/ish_logo_400.gif +0 -0
  228. data/app/assets/images/logos/400x400/ish_logo_400.jpg +0 -0
  229. data/app/assets/images/logos/400x400/ish_logo_400.png +0 -0
  230. data/app/assets/images/logos/400x400/ish_logo_400.psd +0 -0
  231. data/app/assets/images/logos/40x40/ish.png +0 -0
  232. data/app/assets/images/logos/40x40/ish_logo_40.png +0 -0
  233. data/app/assets/images/logos/45x45/ish.png +0 -0
  234. data/app/assets/images/logos/60x60/logo_60x60.png +0 -0
  235. type_on gray].eps +0 -0
  236. type_on white].eps +0 -0
  237. data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on gray].eps +0 -0
  238. data/app/assets/images/logos/Infinite Shelter/Infinitre Shelter_FINAL [image_on white].eps +0 -0
  239. data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-gray].png +0 -0
  240. data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image-and-type_on-white].png +0 -0
  241. data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-gray].png +0 -0
  242. data/app/assets/images/logos/Infinite Shelter/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
  243. data/app/assets/images/logos/Infinite Shelter/logo100x100.png +0 -0
  244. data/app/assets/images/logos/Infinite Shelter/logo30.jpg +0 -0
  245. data/app/assets/images/logos/Infinite Shelter/logoGray.png +0 -0
  246. data/app/assets/images/logos/Infinite Shelter/logoWhite.png +0 -0
  247. data/app/assets/images/logos/Infinitre-Shelter_FINAL-[image_on-white].png +0 -0
  248. data/app/assets/images/logos/cac.png +0 -0
  249. data/app/assets/images/logos/cac/CAC_logo_02_FINAL.eps +0 -0
  250. data/app/assets/images/logos/cac/cac.jpg +0 -0
  251. data/app/assets/images/logos/cac/cac.png +0 -0
  252. data/app/assets/images/logos/cac_long.jpg +0 -0
  253. data/app/assets/images/logos/ish.png +0 -0
  254. data/app/assets/images/logos/ish_logo_100.png +0 -0
  255. data/app/assets/images/logos/ish_logo_20.gif +0 -0
  256. data/app/assets/images/logos/ish_logo_200.gif +0 -0
  257. data/app/assets/images/logos/ish_logo_40.gif +0 -0
  258. data/app/assets/images/logos/ish_logo_40.png +0 -0
  259. data/app/assets/images/logos/ish_logo_400.gif +0 -0
  260. data/app/assets/images/logos/ish_logo_400.jpg +0 -0
  261. data/app/assets/images/logos/ish_logo_400.png +0 -0
  262. data/app/assets/images/logos/ish_logo_400.psd +0 -0
  263. data/app/assets/images/logos/logo.png +0 -0
  264. data/app/assets/images/logos/logo100x100.png +0 -0
  265. data/app/assets/images/logos/logo_60x60.png +0 -0
  266. data/app/assets/images/logos/organizer.png +0 -0
  267. data/app/assets/images/logos/ppf.gif +0 -0
  268. data/app/assets/images/logos/travel.png +0 -0
  269. data/app/assets/images/logos/travel_guide.png +0 -0
  270. data/app/assets/images/missing.png +0 -0
  271. data/app/assets/images/next.png +0 -0
  272. data/app/assets/images/no_photo.png +0 -0
  273. data/app/assets/images/no_photo_mini.png +0 -0
  274. data/app/assets/images/organizer/blue-arrow-right.png +0 -0
  275. data/app/assets/images/organizer/sprite2.png +0 -0
  276. data/app/assets/images/ppf.gif +0 -0
  277. data/app/assets/images/prev.png +0 -0
  278. data/app/assets/images/resume/language.png +0 -0
  279. data/app/assets/images/resume/main-nav-left.png +0 -0
  280. data/app/assets/images/resume/main-nav-right-active.png +0 -0
  281. data/app/assets/images/resume/main-nav-right.png +0 -0
  282. data/app/assets/images/resume/user-name-left.png +0 -0
  283. data/app/assets/images/resume/user-name-right.png +0 -0
  284. data/app/assets/images/right.png +0 -0
  285. data/app/assets/images/showv/about-us.jpg +0 -0
  286. data/app/assets/images/showv/arrows-ffffff.png +0 -0
  287. data/app/assets/images/showv/dragon_head_bottom.jpg +0 -0
  288. data/app/assets/images/showv/dragon_head_top.jpg +0 -0
  289. data/app/assets/images/showv/menu-border.png +0 -0
  290. data/app/assets/images/showv/shadow.png +0 -0
  291. data/app/assets/images/showv/subhead-bg.png +0 -0
  292. data/app/assets/images/showv/world.jpg +0 -0
  293. data/app/assets/images/src/contact-us.png +0 -0
  294. data/app/assets/images/src/devops-cropped.png +0 -0
  295. data/app/assets/images/src/devops.png +0 -0
  296. data/app/assets/images/src/html5.jpg +0 -0
  297. data/app/assets/images/src/html5_cropped.jpg +0 -0
  298. data/app/assets/images/src/nodejs.png +0 -0
  299. data/app/assets/images/src/nodejs_cropped.png +0 -0
  300. data/app/assets/images/src/project_management.jpg +0 -0
  301. data/app/assets/images/src/ror.jpg +0 -0
  302. data/app/assets/images/src/the-cloud.png +0 -0
  303. data/app/assets/images/src/uiux.jpg +0 -0
  304. data/app/assets/images/venue.png +0 -0
  305. data/app/assets/images/wait.gif +0 -0
  306. data/app/assets/javascripts/application.js +8 -0
  307. data/app/assets/javascripts/application.js~ +8 -0
  308. data/app/assets/javascripts/application_foundation.js +19 -0
  309. data/app/assets/javascripts/ish_lib_assets/application.js +13 -0
  310. data/app/assets/javascripts/photos_multiadd.coffee +35 -0
  311. data/app/assets/javascripts/utils.coffee +36 -0
  312. data/app/assets/stylesheets/application.css +25 -0
  313. data/app/assets/stylesheets/application.css~ +10 -0
  314. data/app/assets/stylesheets/application_foundation/galleries.sass +11 -0
  315. data/app/assets/stylesheets/application_foundation/header_footer.sass +21 -0
  316. data/app/assets/stylesheets/application_foundation/layout.sass +10 -0
  317. data/app/assets/stylesheets/application_foundation/newsitems.sass +20 -0
  318. data/app/assets/stylesheets/application_foundation/reports.sass +16 -0
  319. data/app/assets/stylesheets/application_foundation/users.sass +4 -0
  320. data/app/assets/stylesheets/application_foundation/videos.sass +11 -0
  321. data/app/assets/stylesheets/application_manager.css +6 -0
  322. data/app/assets/stylesheets/application_print.css +6 -0
  323. data/app/assets/stylesheets/application_resume.css +13 -0
  324. data/app/assets/stylesheets/application_resume.css~ +13 -0
  325. data/app/assets/stylesheets/application_resume_2.css +13 -0
  326. data/app/assets/stylesheets/application_resume_2.css~ +13 -0
  327. data/app/assets/stylesheets/common/_ads.sass +77 -0
  328. data/app/assets/stylesheets/common/_maps.sass +63 -0
  329. data/app/assets/stylesheets/common/_rate_this.sass +23 -0
  330. data/app/assets/stylesheets/common/_set_locale.sass +37 -0
  331. data/app/assets/stylesheets/common/blog.sass +7 -0
  332. data/app/assets/stylesheets/common/cities.sass +202 -0
  333. data/app/assets/stylesheets/common/common.sass +111 -0
  334. data/app/assets/stylesheets/common/devise.sass +29 -0
  335. data/app/assets/stylesheets/common/events.sass +9 -0
  336. data/app/assets/stylesheets/common/features.sass +28 -0
  337. data/app/assets/stylesheets/common/form.sass +19 -0
  338. data/app/assets/stylesheets/common/galleries.sass +216 -0
  339. data/app/assets/stylesheets/common/hf2.sass +91 -0
  340. data/app/assets/stylesheets/common/newsitems.sass +31 -0
  341. data/app/assets/stylesheets/common/photos.sass +32 -0
  342. data/app/assets/stylesheets/common/rate_me.sass +8 -0
  343. data/app/assets/stylesheets/common/reports.sass +269 -0
  344. data/app/assets/stylesheets/common/tags.sass +64 -0
  345. data/app/assets/stylesheets/common/trash/blog.sass +7 -0
  346. data/app/assets/stylesheets/common/users.sass +96 -0
  347. data/app/assets/stylesheets/common/users_organizer.sass +31 -0
  348. data/app/assets/stylesheets/common/users_organizer_forms.sass +126 -0
  349. data/app/assets/stylesheets/common/utils.sass +123 -0
  350. data/app/assets/stylesheets/common/vars.sass +44 -0
  351. data/app/assets/stylesheets/common/venues.sass +88 -0
  352. data/app/assets/stylesheets/common/videos.sass +10 -0
  353. data/app/assets/stylesheets/common/welcome.sass +21 -0
  354. data/app/assets/stylesheets/common_2/_maps.sass +63 -0
  355. data/app/assets/stylesheets/common_2/_rate_this.sass +23 -0
  356. data/app/assets/stylesheets/common_2/_set_locale.sass +37 -0
  357. data/app/assets/stylesheets/common_2/common.sass +43 -0
  358. data/app/assets/stylesheets/common_2/hf_application.sass +177 -0
  359. data/app/assets/stylesheets/common_2/hf_application_mini.sass +98 -0
  360. data/app/assets/stylesheets/common_2/photos.sass +5 -0
  361. data/app/assets/stylesheets/common_2/photos.sass~ +12 -0
  362. data/app/assets/stylesheets/common_2/users_organizer.sass +33 -0
  363. data/app/assets/stylesheets/common_2/users_organizer_forms.sass +126 -0
  364. data/app/assets/stylesheets/common_2/vars.sass +235 -0
  365. data/app/assets/stylesheets/ish_lib_assets/application.css +15 -0
  366. data/app/assets/stylesheets/manager/_search.sass +9 -0
  367. data/app/assets/stylesheets/manager/cities.sass +22 -0
  368. data/app/assets/stylesheets/manager/features.sass +5 -0
  369. data/app/assets/stylesheets/manager/galleries.sass +58 -0
  370. data/app/assets/stylesheets/manager/hf.sass +38 -0
  371. data/app/assets/stylesheets/manager/layout_manager.sass +32 -0
  372. data/app/assets/stylesheets/manager/manager.sass +55 -0
  373. data/app/assets/stylesheets/manager/newsitems.sass +3 -0
  374. data/app/assets/stylesheets/manager/photos.sass +19 -0
  375. data/app/assets/stylesheets/manager/reports.sass +66 -0
  376. data/app/assets/stylesheets/manager/sites.sass +27 -0
  377. data/app/assets/stylesheets/manager/tags.sass +34 -0
  378. data/app/assets/stylesheets/manager/users.sass +14 -0
  379. data/app/assets/stylesheets/manager/vars.sass +4 -0
  380. data/app/assets/stylesheets/manager/venues.sass +20 -0
  381. data/app/assets/stylesheets/manager/welcome.sass +13 -0
  382. data/app/assets/stylesheets/print/default.sass +20 -0
  383. data/app/assets/stylesheets/print/vars.sass +3 -0
  384. data/app/assets/stylesheets/resume/github.sass +9 -0
  385. data/app/assets/stylesheets/resume/hf.sass +18 -0
  386. data/app/assets/stylesheets/resume/layout_piousbox.sass +56 -0
  387. data/app/assets/stylesheets/resume/reports.sass +21 -0
  388. data/app/assets/stylesheets/resume/resume.sass +387 -0
  389. data/app/assets/stylesheets/resume/vars.sass +3 -0
  390. data/app/assets/stylesheets/spec_runner.css +5 -0
  391. data/app/controllers/ish_lib_assets/application_controller.rb +5 -0
  392. data/app/helpers/application_helper.rb +96 -0
  393. data/app/helpers/devise_helper.rb +9 -0
  394. data/app/helpers/images_helper.rb +200 -0
  395. data/app/helpers/ish_lib_assets/application_helper.rb +7 -0
  396. data/app/helpers/ish_lib_assets/application_helper.rb~ +7 -0
  397. data/app/views/layouts/ish_lib_assets/application.html.erb +14 -0
  398. data/app/views/templates/_blah_template.haml +2 -0
  399. data/app/views/templates/blah_template.haml~ +0 -0
  400. data/app/views/templates/kaminari/_first_page.haml +9 -0
  401. data/app/views/templates/kaminari/_first_page.haml~ +9 -0
  402. data/app/views/templates/kaminari/_gap.haml +8 -0
  403. data/app/views/templates/kaminari/_last_page.haml +9 -0
  404. data/app/views/templates/kaminari/_last_page.haml~ +9 -0
  405. data/app/views/templates/kaminari/_next_page.haml +9 -0
  406. data/app/views/templates/kaminari/_next_page.haml~ +9 -0
  407. data/app/views/templates/kaminari/_page.haml +10 -0
  408. data/app/views/templates/kaminari/_page.haml~ +10 -0
  409. data/app/views/templates/kaminari/_paginator.haml +18 -0
  410. data/app/views/templates/kaminari/_paginator.haml~ +18 -0
  411. data/app/views/templates/kaminari/_prev_page.haml +9 -0
  412. data/app/views/templates/kaminari/_prev_page.haml~ +9 -0
  413. data/config/routes.rb +2 -0
  414. data/lib/ish_lib_assets.rb +4 -0
  415. data/lib/ish_lib_assets/engine.rb +9 -0
  416. data/lib/ish_lib_assets/engine.rb~ +9 -0
  417. data/lib/ish_lib_assets/version.rb +3 -0
  418. data/lib/ish_lib_assets/version.rb~ +3 -0
  419. data/lib/tasks/ish_lib_assets_tasks.rake +4 -0
  420. data/test/dummy/README.rdoc +28 -0
  421. data/test/dummy/Rakefile +6 -0
  422. data/test/dummy/app/assets/javascripts/application.js +13 -0
  423. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  424. data/test/dummy/app/controllers/application_controller.rb +5 -0
  425. data/test/dummy/app/helpers/application_helper.rb +2 -0
  426. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  427. data/test/dummy/bin/bundle +3 -0
  428. data/test/dummy/bin/rails +4 -0
  429. data/test/dummy/bin/rake +4 -0
  430. data/test/dummy/bin/setup +29 -0
  431. data/test/dummy/config.ru +4 -0
  432. data/test/dummy/config/application.rb +26 -0
  433. data/test/dummy/config/boot.rb +5 -0
  434. data/test/dummy/config/database.yml +25 -0
  435. data/test/dummy/config/environment.rb +5 -0
  436. data/test/dummy/config/environments/development.rb +41 -0
  437. data/test/dummy/config/environments/production.rb +79 -0
  438. data/test/dummy/config/environments/test.rb +42 -0
  439. data/test/dummy/config/initializers/assets.rb +11 -0
  440. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  441. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  442. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  443. data/test/dummy/config/initializers/inflections.rb +16 -0
  444. data/test/dummy/config/initializers/mime_types.rb +4 -0
  445. data/test/dummy/config/initializers/session_store.rb +3 -0
  446. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  447. data/test/dummy/config/locales/en.yml +23 -0
  448. data/test/dummy/config/routes.rb +4 -0
  449. data/test/dummy/config/secrets.yml +22 -0
  450. data/test/dummy/public/404.html +67 -0
  451. data/test/dummy/public/422.html +67 -0
  452. data/test/dummy/public/500.html +66 -0
  453. data/test/dummy/public/favicon.ico +0 -0
  454. data/test/integration/navigation_test.rb +8 -0
  455. data/test/ish_lib_assets_test.rb +7 -0
  456. data/test/test_helper.rb +21 -0
  457. data/vendor/assets/images/close.png +0 -0
  458. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  459. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  460. data/vendor/assets/images/loading.gif +0 -0
  461. data/vendor/assets/images/next.png +0 -0
  462. data/vendor/assets/images/prev.png +0 -0
  463. data/vendor/assets/javascripts/angular.js +14847 -0
  464. data/vendor/assets/javascripts/angular/angular-animate.js +1375 -0
  465. data/vendor/assets/javascripts/angular/angular-cookies.js +202 -0
  466. data/vendor/assets/javascripts/angular/angular-csp.css +13 -0
  467. data/vendor/assets/javascripts/angular/angular-loader.js +410 -0
  468. data/vendor/assets/javascripts/angular/angular-mocks.js +2116 -0
  469. data/vendor/assets/javascripts/angular/angular-resource.js +594 -0
  470. data/vendor/assets/javascripts/angular/angular-route.js +911 -0
  471. data/vendor/assets/javascripts/angular/angular-sanitize.js +622 -0
  472. data/vendor/assets/javascripts/angular/angular-scenario.js +32544 -0
  473. data/vendor/assets/javascripts/angular/angular-touch.js +563 -0
  474. data/vendor/assets/javascripts/angular/angular.js +20539 -0
  475. data/vendor/assets/javascripts/angular/errors.json +1 -0
  476. data/vendor/assets/javascripts/angular/i18n/angular-locale_af-na.js +99 -0
  477. data/vendor/assets/javascripts/angular/i18n/angular-locale_af-za.js +99 -0
  478. data/vendor/assets/javascripts/angular/i18n/angular-locale_af.js +99 -0
  479. data/vendor/assets/javascripts/angular/i18n/angular-locale_am-et.js +99 -0
  480. data/vendor/assets/javascripts/angular/i18n/angular-locale_am.js +99 -0
  481. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-001.js +99 -0
  482. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ae.js +99 -0
  483. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-bh.js +99 -0
  484. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-dz.js +99 -0
  485. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-eg.js +99 -0
  486. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-iq.js +99 -0
  487. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-jo.js +99 -0
  488. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-kw.js +99 -0
  489. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-lb.js +99 -0
  490. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ly.js +99 -0
  491. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ma.js +99 -0
  492. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-om.js +99 -0
  493. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-qa.js +99 -0
  494. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sa.js +99 -0
  495. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sd.js +99 -0
  496. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-sy.js +99 -0
  497. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-tn.js +99 -0
  498. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar-ye.js +99 -0
  499. data/vendor/assets/javascripts/angular/i18n/angular-locale_ar.js +99 -0
  500. data/vendor/assets/javascripts/angular/i18n/angular-locale_bg-bg.js +99 -0
  501. data/vendor/assets/javascripts/angular/i18n/angular-locale_bg.js +99 -0
  502. data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-bd.js +99 -0
  503. data/vendor/assets/javascripts/angular/i18n/angular-locale_bn-in.js +99 -0
  504. data/vendor/assets/javascripts/angular/i18n/angular-locale_bn.js +99 -0
  505. data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-ad.js +99 -0
  506. data/vendor/assets/javascripts/angular/i18n/angular-locale_ca-es.js +99 -0
  507. data/vendor/assets/javascripts/angular/i18n/angular-locale_ca.js +99 -0
  508. data/vendor/assets/javascripts/angular/i18n/angular-locale_cs-cz.js +99 -0
  509. data/vendor/assets/javascripts/angular/i18n/angular-locale_cs.js +99 -0
  510. data/vendor/assets/javascripts/angular/i18n/angular-locale_da-dk.js +99 -0
  511. data/vendor/assets/javascripts/angular/i18n/angular-locale_da.js +99 -0
  512. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-at.js +99 -0
  513. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-be.js +99 -0
  514. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-ch.js +99 -0
  515. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-de.js +99 -0
  516. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-li.js +99 -0
  517. data/vendor/assets/javascripts/angular/i18n/angular-locale_de-lu.js +99 -0
  518. data/vendor/assets/javascripts/angular/i18n/angular-locale_de.js +99 -0
  519. data/vendor/assets/javascripts/angular/i18n/angular-locale_el-cy.js +99 -0
  520. data/vendor/assets/javascripts/angular/i18n/angular-locale_el-gr.js +99 -0
  521. data/vendor/assets/javascripts/angular/i18n/angular-locale_el.js +99 -0
  522. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-as.js +99 -0
  523. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-au.js +99 -0
  524. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bb.js +99 -0
  525. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-be.js +99 -0
  526. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bm.js +99 -0
  527. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bw.js +99 -0
  528. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-bz.js +99 -0
  529. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ca.js +99 -0
  530. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt-us.js +99 -0
  531. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-dsrt.js +99 -0
  532. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-fm.js +99 -0
  533. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gb.js +99 -0
  534. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gu.js +99 -0
  535. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-gy.js +99 -0
  536. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-hk.js +99 -0
  537. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ie.js +99 -0
  538. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-in.js +99 -0
  539. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-iso.js +99 -0
  540. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-jm.js +99 -0
  541. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mh.js +99 -0
  542. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mp.js +99 -0
  543. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mt.js +99 -0
  544. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-mu.js +99 -0
  545. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-na.js +99 -0
  546. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-nz.js +99 -0
  547. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-ph.js +99 -0
  548. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pk.js +99 -0
  549. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pr.js +99 -0
  550. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-pw.js +99 -0
  551. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-sg.js +99 -0
  552. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tc.js +99 -0
  553. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-tt.js +99 -0
  554. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-um.js +99 -0
  555. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-us.js +99 -0
  556. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vg.js +99 -0
  557. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-vi.js +99 -0
  558. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-za.js +99 -0
  559. data/vendor/assets/javascripts/angular/i18n/angular-locale_en-zw.js +99 -0
  560. data/vendor/assets/javascripts/angular/i18n/angular-locale_en.js +99 -0
  561. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-419.js +99 -0
  562. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ar.js +99 -0
  563. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-bo.js +99 -0
  564. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cl.js +99 -0
  565. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-co.js +99 -0
  566. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-cr.js +99 -0
  567. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-do.js +99 -0
  568. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ea.js +99 -0
  569. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ec.js +99 -0
  570. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-es.js +99 -0
  571. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gq.js +99 -0
  572. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-gt.js +99 -0
  573. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-hn.js +99 -0
  574. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ic.js +99 -0
  575. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-mx.js +99 -0
  576. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ni.js +99 -0
  577. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pa.js +99 -0
  578. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pe.js +99 -0
  579. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-pr.js +99 -0
  580. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-py.js +99 -0
  581. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-sv.js +99 -0
  582. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-us.js +99 -0
  583. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-uy.js +99 -0
  584. data/vendor/assets/javascripts/angular/i18n/angular-locale_es-ve.js +99 -0
  585. data/vendor/assets/javascripts/angular/i18n/angular-locale_es.js +99 -0
  586. data/vendor/assets/javascripts/angular/i18n/angular-locale_et-ee.js +99 -0
  587. data/vendor/assets/javascripts/angular/i18n/angular-locale_et.js +99 -0
  588. data/vendor/assets/javascripts/angular/i18n/angular-locale_eu-es.js +99 -0
  589. data/vendor/assets/javascripts/angular/i18n/angular-locale_eu.js +99 -0
  590. data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-af.js +99 -0
  591. data/vendor/assets/javascripts/angular/i18n/angular-locale_fa-ir.js +99 -0
  592. data/vendor/assets/javascripts/angular/i18n/angular-locale_fa.js +99 -0
  593. data/vendor/assets/javascripts/angular/i18n/angular-locale_fi-fi.js +99 -0
  594. data/vendor/assets/javascripts/angular/i18n/angular-locale_fi.js +99 -0
  595. data/vendor/assets/javascripts/angular/i18n/angular-locale_fil-ph.js +99 -0
  596. data/vendor/assets/javascripts/angular/i18n/angular-locale_fil.js +99 -0
  597. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-be.js +99 -0
  598. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bf.js +99 -0
  599. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bi.js +99 -0
  600. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bj.js +99 -0
  601. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-bl.js +99 -0
  602. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ca.js +99 -0
  603. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cd.js +99 -0
  604. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cf.js +99 -0
  605. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cg.js +99 -0
  606. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ch.js +99 -0
  607. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ci.js +99 -0
  608. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-cm.js +99 -0
  609. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-dj.js +99 -0
  610. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-fr.js +99 -0
  611. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ga.js +99 -0
  612. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gf.js +99 -0
  613. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gn.js +99 -0
  614. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gp.js +99 -0
  615. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-gq.js +99 -0
  616. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-km.js +99 -0
  617. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-lu.js +99 -0
  618. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mc.js +99 -0
  619. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mf.js +99 -0
  620. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mg.js +99 -0
  621. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ml.js +99 -0
  622. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-mq.js +99 -0
  623. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-ne.js +99 -0
  624. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-re.js +99 -0
  625. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr-yt.js +99 -0
  626. data/vendor/assets/javascripts/angular/i18n/angular-locale_fr.js +99 -0
  627. data/vendor/assets/javascripts/angular/i18n/angular-locale_gl-es.js +99 -0
  628. data/vendor/assets/javascripts/angular/i18n/angular-locale_gl.js +99 -0
  629. data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw-ch.js +99 -0
  630. data/vendor/assets/javascripts/angular/i18n/angular-locale_gsw.js +99 -0
  631. data/vendor/assets/javascripts/angular/i18n/angular-locale_gu-in.js +99 -0
  632. data/vendor/assets/javascripts/angular/i18n/angular-locale_gu.js +99 -0
  633. data/vendor/assets/javascripts/angular/i18n/angular-locale_he-il.js +99 -0
  634. data/vendor/assets/javascripts/angular/i18n/angular-locale_he.js +99 -0
  635. data/vendor/assets/javascripts/angular/i18n/angular-locale_hi-in.js +99 -0
  636. data/vendor/assets/javascripts/angular/i18n/angular-locale_hi.js +99 -0
  637. data/vendor/assets/javascripts/angular/i18n/angular-locale_hr-hr.js +99 -0
  638. data/vendor/assets/javascripts/angular/i18n/angular-locale_hr.js +99 -0
  639. data/vendor/assets/javascripts/angular/i18n/angular-locale_hu-hu.js +99 -0
  640. data/vendor/assets/javascripts/angular/i18n/angular-locale_hu.js +99 -0
  641. data/vendor/assets/javascripts/angular/i18n/angular-locale_id-id.js +99 -0
  642. data/vendor/assets/javascripts/angular/i18n/angular-locale_id.js +99 -0
  643. data/vendor/assets/javascripts/angular/i18n/angular-locale_in.js +99 -0
  644. data/vendor/assets/javascripts/angular/i18n/angular-locale_is-is.js +99 -0
  645. data/vendor/assets/javascripts/angular/i18n/angular-locale_is.js +99 -0
  646. data/vendor/assets/javascripts/angular/i18n/angular-locale_it-it.js +99 -0
  647. data/vendor/assets/javascripts/angular/i18n/angular-locale_it-sm.js +99 -0
  648. data/vendor/assets/javascripts/angular/i18n/angular-locale_it.js +99 -0
  649. data/vendor/assets/javascripts/angular/i18n/angular-locale_iw.js +99 -0
  650. data/vendor/assets/javascripts/angular/i18n/angular-locale_ja-jp.js +99 -0
  651. data/vendor/assets/javascripts/angular/i18n/angular-locale_ja.js +99 -0
  652. data/vendor/assets/javascripts/angular/i18n/angular-locale_kn-in.js +99 -0
  653. data/vendor/assets/javascripts/angular/i18n/angular-locale_kn.js +99 -0
  654. data/vendor/assets/javascripts/angular/i18n/angular-locale_ko-kr.js +99 -0
  655. data/vendor/assets/javascripts/angular/i18n/angular-locale_ko.js +99 -0
  656. data/vendor/assets/javascripts/angular/i18n/angular-locale_ln-cd.js +99 -0
  657. data/vendor/assets/javascripts/angular/i18n/angular-locale_ln.js +99 -0
  658. data/vendor/assets/javascripts/angular/i18n/angular-locale_lt-lt.js +99 -0
  659. data/vendor/assets/javascripts/angular/i18n/angular-locale_lt.js +99 -0
  660. data/vendor/assets/javascripts/angular/i18n/angular-locale_lv-lv.js +99 -0
  661. data/vendor/assets/javascripts/angular/i18n/angular-locale_lv.js +99 -0
  662. data/vendor/assets/javascripts/angular/i18n/angular-locale_ml-in.js +99 -0
  663. data/vendor/assets/javascripts/angular/i18n/angular-locale_ml.js +99 -0
  664. data/vendor/assets/javascripts/angular/i18n/angular-locale_mr-in.js +99 -0
  665. data/vendor/assets/javascripts/angular/i18n/angular-locale_mr.js +99 -0
  666. data/vendor/assets/javascripts/angular/i18n/angular-locale_ms-my.js +99 -0
  667. data/vendor/assets/javascripts/angular/i18n/angular-locale_ms.js +99 -0
  668. data/vendor/assets/javascripts/angular/i18n/angular-locale_mt-mt.js +99 -0
  669. data/vendor/assets/javascripts/angular/i18n/angular-locale_mt.js +99 -0
  670. data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-cw.js +99 -0
  671. data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-nl.js +99 -0
  672. data/vendor/assets/javascripts/angular/i18n/angular-locale_nl-sx.js +99 -0
  673. data/vendor/assets/javascripts/angular/i18n/angular-locale_nl.js +99 -0
  674. data/vendor/assets/javascripts/angular/i18n/angular-locale_no.js +99 -0
  675. data/vendor/assets/javascripts/angular/i18n/angular-locale_or-in.js +99 -0
  676. data/vendor/assets/javascripts/angular/i18n/angular-locale_or.js +99 -0
  677. data/vendor/assets/javascripts/angular/i18n/angular-locale_pl-pl.js +99 -0
  678. data/vendor/assets/javascripts/angular/i18n/angular-locale_pl.js +99 -0
  679. data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-br.js +99 -0
  680. data/vendor/assets/javascripts/angular/i18n/angular-locale_pt-pt.js +99 -0
  681. data/vendor/assets/javascripts/angular/i18n/angular-locale_pt.js +99 -0
  682. data/vendor/assets/javascripts/angular/i18n/angular-locale_ro-ro.js +99 -0
  683. data/vendor/assets/javascripts/angular/i18n/angular-locale_ro.js +99 -0
  684. data/vendor/assets/javascripts/angular/i18n/angular-locale_ru-ru.js +99 -0
  685. data/vendor/assets/javascripts/angular/i18n/angular-locale_ru.js +99 -0
  686. data/vendor/assets/javascripts/angular/i18n/angular-locale_sk-sk.js +99 -0
  687. data/vendor/assets/javascripts/angular/i18n/angular-locale_sk.js +99 -0
  688. data/vendor/assets/javascripts/angular/i18n/angular-locale_sl-si.js +99 -0
  689. data/vendor/assets/javascripts/angular/i18n/angular-locale_sl.js +99 -0
  690. data/vendor/assets/javascripts/angular/i18n/angular-locale_sq-al.js +99 -0
  691. data/vendor/assets/javascripts/angular/i18n/angular-locale_sq.js +99 -0
  692. data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-cyrl-rs.js +99 -0
  693. data/vendor/assets/javascripts/angular/i18n/angular-locale_sr-latn-rs.js +99 -0
  694. data/vendor/assets/javascripts/angular/i18n/angular-locale_sr.js +99 -0
  695. data/vendor/assets/javascripts/angular/i18n/angular-locale_sv-se.js +99 -0
  696. data/vendor/assets/javascripts/angular/i18n/angular-locale_sv.js +99 -0
  697. data/vendor/assets/javascripts/angular/i18n/angular-locale_sw-tz.js +99 -0
  698. data/vendor/assets/javascripts/angular/i18n/angular-locale_sw.js +99 -0
  699. data/vendor/assets/javascripts/angular/i18n/angular-locale_ta-in.js +99 -0
  700. data/vendor/assets/javascripts/angular/i18n/angular-locale_ta.js +99 -0
  701. data/vendor/assets/javascripts/angular/i18n/angular-locale_te-in.js +99 -0
  702. data/vendor/assets/javascripts/angular/i18n/angular-locale_te.js +99 -0
  703. data/vendor/assets/javascripts/angular/i18n/angular-locale_th-th.js +99 -0
  704. data/vendor/assets/javascripts/angular/i18n/angular-locale_th.js +99 -0
  705. data/vendor/assets/javascripts/angular/i18n/angular-locale_tl.js +99 -0
  706. data/vendor/assets/javascripts/angular/i18n/angular-locale_tr-tr.js +99 -0
  707. data/vendor/assets/javascripts/angular/i18n/angular-locale_tr.js +99 -0
  708. data/vendor/assets/javascripts/angular/i18n/angular-locale_uk-ua.js +99 -0
  709. data/vendor/assets/javascripts/angular/i18n/angular-locale_uk.js +99 -0
  710. data/vendor/assets/javascripts/angular/i18n/angular-locale_ur-pk.js +99 -0
  711. data/vendor/assets/javascripts/angular/i18n/angular-locale_ur.js +99 -0
  712. data/vendor/assets/javascripts/angular/i18n/angular-locale_vi-vn.js +99 -0
  713. data/vendor/assets/javascripts/angular/i18n/angular-locale_vi.js +99 -0
  714. data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-cn.js +99 -0
  715. data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hans-cn.js +99 -0
  716. data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-hk.js +99 -0
  717. data/vendor/assets/javascripts/angular/i18n/angular-locale_zh-tw.js +99 -0
  718. data/vendor/assets/javascripts/angular/i18n/angular-locale_zh.js +99 -0
  719. data/vendor/assets/javascripts/angular/i18n/angular-locale_zu-za.js +99 -0
  720. data/vendor/assets/javascripts/angular/i18n/angular-locale_zu.js +99 -0
  721. data/vendor/assets/javascripts/angular/version.json +1 -0
  722. data/vendor/assets/javascripts/angular/version.txt +1 -0
  723. data/vendor/assets/javascripts/custom.modernizr.js +4 -0
  724. data/vendor/assets/javascripts/fancybox/blank.gif +0 -0
  725. data/vendor/assets/javascripts/fancybox/fancybox_loading.gif +0 -0
  726. data/vendor/assets/javascripts/fancybox/fancybox_loading@2x.gif +0 -0
  727. data/vendor/assets/javascripts/fancybox/fancybox_overlay.png +0 -0
  728. data/vendor/assets/javascripts/fancybox/fancybox_sprite.png +0 -0
  729. data/vendor/assets/javascripts/fancybox/fancybox_sprite@2x.png +0 -0
  730. data/vendor/assets/javascripts/fancybox/helpers/fancybox_buttons.png +0 -0
  731. data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.css +97 -0
  732. data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-buttons.js +122 -0
  733. data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-media.js +199 -0
  734. data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.css +55 -0
  735. data/vendor/assets/javascripts/fancybox/helpers/jquery.fancybox-thumbs.js +162 -0
  736. data/vendor/assets/javascripts/fancybox/jquery.fancybox.css +274 -0
  737. data/vendor/assets/javascripts/fancybox/jquery.fancybox.js +2020 -0
  738. data/vendor/assets/javascripts/fancybox/jquery.fancybox.pack.js +46 -0
  739. data/vendor/assets/javascripts/fastclick.js +761 -0
  740. data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.js +8921 -0
  741. data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/foundation.min.js +4 -0
  742. data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/jquery.js +9842 -0
  743. data/vendor/assets/javascripts/foundation/foundation-6.2.1-complete/what-input.js +295 -0
  744. data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
  745. data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
  746. data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
  747. data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
  748. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
  749. data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
  750. data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
  751. data/vendor/assets/javascripts/foundation/foundation.js +8921 -0
  752. data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
  753. data/vendor/assets/javascripts/foundation/foundation.min.js +10 -0
  754. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
  755. data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
  756. data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
  757. data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
  758. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
  759. data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
  760. data/vendor/assets/javascripts/jasmine/assert.coffee +62 -0
  761. data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/MIT.LICENSE +20 -0
  762. data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine-html.js +190 -0
  763. data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.css +166 -0
  764. data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine.js +2476 -0
  765. data/vendor/assets/javascripts/jasmine/jasmine-1.1.0/jasmine_favicon.png +0 -0
  766. data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/MIT.LICENSE +20 -0
  767. data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine-html.js +681 -0
  768. data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.css +82 -0
  769. data/vendor/assets/javascripts/jasmine/jasmine-1.3.1/jasmine.js +2600 -0
  770. data/vendor/assets/javascripts/jquery-file-upload/README.md +68 -0
  771. data/vendor/assets/javascripts/jquery-file-upload/application.js +79 -0
  772. data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.postmessage-transport.js +117 -0
  773. data/vendor/assets/javascripts/jquery-file-upload/cors/jquery.xdr-transport.js +85 -0
  774. data/vendor/assets/javascripts/jquery-file-upload/cors/postmessage.html +75 -0
  775. data/vendor/assets/javascripts/jquery-file-upload/cors/result.html +20 -0
  776. data/vendor/assets/javascripts/jquery-file-upload/index.html +176 -0
  777. data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload-ui.js +547 -0
  778. data/vendor/assets/javascripts/jquery-file-upload/jquery.fileupload.js +1477 -0
  779. data/vendor/assets/javascripts/jquery-file-upload/jquery.iframe-transport.js +217 -0
  780. data/vendor/assets/javascripts/jquery-file-upload/jquery.ui.widget.js +572 -0
  781. data/vendor/assets/javascripts/jquery-file-upload/package.json +60 -0
  782. data/vendor/assets/javascripts/jquery-file-upload/progressbar.gif +0 -0
  783. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app.yaml +12 -0
  784. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/app/main.go +360 -0
  785. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/resize/resize.go +246 -0
  786. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/favicon.ico +0 -0
  787. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-go/static/robots.txt +2 -0
  788. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/app.yaml +16 -0
  789. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/main.py +145 -0
  790. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/favicon.ico +0 -0
  791. data/vendor/assets/javascripts/jquery-file-upload/trash/gae-python/static/robots.txt +2 -0
  792. data/vendor/assets/javascripts/jquery-file-upload/trash/php/index.php +384 -0
  793. data/vendor/assets/javascripts/jquery-file-upload/trash/test/index.html +105 -0
  794. data/vendor/assets/javascripts/jquery-file-upload/trash/test/test.js +1116 -0
  795. data/vendor/assets/javascripts/jquery-file-upload/vendor/jquery.ui.widget.js +282 -0
  796. data/vendor/assets/javascripts/jquery/jquery-1.7.1.js +9266 -0
  797. data/vendor/assets/javascripts/jquery/jquery-1.7.1.min.js +4 -0
  798. data/vendor/assets/javascripts/jquery/jquery-2.2.2.js +9842 -0
  799. data/vendor/assets/javascripts/jquery/jquery-ui.min.js +13 -0
  800. data/vendor/assets/javascripts/jquery/jquery-uploadify.js +986 -0
  801. data/vendor/assets/javascripts/jquery/jquery.autocomplete.js +645 -0
  802. data/vendor/assets/javascripts/jquery/jquery.cookie.js +107 -0
  803. data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.js +409 -0
  804. data/vendor/assets/javascripts/jquery/jquery.infinitecarousel3.min.js +10 -0
  805. data/vendor/assets/javascripts/jquery/jquery.js +9842 -0
  806. data/vendor/assets/javascripts/json2.js +482 -0
  807. data/vendor/assets/javascripts/mustache.js +536 -0
  808. data/vendor/assets/javascripts/order.js +189 -0
  809. data/vendor/assets/javascripts/placeholder.js +426 -0
  810. data/vendor/assets/javascripts/rails.js +393 -0
  811. data/vendor/assets/javascripts/share_this.js +3 -0
  812. data/vendor/assets/javascripts/underscore.js +999 -0
  813. data/vendor/assets/javascripts/what-input.js +295 -0
  814. data/vendor/assets/stylesheets/fancybox/jquery.fancybox.css +274 -0
  815. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/app.css +0 -0
  816. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.css +4148 -0
  817. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/css/foundation.min.css +2 -0
  818. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/index.html +169 -0
  819. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/app.js +1 -0
  820. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.js +8921 -0
  821. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/foundation.min.js +4 -0
  822. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/jquery.js +9842 -0
  823. data/vendor/assets/stylesheets/foundation/foundation-6.2.1-complete/js/vendor/what-input.js +295 -0
  824. data/vendor/assets/stylesheets/foundation/foundation.css +4148 -0
  825. data/vendor/assets/stylesheets/jquery-file-upload/jquery.fileupload-ui.css +56 -0
  826. data/vendor/assets/stylesheets/reset-min.css +2 -0
  827. data/vendor/assets/stylesheets/trash/active_admin.css.scss +32 -0
  828. data/vendor/assets/stylesheets/trash/bootstrap-responsive.css +1092 -0
  829. data/vendor/assets/stylesheets/trash/bootstrap-responsive.min.css +9 -0
  830. data/vendor/assets/stylesheets/trash/bootstrap.css +6039 -0
  831. data/vendor/assets/stylesheets/trash/bootstrap.min.css +9 -0
  832. data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.css +5331 -0
  833. data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/foundation.min.css +1 -0
  834. data/vendor/assets/stylesheets/trash/foundation-5.0.2/css/normalize.css +410 -0
  835. data/vendor/assets/stylesheets/trash/foundation-5.0.2/index.html +166 -0
  836. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation.min.js +10 -0
  837. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.abide.js +201 -0
  838. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.accordion.js +41 -0
  839. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.alert.js +34 -0
  840. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.clearing.js +450 -0
  841. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.dropdown.js +184 -0
  842. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.interchange.js +304 -0
  843. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.joyride.js +839 -0
  844. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.js +416 -0
  845. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.magellan.js +118 -0
  846. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.offcanvas.js +37 -0
  847. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.orbit.js +434 -0
  848. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.reveal.js +347 -0
  849. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tab.js +37 -0
  850. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.tooltip.js +202 -0
  851. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/foundation/foundation.topbar.js +380 -0
  852. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/jquery.js +8829 -0
  853. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/modernizr.js +4 -0
  854. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/custom.modernizr.js +4 -0
  855. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/fastclick.js +761 -0
  856. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.autocomplete.js +645 -0
  857. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.cookie.js +107 -0
  858. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/jquery.js +8829 -0
  859. data/vendor/assets/stylesheets/trash/foundation-5.0.2/js/vendor/placeholder.js +426 -0
  860. data/vendor/assets/stylesheets/trash/foundation-5.css +5331 -0
  861. data/vendor/assets/stylesheets/trash/foundation.min.css +1 -0
  862. data/vendor/assets/stylesheets/trash/grid.css +280 -0
  863. data/vendor/assets/stylesheets/trash/lightbox.css +210 -0
  864. data/vendor/assets/stylesheets/trash/normalize.css +410 -0
  865. data/vendor/assets/stylesheets/trash/scaffolds.css.scss +69 -0
  866. data/vendor/assets/stylesheets/trash/screen.css +858 -0
  867. data/vendor/assets/stylesheets/trash/uploadify.css +92 -0
  868. 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 { } /&#42; starting animations for enter &#42;/
54
+ * .slide.ng-enter-active { } /&#42; terminal animations for enter &#42;/
55
+ * .slide.ng-leave { } /&#42; starting animations for leave &#42;/
56
+ * .slide.ng-leave-active { } /&#42; terminal animations for leave &#42;/
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
+ * /&#42;
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
+ * &#42;/
82
+ * .reveal-animation.ng-enter {
83
+ * -webkit-transition: 1s linear all; /&#42; Safari/Chrome &#42;/
84
+ * transition: 1s linear all; /&#42; All other modern browsers and IE10+ &#42;/
85
+ *
86
+ * /&#42; The animation preparation code &#42;/
87
+ * opacity: 0;
88
+ * }
89
+ *
90
+ * /&#42;
91
+ * Keep in mind that you want to combine both CSS
92
+ * classes together to avoid any CSS-specificity
93
+ * conflicts
94
+ * &#42;/
95
+ * .reveal-animation.ng-enter.ng-enter-active {
96
+ * /&#42; The animation code itself &#42;/
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; /&#42; Safari/Chrome &#42;/
112
+ * animation: enter_sequence 1s linear; /&#42; IE10+ and Future Browsers &#42;/
113
+ * }
114
+ * &#64-webkit-keyframes enter_sequence {
115
+ * from { opacity:0; }
116
+ * to { opacity:1; }
117
+ * }
118
+ * &#64keyframes 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
+ * /&#42; standard transition code &#42;/
148
+ * -webkit-transition: 1s linear all;
149
+ * transition: 1s linear all;
150
+ * opacity:0;
151
+ * }
152
+ * .my-animation.ng-enter-stagger {
153
+ * /&#42; this will have a 100ms delay between each successive leave animation &#42;/
154
+ * -webkit-transition-delay: 0.1s;
155
+ * transition-delay: 0.1s;
156
+ *
157
+ * /&#42; in case the stagger doesn't work then these two values
158
+ * must be set to 0 to avoid an accidental CSS inheritance &#42;/
159
+ * -webkit-transition-duration: 0s;
160
+ * transition-duration: 0s;
161
+ * }
162
+ * .my-animation.ng-enter.ng-enter-active {
163
+ * /&#42; standard transition styles &#42;/
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);