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
data/vendor/assets/bower_components/angular-material/modules/closure/input/input-default-theme.css
ADDED
@@ -0,0 +1,46 @@
|
|
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-input-container.md-THEME_NAME-theme .md-input {
|
9
|
+
color: '{{foreground-1}}';
|
10
|
+
border-color: '{{foreground-4}}';
|
11
|
+
text-shadow: '{{foreground-shadow}}'; }
|
12
|
+
md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder {
|
13
|
+
color: '{{foreground-3}}'; }
|
14
|
+
md-input-container.md-THEME_NAME-theme > md-icon {
|
15
|
+
color: '{{foreground-1}}'; }
|
16
|
+
md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder {
|
17
|
+
text-shadow: '{{foreground-shadow}}';
|
18
|
+
color: '{{foreground-3}}'; }
|
19
|
+
md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] {
|
20
|
+
color: '{{warn-500}}'; }
|
21
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label {
|
22
|
+
color: '{{foreground-2}}'; }
|
23
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input {
|
24
|
+
border-color: '{{primary-500}}'; }
|
25
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label {
|
26
|
+
color: '{{primary-500}}'; }
|
27
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon {
|
28
|
+
color: '{{primary-500}}'; }
|
29
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input {
|
30
|
+
border-color: '{{accent-500}}'; }
|
31
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label {
|
32
|
+
color: '{{accent-500}}'; }
|
33
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input {
|
34
|
+
border-color: '{{warn-500}}'; }
|
35
|
+
md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label {
|
36
|
+
color: '{{warn-500}}'; }
|
37
|
+
md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input {
|
38
|
+
border-color: '{{warn-500}}'; }
|
39
|
+
md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label {
|
40
|
+
color: '{{warn-500}}'; }
|
41
|
+
md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter {
|
42
|
+
color: '{{warn-500}}'; }
|
43
|
+
md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input {
|
44
|
+
border-bottom-color: transparent;
|
45
|
+
color: '{{foreground-3}}';
|
46
|
+
background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); }
|
@@ -0,0 +1,162 @@
|
|
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-input-container {
|
9
|
+
display: -webkit-flex;
|
10
|
+
display: -ms-flexbox;
|
11
|
+
display: flex;
|
12
|
+
position: relative;
|
13
|
+
-webkit-flex-direction: column;
|
14
|
+
-ms-flex-direction: column;
|
15
|
+
flex-direction: column;
|
16
|
+
padding: 2px;
|
17
|
+
padding-bottom: 26px;
|
18
|
+
/*
|
19
|
+
* The .md-input class is added to the input/textarea
|
20
|
+
*/ }
|
21
|
+
md-input-container > md-icon {
|
22
|
+
position: absolute;
|
23
|
+
top: 5px;
|
24
|
+
left: 2px; }
|
25
|
+
md-input-container > md-icon + input {
|
26
|
+
margin-left: 36px; }
|
27
|
+
md-input-container textarea, md-input-container input[type="text"], md-input-container input[type="password"], md-input-container input[type="datetime"], md-input-container input[type="datetime-local"], md-input-container input[type="date"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"], md-input-container input[type="number"], md-input-container input[type="email"], md-input-container input[type="url"], md-input-container input[type="search"], md-input-container input[type="tel"], md-input-container input[type="color"] {
|
28
|
+
/* remove default appearance from all input/textarea */
|
29
|
+
-moz-appearance: none;
|
30
|
+
-webkit-appearance: none; }
|
31
|
+
md-input-container input[type="date"], md-input-container input[type="datetime-local"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"] {
|
32
|
+
min-height: 26px; }
|
33
|
+
md-input-container textarea {
|
34
|
+
resize: none;
|
35
|
+
overflow: hidden; }
|
36
|
+
md-input-container textarea.md-input {
|
37
|
+
min-height: 56px;
|
38
|
+
-ms-flex-preferred-size: auto; }
|
39
|
+
md-input-container label {
|
40
|
+
position: relative;
|
41
|
+
top: -2px; }
|
42
|
+
md-input-container label:not(.md-no-float), md-input-container .md-placeholder:not(.md-select-label) {
|
43
|
+
-webkit-order: 1;
|
44
|
+
-ms-flex-order: 1;
|
45
|
+
order: 1;
|
46
|
+
pointer-events: none;
|
47
|
+
-webkit-font-smoothing: antialiased;
|
48
|
+
padding-left: 2px;
|
49
|
+
z-index: 1;
|
50
|
+
-webkit-transform: translate3d(0, 28px, 0) scale(1);
|
51
|
+
transform: translate3d(0, 28px, 0) scale(1);
|
52
|
+
transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
|
53
|
+
transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
|
54
|
+
-webkit-transform-origin: left top;
|
55
|
+
transform-origin: left top; }
|
56
|
+
html[dir=rtl] md-input-container label:not(.md-no-float), html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label) {
|
57
|
+
-webkit-transform-origin: right top;
|
58
|
+
transform-origin: right top; }
|
59
|
+
md-input-container .md-placeholder:not(.md-select-label) {
|
60
|
+
position: absolute;
|
61
|
+
top: 0;
|
62
|
+
opacity: 0;
|
63
|
+
transition-property: opacity, -webkit-transform;
|
64
|
+
transition-property: opacity, transform;
|
65
|
+
-webkit-transform: translate3d(0, 30px, 0);
|
66
|
+
transform: translate3d(0, 30px, 0); }
|
67
|
+
md-input-container.md-input-focused .md-placeholder {
|
68
|
+
opacity: 1;
|
69
|
+
-webkit-transform: translate3d(0, 24px, 0);
|
70
|
+
transform: translate3d(0, 24px, 0); }
|
71
|
+
md-input-container.md-input-has-value .md-placeholder {
|
72
|
+
transition: none;
|
73
|
+
opacity: 0; }
|
74
|
+
md-input-container:not(.md-input-has-value) input:not(:focus) {
|
75
|
+
color: transparent; }
|
76
|
+
md-input-container .md-input {
|
77
|
+
-webkit-flex: 1 1 auto;
|
78
|
+
-ms-flex: 1 1 auto;
|
79
|
+
flex: 1 1 auto;
|
80
|
+
-webkit-order: 2;
|
81
|
+
-ms-flex-order: 2;
|
82
|
+
order: 2;
|
83
|
+
display: block;
|
84
|
+
background: none;
|
85
|
+
padding-top: 2px;
|
86
|
+
padding-bottom: 1px;
|
87
|
+
padding-left: 2px;
|
88
|
+
padding-right: 2px;
|
89
|
+
border-width: 0 0 1px 0;
|
90
|
+
line-height: 26px;
|
91
|
+
-ms-flex-preferred-size: 26px;
|
92
|
+
border-radius: 0; }
|
93
|
+
md-input-container .md-input:focus {
|
94
|
+
outline: none; }
|
95
|
+
md-input-container .md-input:invalid {
|
96
|
+
outline: none;
|
97
|
+
box-shadow: none; }
|
98
|
+
md-input-container ng-messages, md-input-container data-ng-messages, md-input-container x-ng-messages, md-input-container [ng-messages], md-input-container [data-ng-messages], md-input-container [x-ng-messages] {
|
99
|
+
-webkit-order: 3;
|
100
|
+
-ms-flex-order: 3;
|
101
|
+
order: 3;
|
102
|
+
position: relative; }
|
103
|
+
md-input-container ng-message, md-input-container data-ng-message, md-input-container x-ng-message, md-input-container [ng-message], md-input-container [data-ng-message], md-input-container [x-ng-message], md-input-container .md-char-counter {
|
104
|
+
-webkit-font-smoothing: antialiased;
|
105
|
+
position: absolute;
|
106
|
+
font-size: 12px;
|
107
|
+
line-height: 24px; }
|
108
|
+
md-input-container ng-message:not(.md-char-counter), md-input-container data-ng-message:not(.md-char-counter), md-input-container x-ng-message:not(.md-char-counter), md-input-container [ng-message]:not(.md-char-counter), md-input-container [data-ng-message]:not(.md-char-counter), md-input-container [x-ng-message]:not(.md-char-counter), md-input-container .md-char-counter:not(.md-char-counter) {
|
109
|
+
padding-right: 30px; }
|
110
|
+
md-input-container ng-message.ng-enter, md-input-container data-ng-message.ng-enter, md-input-container x-ng-message.ng-enter, md-input-container [ng-message].ng-enter, md-input-container [data-ng-message].ng-enter, md-input-container [x-ng-message].ng-enter, md-input-container .md-char-counter.ng-enter {
|
111
|
+
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
112
|
+
transition-delay: 0.2s; }
|
113
|
+
md-input-container ng-message.ng-leave, md-input-container data-ng-message.ng-leave, md-input-container x-ng-message.ng-leave, md-input-container [ng-message].ng-leave, md-input-container [data-ng-message].ng-leave, md-input-container [x-ng-message].ng-leave, md-input-container .md-char-counter.ng-leave {
|
114
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
|
115
|
+
md-input-container ng-message.ng-enter, md-input-container ng-message.ng-leave.ng-leave-active, md-input-container data-ng-message.ng-enter, md-input-container data-ng-message.ng-leave.ng-leave-active, md-input-container x-ng-message.ng-enter, md-input-container x-ng-message.ng-leave.ng-leave-active, md-input-container [ng-message].ng-enter, md-input-container [ng-message].ng-leave.ng-leave-active, md-input-container [data-ng-message].ng-enter, md-input-container [data-ng-message].ng-leave.ng-leave-active, md-input-container [x-ng-message].ng-enter, md-input-container [x-ng-message].ng-leave.ng-leave-active, md-input-container .md-char-counter.ng-enter, md-input-container .md-char-counter.ng-leave.ng-leave-active {
|
116
|
+
opacity: 0;
|
117
|
+
-webkit-transform: translate3d(0, -20%, 0);
|
118
|
+
transform: translate3d(0, -20%, 0); }
|
119
|
+
md-input-container ng-message.ng-leave, md-input-container ng-message.ng-enter.ng-enter-active, md-input-container data-ng-message.ng-leave, md-input-container data-ng-message.ng-enter.ng-enter-active, md-input-container x-ng-message.ng-leave, md-input-container x-ng-message.ng-enter.ng-enter-active, md-input-container [ng-message].ng-leave, md-input-container [ng-message].ng-enter.ng-enter-active, md-input-container [data-ng-message].ng-leave, md-input-container [data-ng-message].ng-enter.ng-enter-active, md-input-container [x-ng-message].ng-leave, md-input-container [x-ng-message].ng-enter.ng-enter-active, md-input-container .md-char-counter.ng-leave, md-input-container .md-char-counter.ng-enter.ng-enter-active {
|
120
|
+
opacity: 1;
|
121
|
+
-webkit-transform: translate3d(0, 0, 0);
|
122
|
+
transform: translate3d(0, 0, 0); }
|
123
|
+
md-input-container .md-char-counter {
|
124
|
+
bottom: 2px;
|
125
|
+
right: 2px; }
|
126
|
+
md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {
|
127
|
+
-webkit-transform: translate3d(0, 6px, 0) scale(0.75);
|
128
|
+
transform: translate3d(0, 6px, 0) scale(0.75); }
|
129
|
+
md-input-container.md-input-focused .md-input, md-input-container .md-input.ng-invalid.ng-dirty {
|
130
|
+
padding-bottom: 0;
|
131
|
+
border-width: 0 0 2px 0; }
|
132
|
+
md-input-container .md-input[disabled], [disabled] md-input-container .md-input {
|
133
|
+
background-position: 0 bottom;
|
134
|
+
background-size: 4px 1px;
|
135
|
+
background-repeat: repeat-x;
|
136
|
+
margin-bottom: -1px; }
|
137
|
+
|
138
|
+
md-input-container.md-icon-float {
|
139
|
+
margin-top: -16px;
|
140
|
+
transition: margin-top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
|
141
|
+
md-input-container.md-icon-float > label {
|
142
|
+
pointer-events: none;
|
143
|
+
position: absolute;
|
144
|
+
margin-left: 36px; }
|
145
|
+
md-input-container.md-icon-float > md-icon {
|
146
|
+
top: 26px;
|
147
|
+
left: 2px; }
|
148
|
+
md-input-container.md-icon-float > md-icon + input {
|
149
|
+
margin-left: 36px; }
|
150
|
+
md-input-container.md-icon-float > input {
|
151
|
+
padding-top: 24px; }
|
152
|
+
md-input-container.md-icon-float.md-input-focused, md-input-container.md-icon-float.md-input-has-value {
|
153
|
+
margin-top: -8px; }
|
154
|
+
md-input-container.md-icon-float.md-input-focused label, md-input-container.md-icon-float.md-input-has-value label {
|
155
|
+
-webkit-transform: translate3d(0, 6px, 0) scale(0.75);
|
156
|
+
transform: translate3d(0, 6px, 0) scale(0.75);
|
157
|
+
transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
|
158
|
+
transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; }
|
159
|
+
|
160
|
+
@media screen and (-ms-high-contrast: active) {
|
161
|
+
md-input-container.md-default-theme > md-icon {
|
162
|
+
fill: #fff; } }
|
@@ -0,0 +1,371 @@
|
|
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.input');
|
8
|
+
goog.require('ng.material.core');
|
9
|
+
/**
|
10
|
+
* @ngdoc module
|
11
|
+
* @name material.components.input
|
12
|
+
*/
|
13
|
+
|
14
|
+
angular.module('material.components.input', [
|
15
|
+
'material.core'
|
16
|
+
])
|
17
|
+
.directive('mdInputContainer', mdInputContainerDirective)
|
18
|
+
.directive('label', labelDirective)
|
19
|
+
.directive('input', inputTextareaDirective)
|
20
|
+
.directive('textarea', inputTextareaDirective)
|
21
|
+
.directive('mdMaxlength', mdMaxlengthDirective)
|
22
|
+
.directive('placeholder', placeholderDirective);
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @ngdoc directive
|
26
|
+
* @name mdInputContainer
|
27
|
+
* @module material.components.input
|
28
|
+
*
|
29
|
+
* @restrict E
|
30
|
+
*
|
31
|
+
* @description
|
32
|
+
* `<md-input-container>` is the parent of any input or textarea element.
|
33
|
+
*
|
34
|
+
* Input and textarea elements will not behave properly unless the md-input-container
|
35
|
+
* parent is provided.
|
36
|
+
*
|
37
|
+
* @param md-is-error {expression=} When the given expression evaluates to true, the input container will go into error state. Defaults to erroring if the input has been touched and is invalid.
|
38
|
+
* @param md-no-float {boolean=} When present, placeholders will not be converted to floating labels
|
39
|
+
*
|
40
|
+
* @usage
|
41
|
+
* <hljs lang="html">
|
42
|
+
*
|
43
|
+
* <md-input-container>
|
44
|
+
* <label>Username</label>
|
45
|
+
* <input type="text" ng-model="user.name">
|
46
|
+
* </md-input-container>
|
47
|
+
*
|
48
|
+
* <md-input-container>
|
49
|
+
* <label>Description</label>
|
50
|
+
* <textarea ng-model="user.description"></textarea>
|
51
|
+
* </md-input-container>
|
52
|
+
*
|
53
|
+
* </hljs>
|
54
|
+
*/
|
55
|
+
function mdInputContainerDirective($mdTheming, $parse) {
|
56
|
+
ContainerCtrl.$inject = ["$scope", "$element", "$attrs"];
|
57
|
+
return {
|
58
|
+
restrict: 'E',
|
59
|
+
link: postLink,
|
60
|
+
controller: ContainerCtrl
|
61
|
+
};
|
62
|
+
|
63
|
+
function postLink(scope, element, attr) {
|
64
|
+
$mdTheming(element);
|
65
|
+
}
|
66
|
+
function ContainerCtrl($scope, $element, $attrs) {
|
67
|
+
var self = this;
|
68
|
+
|
69
|
+
self.isErrorGetter = $attrs.mdIsError && $parse($attrs.mdIsError);
|
70
|
+
|
71
|
+
self.delegateClick = function() {
|
72
|
+
self.input.focus();
|
73
|
+
};
|
74
|
+
self.element = $element;
|
75
|
+
self.setFocused = function(isFocused) {
|
76
|
+
$element.toggleClass('md-input-focused', !!isFocused);
|
77
|
+
};
|
78
|
+
self.setHasValue = function(hasValue) {
|
79
|
+
$element.toggleClass('md-input-has-value', !!hasValue);
|
80
|
+
};
|
81
|
+
self.setInvalid = function(isInvalid) {
|
82
|
+
$element.toggleClass('md-input-invalid', !!isInvalid);
|
83
|
+
};
|
84
|
+
$scope.$watch(function() {
|
85
|
+
return self.label && self.input;
|
86
|
+
}, function(hasLabelAndInput) {
|
87
|
+
if (hasLabelAndInput && !self.label.attr('for')) {
|
88
|
+
self.label.attr('for', self.input.attr('id'));
|
89
|
+
}
|
90
|
+
});
|
91
|
+
}
|
92
|
+
}
|
93
|
+
mdInputContainerDirective.$inject = ["$mdTheming", "$parse"];
|
94
|
+
|
95
|
+
function labelDirective() {
|
96
|
+
return {
|
97
|
+
restrict: 'E',
|
98
|
+
require: '^?mdInputContainer',
|
99
|
+
link: function(scope, element, attr, containerCtrl) {
|
100
|
+
if (!containerCtrl || attr.mdNoFloat) return;
|
101
|
+
|
102
|
+
containerCtrl.label = element;
|
103
|
+
scope.$on('$destroy', function() {
|
104
|
+
containerCtrl.label = null;
|
105
|
+
});
|
106
|
+
}
|
107
|
+
};
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* @ngdoc directive
|
112
|
+
* @name mdInput
|
113
|
+
* @restrict E
|
114
|
+
* @module material.components.input
|
115
|
+
*
|
116
|
+
* @description
|
117
|
+
* Use the `<input>` or the `<textarea>` as a child of an `<md-input-container>`.
|
118
|
+
*
|
119
|
+
* @param {number=} md-maxlength The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.<br/><br/>
|
120
|
+
* The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength` or maxlength attributes.
|
121
|
+
* @param {string=} aria-label Aria-label is required when no label is present. A warning message will be logged in the console if not present.
|
122
|
+
* @param {string=} placeholder An alternative approach to using aria-label when the label is not present. The placeholder text is copied to the aria-label attribute.
|
123
|
+
*
|
124
|
+
* @usage
|
125
|
+
* <hljs lang="html">
|
126
|
+
* <md-input-container>
|
127
|
+
* <label>Color</label>
|
128
|
+
* <input type="text" ng-model="color" required md-maxlength="10">
|
129
|
+
* </md-input-container>
|
130
|
+
* </hljs>
|
131
|
+
* <h3>With Errors</h3>
|
132
|
+
*
|
133
|
+
* <hljs lang="html">
|
134
|
+
* <form name="userForm">
|
135
|
+
* <md-input-container>
|
136
|
+
* <label>Last Name</label>
|
137
|
+
* <input name="lastName" ng-model="lastName" required md-maxlength="10" minlength="4">
|
138
|
+
* <div ng-messages="userForm.lastName.$error" ng-show="userForm.lastName.$dirty">
|
139
|
+
* <div ng-message="required">This is required!</div>
|
140
|
+
* <div ng-message="md-maxlength">That's too long!</div>
|
141
|
+
* <div ng-message="minlength">That's too short!</div>
|
142
|
+
* </div>
|
143
|
+
* </md-input-container>
|
144
|
+
* <md-input-container>
|
145
|
+
* <label>Biography</label>
|
146
|
+
* <textarea name="bio" ng-model="biography" required md-maxlength="150"></textarea>
|
147
|
+
* <div ng-messages="userForm.bio.$error" ng-show="userForm.bio.$dirty">
|
148
|
+
* <div ng-message="required">This is required!</div>
|
149
|
+
* <div ng-message="md-maxlength">That's too long!</div>
|
150
|
+
* </div>
|
151
|
+
* </md-input-container>
|
152
|
+
* <md-input-container>
|
153
|
+
* <input aria-label='title' ng-model='title'>
|
154
|
+
* </md-input-container>
|
155
|
+
* <md-input-container>
|
156
|
+
* <input placeholder='title' ng-model='title'>
|
157
|
+
* </md-input-container>
|
158
|
+
* </form>
|
159
|
+
* </hljs>
|
160
|
+
*
|
161
|
+
* Requires [ngMessages](https://docs.angularjs.org/api/ngMessages).
|
162
|
+
* Behaves like the [AngularJS input directive](https://docs.angularjs.org/api/ng/directive/input).
|
163
|
+
*
|
164
|
+
*/
|
165
|
+
|
166
|
+
function inputTextareaDirective($mdUtil, $window, $mdAria) {
|
167
|
+
return {
|
168
|
+
restrict: 'E',
|
169
|
+
require: ['^?mdInputContainer', '?ngModel'],
|
170
|
+
link: postLink
|
171
|
+
};
|
172
|
+
|
173
|
+
function postLink(scope, element, attr, ctrls) {
|
174
|
+
|
175
|
+
var containerCtrl = ctrls[0];
|
176
|
+
var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
|
177
|
+
var isReadonly = angular.isDefined(attr.readonly);
|
178
|
+
|
179
|
+
if ( !containerCtrl ) return;
|
180
|
+
if (containerCtrl.input) {
|
181
|
+
throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");
|
182
|
+
}
|
183
|
+
containerCtrl.input = element;
|
184
|
+
|
185
|
+
if(!containerCtrl.label) {
|
186
|
+
$mdAria.expect(element, 'aria-label', element.attr('placeholder'));
|
187
|
+
}
|
188
|
+
|
189
|
+
element.addClass('md-input');
|
190
|
+
if (!element.attr('id')) {
|
191
|
+
element.attr('id', 'input_' + $mdUtil.nextUid());
|
192
|
+
}
|
193
|
+
|
194
|
+
if (element[0].tagName.toLowerCase() === 'textarea') {
|
195
|
+
setupTextarea();
|
196
|
+
}
|
197
|
+
|
198
|
+
var isErrorGetter = containerCtrl.isErrorGetter || function() {
|
199
|
+
return ngModelCtrl.$invalid && ngModelCtrl.$touched;
|
200
|
+
};
|
201
|
+
scope.$watch(isErrorGetter, containerCtrl.setInvalid);
|
202
|
+
|
203
|
+
ngModelCtrl.$parsers.push(ngModelPipelineCheckValue);
|
204
|
+
ngModelCtrl.$formatters.push(ngModelPipelineCheckValue);
|
205
|
+
|
206
|
+
element.on('input', inputCheckValue);
|
207
|
+
|
208
|
+
if (!isReadonly) {
|
209
|
+
element
|
210
|
+
.on('focus', function(ev) {
|
211
|
+
containerCtrl.setFocused(true);
|
212
|
+
})
|
213
|
+
.on('blur', function(ev) {
|
214
|
+
containerCtrl.setFocused(false);
|
215
|
+
inputCheckValue();
|
216
|
+
});
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
//ngModelCtrl.$setTouched();
|
221
|
+
//if( ngModelCtrl.$invalid ) containerCtrl.setInvalid();
|
222
|
+
|
223
|
+
scope.$on('$destroy', function() {
|
224
|
+
containerCtrl.setFocused(false);
|
225
|
+
containerCtrl.setHasValue(false);
|
226
|
+
containerCtrl.input = null;
|
227
|
+
});
|
228
|
+
|
229
|
+
/**
|
230
|
+
*
|
231
|
+
*/
|
232
|
+
function ngModelPipelineCheckValue(arg) {
|
233
|
+
containerCtrl.setHasValue(!ngModelCtrl.$isEmpty(arg));
|
234
|
+
return arg;
|
235
|
+
}
|
236
|
+
function inputCheckValue() {
|
237
|
+
// An input's value counts if its length > 0,
|
238
|
+
// or if the input's validity state says it has bad input (eg string in a number input)
|
239
|
+
containerCtrl.setHasValue(element.val().length > 0 || (element[0].validity||{}).badInput);
|
240
|
+
}
|
241
|
+
|
242
|
+
function setupTextarea() {
|
243
|
+
var node = element[0];
|
244
|
+
var onChangeTextarea = $mdUtil.debounce(growTextarea, 1);
|
245
|
+
|
246
|
+
function pipelineListener(value) {
|
247
|
+
onChangeTextarea();
|
248
|
+
return value;
|
249
|
+
}
|
250
|
+
|
251
|
+
if (ngModelCtrl) {
|
252
|
+
ngModelCtrl.$formatters.push(pipelineListener);
|
253
|
+
ngModelCtrl.$viewChangeListeners.push(pipelineListener);
|
254
|
+
} else {
|
255
|
+
onChangeTextarea();
|
256
|
+
}
|
257
|
+
element.on('keydown input', onChangeTextarea);
|
258
|
+
element.on('scroll', onScroll);
|
259
|
+
angular.element($window).on('resize', onChangeTextarea);
|
260
|
+
|
261
|
+
scope.$on('$destroy', function() {
|
262
|
+
angular.element($window).off('resize', onChangeTextarea);
|
263
|
+
});
|
264
|
+
|
265
|
+
function growTextarea() {
|
266
|
+
node.style.height = "auto";
|
267
|
+
node.scrollTop = 0;
|
268
|
+
var height = getHeight();
|
269
|
+
if (height) node.style.height = height + 'px';
|
270
|
+
}
|
271
|
+
|
272
|
+
function getHeight () {
|
273
|
+
var line = node.scrollHeight - node.offsetHeight;
|
274
|
+
return node.offsetHeight + (line > 0 ? line : 0);
|
275
|
+
}
|
276
|
+
|
277
|
+
function onScroll(e) {
|
278
|
+
node.scrollTop = 0;
|
279
|
+
// for smooth new line adding
|
280
|
+
var line = node.scrollHeight - node.offsetHeight;
|
281
|
+
var height = node.offsetHeight + line;
|
282
|
+
node.style.height = height + 'px';
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
inputTextareaDirective.$inject = ["$mdUtil", "$window", "$mdAria"];
|
288
|
+
|
289
|
+
function mdMaxlengthDirective($animate) {
|
290
|
+
return {
|
291
|
+
restrict: 'A',
|
292
|
+
require: ['ngModel', '^mdInputContainer'],
|
293
|
+
link: postLink
|
294
|
+
};
|
295
|
+
|
296
|
+
function postLink(scope, element, attr, ctrls) {
|
297
|
+
var maxlength;
|
298
|
+
var ngModelCtrl = ctrls[0];
|
299
|
+
var containerCtrl = ctrls[1];
|
300
|
+
var charCountEl = angular.element('<div class="md-char-counter">');
|
301
|
+
|
302
|
+
// Stop model from trimming. This makes it so whitespace
|
303
|
+
// over the maxlength still counts as invalid.
|
304
|
+
attr.$set('ngTrim', 'false');
|
305
|
+
containerCtrl.element.append(charCountEl);
|
306
|
+
|
307
|
+
ngModelCtrl.$formatters.push(renderCharCount);
|
308
|
+
ngModelCtrl.$viewChangeListeners.push(renderCharCount);
|
309
|
+
element.on('input keydown', function() {
|
310
|
+
renderCharCount(); //make sure it's called with no args
|
311
|
+
});
|
312
|
+
|
313
|
+
scope.$watch(attr.mdMaxlength, function(value) {
|
314
|
+
maxlength = value;
|
315
|
+
if (angular.isNumber(value) && value > 0) {
|
316
|
+
if (!charCountEl.parent().length) {
|
317
|
+
$animate.enter(charCountEl, containerCtrl.element,
|
318
|
+
angular.element(containerCtrl.element[0].lastElementChild));
|
319
|
+
}
|
320
|
+
renderCharCount();
|
321
|
+
} else {
|
322
|
+
$animate.leave(charCountEl);
|
323
|
+
}
|
324
|
+
});
|
325
|
+
|
326
|
+
ngModelCtrl.$validators['md-maxlength'] = function(modelValue, viewValue) {
|
327
|
+
if (!angular.isNumber(maxlength) || maxlength < 0) {
|
328
|
+
return true;
|
329
|
+
}
|
330
|
+
return ( modelValue || element.val() || viewValue || '' ).length <= maxlength;
|
331
|
+
};
|
332
|
+
|
333
|
+
function renderCharCount(value) {
|
334
|
+
charCountEl.text( ( element.val() || value || '' ).length + '/' + maxlength );
|
335
|
+
return value;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
mdMaxlengthDirective.$inject = ["$animate"];
|
340
|
+
|
341
|
+
function placeholderDirective($log) {
|
342
|
+
var blackListElements = ['MD-SELECT'];
|
343
|
+
return {
|
344
|
+
restrict: 'A',
|
345
|
+
require: '^^?mdInputContainer',
|
346
|
+
priority: 200,
|
347
|
+
link: postLink
|
348
|
+
};
|
349
|
+
|
350
|
+
function postLink(scope, element, attr, inputContainer) {
|
351
|
+
if (!inputContainer) return;
|
352
|
+
if (blackListElements.indexOf(element[0].nodeName) != -1) return;
|
353
|
+
if (angular.isDefined(inputContainer.element.attr('md-no-float'))) return;
|
354
|
+
|
355
|
+
var placeholderText = attr.placeholder;
|
356
|
+
element.removeAttr('placeholder');
|
357
|
+
|
358
|
+
if ( inputContainer.element.find('label').length == 0 ) {
|
359
|
+
var placeholder = '<label ng-click="delegateClick()">' + placeholderText + '</label>';
|
360
|
+
|
361
|
+
inputContainer.element.addClass('md-icon-float');
|
362
|
+
inputContainer.element.prepend(placeholder);
|
363
|
+
} else {
|
364
|
+
$log.warn("The placeholder='" + placeholderText + "' will be ignored since this md-input-container has a child label element.");
|
365
|
+
}
|
366
|
+
|
367
|
+
}
|
368
|
+
}
|
369
|
+
placeholderDirective.$inject = ["$log"];
|
370
|
+
|
371
|
+
ng.material.components.input = angular.module("material.components.input");
|