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.
- checksums.yaml +4 -4
- data/lib/todo_rails/version.rb +1 -1
- data/vendor/assets/bower.json +8 -0
- data/vendor/assets/bower_components/angular-animate/README.md +68 -0
- data/vendor/assets/bower_components/angular-animate/angular-animate.js +3721 -0
- data/vendor/assets/bower_components/angular-animate/angular-animate.min.js +52 -0
- data/vendor/assets/bower_components/angular-animate/angular-animate.min.js.map +8 -0
- data/vendor/assets/bower_components/angular-animate/bower.json +9 -0
- data/vendor/assets/bower_components/angular-animate/index.js +2 -0
- data/vendor/assets/bower_components/angular-animate/package.json +26 -0
- data/vendor/assets/bower_components/angular-aria/README.md +67 -0
- data/vendor/assets/bower_components/angular-aria/angular-aria.js +393 -0
- data/vendor/assets/bower_components/angular-aria/angular-aria.min.js +13 -0
- data/vendor/assets/bower_components/angular-aria/angular-aria.min.js.map +8 -0
- data/vendor/assets/bower_components/angular-aria/bower.json +9 -0
- data/vendor/assets/bower_components/angular-aria/index.js +2 -0
- data/vendor/assets/bower_components/angular-aria/package.json +27 -0
- data/vendor/assets/bower_components/angular-material/CHANGELOG.md +1599 -0
- data/vendor/assets/bower_components/angular-material/LICENSE +21 -0
- data/vendor/assets/bower_components/angular-material/README.md +211 -0
- data/vendor/assets/bower_components/angular-material/angular-material-mocks.js +77 -0
- data/vendor/assets/bower_components/angular-material/angular-material.css +7183 -0
- data/vendor/assets/bower_components/angular-material/angular-material.js +15406 -0
- data/vendor/assets/bower_components/angular-material/angular-material.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/angular-material.min.js +14 -0
- data/vendor/assets/bower_components/angular-material/bower.json +14 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg +2 -0
- data/vendor/assets/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss +39 -0
- data/vendor/assets/bower_components/angular-material/demos/chips/demoContactChips/style.scss +47 -0
- data/vendor/assets/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss +75 -0
- data/vendor/assets/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss +78 -0
- data/vendor/assets/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss +0 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg +26 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg +26 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg +1 -0
- data/vendor/assets/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg +26 -0
- data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/input/demoIcons/style.scss +18 -0
- data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpeg +0 -0
- data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpeg +0 -0
- data/vendor/assets/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpeg +0 -0
- data/vendor/assets/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss +13 -0
- data/vendor/assets/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss +44 -0
- data/vendor/assets/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss +25 -0
- data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg +4 -0
- data/vendor/assets/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg +4 -0
- data/vendor/assets/bower_components/angular-material/index.js +12 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css +24 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css +220 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js +951 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop.css +59 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/backdrop/backdrop.js +38 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css +16 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css +170 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js +267 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/button/button-default-theme.css +94 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/button/button.css +158 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/button/button.js +135 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/card/card-default-theme.css +12 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/card/card.css +34 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/card/card.js +84 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css +47 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox.css +124 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/checkbox/checkbox.js +166 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips-default-theme.css +24 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips.css +131 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/chips/chips.js +949 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/content/content-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/content/content.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/content/content.js +84 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/core/core.css +2594 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/core/core.js +3772 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/core/default-theme.js +4 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css +12 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog.css +111 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/dialog/dialog.js +713 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider.css +14 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/divider/divider.js +45 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabActions/fabActions.js +57 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabSpeedDial/fabSpeedDial.css +100 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabSpeedDial/fabSpeedDial.js +236 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabToolbar/fabToolbar.css +74 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabToolbar/fabToolbar.js +218 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/fabTrigger/fabTrigger.js +54 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList.css +68 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/gridList/gridList.js +762 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon-default-theme.css +15 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/icon/icon.js +783 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/input/input-default-theme.css +46 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/input/input.css +162 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/input/input.js +371 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/list/list-default-theme.css +23 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/list/list.css +147 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/list/list.js +273 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu-default-theme.css +11 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu.css +121 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/menu/menu.js +620 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css +36 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css +1409 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js +109 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css +27 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css +287 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js +126 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css +47 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton.css +91 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/radioButton/radioButton.js +312 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/select/select-default-theme.css +42 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/select/select.css +170 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/select/select.js +1055 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav.css +99 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/sidenav/sidenav.js +424 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider-default-theme.css +56 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider.css +220 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/slider/slider.js +403 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/sticky/sticky.css +21 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/sticky/sticky.js +315 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css +16 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader.css +63 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/subheader/subheader.js +93 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/swipe/swipe.js +72 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch-default-theme.css +33 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch.css +110 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/switch/switch.js +169 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg +7 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css +82 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs.css +274 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tabs/tabs.js +1060 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField-default-theme.css +30 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField.css +111 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/textField/textField.js +145 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast-default-theme.css +18 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast.css +119 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toast/toast.js +265 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar.css +83 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/toolbar/toolbar.js +169 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css +11 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip.css +72 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/tooltip/tooltip.js +267 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css +25 -0
- data/vendor/assets/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js +15 -0
- data/vendor/assets/bower_components/angular-material/modules/css/angular-material-layout.css +2375 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css +24 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.css +220 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.js +951 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/autocomplete/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.css +59 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.js +39 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/backdrop.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/backdrop/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css +16 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css +170 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js +267 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/bottomSheet/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button-default-theme.css +94 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button.css +158 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button.js +136 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/button/button.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card-default-theme.css +12 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card.css +34 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card.js +85 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/card/card.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css +47 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.css +124 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.js +167 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/checkbox/checkbox.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips-default-theme.css +24 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.css +131 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.js +949 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/chips/chips.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content.js +85 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/content/content.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/core.css +2594 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/core.js +3772 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/core.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/core.min.js +10 -0
- data/vendor/assets/bower_components/angular-material/modules/js/core/default-theme.js +4 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css +12 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.css +111 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.js +713 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/dialog/dialog.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.css +14 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.js +46 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/divider/divider.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabActions/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabActions/fabActions.js +58 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabActions/fabActions.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/bower.json +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.css +100 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.js +235 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/bower.json +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.css +74 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.js +217 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabToolbar/fabToolbar.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/fabTrigger.js +55 -0
- data/vendor/assets/bower_components/angular-material/modules/js/fabTrigger/fabTrigger.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/gridList/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.css +68 -0
- data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.js +763 -0
- data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/gridList/gridList.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon-default-theme.css +15 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.js +784 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/icon/icon.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input-default-theme.css +46 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input.css +162 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input.js +372 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/input/input.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list-default-theme.css +23 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list.css +147 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list.js +274 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/list/list.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu-default-theme.css +11 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.css +121 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.js +620 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/menu/menu.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css +36 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.css +1409 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.js +110 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css +27 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.css +287 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.js +127 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css +47 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.css +91 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.js +313 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/radioButton/radioButton.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select-default-theme.css +42 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select.css +170 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select.js +1055 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/select/select.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css +9 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.css +99 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.js +424 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sidenav/sidenav.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider-default-theme.css +56 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.css +220 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.js +404 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/slider/slider.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sticky/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.css +21 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.js +315 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/sticky/sticky.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css +16 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.css +63 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.js +93 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/subheader/subheader.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/swipe/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/swipe/swipe.js +73 -0
- data/vendor/assets/bower_components/angular-material/modules/js/swipe/swipe.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch-default-theme.css +33 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.css +110 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.js +169 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/switch/switch.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css +82 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.css +274 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.js +1060 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tabs/tabs.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField-default-theme.css +30 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.css +111 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.js +143 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/textField/textField.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast-default-theme.css +18 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.css +119 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.js +265 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toast/toast.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/bower.json +8 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css +20 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.css +83 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.js +169 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/toolbar/toolbar.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/bower.json +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css +11 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.css +72 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.js +268 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/tooltip/tooltip.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/bower.json +5 -0
- data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.css +25 -0
- data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.js +16 -0
- data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css +6 -0
- data/vendor/assets/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js +7 -0
- data/vendor/assets/bower_components/angular-material/package.json +48 -0
- data/vendor/assets/bower_components/angular/README.md +64 -0
- data/vendor/assets/bower_components/angular/angular-csp.css +21 -0
- data/vendor/assets/bower_components/angular/angular.js +28364 -0
- data/vendor/assets/bower_components/angular/angular.min.js +290 -0
- data/vendor/assets/bower_components/angular/angular.min.js.gzip +0 -0
- data/vendor/assets/bower_components/angular/angular.min.js.map +8 -0
- data/vendor/assets/bower_components/angular/bower.json +8 -0
- data/vendor/assets/bower_components/angular/index.js +2 -0
- data/vendor/assets/bower_components/angular/package.json +25 -0
- data/vendor/assets/bower_components/lodash/LICENSE +22 -0
- data/vendor/assets/bower_components/lodash/bower.json +19 -0
- data/vendor/assets/bower_components/lodash/lodash.js +12351 -0
- data/vendor/assets/bower_components/lodash/lodash.min.js +99 -0
- data/vendor/assets/bower_components/restangular/CHANGELOG.md +18 -0
- data/vendor/assets/bower_components/restangular/CONTRIBUTE.md +31 -0
- data/vendor/assets/bower_components/restangular/Gruntfile.js +149 -0
- data/vendor/assets/bower_components/restangular/README.md +1336 -0
- data/vendor/assets/bower_components/restangular/bower.json +19 -0
- data/vendor/assets/bower_components/restangular/dist/restangular.js +1355 -0
- data/vendor/assets/bower_components/restangular/dist/restangular.min.js +6 -0
- data/vendor/assets/bower_components/restangular/dist/restangular.zip +0 -0
- data/vendor/assets/bower_components/restangular/karma.conf.js +74 -0
- data/vendor/assets/bower_components/restangular/karma.underscore.conf.js +74 -0
- data/vendor/assets/bower_components/restangular/license.md +21 -0
- data/vendor/assets/bower_components/restangular/package.json +55 -0
- data/vendor/assets/bower_components/restangular/src/restangular.js +1350 -0
- data/vendor/assets/bower_components/restangular/test/restangularSpec.js +1136 -0
- metadata +424 -1
@@ -0,0 +1,21 @@
|
|
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-sticky-clone {
|
9
|
+
z-index: 2;
|
10
|
+
top: 0;
|
11
|
+
left: 0;
|
12
|
+
right: 0;
|
13
|
+
position: absolute !important;
|
14
|
+
-webkit-transform: translate3d(-9999px, -9999px, 0);
|
15
|
+
transform: translate3d(-9999px, -9999px, 0); }
|
16
|
+
.md-sticky-clone[sticky-state="active"] {
|
17
|
+
-webkit-transform: translate3d(0, 0, 0);
|
18
|
+
transform: translate3d(0, 0, 0); }
|
19
|
+
.md-sticky-clone[sticky-state="active"]:not(.md-sticky-no-effect) .md-subheader-inner {
|
20
|
+
-webkit-animation: subheaderStickyHoverIn 0.3s ease-out both;
|
21
|
+
animation: subheaderStickyHoverIn 0.3s ease-out both; }
|
@@ -0,0 +1,315 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.10.0
|
6
|
+
*/
|
7
|
+
goog.provide('ng.material.components.sticky');
|
8
|
+
goog.require('ng.material.components.content');
|
9
|
+
goog.require('ng.material.core');
|
10
|
+
/*
|
11
|
+
* @ngdoc module
|
12
|
+
* @name material.components.sticky
|
13
|
+
* @description
|
14
|
+
*
|
15
|
+
* Sticky effects for md
|
16
|
+
*/
|
17
|
+
|
18
|
+
angular.module('material.components.sticky', [
|
19
|
+
'material.core',
|
20
|
+
'material.components.content'
|
21
|
+
])
|
22
|
+
.factory('$mdSticky', MdSticky);
|
23
|
+
|
24
|
+
/*
|
25
|
+
* @ngdoc service
|
26
|
+
* @name $mdSticky
|
27
|
+
* @module material.components.sticky
|
28
|
+
*
|
29
|
+
* @description
|
30
|
+
* The `$mdSticky`service provides a mixin to make elements sticky.
|
31
|
+
*
|
32
|
+
* @returns A `$mdSticky` function that takes three arguments:
|
33
|
+
* - `scope`
|
34
|
+
* - `element`: The element that will be 'sticky'
|
35
|
+
* - `elementClone`: A clone of the element, that will be shown
|
36
|
+
* when the user starts scrolling past the original element.
|
37
|
+
* If not provided, it will use the result of `element.clone()`.
|
38
|
+
*/
|
39
|
+
|
40
|
+
function MdSticky($document, $mdConstant, $compile, $$rAF, $mdUtil) {
|
41
|
+
|
42
|
+
var browserStickySupport = checkStickySupport();
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Registers an element as sticky, used internally by directives to register themselves
|
46
|
+
*/
|
47
|
+
return function registerStickyElement(scope, element, stickyClone) {
|
48
|
+
var contentCtrl = element.controller('mdContent');
|
49
|
+
if (!contentCtrl) return;
|
50
|
+
|
51
|
+
if (browserStickySupport) {
|
52
|
+
element.css({
|
53
|
+
position: browserStickySupport,
|
54
|
+
top: 0,
|
55
|
+
'z-index': 2
|
56
|
+
});
|
57
|
+
} else {
|
58
|
+
var $$sticky = contentCtrl.$element.data('$$sticky');
|
59
|
+
if (!$$sticky) {
|
60
|
+
$$sticky = setupSticky(contentCtrl);
|
61
|
+
contentCtrl.$element.data('$$sticky', $$sticky);
|
62
|
+
}
|
63
|
+
|
64
|
+
var deregister = $$sticky.add(element, stickyClone || element.clone());
|
65
|
+
scope.$on('$destroy', deregister);
|
66
|
+
}
|
67
|
+
};
|
68
|
+
|
69
|
+
function setupSticky(contentCtrl) {
|
70
|
+
var contentEl = contentCtrl.$element;
|
71
|
+
|
72
|
+
// Refresh elements is very expensive, so we use the debounced
|
73
|
+
// version when possible.
|
74
|
+
var debouncedRefreshElements = $$rAF.throttle(refreshElements);
|
75
|
+
|
76
|
+
// setupAugmentedScrollEvents gives us `$scrollstart` and `$scroll`,
|
77
|
+
// more reliable than `scroll` on android.
|
78
|
+
setupAugmentedScrollEvents(contentEl);
|
79
|
+
contentEl.on('$scrollstart', debouncedRefreshElements);
|
80
|
+
contentEl.on('$scroll', onScroll);
|
81
|
+
|
82
|
+
var self;
|
83
|
+
var stickyBaseoffset = contentEl.prop('offsetTop');
|
84
|
+
return self = {
|
85
|
+
prev: null,
|
86
|
+
current: null, //the currently stickied item
|
87
|
+
next: null,
|
88
|
+
items: [],
|
89
|
+
add: add,
|
90
|
+
refreshElements: refreshElements
|
91
|
+
};
|
92
|
+
|
93
|
+
/***************
|
94
|
+
* Public
|
95
|
+
***************/
|
96
|
+
// Add an element and its sticky clone to this content's sticky collection
|
97
|
+
function add(element, stickyClone) {
|
98
|
+
stickyClone.addClass('md-sticky-clone');
|
99
|
+
stickyClone.css('top', stickyBaseoffset + 'px');
|
100
|
+
|
101
|
+
var item = {
|
102
|
+
element: element,
|
103
|
+
clone: stickyClone
|
104
|
+
};
|
105
|
+
self.items.push(item);
|
106
|
+
|
107
|
+
contentEl.parent().prepend(item.clone);
|
108
|
+
|
109
|
+
debouncedRefreshElements();
|
110
|
+
|
111
|
+
return function remove() {
|
112
|
+
self.items.forEach(function(item, index) {
|
113
|
+
if (item.element[0] === element[0]) {
|
114
|
+
self.items.splice(index, 1);
|
115
|
+
item.clone.remove();
|
116
|
+
}
|
117
|
+
});
|
118
|
+
debouncedRefreshElements();
|
119
|
+
};
|
120
|
+
}
|
121
|
+
|
122
|
+
function refreshElements() {
|
123
|
+
// Sort our collection of elements by their current position in the DOM.
|
124
|
+
// We need to do this because our elements' order of being added may not
|
125
|
+
// be the same as their order of display.
|
126
|
+
self.items.forEach(refreshPosition);
|
127
|
+
self.items = self.items.sort(function(a, b) {
|
128
|
+
return a.top < b.top ? -1 : 1;
|
129
|
+
});
|
130
|
+
|
131
|
+
// Find which item in the list should be active,
|
132
|
+
// based upon the content's current scroll position
|
133
|
+
var item;
|
134
|
+
var currentScrollTop = contentEl.prop('scrollTop');
|
135
|
+
for (var i = self.items.length - 1; i >= 0; i--) {
|
136
|
+
if (currentScrollTop > self.items[i].top) {
|
137
|
+
item = self.items[i];
|
138
|
+
break;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
setCurrentItem(item);
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
/***************
|
146
|
+
* Private
|
147
|
+
***************/
|
148
|
+
|
149
|
+
// Find the `top` of an item relative to the content element,
|
150
|
+
// and also the height.
|
151
|
+
function refreshPosition(item) {
|
152
|
+
// Find the top of an item by adding to the offsetHeight until we reach the
|
153
|
+
// content element.
|
154
|
+
var current = item.element[0];
|
155
|
+
item.top = 0;
|
156
|
+
item.left = 0;
|
157
|
+
while (current && current !== contentEl[0]) {
|
158
|
+
item.top += current.offsetTop;
|
159
|
+
item.left += current.offsetLeft;
|
160
|
+
current = current.offsetParent;
|
161
|
+
}
|
162
|
+
item.height = item.element.prop('offsetHeight');
|
163
|
+
item.clone.css('margin-left', item.left + 'px');
|
164
|
+
if ($mdUtil.floatingScrollbars()) {
|
165
|
+
item.clone.css('margin-right', '0');
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
// As we scroll, push in and select the correct sticky element.
|
171
|
+
function onScroll() {
|
172
|
+
var scrollTop = contentEl.prop('scrollTop');
|
173
|
+
var isScrollingDown = scrollTop > (onScroll.prevScrollTop || 0);
|
174
|
+
onScroll.prevScrollTop = scrollTop;
|
175
|
+
|
176
|
+
// At the top?
|
177
|
+
if (scrollTop === 0) {
|
178
|
+
setCurrentItem(null);
|
179
|
+
|
180
|
+
// Going to next item?
|
181
|
+
} else if (isScrollingDown && self.next) {
|
182
|
+
if (self.next.top - scrollTop <= 0) {
|
183
|
+
// Sticky the next item if we've scrolled past its position.
|
184
|
+
setCurrentItem(self.next);
|
185
|
+
} else if (self.current) {
|
186
|
+
// Push the current item up when we're almost at the next item.
|
187
|
+
if (self.next.top - scrollTop <= self.next.height) {
|
188
|
+
translate(self.current, self.next.top - self.next.height - scrollTop);
|
189
|
+
} else {
|
190
|
+
translate(self.current, null);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
// Scrolling up with a current sticky item?
|
195
|
+
} else if (!isScrollingDown && self.current) {
|
196
|
+
if (scrollTop < self.current.top) {
|
197
|
+
// Sticky the previous item if we've scrolled up past
|
198
|
+
// the original position of the currently stickied item.
|
199
|
+
setCurrentItem(self.prev);
|
200
|
+
}
|
201
|
+
// Scrolling up, and just bumping into the item above (just set to current)?
|
202
|
+
// If we have a next item bumping into the current item, translate
|
203
|
+
// the current item up from the top as it scrolls into view.
|
204
|
+
if (self.current && self.next) {
|
205
|
+
if (scrollTop >= self.next.top - self.current.height) {
|
206
|
+
translate(self.current, self.next.top - scrollTop - self.current.height);
|
207
|
+
} else {
|
208
|
+
translate(self.current, null);
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
function setCurrentItem(item) {
|
215
|
+
if (self.current === item) return;
|
216
|
+
// Deactivate currently active item
|
217
|
+
if (self.current) {
|
218
|
+
translate(self.current, null);
|
219
|
+
setStickyState(self.current, null);
|
220
|
+
}
|
221
|
+
|
222
|
+
// Activate new item if given
|
223
|
+
if (item) {
|
224
|
+
setStickyState(item, 'active');
|
225
|
+
}
|
226
|
+
|
227
|
+
self.current = item;
|
228
|
+
var index = self.items.indexOf(item);
|
229
|
+
// If index === -1, index + 1 = 0. It works out.
|
230
|
+
self.next = self.items[index + 1];
|
231
|
+
self.prev = self.items[index - 1];
|
232
|
+
setStickyState(self.next, 'next');
|
233
|
+
setStickyState(self.prev, 'prev');
|
234
|
+
}
|
235
|
+
|
236
|
+
function setStickyState(item, state) {
|
237
|
+
if (!item || item.state === state) return;
|
238
|
+
if (item.state) {
|
239
|
+
item.clone.attr('sticky-prev-state', item.state);
|
240
|
+
item.element.attr('sticky-prev-state', item.state);
|
241
|
+
}
|
242
|
+
item.clone.attr('sticky-state', state);
|
243
|
+
item.element.attr('sticky-state', state);
|
244
|
+
item.state = state;
|
245
|
+
}
|
246
|
+
|
247
|
+
function translate(item, amount) {
|
248
|
+
if (!item) return;
|
249
|
+
if (amount === null || amount === undefined) {
|
250
|
+
if (item.translateY) {
|
251
|
+
item.translateY = null;
|
252
|
+
item.clone.css($mdConstant.CSS.TRANSFORM, '');
|
253
|
+
}
|
254
|
+
} else {
|
255
|
+
item.translateY = amount;
|
256
|
+
item.clone.css(
|
257
|
+
$mdConstant.CSS.TRANSFORM,
|
258
|
+
'translate3d(' + item.left + 'px,' + amount + 'px,0)'
|
259
|
+
);
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
// Function to check for browser sticky support
|
265
|
+
function checkStickySupport($el) {
|
266
|
+
var stickyProp;
|
267
|
+
var testEl = angular.element('<div>');
|
268
|
+
$document[0].body.appendChild(testEl[0]);
|
269
|
+
|
270
|
+
var stickyProps = ['sticky', '-webkit-sticky'];
|
271
|
+
for (var i = 0; i < stickyProps.length; ++i) {
|
272
|
+
testEl.css({position: stickyProps[i], top: 0, 'z-index': 2});
|
273
|
+
if (testEl.css('position') == stickyProps[i]) {
|
274
|
+
stickyProp = stickyProps[i];
|
275
|
+
break;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
testEl.remove();
|
279
|
+
return stickyProp;
|
280
|
+
}
|
281
|
+
|
282
|
+
// Android 4.4 don't accurately give scroll events.
|
283
|
+
// To fix this problem, we setup a fake scroll event. We say:
|
284
|
+
// > If a scroll or touchmove event has happened in the last DELAY milliseconds,
|
285
|
+
// then send a `$scroll` event every animationFrame.
|
286
|
+
// Additionally, we add $scrollstart and $scrollend events.
|
287
|
+
function setupAugmentedScrollEvents(element) {
|
288
|
+
var SCROLL_END_DELAY = 200;
|
289
|
+
var isScrolling;
|
290
|
+
var lastScrollTime;
|
291
|
+
element.on('scroll touchmove', function() {
|
292
|
+
if (!isScrolling) {
|
293
|
+
isScrolling = true;
|
294
|
+
$$rAF(loopScrollEvent);
|
295
|
+
element.triggerHandler('$scrollstart');
|
296
|
+
}
|
297
|
+
element.triggerHandler('$scroll');
|
298
|
+
lastScrollTime = +$mdUtil.now();
|
299
|
+
});
|
300
|
+
|
301
|
+
function loopScrollEvent() {
|
302
|
+
if (+$mdUtil.now() - lastScrollTime > SCROLL_END_DELAY) {
|
303
|
+
isScrolling = false;
|
304
|
+
element.triggerHandler('$scrollend');
|
305
|
+
} else {
|
306
|
+
element.triggerHandler('$scroll');
|
307
|
+
$$rAF(loopScrollEvent);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
}
|
313
|
+
MdSticky.$inject = ["$document", "$mdConstant", "$compile", "$$rAF", "$mdUtil"];
|
314
|
+
|
315
|
+
ng.material.components.sticky = angular.module("material.components.sticky");
|
@@ -0,0 +1,16 @@
|
|
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-subheader.md-THEME_NAME-theme {
|
9
|
+
color: '{{ foreground-2-0.23 }}';
|
10
|
+
background-color: '{{background-color}}'; }
|
11
|
+
.md-subheader.md-THEME_NAME-theme.md-primary {
|
12
|
+
color: '{{primary-color}}'; }
|
13
|
+
.md-subheader.md-THEME_NAME-theme.md-accent {
|
14
|
+
color: '{{accent-color}}'; }
|
15
|
+
.md-subheader.md-THEME_NAME-theme.md-warn {
|
16
|
+
color: '{{warn-color}}'; }
|
@@ -0,0 +1,63 @@
|
|
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
|
+
@-webkit-keyframes subheaderStickyHoverIn {
|
9
|
+
0% {
|
10
|
+
box-shadow: 0 0 0 0 transparent; }
|
11
|
+
|
12
|
+
100% {
|
13
|
+
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
|
14
|
+
@keyframes subheaderStickyHoverIn {
|
15
|
+
0% {
|
16
|
+
box-shadow: 0 0 0 0 transparent; }
|
17
|
+
|
18
|
+
100% {
|
19
|
+
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
|
20
|
+
|
21
|
+
@-webkit-keyframes subheaderStickyHoverOut {
|
22
|
+
0% {
|
23
|
+
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
|
24
|
+
|
25
|
+
100% {
|
26
|
+
box-shadow: 0 0 0 0 transparent; } }
|
27
|
+
|
28
|
+
@keyframes subheaderStickyHoverOut {
|
29
|
+
0% {
|
30
|
+
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
|
31
|
+
|
32
|
+
100% {
|
33
|
+
box-shadow: 0 0 0 0 transparent; } }
|
34
|
+
|
35
|
+
.md-subheader {
|
36
|
+
display: block;
|
37
|
+
font-size: 14px;
|
38
|
+
font-weight: 500;
|
39
|
+
line-height: 1em;
|
40
|
+
margin: 0 0 0 0;
|
41
|
+
margin-right: 16px;
|
42
|
+
position: relative; }
|
43
|
+
.md-subheader .md-subheader-inner {
|
44
|
+
padding: 16px 0px 16px 16px; }
|
45
|
+
.md-subheader:not(.md-sticky-no-effect) {
|
46
|
+
transition: 0.2s ease-out margin; }
|
47
|
+
.md-subheader:not(.md-sticky-no-effect):after {
|
48
|
+
position: absolute;
|
49
|
+
left: 0;
|
50
|
+
bottom: 0;
|
51
|
+
top: 0;
|
52
|
+
right: -16px;
|
53
|
+
content: ''; }
|
54
|
+
.md-subheader:not(.md-sticky-no-effect).md-sticky-clone {
|
55
|
+
z-index: 2; }
|
56
|
+
.md-subheader:not(.md-sticky-no-effect)[sticky-state="active"] {
|
57
|
+
margin-top: -2px; }
|
58
|
+
.md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state="active"] .md-subheader-inner:after {
|
59
|
+
-webkit-animation: subheaderStickyHoverOut 0.3s ease-out both;
|
60
|
+
animation: subheaderStickyHoverOut 0.3s ease-out both; }
|
61
|
+
.md-subheader .md-subheader-content {
|
62
|
+
z-index: 1;
|
63
|
+
position: relative; }
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/*!
|
2
|
+
* Angular Material Design
|
3
|
+
* https://github.com/angular/material
|
4
|
+
* @license MIT
|
5
|
+
* v0.10.0
|
6
|
+
*/
|
7
|
+
goog.provide('ng.material.components.subheader');
|
8
|
+
goog.require('ng.material.components.sticky');
|
9
|
+
goog.require('ng.material.core');
|
10
|
+
/**
|
11
|
+
* @ngdoc module
|
12
|
+
* @name material.components.subheader
|
13
|
+
* @description
|
14
|
+
* SubHeader module
|
15
|
+
*
|
16
|
+
* Subheaders are special list tiles that delineate distinct sections of a
|
17
|
+
* list or grid list and are typically related to the current filtering or
|
18
|
+
* sorting criteria. Subheader tiles are either displayed inline with tiles or
|
19
|
+
* can be associated with content, for example, in an adjacent column.
|
20
|
+
*
|
21
|
+
* Upon scrolling, subheaders remain pinned to the top of the screen and remain
|
22
|
+
* pinned until pushed on or off screen by the next subheader. @see [Material
|
23
|
+
* Design Specifications](https://www.google.com/design/spec/components/subheaders.html)
|
24
|
+
*
|
25
|
+
* > To improve the visual grouping of content, use the system color for your subheaders.
|
26
|
+
*
|
27
|
+
*/
|
28
|
+
angular.module('material.components.subheader', [
|
29
|
+
'material.core',
|
30
|
+
'material.components.sticky'
|
31
|
+
])
|
32
|
+
.directive('mdSubheader', MdSubheaderDirective);
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @ngdoc directive
|
36
|
+
* @name mdSubheader
|
37
|
+
* @module material.components.subheader
|
38
|
+
*
|
39
|
+
* @restrict E
|
40
|
+
*
|
41
|
+
* @description
|
42
|
+
* The `<md-subheader>` directive is a subheader for a section. By default it is sticky.
|
43
|
+
* You can make it not sticky by applying the `md-no-sticky` class to the subheader.
|
44
|
+
*
|
45
|
+
*
|
46
|
+
* @usage
|
47
|
+
* <hljs lang="html">
|
48
|
+
* <md-subheader>Online Friends</md-subheader>
|
49
|
+
* </hljs>
|
50
|
+
*/
|
51
|
+
|
52
|
+
function MdSubheaderDirective($mdSticky, $compile, $mdTheming) {
|
53
|
+
return {
|
54
|
+
restrict: 'E',
|
55
|
+
replace: true,
|
56
|
+
transclude: true,
|
57
|
+
template:
|
58
|
+
'<h2 class="md-subheader">' +
|
59
|
+
'<div class="md-subheader-inner">' +
|
60
|
+
'<span class="md-subheader-content"></span>' +
|
61
|
+
'</div>' +
|
62
|
+
'</h2>',
|
63
|
+
compile: function(element, attr, transclude) {
|
64
|
+
return function postLink(scope, element, attr) {
|
65
|
+
$mdTheming(element);
|
66
|
+
var outerHTML = element[0].outerHTML;
|
67
|
+
|
68
|
+
function getContent(el) {
|
69
|
+
return angular.element(el[0].querySelector('.md-subheader-content'));
|
70
|
+
}
|
71
|
+
|
72
|
+
// Transclude the user-given contents of the subheader
|
73
|
+
// the conventional way.
|
74
|
+
transclude(scope, function(clone) {
|
75
|
+
getContent(element).append(clone);
|
76
|
+
});
|
77
|
+
|
78
|
+
// Create another clone, that uses the outer and inner contents
|
79
|
+
// of the element, that will be 'stickied' as the user scrolls.
|
80
|
+
if (!element.hasClass('md-no-sticky')) {
|
81
|
+
transclude(scope, function(clone) {
|
82
|
+
var stickyClone = $compile(angular.element(outerHTML))(scope);
|
83
|
+
getContent(stickyClone).append(clone);
|
84
|
+
$mdSticky(scope, element, stickyClone);
|
85
|
+
});
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}
|
89
|
+
};
|
90
|
+
}
|
91
|
+
MdSubheaderDirective.$inject = ["$mdSticky", "$compile", "$mdTheming"];
|
92
|
+
|
93
|
+
ng.material.components.subheader = angular.module("material.components.subheader");
|