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,6 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */md-checkbox{box-sizing:border-box;display:block;margin:8px;white-space:nowrap;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-left:18px;padding-right:0;position:relative;line-height:26px;min-width:18px;min-height:18px}html[dir=rtl] md-checkbox{padding-left:0;padding-right:18px}md-checkbox *,md-checkbox :after,md-checkbox :before{box-sizing:border-box}md-checkbox.md-focused:not([disabled]) .md-container:before{left:-8px;top:-8px;right:-8px;bottom:-8px}md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before{background-color:rgba(0,0,0,.12)}md-checkbox .md-container{position:absolute;top:50%;display:inline-block;width:18px;height:18px;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:0;right:auto}html[dir=rtl] md-checkbox .md-container{left:auto;right:0}md-checkbox .md-container:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}md-checkbox .md-container:after{content:'';position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}md-checkbox .md-container .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-15px;top:-15px;right:-15px;bottom:-15px}md-checkbox .md-icon{transition:240ms;position:absolute;top:0;left:0;width:18px;height:18px;border-width:2px;border-style:solid;border-radius:2px}md-checkbox.md-checked .md-icon{border:none}md-checkbox[disabled]{cursor:no-drop}md-checkbox.md-checked .md-icon:after{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;left:6px;top:2px;display:table;width:6px;height:12px;border-width:2px;border-style:solid;border-top:0;border-left:0;content:''}md-checkbox .md-label{position:relative;display:inline-block;vertical-align:middle;white-space:normal;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}md-checkbox .md-label span{margin-left:10px;margin-right:0}html[dir=rtl] md-checkbox .md-label span{margin-left:0;margin-right:10px}
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */
7
+ !function(e,n,i){"use strict";function t(e,i,t,c,d,o,a){function s(i,s){return s.type="checkbox",s.tabindex=s.tabindex||"0",i.attr("role",s.type),function(i,s,u,l){function m(e,n,t){u[e]&&i.$watch(u[e],function(e){t[e]&&s.attr(n,t[e])})}function f(e){var n=e.which||e.keyCode;(n===c.KEY_CODE.SPACE||n===c.KEY_CODE.ENTER)&&(e.preventDefault(),s.hasClass("md-focused")||s.addClass("md-focused"),p(e))}function p(e){s[0].hasAttribute("disabled")||i.$apply(function(){var n=u.ngChecked?u.checked:!l.$viewValue;l.$setViewValue(n,e&&e.type),l.$render()})}function v(){l.$viewValue?s.addClass(r):s.removeClass(r)}l=l||o.fakeNgModel(),d(s),u.ngChecked&&i.$watch(i.$eval.bind(i,u.ngChecked),l.$setViewValue.bind(l)),m("ngDisabled","tabindex",{"true":"-1","false":u.tabindex}),t.expectWithText(s,"aria-label"),e.link.pre(i,{on:n.noop,0:{}},u,[l]),i.mouseActive=!1,s.on("click",p).on("keypress",f).on("mousedown",function(){i.mouseActive=!0,a(function(){i.mouseActive=!1},100)}).on("focus",function(){i.mouseActive===!1&&s.addClass("md-focused")}).on("blur",function(){s.removeClass("md-focused")}),l.$render=v}}e=e[0];var r="md-checked";return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:s}}n.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",t),t.$inject=["inputDirective","$mdInkRipple","$mdAria","$mdConstant","$mdTheming","$mdUtil","$timeout"]}(window,window.angular);
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "angular-material-chips",
3
+ "version": "0.10.0",
4
+ "dependencies": {
5
+ "angular-material-core": "0.10.0",
6
+ "angular-material-autocomplete": "0.10.0"
7
+ }
8
+ }
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */
7
+ /* mixin definition ; sets LTR and RTL within the same style call */
8
+ md-chips.md-THEME_NAME-theme .md-chips {
9
+ box-shadow: 0 1px '{{background-300}}'; }
10
+ md-chips.md-THEME_NAME-theme .md-chips.md-focused {
11
+ box-shadow: 0 2px '{{primary-color}}'; }
12
+ md-chips.md-THEME_NAME-theme .md-chip {
13
+ background: '{{background-300}}';
14
+ color: '{{background-800}}'; }
15
+ md-chips.md-THEME_NAME-theme .md-chip.md-focused {
16
+ background: '{{primary-color}}';
17
+ color: '{{primary-contrast}}'; }
18
+ md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon {
19
+ color: '{{primary-contrast}}'; }
20
+ md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path {
21
+ fill: '{{background-500}}'; }
22
+
23
+ .md-contact-suggestion span.md-contact-email {
24
+ color: '{{background-400}}'; }
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px '{{background-300}}'}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px '{{primary-color}}'}md-chips.md-THEME_NAME-theme .md-chip{background:0 0;color:'{{background-800}}'}md-chips.md-THEME_NAME-theme .md-chip.md-focused{background:0 0;color:'{{primary-contrast}}'}md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon{color:'{{primary-contrast}}'}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:'{{background-500}}'}.md-contact-suggestion span.md-contact-email{color:'{{background-400}}'}
@@ -0,0 +1,131 @@
1
+ /*!
2
+ * Angular Material Design
3
+ * https://github.com/angular/material
4
+ * @license MIT
5
+ * v0.10.0
6
+ */
7
+ /* mixin definition ; sets LTR and RTL within the same style call */
8
+ .md-contact-chips .md-chips .md-chip {
9
+ padding: 0 8px 0 0; }
10
+ .md-contact-chips .md-chips .md-chip .md-contact-avatar {
11
+ float: left; }
12
+ .md-contact-chips .md-chips .md-chip .md-contact-avatar img {
13
+ height: 32px;
14
+ border-radius: 16px; }
15
+ .md-contact-chips .md-chips .md-chip .md-contact-name {
16
+ display: inline-block;
17
+ height: 32px;
18
+ margin-left: 8px; }
19
+
20
+ .md-contact-suggestion {
21
+ height: 56px; }
22
+ .md-contact-suggestion img {
23
+ height: 40px;
24
+ border-radius: 20px;
25
+ margin-top: 8px; }
26
+ .md-contact-suggestion .md-contact-name {
27
+ margin-left: 8px;
28
+ width: 120px; }
29
+ .md-contact-suggestion .md-contact-name, .md-contact-suggestion .md-contact-email {
30
+ display: inline-block;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis; }
33
+
34
+ .md-contact-chips-suggestions li {
35
+ height: 100%; }
36
+
37
+ .md-chips {
38
+ display: block;
39
+ font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
40
+ font-size: 13px;
41
+ padding: 0 0 8px 0;
42
+ vertical-align: middle;
43
+ cursor: text; }
44
+ .md-chips:after {
45
+ content: '';
46
+ display: table;
47
+ clear: both; }
48
+ .md-chips .md-chip {
49
+ cursor: default;
50
+ border-radius: 16px;
51
+ display: block;
52
+ height: 32px;
53
+ line-height: 32px;
54
+ margin: 8px 8px 0 0;
55
+ padding: 0 8px 0 12px;
56
+ float: left; }
57
+ .md-chips .md-chip .md-chip-content {
58
+ display: block;
59
+ padding-right: 4px;
60
+ float: left;
61
+ white-space: nowrap; }
62
+ .md-chips .md-chip .md-chip-content:focus {
63
+ outline: none; }
64
+ .md-chips .md-chip .md-chip-remove-container {
65
+ display: inline-block;
66
+ margin-right: -5px; }
67
+ .md-chips .md-chip .md-chip-remove {
68
+ text-align: center;
69
+ width: 32px;
70
+ height: 32px;
71
+ min-width: 0;
72
+ padding: 0;
73
+ background: transparent;
74
+ border: none;
75
+ box-shadow: none;
76
+ margin: 0;
77
+ position: relative; }
78
+ .md-chips .md-chip .md-chip-remove md-icon {
79
+ height: 18px;
80
+ width: 18px;
81
+ position: absolute;
82
+ top: 50%;
83
+ left: 50%;
84
+ -webkit-transform: translate3d(-50%, -50%, 0);
85
+ transform: translate3d(-50%, -50%, 0); }
86
+ .md-chips .md-chip-input-container {
87
+ display: block;
88
+ line-height: 32px;
89
+ margin: 8px 8px 0 0;
90
+ padding: 0 8px 0 12px;
91
+ float: left; }
92
+ .md-chips .md-chip-input-container input:not([type]), .md-chips .md-chip-input-container input[type="email"], .md-chips .md-chip-input-container input[type="number"], .md-chips .md-chip-input-container input[type="tel"], .md-chips .md-chip-input-container input[type="url"], .md-chips .md-chip-input-container input[type="text"] {
93
+ border: 0;
94
+ height: 32px;
95
+ line-height: 32px;
96
+ padding: 0; }
97
+ .md-chips .md-chip-input-container input:not([type]):focus, .md-chips .md-chip-input-container input[type="email"]:focus, .md-chips .md-chip-input-container input[type="number"]:focus, .md-chips .md-chip-input-container input[type="tel"]:focus, .md-chips .md-chip-input-container input[type="url"]:focus, .md-chips .md-chip-input-container input[type="text"]:focus {
98
+ outline: none; }
99
+ .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
100
+ background: transparent;
101
+ height: 32px; }
102
+ .md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap {
103
+ box-shadow: none; }
104
+ .md-chips .md-chip-input-container md-autocomplete input {
105
+ position: relative; }
106
+ .md-chips .md-chip-input-container input {
107
+ border: 0;
108
+ height: 32px;
109
+ line-height: 32px;
110
+ padding: 0; }
111
+ .md-chips .md-chip-input-container input:focus {
112
+ outline: none; }
113
+ .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
114
+ height: 32px; }
115
+ .md-chips .md-chip-input-container md-autocomplete {
116
+ box-shadow: none; }
117
+ .md-chips .md-chip-input-container md-autocomplete input {
118
+ position: relative; }
119
+ .md-chips .md-chip-input-container:not(:first-child) {
120
+ margin: 8px 8px 0 0; }
121
+ .md-chips .md-chip-input-container input {
122
+ background: transparent;
123
+ border-width: 0; }
124
+ .md-chips md-autocomplete button {
125
+ display: none; }
126
+
127
+ @media screen and (-ms-high-contrast: active) {
128
+ .md-chip-input-container, md-chip {
129
+ border: 1px solid #fff; }
130
+ .md-chip-input-container md-autocomplete {
131
+ border: none; } }
@@ -0,0 +1,949 @@
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.chips
13
+ */
14
+ /*
15
+ * @see js folder for chips implementation
16
+ */
17
+ angular.module('material.components.chips', [
18
+ 'material.core',
19
+ 'material.components.autocomplete'
20
+ ]);
21
+
22
+ angular
23
+ .module('material.components.chips')
24
+ .directive('mdChip', MdChip);
25
+
26
+ /**
27
+ * @ngdoc directive
28
+ * @name mdChip
29
+ * @module material.components.chips
30
+ *
31
+ * @description
32
+ * `<md-chip>` is a component used within `<md-chips>` and is responsible for rendering individual
33
+ * chips.
34
+ *
35
+ *
36
+ * @usage
37
+ * <hljs lang="html">
38
+ * <md-chip>{{$chip}}</md-chip>
39
+ * </hljs>
40
+ *
41
+ */
42
+
43
+ // This hint text is hidden within a chip but used by screen readers to
44
+ // inform the user how they can interact with a chip.
45
+ var DELETE_HINT_TEMPLATE = '\
46
+ <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">\
47
+ {{$mdChipsCtrl.deleteHint}}\
48
+ </span>';
49
+
50
+ /**
51
+ * MDChip Directive Definition
52
+ *
53
+ * @param $mdTheming
54
+ * @param $mdInkRipple
55
+ * ngInject
56
+ */
57
+ function MdChip($mdTheming) {
58
+ return {
59
+ restrict: 'E',
60
+ require: '^?mdChips',
61
+ compile: compile
62
+ };
63
+
64
+ function compile(element, attr) {
65
+ element.append(DELETE_HINT_TEMPLATE);
66
+ return function postLink(scope, element, attr, ctrl) {
67
+ element.addClass('md-chip');
68
+ $mdTheming(element);
69
+
70
+ if (ctrl) angular.element(element[0].querySelector('.md-chip-content'))
71
+ .on('blur', function () {
72
+ ctrl.selectedChip = -1;
73
+ });
74
+ };
75
+ }
76
+ }
77
+ MdChip.$inject = ["$mdTheming"];
78
+
79
+ angular
80
+ .module('material.components.chips')
81
+ .directive('mdChipRemove', MdChipRemove);
82
+
83
+ /**
84
+ * @ngdoc directive
85
+ * @name mdChipRemove
86
+ * @module material.components.chips
87
+ *
88
+ * @description
89
+ * `<md-chip-remove>`
90
+ * Designates an element to be used as the delete button for a chip. This
91
+ * element is passed as a child of the `md-chips` element.
92
+ *
93
+ * @usage
94
+ * <hljs lang="html">
95
+ * <md-chips><button md-chip-remove>DEL</button></md-chips>
96
+ * </hljs>
97
+ */
98
+
99
+
100
+ /**
101
+ * MdChipRemove Directive Definition.
102
+ *
103
+ * @param $compile
104
+ * @param $timeout
105
+ * @returns {{restrict: string, require: string[], link: Function, scope: boolean}}
106
+ * @constructor
107
+ */
108
+ function MdChipRemove ($timeout) {
109
+ return {
110
+ restrict: 'A',
111
+ require: '^mdChips',
112
+ scope: false,
113
+ link: postLink
114
+ };
115
+
116
+ function postLink(scope, element, attr, ctrl) {
117
+ element.on('click', function(event) {
118
+ scope.$apply(function() {
119
+ ctrl.removeChip(scope.$$replacedScope.$index);
120
+ });
121
+ });
122
+
123
+ // Child elements aren't available until after a $timeout tick as they are hidden by an
124
+ // `ng-if`. see http://goo.gl/zIWfuw
125
+ $timeout(function() {
126
+ element.attr({ tabindex: -1, ariaHidden: true });
127
+ element.find('button').attr('tabindex', '-1');
128
+ });
129
+ }
130
+ }
131
+ MdChipRemove.$inject = ["$timeout"];
132
+
133
+ angular
134
+ .module('material.components.chips')
135
+ .directive('mdChipTransclude', MdChipTransclude);
136
+
137
+ function MdChipTransclude ($compile, $mdUtil) {
138
+ return {
139
+ restrict: 'EA',
140
+ terminal: true,
141
+ link: link,
142
+ scope: false
143
+ };
144
+ function link (scope, element, attr) {
145
+ var ctrl = scope.$parent.$mdChipsCtrl,
146
+ newScope = ctrl.parent.$new(false, ctrl.parent);
147
+ newScope.$$replacedScope = scope;
148
+ newScope.$chip = scope.$chip;
149
+ newScope.$mdChipsCtrl = ctrl;
150
+ element.html(ctrl.$scope.$eval(attr.mdChipTransclude));
151
+ $compile(element.contents())(newScope);
152
+ }
153
+ }
154
+ MdChipTransclude.$inject = ["$compile", "$mdUtil"];
155
+
156
+ angular
157
+ .module('material.components.chips')
158
+ .controller('MdChipsCtrl', MdChipsCtrl);
159
+
160
+ /**
161
+ * Controller for the MdChips component. Responsible for adding to and
162
+ * removing from the list of chips, marking chips as selected, and binding to
163
+ * the models of various input components.
164
+ *
165
+ * @param $scope
166
+ * @param $mdConstant
167
+ * @param $log
168
+ * @param $element
169
+ * @constructor
170
+ */
171
+ function MdChipsCtrl ($scope, $mdConstant, $log, $element, $timeout) {
172
+ /** @type {$timeout} **/
173
+ this.$timeout = $timeout;
174
+
175
+ /** @type {Object} */
176
+ this.$mdConstant = $mdConstant;
177
+
178
+ /** @type {angular.$scope} */
179
+ this.$scope = $scope;
180
+
181
+ /** @type {angular.$scope} */
182
+ this.parent = $scope.$parent;
183
+
184
+ /** @type {$log} */
185
+ this.$log = $log;
186
+
187
+ /** @type {$element} */
188
+ this.$element = $element;
189
+
190
+ /** @type {angular.NgModelController} */
191
+ this.ngModelCtrl = null;
192
+
193
+ /** @type {angular.NgModelController} */
194
+ this.userInputNgModelCtrl = null;
195
+
196
+ /** @type {Element} */
197
+ this.userInputElement = null;
198
+
199
+ /** @type {Array.<Object>} */
200
+ this.items = [];
201
+
202
+ /** @type {number} */
203
+ this.selectedChip = -1;
204
+
205
+
206
+ /**
207
+ * Hidden hint text for how to delete a chip. Used to give context to screen readers.
208
+ * @type {string}
209
+ */
210
+ this.deleteHint = 'Press delete to remove this chip.';
211
+
212
+ /**
213
+ * Hidden label for the delete button. Used to give context to screen readers.
214
+ * @type {string}
215
+ */
216
+ this.deleteButtonLabel = 'Remove';
217
+
218
+ /**
219
+ * Model used by the input element.
220
+ * @type {string}
221
+ */
222
+ this.chipBuffer = '';
223
+
224
+ /**
225
+ * Whether to use the mdOnAppend expression to transform the chip buffer
226
+ * before appending it to the list.
227
+ * @type {boolean}
228
+ */
229
+ this.useMdOnAppend = false;
230
+ }
231
+ MdChipsCtrl.$inject = ["$scope", "$mdConstant", "$log", "$element", "$timeout"];
232
+
233
+ /**
234
+ * Handles the keydown event on the input element: <enter> appends the
235
+ * buffer to the chip list, while backspace removes the last chip in the list
236
+ * if the current buffer is empty.
237
+ * @param event
238
+ */
239
+ MdChipsCtrl.prototype.inputKeydown = function(event) {
240
+ var chipBuffer = this.getChipBuffer();
241
+ switch (event.keyCode) {
242
+ case this.$mdConstant.KEY_CODE.ENTER:
243
+ if (this.$scope.requireMatch || !chipBuffer) break;
244
+ event.preventDefault();
245
+ this.appendChip(chipBuffer);
246
+ this.resetChipBuffer();
247
+ break;
248
+ case this.$mdConstant.KEY_CODE.BACKSPACE:
249
+ if (chipBuffer) break;
250
+ event.stopPropagation();
251
+ if (this.items.length) this.selectAndFocusChipSafe(this.items.length - 1);
252
+ break;
253
+ }
254
+ };
255
+
256
+ /**
257
+ * Handles the keydown event on the chip elements: backspace removes the selected chip, arrow
258
+ * keys switch which chips is active
259
+ * @param event
260
+ */
261
+ MdChipsCtrl.prototype.chipKeydown = function (event) {
262
+ if (this.getChipBuffer()) return;
263
+ switch (event.keyCode) {
264
+ case this.$mdConstant.KEY_CODE.BACKSPACE:
265
+ case this.$mdConstant.KEY_CODE.DELETE:
266
+ if (this.selectedChip < 0) return;
267
+ event.preventDefault();
268
+ this.removeAndSelectAdjacentChip(this.selectedChip);
269
+ break;
270
+ case this.$mdConstant.KEY_CODE.LEFT_ARROW:
271
+ event.preventDefault();
272
+ if (this.selectedChip < 0) this.selectedChip = this.items.length;
273
+ if (this.items.length) this.selectAndFocusChipSafe(this.selectedChip - 1);
274
+ break;
275
+ case this.$mdConstant.KEY_CODE.RIGHT_ARROW:
276
+ event.preventDefault();
277
+ this.selectAndFocusChipSafe(this.selectedChip + 1);
278
+ break;
279
+ case this.$mdConstant.KEY_CODE.ESCAPE:
280
+ case this.$mdConstant.KEY_CODE.TAB:
281
+ if (this.selectedChip < 0) return;
282
+ event.preventDefault();
283
+ this.onFocus();
284
+ break;
285
+ }
286
+ };
287
+
288
+ /**
289
+ * Get the input's placeholder - uses `placeholder` when list is empty and `secondary-placeholder`
290
+ * when the list is non-empty. If `secondary-placeholder` is not provided, `placeholder` is used
291
+ * always.
292
+ */
293
+ MdChipsCtrl.prototype.getPlaceholder = function() {
294
+ // Allow `secondary-placeholder` to be blank.
295
+ var useSecondary = (this.items.length &&
296
+ (this.secondaryPlaceholder == '' || this.secondaryPlaceholder));
297
+ return useSecondary ? this.placeholder : this.secondaryPlaceholder;
298
+ };
299
+
300
+ /**
301
+ * Removes chip at {@code index} and selects the adjacent chip.
302
+ * @param index
303
+ */
304
+ MdChipsCtrl.prototype.removeAndSelectAdjacentChip = function(index) {
305
+ var selIndex = this.getAdjacentChipIndex(index);
306
+ this.removeChip(index);
307
+ this.$timeout(angular.bind(this, function () {
308
+ this.selectAndFocusChipSafe(selIndex);
309
+ }));
310
+ };
311
+
312
+ /**
313
+ * Sets the selected chip index to -1.
314
+ */
315
+ MdChipsCtrl.prototype.resetSelectedChip = function() {
316
+ this.selectedChip = -1;
317
+ };
318
+
319
+ /**
320
+ * Gets the index of an adjacent chip to select after deletion. Adjacency is
321
+ * determined as the next chip in the list, unless the target chip is the
322
+ * last in the list, then it is the chip immediately preceding the target. If
323
+ * there is only one item in the list, -1 is returned (select none).
324
+ * The number returned is the index to select AFTER the target has been
325
+ * removed.
326
+ * If the current chip is not selected, then -1 is returned to select none.
327
+ */
328
+ MdChipsCtrl.prototype.getAdjacentChipIndex = function(index) {
329
+ var len = this.items.length - 1;
330
+ return (len == 0) ? -1 :
331
+ (index == len) ? index -1 : index;
332
+ };
333
+
334
+ /**
335
+ * Append the contents of the buffer to the chip list. This method will first
336
+ * call out to the md-on-append method, if provided
337
+ * @param newChip
338
+ */
339
+ MdChipsCtrl.prototype.appendChip = function(newChip) {
340
+ if (this.items.indexOf(newChip) + 1) return;
341
+ if (this.useMdOnAppend && this.mdOnAppend) {
342
+ newChip = this.mdOnAppend({'$chip': newChip});
343
+ }
344
+ this.items.push(newChip);
345
+ };
346
+
347
+ /**
348
+ * Sets whether to use the md-on-append expression. This expression is
349
+ * bound to scope and controller in {@code MdChipsDirective} as
350
+ * {@code mdOnAppend}. Due to the nature of directive scope bindings, the
351
+ * controller cannot know on its own/from the scope whether an expression was
352
+ * actually provided.
353
+ */
354
+ MdChipsCtrl.prototype.useMdOnAppendExpression = function() {
355
+ this.useMdOnAppend = true;
356
+ };
357
+
358
+ /**
359
+ * Gets the input buffer. The input buffer can be the model bound to the
360
+ * default input item {@code this.chipBuffer}, the {@code selectedItem}
361
+ * model of an {@code md-autocomplete}, or, through some magic, the model
362
+ * bound to any inpput or text area element found within a
363
+ * {@code md-input-container} element.
364
+ * @return {Object|string}
365
+ */
366
+ MdChipsCtrl.prototype.getChipBuffer = function() {
367
+ return !this.userInputElement ? this.chipBuffer :
368
+ this.userInputNgModelCtrl ? this.userInputNgModelCtrl.$viewValue :
369
+ this.userInputElement[0].value;
370
+ };
371
+
372
+ /**
373
+ * Resets the input buffer for either the internal input or user provided input element.
374
+ */
375
+ MdChipsCtrl.prototype.resetChipBuffer = function() {
376
+ if (this.userInputElement) {
377
+ if (this.userInputNgModelCtrl) {
378
+ this.userInputNgModelCtrl.$setViewValue('');
379
+ this.userInputNgModelCtrl.$render();
380
+ } else {
381
+ this.userInputElement[0].value = '';
382
+ }
383
+ } else {
384
+ this.chipBuffer = '';
385
+ }
386
+ };
387
+
388
+ /**
389
+ * Removes the chip at the given index.
390
+ * @param index
391
+ */
392
+ MdChipsCtrl.prototype.removeChip = function(index) {
393
+ this.items.splice(index, 1);
394
+ };
395
+
396
+ MdChipsCtrl.prototype.removeChipAndFocusInput = function (index) {
397
+ this.removeChip(index);
398
+ this.onFocus();
399
+ };
400
+ /**
401
+ * Selects the chip at `index`,
402
+ * @param index
403
+ */
404
+ MdChipsCtrl.prototype.selectAndFocusChipSafe = function(index) {
405
+ if (!this.items.length) {
406
+ this.selectChip(-1);
407
+ this.onFocus();
408
+ return;
409
+ }
410
+ if (index === this.items.length) return this.onFocus();
411
+ index = Math.max(index, 0);
412
+ index = Math.min(index, this.items.length - 1);
413
+ this.selectChip(index);
414
+ this.focusChip(index);
415
+ };
416
+
417
+ /**
418
+ * Marks the chip at the given index as selected.
419
+ * @param index
420
+ */
421
+ MdChipsCtrl.prototype.selectChip = function(index) {
422
+ if (index >= -1 && index <= this.items.length) {
423
+ this.selectedChip = index;
424
+ } else {
425
+ this.$log.warn('Selected Chip index out of bounds; ignoring.');
426
+ }
427
+ };
428
+
429
+ /**
430
+ * Selects the chip at `index` and gives it focus.
431
+ * @param index
432
+ */
433
+ MdChipsCtrl.prototype.selectAndFocusChip = function(index) {
434
+ this.selectChip(index);
435
+ if (index != -1) {
436
+ this.focusChip(index);
437
+ }
438
+ };
439
+
440
+ /**
441
+ * Call `focus()` on the chip at `index`
442
+ */
443
+ MdChipsCtrl.prototype.focusChip = function(index) {
444
+ this.$element[0].querySelector('md-chip[index="' + index + '"] .md-chip-content').focus();
445
+ };
446
+
447
+ /**
448
+ * Configures the required interactions with the ngModel Controller.
449
+ * Specifically, set {@code this.items} to the {@code NgModelCtrl#$viewVale}.
450
+ * @param ngModelCtrl
451
+ */
452
+ MdChipsCtrl.prototype.configureNgModel = function(ngModelCtrl) {
453
+ this.ngModelCtrl = ngModelCtrl;
454
+
455
+ var self = this;
456
+ ngModelCtrl.$render = function() {
457
+ // model is updated. do something.
458
+ self.items = self.ngModelCtrl.$viewValue;
459
+ };
460
+ };
461
+
462
+ MdChipsCtrl.prototype.onFocus = function () {
463
+ var input = this.$element[0].querySelector('input');
464
+ input && input.focus();
465
+ this.resetSelectedChip();
466
+ };
467
+
468
+ MdChipsCtrl.prototype.onInputFocus = function () {
469
+ this.inputHasFocus = true;
470
+ this.resetSelectedChip();
471
+ };
472
+
473
+ MdChipsCtrl.prototype.onInputBlur = function () {
474
+ this.inputHasFocus = false;
475
+ };
476
+
477
+ /**
478
+ * Configure event bindings on a user-provided input element.
479
+ * @param inputElement
480
+ */
481
+ MdChipsCtrl.prototype.configureUserInput = function(inputElement) {
482
+ this.userInputElement = inputElement;
483
+
484
+ // Find the NgModelCtrl for the input element
485
+ var ngModelCtrl = inputElement.controller('ngModel');
486
+ // `.controller` will look in the parent as well.
487
+ if (ngModelCtrl != this.ngModelCtrl) {
488
+ this.userInputNgModelCtrl = ngModelCtrl;
489
+ }
490
+
491
+ // Bind to keydown and focus events of input
492
+ var scope = this.$scope;
493
+ var ctrl = this;
494
+ inputElement
495
+ .attr({ tabindex: 0 })
496
+ .on('keydown', function(event) { scope.$apply( angular.bind(ctrl, function() { ctrl.inputKeydown(event); })) })
497
+ .on('focus', angular.bind(ctrl, ctrl.onInputFocus))
498
+ .on('blur', angular.bind(ctrl, ctrl.onInputBlur));
499
+ };
500
+
501
+ MdChipsCtrl.prototype.configureAutocomplete = function(ctrl) {
502
+
503
+ ctrl.registerSelectedItemWatcher(angular.bind(this, function (item) {
504
+ if (item) {
505
+ this.appendChip(item);
506
+ this.resetChipBuffer();
507
+ }
508
+ }));
509
+
510
+ this.$element.find('input')
511
+ .on('focus',angular.bind(this, this.onInputFocus) )
512
+ .on('blur', angular.bind(this, this.onInputBlur) );
513
+ };
514
+
515
+ MdChipsCtrl.prototype.hasFocus = function () {
516
+ return this.inputHasFocus || this.selectedChip >= 0;
517
+ };
518
+
519
+ angular
520
+ .module('material.components.chips')
521
+ .directive('mdChips', MdChips);
522
+
523
+ /**
524
+ * @ngdoc directive
525
+ * @name mdChips
526
+ * @module material.components.chips
527
+ *
528
+ * @description
529
+ * `<md-chips>` is an input component for building lists of strings or objects. The list items are
530
+ * displayed as 'chips'. This component can make use of an `<input>` element or an
531
+ * `<md-autocomplete>` element.
532
+ *
533
+ * <strong>Custom `<md-chip-template>` template</strong>
534
+ * A custom template may be provided to render the content of each chip. This is achieved by
535
+ * specifying an `<md-chip-template>` element as a child of `<md-chips>`. Note: Any attributes on
536
+ * `<md-chip-template>` will be dropped as only the innerHTML is used for the chip template. The
537
+ * variables `$chip` and `$index` are available in the scope of `<md-chip-template>`, representing
538
+ * the chip object and its index in the list of chips, respectively.
539
+ * To override the chip delete control, include an element (ideally a button) with the attribute
540
+ * `md-chip-remove`. A click listener to remove the chip will be added automatically. The element
541
+ * is also placed as a sibling to the chip content (on which there are also click listeners) to
542
+ * avoid a nested ng-click situation.
543
+ *
544
+ * <h3> Pending Features </h3>
545
+ * <ul style="padding-left:20px;">
546
+ *
547
+ * <ul>Style
548
+ * <li>Colours for hover, press states (ripple?).</li>
549
+ * </ul>
550
+ *
551
+ * <ul>List Manipulation
552
+ * <li>delete item via DEL or backspace keys when selected</li>
553
+ * </ul>
554
+ *
555
+ * <ul>Validation
556
+ * <li>de-dupe values (or support duplicates, but fix the ng-repeat duplicate key issue)</li>
557
+ * <li>allow a validation callback</li>
558
+ * <li>hilighting style for invalid chips</li>
559
+ * </ul>
560
+ *
561
+ * <ul>Item mutation
562
+ * <li>Support `
563
+ * <md-chip-edit>` template, show/hide the edit element on tap/click? double tap/double
564
+ * click?
565
+ * </li>
566
+ * </ul>
567
+ *
568
+ * <ul>Truncation and Disambiguation (?)
569
+ * <li>Truncate chip text where possible, but do not truncate entries such that two are
570
+ * indistinguishable.</li>
571
+ * </ul>
572
+ *
573
+ * <ul>Drag and Drop
574
+ * <li>Drag and drop chips between related `<md-chips>` elements.
575
+ * </li>
576
+ * </ul>
577
+ * </ul>
578
+ *
579
+ * <span style="font-size:.8em;text-align:center">
580
+ * Warning: This component is a WORK IN PROGRESS. If you use it now,
581
+ * it will probably break on you in the future.
582
+ * </span>
583
+ *
584
+ * @param {string=|object=} ng-model A model to bind the list of items to
585
+ * @param {string=} placeholder Placeholder text that will be forwarded to the input.
586
+ * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
587
+ * displayed when there is at least on item in the list
588
+ * @param {boolean=} readonly Disables list manipulation (deleting or adding list items), hiding
589
+ * the input and delete buttons
590
+ * @param {expression} md-on-append An expression expected to convert the input string into an
591
+ * object when adding a chip.
592
+ * @param {string=} delete-hint A string read by screen readers instructing users that pressing
593
+ * the delete key will remove the chip.
594
+ * @param {string=} delete-button-label A label for the delete button. Also hidden and read by
595
+ * screen readers.
596
+ *
597
+ * @usage
598
+ * <hljs lang="html">
599
+ * <md-chips
600
+ * ng-model="myItems"
601
+ * placeholder="Add an item"
602
+ * readonly="isReadOnly">
603
+ * </md-chips>
604
+ * </hljs>
605
+ *
606
+ */
607
+
608
+
609
+ var MD_CHIPS_TEMPLATE = '\
610
+ <md-chips-wrap\
611
+ ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0"\
612
+ ng-keydown="$mdChipsCtrl.chipKeydown($event)"\
613
+ ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }"\
614
+ class="md-chips">\
615
+ <md-chip ng-repeat="$chip in $mdChipsCtrl.items"\
616
+ index="{{$index}}"\
617
+ ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}">\
618
+ <div class="md-chip-content"\
619
+ tabindex="-1"\
620
+ aria-hidden="true"\
621
+ ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"\
622
+ md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>\
623
+ <div class="md-chip-remove-container"\
624
+ md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>\
625
+ </md-chip>\
626
+ <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"\
627
+ class="md-chip-input-container"\
628
+ md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>\
629
+ </div>\
630
+ </md-chips-wrap>';
631
+
632
+ var CHIP_INPUT_TEMPLATE = '\
633
+ <input\
634
+ tabindex="0"\
635
+ placeholder="{{$mdChipsCtrl.getPlaceholder()}}"\
636
+ aria-label="{{$mdChipsCtrl.getPlaceholder()}}"\
637
+ ng-model="$mdChipsCtrl.chipBuffer"\
638
+ ng-focus="$mdChipsCtrl.onInputFocus()"\
639
+ ng-blur="$mdChipsCtrl.onInputBlur()"\
640
+ ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
641
+
642
+ var CHIP_DEFAULT_TEMPLATE = '\
643
+ <span>{{$chip}}</span>';
644
+
645
+ var CHIP_REMOVE_TEMPLATE = '\
646
+ <button\
647
+ class="md-chip-remove"\
648
+ ng-if="!$mdChipsCtrl.readonly"\
649
+ ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"\
650
+ type="button"\
651
+ aria-hidden="true"\
652
+ tabindex="-1">\
653
+ <md-icon md-svg-icon="md-close"></md-icon>\
654
+ <span class="md-visually-hidden">\
655
+ {{$mdChipsCtrl.deleteButtonLabel}}\
656
+ </span>\
657
+ </button>';
658
+
659
+ /**
660
+ * MDChips Directive Definition
661
+ */
662
+ function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout) {
663
+ return {
664
+ template: function(element, attrs) {
665
+ // Clone the element into an attribute. By prepending the attribute
666
+ // name with '$', Angular won't write it into the DOM. The cloned
667
+ // element propagates to the link function via the attrs argument,
668
+ // where various contained-elements can be consumed.
669
+ var content = attrs['$mdUserTemplate'] = element.clone();
670
+ return MD_CHIPS_TEMPLATE;
671
+ },
672
+ require: ['mdChips'],
673
+ restrict: 'E',
674
+ controller: 'MdChipsCtrl',
675
+ controllerAs: '$mdChipsCtrl',
676
+ bindToController: true,
677
+ compile: compile,
678
+ scope: {
679
+ readonly: '=readonly',
680
+ placeholder: '@',
681
+ secondaryPlaceholder: '@',
682
+ mdOnAppend: '&',
683
+ deleteHint: '@',
684
+ deleteButtonLabel: '@',
685
+ requireMatch: '=?mdRequireMatch'
686
+ }
687
+ };
688
+
689
+ /**
690
+ * Builds the final template for `md-chips` and returns the postLink function.
691
+ *
692
+ * Building the template involves 3 key components:
693
+ * static chips
694
+ * chip template
695
+ * input control
696
+ *
697
+ * If no `ng-model` is provided, only the static chip work needs to be done.
698
+ *
699
+ * If no user-passed `md-chip-template` exists, the default template is used. This resulting
700
+ * template is appended to the chip content element.
701
+ *
702
+ * The remove button may be overridden by passing an element with an md-chip-remove attribute.
703
+ *
704
+ * If an `input` or `md-autocomplete` element is provided by the caller, it is set aside for
705
+ * transclusion later. The transclusion happens in `postLink` as the parent scope is required.
706
+ * If no user input is provided, a default one is appended to the input container node in the
707
+ * template.
708
+ *
709
+ * Static Chips (i.e. `md-chip` elements passed from the caller) are gathered and set aside for
710
+ * transclusion in the `postLink` function.
711
+ *
712
+ *
713
+ * @param element
714
+ * @param attr
715
+ * @returns {Function}
716
+ */
717
+ function compile(element, attr) {
718
+ // Grab the user template from attr and reset the attribute to null.
719
+ var userTemplate = attr['$mdUserTemplate'];
720
+ attr['$mdUserTemplate'] = null;
721
+
722
+ // Set the chip remove, chip contents and chip input templates. The link function will put
723
+ // them on the scope for transclusion later.
724
+ var chipRemoveTemplate = getTemplateByQuery('md-chips>*[md-chip-remove]') || CHIP_REMOVE_TEMPLATE,
725
+ chipContentsTemplate = getTemplateByQuery('md-chips>md-chip-template') || CHIP_DEFAULT_TEMPLATE,
726
+ chipInputTemplate = getTemplateByQuery('md-chips>md-autocomplete')
727
+ || getTemplateByQuery('md-chips>input')
728
+ || CHIP_INPUT_TEMPLATE,
729
+ staticChips = userTemplate.find('md-chip');
730
+
731
+ // Warn of malformed template. See #2545
732
+ if (userTemplate[0].querySelector('md-chip-template>*[md-chip-remove]')) {
733
+ $log.warn('invalid placement of md-chip-remove within md-chip-template.');
734
+ }
735
+
736
+ function getTemplateByQuery (query) {
737
+ if (!attr.ngModel) return;
738
+ var element = userTemplate[0].querySelector(query);
739
+ return element && element.outerHTML;
740
+ }
741
+
742
+ /**
743
+ * Configures controller and transcludes.
744
+ */
745
+ return function postLink(scope, element, attrs, controllers) {
746
+
747
+ $mdUtil.initOptionalProperties(scope, attr);
748
+
749
+ $mdTheming(element);
750
+ var mdChipsCtrl = controllers[0];
751
+ mdChipsCtrl.chipContentsTemplate = chipContentsTemplate;
752
+ mdChipsCtrl.chipRemoveTemplate = chipRemoveTemplate;
753
+ mdChipsCtrl.chipInputTemplate = chipInputTemplate;
754
+
755
+ element
756
+ .attr({ ariaHidden: true, tabindex: -1 })
757
+ .on('focus', function () { mdChipsCtrl.onFocus(); });
758
+
759
+ if (attr.ngModel) {
760
+ mdChipsCtrl.configureNgModel(element.controller('ngModel'));
761
+
762
+ // If an `md-on-append` attribute was set, tell the controller to use the expression
763
+ // when appending chips.
764
+ if (attrs.mdOnAppend) mdChipsCtrl.useMdOnAppendExpression();
765
+
766
+ // The md-autocomplete and input elements won't be compiled until after this directive
767
+ // is complete (due to their nested nature). Wait a tick before looking for them to
768
+ // configure the controller.
769
+ if (chipInputTemplate != CHIP_INPUT_TEMPLATE) {
770
+ $timeout(function() {
771
+ if (chipInputTemplate.indexOf('<md-autocomplete') === 0)
772
+ mdChipsCtrl
773
+ .configureAutocomplete(element.find('md-autocomplete')
774
+ .controller('mdAutocomplete'));
775
+ mdChipsCtrl.configureUserInput(element.find('input'));
776
+ });
777
+ }
778
+ }
779
+
780
+ // Compile with the parent's scope and prepend any static chips to the wrapper.
781
+ if (staticChips.length > 0) {
782
+ var compiledStaticChips = $compile(staticChips)(scope.$parent);
783
+ $timeout(function() { element.find('md-chips-wrap').prepend(compiledStaticChips); });
784
+ }
785
+ };
786
+ }
787
+ }
788
+ MdChips.$inject = ["$mdTheming", "$mdUtil", "$compile", "$log", "$timeout"];
789
+
790
+ angular
791
+ .module('material.components.chips')
792
+ .controller('MdContactChipsCtrl', MdContactChipsCtrl);
793
+
794
+
795
+
796
+ /**
797
+ * Controller for the MdContactChips component
798
+ * @constructor
799
+ */
800
+ function MdContactChipsCtrl () {
801
+ /** @type {Object} */
802
+ this.selectedItem = null;
803
+
804
+ /** @type {string} */
805
+ this.searchText = '';
806
+ }
807
+
808
+
809
+ MdContactChipsCtrl.prototype.queryContact = function(searchText) {
810
+ var results = this.contactQuery({'$query': searchText});
811
+ return this.filterSelected ?
812
+ results.filter(angular.bind(this, this.filterSelectedContacts)) : results;
813
+ };
814
+
815
+
816
+ MdContactChipsCtrl.prototype.filterSelectedContacts = function(contact) {
817
+ return this.contacts.indexOf(contact) == -1;
818
+ };
819
+
820
+ angular
821
+ .module('material.components.chips')
822
+ .directive('mdContactChips', MdContactChips);
823
+
824
+ /**
825
+ * @ngdoc directive
826
+ * @name mdContactChips
827
+ * @module material.components.chips
828
+ *
829
+ * @description
830
+ * `<md-contact-chips>` is an input component based on `md-chips` and makes use of an
831
+ * `md-autocomplete` element. The component allows the caller to supply a query expression
832
+ * which returns a list of possible contacts. The user can select one of these and add it to
833
+ * the list of chips.
834
+ *
835
+ * @param {string=|object=} ng-model A model to bind the list of items to
836
+ * @param {string=} placeholder Placeholder text that will be forwarded to the input.
837
+ * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
838
+ * displayed when there is at least on item in the list
839
+ * @param {expression} md-contacts An expression expected to return contacts matching the search
840
+ * test, `$query`.
841
+ * @param {string} md-contact-name The field name of the contact object representing the
842
+ * contact's name.
843
+ * @param {string} md-contact-email The field name of the contact object representing the
844
+ * contact's email address.
845
+ * @param {string} md-contact-image The field name of the contact object representing the
846
+ * contact's image.
847
+ *
848
+ *
849
+ * // The following attribute has been removed but may come back.
850
+ * @param {expression=} filter-selected Whether to filter selected contacts from the list of
851
+ * suggestions shown in the autocomplete.
852
+ *
853
+ *
854
+ *
855
+ * @usage
856
+ * <hljs lang="html">
857
+ * <md-contact-chips
858
+ * ng-model="ctrl.contacts"
859
+ * md-contacts="ctrl.querySearch($query)"
860
+ * md-contact-name="name"
861
+ * md-contact-image="image"
862
+ * md-contact-email="email"
863
+ * placeholder="To">
864
+ * </md-contact-chips>
865
+ * </hljs>
866
+ *
867
+ */
868
+
869
+
870
+ var MD_CONTACT_CHIPS_TEMPLATE = '\
871
+ <md-chips class="md-contact-chips"\
872
+ ng-model="$mdContactChipsCtrl.contacts"\
873
+ md-require-match="$mdContactChipsCtrl.requireMatch"\
874
+ md-autocomplete-snap>\
875
+ <md-autocomplete\
876
+ md-menu-class="md-contact-chips-suggestions"\
877
+ md-selected-item="$mdContactChipsCtrl.selectedItem"\
878
+ md-search-text="$mdContactChipsCtrl.searchText"\
879
+ md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"\
880
+ md-item-text="$mdContactChipsCtrl.mdContactName"\
881
+ md-no-cache="true"\
882
+ md-autoselect\
883
+ placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?\
884
+ $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">\
885
+ <div class="md-contact-suggestion">\
886
+ <img \
887
+ ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"\
888
+ alt="{{item[$mdContactChipsCtrl.contactName]}}" />\
889
+ <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText">\
890
+ {{item[$mdContactChipsCtrl.contactName]}}\
891
+ </span>\
892
+ <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>\
893
+ </div>\
894
+ </md-autocomplete>\
895
+ <md-chip-template>\
896
+ <div class="md-contact-avatar">\
897
+ <img \
898
+ ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"\
899
+ alt="{{$chip[$mdContactChipsCtrl.contactName]}}" />\
900
+ </div>\
901
+ <div class="md-contact-name">\
902
+ {{$chip[$mdContactChipsCtrl.contactName]}}\
903
+ </div>\
904
+ </md-chip-template>\
905
+ </md-chips>';
906
+
907
+
908
+ /**
909
+ * MDContactChips Directive Definition
910
+ *
911
+ * @param $mdTheming
912
+ * @returns {*}
913
+ * ngInject
914
+ */
915
+ function MdContactChips ($mdTheming, $mdUtil) {
916
+ return {
917
+ template: function(element, attrs) {
918
+ return MD_CONTACT_CHIPS_TEMPLATE;
919
+ },
920
+ restrict: 'E',
921
+ controller: 'MdContactChipsCtrl',
922
+ controllerAs: '$mdContactChipsCtrl',
923
+ bindToController: true,
924
+ compile: compile,
925
+ scope: {
926
+ contactQuery: '&mdContacts',
927
+ placeholder: '@',
928
+ secondaryPlaceholder: '@',
929
+ contactName: '@mdContactName',
930
+ contactImage: '@mdContactImage',
931
+ contactEmail: '@mdContactEmail',
932
+ contacts: '=ngModel',
933
+ requireMatch: '=?mdRequireMatch'
934
+ }
935
+ };
936
+
937
+ function compile(element, attr) {
938
+ return function postLink(scope, element, attrs, controllers) {
939
+
940
+ $mdUtil.initOptionalProperties(scope, attr);
941
+ $mdTheming(element);
942
+
943
+ element.attr('tabindex', '-1');
944
+ };
945
+ }
946
+ }
947
+ MdContactChips.$inject = ["$mdTheming", "$mdUtil"];
948
+
949
+ })(window, window.angular);