Skip to content

Commit

Permalink
Better Bower compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalbrecht committed Dec 13, 2013
1 parent e24418c commit 18b6347
Show file tree
Hide file tree
Showing 7 changed files with 394 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ module.exports = function(grunt) {
compile: {
files: {
"spec/build/specs.js": ["spec/*.coffee"],
"build/ng-quick-date.js": ["src/*.coffee"]
"dist/ng-quick-date.js": ["src/*.coffee"]
}
}
},
uglify: {
my_target: {
files: {
"build/ng-quick-date.min.js": "build/ng-quick-date.js"
"dist/ng-quick-date.min.js": "dist/ng-quick-date.js"
}
}
},
stylus: {
compile: {
files: {
"build/ng-quick-date.css": ["src/ng-quick-date.styl"],
"build/ng-quick-date-default-theme.css": ["src/ng-quick-date-default-theme.styl"]
"dist/ng-quick-date.css": ["src/ng-quick-date.styl"],
"dist/ng-quick-date-default-theme.css": ["src/ng-quick-date-default-theme.styl"]
}
}
},
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@ ngQuickDate is an [Angular.js](http://angularjs.org/) Date/Time picker directive

## Download

* [Version 1.0.0-alpha.1](https://github.com/adamalbrecht/ngQuickDate/releases/download/v1.0.0-alpha.1/ng-quick-date.zip) - Compatible with Angular 1.0.x
* [Version 1.0.0-alpha.2](https://github.com/adamalbrecht/ngQuickDate/releases/download/v1.0.0-alpha.2/ng-quick-date.zip) - Compatible with Angular 1.0.x
* Version 1.2 - Coming soon. Compatible with Angular 1.2.x

You can also install the package using [Bower](http://bower.io).

```sh
bower install ngQuickDate
```

Or add it to your bower.json file:

```javascript
dependencies: {
"ngQuickDate": "~1.0.0"
}
```

*No dependencies (besides Angular) are required, but its date parsing capabilities can be improved by 3rd party libraries. See [Smarter Date/Time Parsing](#smarter-datetime-parsing) for more info. And it's styling can be improved by using a font icon library like [Font Awesome](http://fontawesome.io/). See the [Styling](#styling) and [Configuration](#configuration-options) sections.*

## Demo
Expand Down
16 changes: 11 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "ngQuickDate",
"version": "1.0.0-alpha",
"main": "build/src/ng-quick-date.js",
"version": "1.0.0-alpha.2",
"main": ["dist/ng-quick-date.js", "dist/ng-quick-date.css", "dist/ng-quick-date-default-theme.css"],
"ignore": [
".jshintrc",
"**/*.txt",
"demo"
"bower_components",
"node_modules",
"spec",
"src",
"vendor",
"Gruntfile.js",
"karma.conf.coffee",
"package.json",
"screenshot.png"
],
"dependencies": {},
"devDependencies": {
Expand Down
20 changes: 20 additions & 0 deletions dist/ng-quick-date-default-theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.quickdate{display:inline-block;vertical-align:bottom;font-size:15px;font-family:'Helvetica Neue',Helvetica,Ariel,sans-serif;}
.quickdate input,.quickdate select{font-size:13px}
.quickdate-button{background:#fff;color:#333;border:solid 1px #ccc;box-shadow:outset 0 1px 1px rgba(0,0,0,0.075);border-radius:4px;padding:4px 8px;display:inline-block;text-decoration:none;}
.quickdate-button:hover{text-decoration:underline;}
.quickdate-button:hover i{text-decoration:none}
.quickdate-button i{padding-right:4px}
.quickdate-popup{color:#333;font-size:15px;background-color:#fafafa;border:solid 1px #ddd;border-radius:3px;-webkit-box-shadow:0 10px 30px rgba(25,25,25,0.92);-moz-box-shadow:0 10px 30px rgba(25,25,25,0.92);box-shadow:0 10px 30px rgba(25,25,25,0.92)}
.quickdate-action-link:visited,.quickdate-action-link:hover{color:#333}
.quickdate-next-month i{padding-left:10px}
.quickdate-prev-month i{padding-right:10px}
table.quickdate-calendar{border:solid 1px #ccc;background-color:#fff;}
table.quickdate-calendar th,table.quickdate-calendar td{border-right:1px solid #ccc;border-bottom:1px solid #ccc}
table.quickdate-calendar td:hover{background-color:#e6e6e6}
table.quickdate-calendar td.other-month{background-color:#dcdcdc;color:#707070;}
table.quickdate-calendar td.other-month:hover{background-color:#c8c8c8}
table.quickdate-calendar td.selected{background-color:#b0ccde;font-weight:bold}
table.quickdate-calendar td.is-today{color:#b58922;font-weight:bold}
.quickdate-popup-footer{margin:3px 1px 0}
.quickdate-clear{display:inline-block;padding:2px 4px;background-color:#fff;color:#333;border:solid 1px #ccc;box-shadow:outset 0 1px 1px rgba(0,0,0,0.075);border-radius:4px;text-decoration:none;}
.quickdate-clear:hover{background-color:#f2f2f2}
19 changes: 19 additions & 0 deletions dist/ng-quick-date.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.quickdate{display:inline-block;position:relative}
.quickdate-button div,.quickdate-action-link div{display:inline}
.quickdate-popup{z-index:10;background-color:#fff;border:solid 1px #000;text-align:center;width:250px;display:none;position:absolute;padding:5px;}
.quickdate-popup.open{display:block}
.quickdate-close{position:absolute;top:5px;right:5px;color:#333;}
.quickdate-close:hover,.quickdate-close:visited{color:#333}
.quickdate-calendar-header{display:block;padding:2px 0;margin-bottom:5px;text-align:center}
.quickdate-month{display:inline-block}
a.quickdate-prev-month{float:left}
a.quickdate-next-month{float:right}
.quickdate-text-inputs{text-align:left;margin-bottom:5px}
.quickdate-input-wrapper{width:48%;display:inline-block}
input.quickdate-date-input,input.quickdate-time-input{width:100px;margin:0;height:auto;padding:2px 3px}
table.quickdate-calendar{border-collapse:collapse;border-spacing:0;width:100%;margin-top:5px;}
table.quickdate-calendar th,table.quickdate-calendar td{padding:5px}
table.quickdate-calendar td:hover{cursor:pointer}
.quickdate-popup-footer{text-align:right;display:block}
.quickdate-error{border:1px solid #dd3b30 !important}
.quickdate-error:focus{outline-color:#dd3b30 !important}
Loading

0 comments on commit 18b6347

Please sign in to comment.