todo_rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (426) hide show
  1. checksums.yaml +4 -4
  2. data/lib/todo_rails/version.rb +1 -1
  3. data/vendor/assets/bower.json +8 -0
  4. data/vendor/assets/bower_components/angular-animate/README.md +68 -0
  5. data/vendor/assets/bower_components/angular-animate/angular-animate.js +3721 -0
  6. data/vendor/assets/bower_components/angular-animate/angular-animate.min.js +52 -0
  7. data/vendor/assets/bower_components/angular-animate/angular-animate.min.js.map +8 -0
  8. data/vendor/assets/bower_components/angular-animate/bower.json +9 -0
  9. data/vendor/assets/bower_components/angular-animate/index.js +2 -0
  10. data/vendor/assets/bower_components/angular-animate/package.json +26 -0
  11. data/vendor/assets/bower_components/angular-aria/README.md +67 -0
  12. data/vendor/assets/bower_components/angular-aria/angular-aria.js +393 -0
  13. data/vendor/assets/bower_components/angular-aria/angular-aria.min.js +13 -0
  14. data/vendor/assets/bower_components/angular-aria/angular-aria.min.js.map +8 -0
  15. data/vendor/assets/bower_components/angular-aria/bower.json +9 -0
  16. data/vendor/assets/bower_components/angular-aria/index.js +2 -0
  17. data/vendor/assets/bower_components/angular-aria/package.json +27 -0
  18. data/vendor/assets/bower_components/angular-material/CHANGELOG.md +1599 -0
  19. data/vendor/assets/bower_components/angular-material/LICENSE +21 -0
  20. data/vendor/assets/bower_components/angular-material/README.md +211 -0
  21. data/vendor/assets/bower_components/angular-material/angular-material-mocks.js +77 -0
  22. data/vendor/assets/bower_components/angular-material/angular-material.css +7183 -0
  23. data/vendor/assets/bower_components/angular-material/angular-material.js +15406 -0
  24. data/vendor/assets/bower_components/angular-material/angular-material.min.css +6 -0
  25. data/vendor/assets/bower_components/angular-material/angular-material.min.js +14 -0
  26. data/vendor/assets/bower_components/angular-material/bower.json +14 -0
  27. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg +1 -0
  28. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg +1 -0
  29. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg +1 -0
  30. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg +1 -0
  31. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg +1 -0
  32. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg +1 -0
  33. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg +1 -0
  34. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg +1 -0
  35. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg +2 -0
  36. data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg +1 -0
  37. data/vendor/assets/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss +39 -0
  38. data/vendor/assets/bower_components/angular-material/demos/chips/demoContactChips/style.scss +47 -0
  39. data/vendor/assets/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss +75 -0
  40. data/vendor/assets/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss +78 -0
  41. data/vendor/assets/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss +0 -0
  42. data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg +1 -0
  43. data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg +1 -0
  44. data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg +1 -0
  45. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg +1 -0
  46. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg +26 -0
  47. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg +26 -0
  48. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg +1 -0
  49. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg +1 -0
  50. data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg +1 -0
  51. data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg +1 -0
  52. data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg +1 -0
  53. data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg +26 -0
  54. data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg +4 -0
  55. data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg +4 -0
  56. data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg +4 -0
  57. data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg +4 -0
  58. data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/style.scss +18 -0
  59. data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpeg +0 -0
  60. data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpeg +0 -0
  61. data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpeg +0 -0
  62. data/vendor/assets/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss +13 -0
  63. data/vendor/assets/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss +44 -0
  64. data/vendor/assets/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss +25 -0
  65. data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg +4 -0
  66. data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg +4 -0
  67. data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg +4 -0
  68. data/vendor/assets/bower_components/angular-material/index.js +12 -0
  69. data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css +24 -0
  70. data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css +220 -0
  71. data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js +951 -0
  72. data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css +9 -0
  73. data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop.css +59 -0
  74. data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop.js +38 -0
  75. data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css +16 -0
  76. data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css +170 -0
  77. data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js +267 -0
  78. data/vendor/assets/bower_components/angular-material/modules/closure/button/button-default-theme.css +94 -0
  79. data/vendor/assets/bower_components/angular-material/modules/closure/button/button.css +158 -0
  80. data/vendor/assets/bower_components/angular-material/modules/closure/button/button.js +135 -0
  81. data/vendor/assets/bower_components/angular-material/modules/closure/card/card-default-theme.css +12 -0
  82. data/vendor/assets/bower_components/angular-material/modules/closure/card/card.css +34 -0
  83. data/vendor/assets/bower_components/angular-material/modules/closure/card/card.js +84 -0
  84. data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css +47 -0
  85. data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox.css +124 -0
  86. data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox.js +166 -0
  87. data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips-default-theme.css +24 -0
  88. data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips.css +131 -0
  89. data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips.js +949 -0
  90. data/vendor/assets/bower_components/angular-material/modules/closure/content/content-default-theme.css +9 -0
  91. data/vendor/assets/bower_components/angular-material/modules/closure/content/content.css +20 -0
  92. data/vendor/assets/bower_components/angular-material/modules/closure/content/content.js +84 -0
  93. data/vendor/assets/bower_components/angular-material/modules/closure/core/core.css +2594 -0
  94. data/vendor/assets/bower_components/angular-material/modules/closure/core/core.js +3772 -0
  95. data/vendor/assets/bower_components/angular-material/modules/closure/core/default-theme.js +4 -0
  96. data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css +12 -0
  97. data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog.css +111 -0
  98. data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog.js +713 -0
  99. data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider-default-theme.css +9 -0
  100. data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider.css +14 -0
  101. data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider.js +45 -0
  102. data/vendor/assets/bower_components/angular-material/modules/closure/fabActions/fabActions.js +57 -0
  103. data/vendor/assets/bower_components/angular-material/modules/closure/fabSpeedDial/fabSpeedDial.css +100 -0
  104. data/vendor/assets/bower_components/angular-material/modules/closure/fabSpeedDial/fabSpeedDial.js +236 -0
  105. data/vendor/assets/bower_components/angular-material/modules/closure/fabToolbar/fabToolbar.css +74 -0
  106. data/vendor/assets/bower_components/angular-material/modules/closure/fabToolbar/fabToolbar.js +218 -0
  107. data/vendor/assets/bower_components/angular-material/modules/closure/fabTrigger/fabTrigger.js +54 -0
  108. data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css +6 -0
  109. data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList.css +68 -0
  110. data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList.js +762 -0
  111. data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon-default-theme.css +15 -0
  112. data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon.css +20 -0
  113. data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon.js +783 -0
  114. data/vendor/assets/bower_components/angular-material/modules/closure/input/input-default-theme.css +46 -0
  115. data/vendor/assets/bower_components/angular-material/modules/closure/input/input.css +162 -0
  116. data/vendor/assets/bower_components/angular-material/modules/closure/input/input.js +371 -0
  117. data/vendor/assets/bower_components/angular-material/modules/closure/list/list-default-theme.css +23 -0
  118. data/vendor/assets/bower_components/angular-material/modules/closure/list/list.css +147 -0
  119. data/vendor/assets/bower_components/angular-material/modules/closure/list/list.js +273 -0
  120. data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu-default-theme.css +11 -0
  121. data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu.css +121 -0
  122. data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu.js +620 -0
  123. data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css +36 -0
  124. data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css +1409 -0
  125. data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js +109 -0
  126. data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css +27 -0
  127. data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css +287 -0
  128. data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js +126 -0
  129. data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css +47 -0
  130. data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton.css +91 -0
  131. data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton.js +312 -0
  132. data/vendor/assets/bower_components/angular-material/modules/closure/select/select-default-theme.css +42 -0
  133. data/vendor/assets/bower_components/angular-material/modules/closure/select/select.css +170 -0
  134. data/vendor/assets/bower_components/angular-material/modules/closure/select/select.js +1055 -0
  135. data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css +9 -0
  136. data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav.css +99 -0
  137. data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav.js +424 -0
  138. data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider-default-theme.css +56 -0
  139. data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider.css +220 -0
  140. data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider.js +403 -0
  141. data/vendor/assets/bower_components/angular-material/modules/closure/sticky/sticky.css +21 -0
  142. data/vendor/assets/bower_components/angular-material/modules/closure/sticky/sticky.js +315 -0
  143. data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css +16 -0
  144. data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader.css +63 -0
  145. data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader.js +93 -0
  146. data/vendor/assets/bower_components/angular-material/modules/closure/swipe/swipe.js +72 -0
  147. data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch-default-theme.css +33 -0
  148. data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch.css +110 -0
  149. data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch.js +169 -0
  150. data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg +7 -0
  151. data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css +82 -0
  152. data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs.css +274 -0
  153. data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs.js +1060 -0
  154. data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField-default-theme.css +30 -0
  155. data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField.css +111 -0
  156. data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField.js +145 -0
  157. data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast-default-theme.css +18 -0
  158. data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast.css +119 -0
  159. data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast.js +265 -0
  160. data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css +20 -0
  161. data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar.css +83 -0
  162. data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar.js +169 -0
  163. data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css +11 -0
  164. data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip.css +72 -0
  165. data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip.js +267 -0
  166. data/vendor/assets/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css +25 -0
  167. data/vendor/assets/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js +15 -0
  168. data/vendor/assets/bower_components/angular-material/modules/css/angular-material-layout.css +2375 -0
  169. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css +24 -0
  170. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css +6 -0
  171. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.css +220 -0
  172. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.js +951 -0
  173. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css +6 -0
  174. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js +7 -0
  175. data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/bower.json +8 -0
  176. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css +9 -0
  177. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css +6 -0
  178. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.css +59 -0
  179. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.js +39 -0
  180. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.min.css +6 -0
  181. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.min.js +7 -0
  182. data/vendor/assets/bower_components/angular-material/modules/js/backdrop/bower.json +7 -0
  183. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css +16 -0
  184. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css +6 -0
  185. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css +170 -0
  186. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js +267 -0
  187. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css +6 -0
  188. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js +7 -0
  189. data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bower.json +8 -0
  190. data/vendor/assets/bower_components/angular-material/modules/js/button/bower.json +7 -0
  191. data/vendor/assets/bower_components/angular-material/modules/js/button/button-default-theme.css +94 -0
  192. data/vendor/assets/bower_components/angular-material/modules/js/button/button-default-theme.min.css +6 -0
  193. data/vendor/assets/bower_components/angular-material/modules/js/button/button.css +158 -0
  194. data/vendor/assets/bower_components/angular-material/modules/js/button/button.js +136 -0
  195. data/vendor/assets/bower_components/angular-material/modules/js/button/button.min.css +6 -0
  196. data/vendor/assets/bower_components/angular-material/modules/js/button/button.min.js +7 -0
  197. data/vendor/assets/bower_components/angular-material/modules/js/card/bower.json +7 -0
  198. data/vendor/assets/bower_components/angular-material/modules/js/card/card-default-theme.css +12 -0
  199. data/vendor/assets/bower_components/angular-material/modules/js/card/card-default-theme.min.css +6 -0
  200. data/vendor/assets/bower_components/angular-material/modules/js/card/card.css +34 -0
  201. data/vendor/assets/bower_components/angular-material/modules/js/card/card.js +85 -0
  202. data/vendor/assets/bower_components/angular-material/modules/js/card/card.min.css +6 -0
  203. data/vendor/assets/bower_components/angular-material/modules/js/card/card.min.js +7 -0
  204. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/bower.json +7 -0
  205. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css +47 -0
  206. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css +6 -0
  207. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.css +124 -0
  208. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.js +167 -0
  209. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.min.css +6 -0
  210. data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.min.js +7 -0
  211. data/vendor/assets/bower_components/angular-material/modules/js/chips/bower.json +8 -0
  212. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips-default-theme.css +24 -0
  213. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css +6 -0
  214. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.css +131 -0
  215. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.js +949 -0
  216. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.min.css +6 -0
  217. data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.min.js +7 -0
  218. data/vendor/assets/bower_components/angular-material/modules/js/content/bower.json +7 -0
  219. data/vendor/assets/bower_components/angular-material/modules/js/content/content-default-theme.css +9 -0
  220. data/vendor/assets/bower_components/angular-material/modules/js/content/content-default-theme.min.css +6 -0
  221. data/vendor/assets/bower_components/angular-material/modules/js/content/content.css +20 -0
  222. data/vendor/assets/bower_components/angular-material/modules/js/content/content.js +85 -0
  223. data/vendor/assets/bower_components/angular-material/modules/js/content/content.min.css +6 -0
  224. data/vendor/assets/bower_components/angular-material/modules/js/content/content.min.js +7 -0
  225. data/vendor/assets/bower_components/angular-material/modules/js/core/bower.json +8 -0
  226. data/vendor/assets/bower_components/angular-material/modules/js/core/core.css +2594 -0
  227. data/vendor/assets/bower_components/angular-material/modules/js/core/core.js +3772 -0
  228. data/vendor/assets/bower_components/angular-material/modules/js/core/core.min.css +6 -0
  229. data/vendor/assets/bower_components/angular-material/modules/js/core/core.min.js +10 -0
  230. data/vendor/assets/bower_components/angular-material/modules/js/core/default-theme.js +4 -0
  231. data/vendor/assets/bower_components/angular-material/modules/js/dialog/bower.json +8 -0
  232. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css +12 -0
  233. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css +6 -0
  234. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.css +111 -0
  235. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.js +713 -0
  236. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.min.css +6 -0
  237. data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.min.js +7 -0
  238. data/vendor/assets/bower_components/angular-material/modules/js/divider/bower.json +7 -0
  239. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider-default-theme.css +9 -0
  240. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css +6 -0
  241. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.css +14 -0
  242. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.js +46 -0
  243. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.min.css +6 -0
  244. data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.min.js +7 -0
  245. data/vendor/assets/bower_components/angular-material/modules/js/fabActions/bower.json +7 -0
  246. data/vendor/assets/bower_components/angular-material/modules/js/fabActions/fabActions.js +58 -0
  247. data/vendor/assets/bower_components/angular-material/modules/js/fabActions/fabActions.min.js +7 -0
  248. data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/bower.json +9 -0
  249. data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.css +100 -0
  250. data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.js +235 -0
  251. data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.min.css +6 -0
  252. data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.min.js +7 -0
  253. data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/bower.json +9 -0
  254. data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.css +74 -0
  255. data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.js +217 -0
  256. data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.min.css +6 -0
  257. data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.min.js +7 -0
  258. data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/bower.json +7 -0
  259. data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/fabTrigger.js +55 -0
  260. data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/fabTrigger.min.js +7 -0
  261. data/vendor/assets/bower_components/angular-material/modules/js/gridList/bower.json +7 -0
  262. data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.css +68 -0
  263. data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.js +763 -0
  264. data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.min.css +6 -0
  265. data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.min.js +7 -0
  266. data/vendor/assets/bower_components/angular-material/modules/js/icon/bower.json +7 -0
  267. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon-default-theme.css +15 -0
  268. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css +6 -0
  269. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.css +20 -0
  270. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.js +784 -0
  271. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.min.css +6 -0
  272. data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.min.js +7 -0
  273. data/vendor/assets/bower_components/angular-material/modules/js/input/bower.json +7 -0
  274. data/vendor/assets/bower_components/angular-material/modules/js/input/input-default-theme.css +46 -0
  275. data/vendor/assets/bower_components/angular-material/modules/js/input/input-default-theme.min.css +6 -0
  276. data/vendor/assets/bower_components/angular-material/modules/js/input/input.css +162 -0
  277. data/vendor/assets/bower_components/angular-material/modules/js/input/input.js +372 -0
  278. data/vendor/assets/bower_components/angular-material/modules/js/input/input.min.css +6 -0
  279. data/vendor/assets/bower_components/angular-material/modules/js/input/input.min.js +7 -0
  280. data/vendor/assets/bower_components/angular-material/modules/js/list/bower.json +7 -0
  281. data/vendor/assets/bower_components/angular-material/modules/js/list/list-default-theme.css +23 -0
  282. data/vendor/assets/bower_components/angular-material/modules/js/list/list-default-theme.min.css +6 -0
  283. data/vendor/assets/bower_components/angular-material/modules/js/list/list.css +147 -0
  284. data/vendor/assets/bower_components/angular-material/modules/js/list/list.js +274 -0
  285. data/vendor/assets/bower_components/angular-material/modules/js/list/list.min.css +6 -0
  286. data/vendor/assets/bower_components/angular-material/modules/js/list/list.min.js +7 -0
  287. data/vendor/assets/bower_components/angular-material/modules/js/menu/bower.json +8 -0
  288. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu-default-theme.css +11 -0
  289. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu-default-theme.min.css +6 -0
  290. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.css +121 -0
  291. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.js +620 -0
  292. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.min.css +6 -0
  293. data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.min.js +7 -0
  294. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/bower.json +7 -0
  295. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css +36 -0
  296. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css +6 -0
  297. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.css +1409 -0
  298. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.js +110 -0
  299. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css +6 -0
  300. data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js +7 -0
  301. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/bower.json +7 -0
  302. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css +27 -0
  303. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css +6 -0
  304. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.css +287 -0
  305. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.js +127 -0
  306. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css +6 -0
  307. data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js +7 -0
  308. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/bower.json +7 -0
  309. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css +47 -0
  310. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css +6 -0
  311. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.css +91 -0
  312. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.js +313 -0
  313. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.min.css +6 -0
  314. data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.min.js +7 -0
  315. data/vendor/assets/bower_components/angular-material/modules/js/select/bower.json +8 -0
  316. data/vendor/assets/bower_components/angular-material/modules/js/select/select-default-theme.css +42 -0
  317. data/vendor/assets/bower_components/angular-material/modules/js/select/select-default-theme.min.css +6 -0
  318. data/vendor/assets/bower_components/angular-material/modules/js/select/select.css +170 -0
  319. data/vendor/assets/bower_components/angular-material/modules/js/select/select.js +1055 -0
  320. data/vendor/assets/bower_components/angular-material/modules/js/select/select.min.css +6 -0
  321. data/vendor/assets/bower_components/angular-material/modules/js/select/select.min.js +7 -0
  322. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/bower.json +8 -0
  323. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css +9 -0
  324. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css +6 -0
  325. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.css +99 -0
  326. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.js +424 -0
  327. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.min.css +6 -0
  328. data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.min.js +7 -0
  329. data/vendor/assets/bower_components/angular-material/modules/js/slider/bower.json +7 -0
  330. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider-default-theme.css +56 -0
  331. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css +6 -0
  332. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.css +220 -0
  333. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.js +404 -0
  334. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.min.css +6 -0
  335. data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.min.js +7 -0
  336. data/vendor/assets/bower_components/angular-material/modules/js/sticky/bower.json +8 -0
  337. data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.css +21 -0
  338. data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.js +315 -0
  339. data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.min.css +6 -0
  340. data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.min.js +7 -0
  341. data/vendor/assets/bower_components/angular-material/modules/js/subheader/bower.json +8 -0
  342. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css +16 -0
  343. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css +6 -0
  344. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.css +63 -0
  345. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.js +93 -0
  346. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.min.css +6 -0
  347. data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.min.js +7 -0
  348. data/vendor/assets/bower_components/angular-material/modules/js/swipe/bower.json +7 -0
  349. data/vendor/assets/bower_components/angular-material/modules/js/swipe/swipe.js +73 -0
  350. data/vendor/assets/bower_components/angular-material/modules/js/swipe/swipe.min.js +7 -0
  351. data/vendor/assets/bower_components/angular-material/modules/js/switch/bower.json +8 -0
  352. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch-default-theme.css +33 -0
  353. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css +6 -0
  354. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.css +110 -0
  355. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.js +169 -0
  356. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.min.css +6 -0
  357. data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.min.js +7 -0
  358. data/vendor/assets/bower_components/angular-material/modules/js/tabs/bower.json +8 -0
  359. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css +82 -0
  360. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css +6 -0
  361. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.css +274 -0
  362. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.js +1060 -0
  363. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.min.css +6 -0
  364. data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.min.js +7 -0
  365. data/vendor/assets/bower_components/angular-material/modules/js/textField/bower.json +7 -0
  366. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField-default-theme.css +30 -0
  367. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css +6 -0
  368. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.css +111 -0
  369. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.js +143 -0
  370. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.min.css +6 -0
  371. data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.min.js +7 -0
  372. data/vendor/assets/bower_components/angular-material/modules/js/toast/bower.json +8 -0
  373. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast-default-theme.css +18 -0
  374. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css +6 -0
  375. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.css +119 -0
  376. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.js +265 -0
  377. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.min.css +6 -0
  378. data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.min.js +7 -0
  379. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/bower.json +8 -0
  380. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css +20 -0
  381. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css +6 -0
  382. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.css +83 -0
  383. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.js +169 -0
  384. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.min.css +6 -0
  385. data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.min.js +7 -0
  386. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/bower.json +7 -0
  387. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css +11 -0
  388. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css +6 -0
  389. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.css +72 -0
  390. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.js +268 -0
  391. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.min.css +6 -0
  392. data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.min.js +7 -0
  393. data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/bower.json +5 -0
  394. data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.css +25 -0
  395. data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.js +16 -0
  396. data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css +6 -0
  397. data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js +7 -0
  398. data/vendor/assets/bower_components/angular-material/package.json +48 -0
  399. data/vendor/assets/bower_components/angular/README.md +64 -0
  400. data/vendor/assets/bower_components/angular/angular-csp.css +21 -0
  401. data/vendor/assets/bower_components/angular/angular.js +28364 -0
  402. data/vendor/assets/bower_components/angular/angular.min.js +290 -0
  403. data/vendor/assets/bower_components/angular/angular.min.js.gzip +0 -0
  404. data/vendor/assets/bower_components/angular/angular.min.js.map +8 -0
  405. data/vendor/assets/bower_components/angular/bower.json +8 -0
  406. data/vendor/assets/bower_components/angular/index.js +2 -0
  407. data/vendor/assets/bower_components/angular/package.json +25 -0
  408. data/vendor/assets/bower_components/lodash/LICENSE +22 -0
  409. data/vendor/assets/bower_components/lodash/bower.json +19 -0
  410. data/vendor/assets/bower_components/lodash/lodash.js +12351 -0
  411. data/vendor/assets/bower_components/lodash/lodash.min.js +99 -0
  412. data/vendor/assets/bower_components/restangular/CHANGELOG.md +18 -0
  413. data/vendor/assets/bower_components/restangular/CONTRIBUTE.md +31 -0
  414. data/vendor/assets/bower_components/restangular/Gruntfile.js +149 -0
  415. data/vendor/assets/bower_components/restangular/README.md +1336 -0
  416. data/vendor/assets/bower_components/restangular/bower.json +19 -0
  417. data/vendor/assets/bower_components/restangular/dist/restangular.js +1355 -0
  418. data/vendor/assets/bower_components/restangular/dist/restangular.min.js +6 -0
  419. data/vendor/assets/bower_components/restangular/dist/restangular.zip +0 -0
  420. data/vendor/assets/bower_components/restangular/karma.conf.js +74 -0
  421. data/vendor/assets/bower_components/restangular/karma.underscore.conf.js +74 -0
  422. data/vendor/assets/bower_components/restangular/license.md +21 -0
  423. data/vendor/assets/bower_components/restangular/package.json +55 -0
  424. data/vendor/assets/bower_components/restangular/src/restangular.js +1350 -0
  425. data/vendor/assets/bower_components/restangular/test/restangularSpec.js +1136 -0
  426. metadata +424 -1
@@ -0,0 +1,763 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */
7
+ (function( window, angular, undefined ){
8
+ "use strict";
9
+
10
+ /**
11
+ * @ngdoc module
12
+ * @name material.components.gridList
13
+ */
14
+ angular.module('material.components.gridList', ['material.core'])
15
+ .directive('mdGridList', GridListDirective)
16
+ .directive('mdGridTile', GridTileDirective)
17
+ .directive('mdGridTileFooter', GridTileCaptionDirective)
18
+ .directive('mdGridTileHeader', GridTileCaptionDirective)
19
+ .factory('$mdGridLayout', GridLayoutFactory);
20
+
21
+ /**
22
+ * @ngdoc directive
23
+ * @name mdGridList
24
+ * @module material.components.gridList
25
+ * @restrict E
26
+ * @description
27
+ * Grid lists are an alternative to standard list views. Grid lists are distinct
28
+ * from grids used for layouts and other visual presentations.
29
+ *
30
+ * A grid list is best suited to presenting a homogenous data type, typically
31
+ * images, and is optimized for visual comprehension and differentiating between
32
+ * like data types.
33
+ *
34
+ * A grid list is a continuous element consisting of tessellated, regular
35
+ * subdivisions called cells that contain tiles (`md-grid-tile`).
36
+ *
37
+ * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7OVlEaXZ5YmU1Xzg/components_grids_usage2.png"
38
+ * style="width: 300px; height: auto; margin-right: 16px;" alt="Concept of grid explained visually">
39
+ * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7VGhsOE5idWlJWXM/components_grids_usage3.png"
40
+ * style="width: 300px; height: auto;" alt="Grid concepts legend">
41
+ *
42
+ * Cells are arrayed vertically and horizontally within the grid.
43
+ *
44
+ * Tiles hold content and can span one or more cells vertically or horizontally.
45
+ *
46
+ * ### Responsive Attributes
47
+ *
48
+ * The `md-grid-list` directive supports "responsive" attributes, which allow
49
+ * different `md-cols`, `md-gutter` and `md-row-height` values depending on the
50
+ * currently matching media query (as defined in `$mdConstant.MEDIA`).
51
+ *
52
+ * In order to set a responsive attribute, first define the fallback value with
53
+ * the standard attribute name, then add additional attributes with the
54
+ * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
55
+ * (ie. `md-cols-lg="8"`)
56
+ *
57
+ * @param {number} md-cols Number of columns in the grid.
58
+ * @param {string} md-row-height One of
59
+ * <ul>
60
+ * <li>CSS length - Fixed height rows (eg. `8px` or `1rem`)</li>
61
+ * <li>`{width}:{height}` - Ratio of width to height (eg.
62
+ * `md-row-height="16:9"`)</li>
63
+ * <li>`"fit"` - Height will be determined by subdividing the available
64
+ * height by the number of rows</li>
65
+ * </ul>
66
+ * @param {string=} md-gutter The amount of space between tiles in CSS units
67
+ * (default 1px)
68
+ * @param {expression=} md-on-layout Expression to evaluate after layout. Event
69
+ * object is available as `$event`, and contains performance information.
70
+ *
71
+ * @usage
72
+ * Basic:
73
+ * <hljs lang="html">
74
+ * <md-grid-list md-cols="5" md-gutter="1em" md-row-height="4:3">
75
+ * <md-grid-tile></md-grid-tile>
76
+ * </md-grid-list>
77
+ * </hljs>
78
+ *
79
+ * Fixed-height rows:
80
+ * <hljs lang="html">
81
+ * <md-grid-list md-cols="4" md-row-height="200px" ...>
82
+ * <md-grid-tile></md-grid-tile>
83
+ * </md-grid-list>
84
+ * </hljs>
85
+ *
86
+ * Fit rows:
87
+ * <hljs lang="html">
88
+ * <md-grid-list md-cols="4" md-row-height="fit" style="height: 400px;" ...>
89
+ * <md-grid-tile></md-grid-tile>
90
+ * </md-grid-list>
91
+ * </hljs>
92
+ *
93
+ * Using responsive attributes:
94
+ * <hljs lang="html">
95
+ * <md-grid-list
96
+ * md-cols-sm="2"
97
+ * md-cols-md="4"
98
+ * md-cols-lg="8"
99
+ * md-cols-gt-lg="12"
100
+ * ...>
101
+ * <md-grid-tile></md-grid-tile>
102
+ * </md-grid-list>
103
+ * </hljs>
104
+ */
105
+ function GridListDirective($interpolate, $mdConstant, $mdGridLayout, $mdMedia) {
106
+ return {
107
+ restrict: 'E',
108
+ controller: GridListController,
109
+ scope: {
110
+ mdOnLayout: '&'
111
+ },
112
+ link: postLink
113
+ };
114
+
115
+ function postLink(scope, element, attrs, ctrl) {
116
+ // Apply semantics
117
+ element.attr('role', 'list');
118
+
119
+ // Provide the controller with a way to trigger layouts.
120
+ ctrl.layoutDelegate = layoutDelegate;
121
+
122
+ var invalidateLayout = angular.bind(ctrl, ctrl.invalidateLayout),
123
+ unwatchAttrs = watchMedia();
124
+ scope.$on('$destroy', unwatchMedia);
125
+
126
+ /**
127
+ * Watches for changes in media, invalidating layout as necessary.
128
+ */
129
+ function watchMedia() {
130
+ for (var mediaName in $mdConstant.MEDIA) {
131
+ $mdMedia(mediaName); // initialize
132
+ $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
133
+ .addListener(invalidateLayout);
134
+ }
135
+ return $mdMedia.watchResponsiveAttributes(
136
+ ['md-cols', 'md-row-height'], attrs, layoutIfMediaMatch);
137
+ }
138
+
139
+ function unwatchMedia() {
140
+ ctrl.layoutDelegate = angular.noop;
141
+
142
+ unwatchAttrs();
143
+ for (var mediaName in $mdConstant.MEDIA) {
144
+ $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
145
+ .removeListener(invalidateLayout);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * Performs grid layout if the provided mediaName matches the currently
151
+ * active media type.
152
+ */
153
+ function layoutIfMediaMatch(mediaName) {
154
+ if (mediaName == null) {
155
+ // TODO(shyndman): It would be nice to only layout if we have
156
+ // instances of attributes using this media type
157
+ ctrl.invalidateLayout();
158
+ } else if ($mdMedia(mediaName)) {
159
+ ctrl.invalidateLayout();
160
+ }
161
+ }
162
+
163
+ var lastLayoutProps;
164
+
165
+ /**
166
+ * Invokes the layout engine, and uses its results to lay out our
167
+ * tile elements.
168
+ *
169
+ * @param {boolean} tilesInvalidated Whether tiles have been
170
+ * added/removed/moved since the last layout. This is to avoid situations
171
+ * where tiles are replaced with properties identical to their removed
172
+ * counterparts.
173
+ */
174
+ function layoutDelegate(tilesInvalidated) {
175
+ var tiles = getTileElements();
176
+ var props = {
177
+ tileSpans: getTileSpans(tiles),
178
+ colCount: getColumnCount(),
179
+ rowMode: getRowMode(),
180
+ rowHeight: getRowHeight(),
181
+ gutter: getGutter()
182
+ };
183
+
184
+ if (!tilesInvalidated && angular.equals(props, lastLayoutProps)) {
185
+ return;
186
+ }
187
+
188
+ var performance =
189
+ $mdGridLayout(props.colCount, props.tileSpans, tiles)
190
+ .map(function(tilePositions, rowCount) {
191
+ return {
192
+ grid: {
193
+ element: element,
194
+ style: getGridStyle(props.colCount, rowCount,
195
+ props.gutter, props.rowMode, props.rowHeight)
196
+ },
197
+ tiles: tilePositions.map(function(ps, i) {
198
+ return {
199
+ element: angular.element(tiles[i]),
200
+ style: getTileStyle(ps.position, ps.spans,
201
+ props.colCount, props.rowCount,
202
+ props.gutter, props.rowMode, props.rowHeight)
203
+ }
204
+ })
205
+ }
206
+ })
207
+ .reflow()
208
+ .performance();
209
+
210
+ // Report layout
211
+ scope.mdOnLayout({
212
+ $event: {
213
+ performance: performance
214
+ }
215
+ });
216
+
217
+ lastLayoutProps = props;
218
+ }
219
+
220
+ // Use $interpolate to do some simple string interpolation as a convenience.
221
+
222
+ var startSymbol = $interpolate.startSymbol();
223
+ var endSymbol = $interpolate.endSymbol();
224
+
225
+ // Returns an expression wrapped in the interpolator's start and end symbols.
226
+ function expr(exprStr) {
227
+ return startSymbol + exprStr + endSymbol;
228
+ }
229
+
230
+ // The amount of space a single 1x1 tile would take up (either width or height), used as
231
+ // a basis for other calculations. This consists of taking the base size percent (as would be
232
+ // if evenly dividing the size between cells), and then subtracting the size of one gutter.
233
+ // However, since there are no gutters on the edges, each tile only uses a fration
234
+ // (gutterShare = numGutters / numCells) of the gutter size. (Imagine having one gutter per
235
+ // tile, and then breaking up the extra gutter on the edge evenly among the cells).
236
+ var UNIT = $interpolate(expr('share') + '% - (' + expr('gutter') + ' * ' + expr('gutterShare') + ')');
237
+
238
+ // The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.
239
+ // The position comes the size of a 1x1 tile plus gutter for each previous tile in the
240
+ // row/column (offset).
241
+ var POSITION = $interpolate('calc((' + expr('unit') + ' + ' + expr('gutter') + ') * ' + expr('offset') + ')');
242
+
243
+ // The actual size of a tile, e.g., width or height, taking rowSpan or colSpan into account.
244
+ // This is computed by multiplying the base unit by the rowSpan/colSpan, and then adding back
245
+ // in the space that the gutter would normally have used (which was already accounted for in
246
+ // the base unit calculation).
247
+ var DIMENSION = $interpolate('calc((' + expr('unit') + ') * ' + expr('span') + ' + (' + expr('span') + ' - 1) * ' + expr('gutter') + ')');
248
+
249
+ /**
250
+ * Gets the styles applied to a tile element described by the given parameters.
251
+ * @param {{row: number, col: number}} position The row and column indices of the tile.
252
+ * @param {{row: number, col: number}} spans The rowSpan and colSpan of the tile.
253
+ * @param {number} colCount The number of columns.
254
+ * @param {number} rowCount The number of rows.
255
+ * @param {string} gutter The amount of space between tiles. This will be something like
256
+ * '5px' or '2em'.
257
+ * @param {string} rowMode The row height mode. Can be one of:
258
+ * 'fixed': all rows have a fixed size, given by rowHeight,
259
+ * 'ratio': row height defined as a ratio to width, or
260
+ * 'fit': fit to the grid-list element height, divinding evenly among rows.
261
+ * @param {string|number} rowHeight The height of a row. This is only used for 'fixed' mode and
262
+ * for 'ratio' mode. For 'ratio' mode, this is the *ratio* of width-to-height (e.g., 0.75).
263
+ * @returns {Object} Map of CSS properties to be applied to the style element. Will define
264
+ * values for top, left, width, height, marginTop, and paddingTop.
265
+ */
266
+ function getTileStyle(position, spans, colCount, rowCount, gutter, rowMode, rowHeight) {
267
+ // TODO(shyndman): There are style caching opportunities here.
268
+
269
+ // Percent of the available horizontal space that one column takes up.
270
+ var hShare = (1 / colCount) * 100;
271
+
272
+ // Fraction of the gutter size that each column takes up.
273
+ var hGutterShare = (colCount - 1) / colCount;
274
+
275
+ // Base horizontal size of a column.
276
+ var hUnit = UNIT({share: hShare, gutterShare: hGutterShare, gutter: gutter});
277
+
278
+ // The width and horizontal position of each tile is always calculated the same way, but the
279
+ // height and vertical position depends on the rowMode.
280
+ var style = {
281
+ left: POSITION({ unit: hUnit, offset: position.col, gutter: gutter }),
282
+ width: DIMENSION({ unit: hUnit, span: spans.col, gutter: gutter }),
283
+ // resets
284
+ paddingTop: '',
285
+ marginTop: '',
286
+ top: '',
287
+ height: ''
288
+ };
289
+
290
+ switch (rowMode) {
291
+ case 'fixed':
292
+ // In fixed mode, simply use the given rowHeight.
293
+ style.top = POSITION({ unit: rowHeight, offset: position.row, gutter: gutter });
294
+ style.height = DIMENSION({ unit: rowHeight, span: spans.row, gutter: gutter });
295
+ break;
296
+
297
+ case 'ratio':
298
+ // Percent of the available vertical space that one row takes up. Here, rowHeight holds
299
+ // the ratio value. For example, if the width:height ratio is 4:3, rowHeight = 1.333.
300
+ var vShare = hShare / rowHeight;
301
+
302
+ // Base veritcal size of a row.
303
+ var vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
304
+
305
+ // padidngTop and marginTop are used to maintain the given aspect ratio, as
306
+ // a percentage-based value for these properties is applied to the *width* of the
307
+ // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties
308
+ style.paddingTop = DIMENSION({ unit: vUnit, span: spans.row, gutter: gutter});
309
+ style.marginTop = POSITION({ unit: vUnit, offset: position.row, gutter: gutter });
310
+ break;
311
+
312
+ case 'fit':
313
+ // Fraction of the gutter size that each column takes up.
314
+ var vGutterShare = (rowCount - 1) / rowCount;
315
+
316
+ // Percent of the available vertical space that one row takes up.
317
+ var vShare = (1 / rowCount) * 100;
318
+
319
+ // Base vertical size of a row.
320
+ var vUnit = UNIT({share: vShare, gutterShare: vGutterShare, gutter: gutter});
321
+
322
+ style.top = POSITION({unit: vUnit, offset: position.row, gutter: gutter});
323
+ style.height = DIMENSION({unit: vUnit, span: spans.row, gutter: gutter});
324
+ break;
325
+ }
326
+
327
+ return style;
328
+ }
329
+
330
+ function getGridStyle(colCount, rowCount, gutter, rowMode, rowHeight) {
331
+ var style = {
332
+ height: '',
333
+ paddingBottom: ''
334
+ };
335
+
336
+ switch(rowMode) {
337
+ case 'fixed':
338
+ style.height = DIMENSION({ unit: rowHeight, span: rowCount, gutter: gutter });
339
+ break;
340
+
341
+ case 'ratio':
342
+ // rowHeight is width / height
343
+ var hGutterShare = colCount === 1 ? 0 : (colCount - 1) / colCount,
344
+ hShare = (1 / colCount) * 100,
345
+ vShare = hShare * (1 / rowHeight),
346
+ vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
347
+
348
+ style.paddingBottom = DIMENSION({ unit: vUnit, span: rowCount, gutter: gutter});
349
+ break;
350
+
351
+ case 'fit':
352
+ // noop, as the height is user set
353
+ break;
354
+ }
355
+
356
+ return style;
357
+ }
358
+
359
+ function getTileElements() {
360
+ return [].filter.call(element.children(), function(ele) {
361
+ return ele.tagName == 'MD-GRID-TILE';
362
+ });
363
+ }
364
+
365
+ /**
366
+ * Gets an array of objects containing the rowspan and colspan for each tile.
367
+ * @returns {Array<{row: number, col: number}>}
368
+ */
369
+ function getTileSpans(tileElements) {
370
+ return [].map.call(tileElements, function(ele) {
371
+ var ctrl = angular.element(ele).controller('mdGridTile');
372
+ return {
373
+ row: parseInt(
374
+ $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
375
+ col: parseInt(
376
+ $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
377
+ };
378
+ });
379
+ }
380
+
381
+ function getColumnCount() {
382
+ var colCount = parseInt($mdMedia.getResponsiveAttribute(attrs, 'md-cols'), 10);
383
+ if (isNaN(colCount)) {
384
+ throw 'md-grid-list: md-cols attribute was not found, or contained a non-numeric value';
385
+ }
386
+ return colCount;
387
+ }
388
+
389
+ function getGutter() {
390
+ return applyDefaultUnit($mdMedia.getResponsiveAttribute(attrs, 'md-gutter') || 1);
391
+ }
392
+
393
+ function getRowHeight() {
394
+ var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
395
+ switch (getRowMode()) {
396
+ case 'fixed':
397
+ return applyDefaultUnit(rowHeight);
398
+ case 'ratio':
399
+ var whRatio = rowHeight.split(':');
400
+ return parseFloat(whRatio[0]) / parseFloat(whRatio[1]);
401
+ case 'fit':
402
+ return 0; // N/A
403
+ }
404
+ }
405
+
406
+ function getRowMode() {
407
+ var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
408
+ if (rowHeight == 'fit') {
409
+ return 'fit';
410
+ } else if (rowHeight.indexOf(':') !== -1) {
411
+ return 'ratio';
412
+ } else {
413
+ return 'fixed';
414
+ }
415
+ }
416
+
417
+ function applyDefaultUnit(val) {
418
+ return /\D$/.test(val) ? val : val + 'px';
419
+ }
420
+ }
421
+ }
422
+ GridListDirective.$inject = ["$interpolate", "$mdConstant", "$mdGridLayout", "$mdMedia"];
423
+
424
+ /* ngInject */
425
+ function GridListController($timeout) {
426
+ this.layoutInvalidated = false;
427
+ this.tilesInvalidated = false;
428
+ this.$timeout_ = $timeout;
429
+ this.layoutDelegate = angular.noop;
430
+ }
431
+ GridListController.$inject = ["$timeout"];
432
+
433
+ GridListController.prototype = {
434
+ invalidateTiles: function() {
435
+ this.tilesInvalidated = true;
436
+ this.invalidateLayout();
437
+ },
438
+
439
+ invalidateLayout: function() {
440
+ if (this.layoutInvalidated) {
441
+ return;
442
+ }
443
+ this.layoutInvalidated = true;
444
+ this.$timeout_(angular.bind(this, this.layout));
445
+ },
446
+
447
+ layout: function() {
448
+ try {
449
+ this.layoutDelegate(this.tilesInvalidated);
450
+ } finally {
451
+ this.layoutInvalidated = false;
452
+ this.tilesInvalidated = false;
453
+ }
454
+ }
455
+ };
456
+
457
+
458
+ /* ngInject */
459
+ function GridLayoutFactory($mdUtil) {
460
+ var defaultAnimator = GridTileAnimator;
461
+
462
+ /**
463
+ * Set the reflow animator callback
464
+ */
465
+ GridLayout.animateWith = function(customAnimator) {
466
+ defaultAnimator = !angular.isFunction(customAnimator) ? GridTileAnimator : customAnimator;
467
+ };
468
+
469
+ return GridLayout;
470
+
471
+ /**
472
+ * Publish layout function
473
+ */
474
+ function GridLayout(colCount, tileSpans) {
475
+ var self, layoutInfo, gridStyles, layoutTime, mapTime, reflowTime;
476
+
477
+ layoutTime = $mdUtil.time(function() {
478
+ layoutInfo = calculateGridFor(colCount, tileSpans);
479
+ });
480
+
481
+ return self = {
482
+
483
+ /**
484
+ * An array of objects describing each tile's position in the grid.
485
+ */
486
+ layoutInfo: function() {
487
+ return layoutInfo;
488
+ },
489
+
490
+ /**
491
+ * Maps grid positioning to an element and a set of styles using the
492
+ * provided updateFn.
493
+ */
494
+ map: function(updateFn) {
495
+ mapTime = $mdUtil.time(function() {
496
+ var info = self.layoutInfo();
497
+ gridStyles = updateFn(info.positioning, info.rowCount);
498
+ });
499
+ return self;
500
+ },
501
+
502
+ /**
503
+ * Default animator simply sets the element.css( <styles> ). An alternate
504
+ * animator can be provided as an argument. The function has the following
505
+ * signature:
506
+ *
507
+ * function({grid: {element: JQLite, style: Object}, tiles: Array<{element: JQLite, style: Object}>)
508
+ */
509
+ reflow: function(animatorFn) {
510
+ reflowTime = $mdUtil.time(function() {
511
+ var animator = animatorFn || defaultAnimator;
512
+ animator(gridStyles.grid, gridStyles.tiles);
513
+ });
514
+ return self;
515
+ },
516
+
517
+ /**
518
+ * Timing for the most recent layout run.
519
+ */
520
+ performance: function() {
521
+ return {
522
+ tileCount: tileSpans.length,
523
+ layoutTime: layoutTime,
524
+ mapTime: mapTime,
525
+ reflowTime: reflowTime,
526
+ totalTime: layoutTime + mapTime + reflowTime
527
+ };
528
+ }
529
+ };
530
+ }
531
+
532
+ /**
533
+ * Default Gridlist animator simple sets the css for each element;
534
+ * NOTE: any transitions effects must be manually set in the CSS.
535
+ * e.g.
536
+ *
537
+ * md-grid-tile {
538
+ * transition: all 700ms ease-out 50ms;
539
+ * }
540
+ *
541
+ */
542
+ function GridTileAnimator(grid, tiles) {
543
+ grid.element.css(grid.style);
544
+ tiles.forEach(function(t) {
545
+ t.element.css(t.style);
546
+ })
547
+ }
548
+
549
+ /**
550
+ * Calculates the positions of tiles.
551
+ *
552
+ * The algorithm works as follows:
553
+ * An Array<Number> with length colCount (spaceTracker) keeps track of
554
+ * available tiling positions, where elements of value 0 represents an
555
+ * empty position. Space for a tile is reserved by finding a sequence of
556
+ * 0s with length <= than the tile's colspan. When such a space has been
557
+ * found, the occupied tile positions are incremented by the tile's
558
+ * rowspan value, as these positions have become unavailable for that
559
+ * many rows.
560
+ *
561
+ * If the end of a row has been reached without finding space for the
562
+ * tile, spaceTracker's elements are each decremented by 1 to a minimum
563
+ * of 0. Rows are searched in this fashion until space is found.
564
+ */
565
+ function calculateGridFor(colCount, tileSpans) {
566
+ var curCol = 0,
567
+ curRow = 0,
568
+ spaceTracker = newSpaceTracker();
569
+
570
+ return {
571
+ positioning: tileSpans.map(function(spans, i) {
572
+ return {
573
+ spans: spans,
574
+ position: reserveSpace(spans, i)
575
+ };
576
+ }),
577
+ rowCount: curRow + Math.max.apply(Math, spaceTracker)
578
+ };
579
+
580
+ function reserveSpace(spans, i) {
581
+ if (spans.col > colCount) {
582
+ throw 'md-grid-list: Tile at position ' + i + ' has a colspan ' +
583
+ '(' + spans.col + ') that exceeds the column count ' +
584
+ '(' + colCount + ')';
585
+ }
586
+
587
+ var start = 0,
588
+ end = 0;
589
+
590
+ // TODO(shyndman): This loop isn't strictly necessary if you can
591
+ // determine the minimum number of rows before a space opens up. To do
592
+ // this, recognize that you've iterated across an entire row looking for
593
+ // space, and if so fast-forward by the minimum rowSpan count. Repeat
594
+ // until the required space opens up.
595
+ while (end - start < spans.col) {
596
+ if (curCol >= colCount) {
597
+ nextRow();
598
+ continue;
599
+ }
600
+
601
+ start = spaceTracker.indexOf(0, curCol);
602
+ if (start === -1 || (end = findEnd(start + 1)) === -1) {
603
+ start = end = 0;
604
+ nextRow();
605
+ continue;
606
+ }
607
+
608
+ curCol = end + 1;
609
+ }
610
+
611
+ adjustRow(start, spans.col, spans.row);
612
+ curCol = start + spans.col;
613
+
614
+ return {
615
+ col: start,
616
+ row: curRow
617
+ };
618
+ }
619
+
620
+ function nextRow() {
621
+ curCol = 0;
622
+ curRow++;
623
+ adjustRow(0, colCount, -1); // Decrement row spans by one
624
+ }
625
+
626
+ function adjustRow(from, cols, by) {
627
+ for (var i = from; i < from + cols; i++) {
628
+ spaceTracker[i] = Math.max(spaceTracker[i] + by, 0);
629
+ }
630
+ }
631
+
632
+ function findEnd(start) {
633
+ var i;
634
+ for (i = start; i < spaceTracker.length; i++) {
635
+ if (spaceTracker[i] !== 0) {
636
+ return i;
637
+ }
638
+ }
639
+
640
+ if (i === spaceTracker.length) {
641
+ return i;
642
+ }
643
+ }
644
+
645
+ function newSpaceTracker() {
646
+ var tracker = [];
647
+ for (var i = 0; i < colCount; i++) {
648
+ tracker.push(0);
649
+ }
650
+ return tracker;
651
+ }
652
+ }
653
+ }
654
+ GridLayoutFactory.$inject = ["$mdUtil"];
655
+
656
+ /**
657
+ * @ngdoc directive
658
+ * @name mdGridTile
659
+ * @module material.components.gridList
660
+ * @restrict E
661
+ * @description
662
+ * Tiles contain the content of an `md-grid-list`. They span one or more grid
663
+ * cells vertically or horizontally, and use `md-grid-tile-{footer,header}` to
664
+ * display secondary content.
665
+ *
666
+ * ### Responsive Attributes
667
+ *
668
+ * The `md-grid-tile` directive supports "responsive" attributes, which allow
669
+ * different `md-rowspan` and `md-colspan` values depending on the currently
670
+ * matching media query (as defined in `$mdConstant.MEDIA`).
671
+ *
672
+ * In order to set a responsive attribute, first define the fallback value with
673
+ * the standard attribute name, then add additional attributes with the
674
+ * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
675
+ * (ie. `md-colspan-sm="4"`)
676
+ *
677
+ * @param {number=} md-colspan The number of columns to span (default 1). Cannot
678
+ * exceed the number of columns in the grid. Supports interpolation.
679
+ * @param {number=} md-rowspan The number of rows to span (default 1). Supports
680
+ * interpolation.
681
+ *
682
+ * @usage
683
+ * With header:
684
+ * <hljs lang="html">
685
+ * <md-grid-tile>
686
+ * <md-grid-tile-header>
687
+ * <h3>This is a header</h3>
688
+ * </md-grid-tile-header>
689
+ * </md-grid-tile>
690
+ * </hljs>
691
+ *
692
+ * With footer:
693
+ * <hljs lang="html">
694
+ * <md-grid-tile>
695
+ * <md-grid-tile-footer>
696
+ * <h3>This is a footer</h3>
697
+ * </md-grid-tile-footer>
698
+ * </md-grid-tile>
699
+ * </hljs>
700
+ *
701
+ * Spanning multiple rows/columns:
702
+ * <hljs lang="html">
703
+ * <md-grid-tile md-colspan="2" md-rowspan="3">
704
+ * </md-grid-tile>
705
+ * </hljs>
706
+ *
707
+ * Responsive attributes:
708
+ * <hljs lang="html">
709
+ * <md-grid-tile md-colspan="1" md-colspan-sm="3" md-colspan-md="5">
710
+ * </md-grid-tile>
711
+ * </hljs>
712
+ */
713
+ function GridTileDirective($mdMedia) {
714
+ return {
715
+ restrict: 'E',
716
+ require: '^mdGridList',
717
+ template: '<figure ng-transclude></figure>',
718
+ transclude: true,
719
+ scope: {},
720
+ // Simple controller that exposes attributes to the grid directive
721
+ controller: ["$attrs", function($attrs) {
722
+ this.$attrs = $attrs;
723
+ }],
724
+ link: postLink
725
+ };
726
+
727
+ function postLink(scope, element, attrs, gridCtrl) {
728
+ // Apply semantics
729
+ element.attr('role', 'listitem');
730
+
731
+ // If our colspan or rowspan changes, trigger a layout
732
+ var unwatchAttrs = $mdMedia.watchResponsiveAttributes(['md-colspan', 'md-rowspan'],
733
+ attrs, angular.bind(gridCtrl, gridCtrl.invalidateLayout));
734
+
735
+ // Tile registration/deregistration
736
+ gridCtrl.invalidateTiles();
737
+ scope.$on('$destroy', function() {
738
+ unwatchAttrs();
739
+ gridCtrl.invalidateLayout();
740
+ });
741
+
742
+ if (angular.isDefined(scope.$parent.$index)) {
743
+ scope.$watch(function() { return scope.$parent.$index; },
744
+ function indexChanged(newIdx, oldIdx) {
745
+ if (newIdx === oldIdx) {
746
+ return;
747
+ }
748
+ gridCtrl.invalidateTiles();
749
+ });
750
+ }
751
+ }
752
+ }
753
+ GridTileDirective.$inject = ["$mdMedia"];
754
+
755
+
756
+ function GridTileCaptionDirective() {
757
+ return {
758
+ template: '<figcaption ng-transclude></figcaption>',
759
+ transclude: true
760
+ };
761
+ }
762
+
763
+ })(window, window.angular);