Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Disable date selection before now #92

Open
wants to merge 79 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
dae310f
bower build
g00fy- Jun 14, 2013
d66312a
updated css to match [date-time] selector (no .datetimepicker class …
g00fy- Jun 18, 2013
fd8134d
updated module name to datePicker
g00fy- Jun 19, 2013
bad4a29
formatter added to `$formatters` instead of replacing, in order to wo…
g00fy- Jun 20, 2013
76461f6
change dir structure
piotr-layerzero Oct 3, 2013
cd5f629
stage 1
g00fy- Oct 7, 2013
29cafba
stage 2
g00fy- Oct 7, 2013
c3cbe2c
stage 3
g00fy- Oct 7, 2013
e05155c
stage 3
g00fy- Oct 10, 2013
6f14a28
jshint
g00fy- Oct 13, 2013
81635c9
gunt
g00fy- Oct 13, 2013
8aa0f93
fix grunt server task
piotr-layerzero Oct 14, 2013
1980479
fix input
piotr-layerzero Oct 14, 2013
d52b912
build
piotr-layerzero Oct 14, 2013
e367fc6
fixed `now` highlight
g00fy- Oct 14, 2013
d323594
fixed `now` highlight - bad previous commit
g00fy- Oct 14, 2013
f2afba5
fix(input): added scope, to prevent overriding & fix validation (ng-p…
g00fy- Oct 14, 2013
4fe2e17
fix(build): why is this happening to me?
g00fy- Oct 14, 2013
77db897
fix(css): add span to every view
g00fy- Oct 14, 2013
94689bb
don't require jquery in the 'relative' branch of a if/else in input
tehasdf Nov 8, 2013
a302305
Merge pull request #12 from tehasdf/patch-1
g00fy- Nov 8, 2013
bc5b962
build(input): don't require jquery in `relative` branch
g00fy- Nov 8, 2013
3b6d965
fix(input): fixed dateTimeAppend : works without jQuery
g00fy- Nov 12, 2013
a65e549
fix(datePicker): fixed maxView & minView
g00fy- Nov 12, 2013
f5391dc
build(1.0.2)
g00fy- Nov 12, 2013
ffaadaf
fix(README): updated live demo
g00fy- Nov 12, 2013
d002f3f
Update index.html
g00fy- Nov 12, 2013
60ef763
fix(input): dismiss only on last view
g00fy- Dec 3, 2013
ff9e83d
chore(grunt): use load-grunt-tasks module
janantala Dec 4, 2013
3d8c820
Merge pull request #14 from janantala/master
g00fy- Dec 4, 2013
1941e4d
Fixing variables declaration to come before the use
Saliba Feb 12, 2014
87e6f10
Merge pull request #17 from Saliba/master
g00fy- Feb 12, 2014
983131d
Update bower.json with key main
westberliner Feb 15, 2014
4b19b4d
Fixed week display showing a week too much in some cases.
SchizoDuckie Feb 15, 2014
93c9c26
Merge pull request #20 from SchizoDuckie/master
g00fy- Feb 16, 2014
b7f6f84
Merge pull request #18 from westberliner/patch-1
g00fy- Feb 16, 2014
9350b0a
Fixed january breaking with previous patch due to date being shifted …
SchizoDuckie Feb 22, 2014
908184b
Fix errors on minimization (set explicit injections)
Mar 4, 2014
3c66394
Merge pull request #24 from KhodeN/master
g00fy- Mar 4, 2014
86a198f
Merge pull request #23 from SchizoDuckie/patch-1
g00fy- Mar 4, 2014
a5bf52f
Add MIT license
chrisconley Mar 12, 2014
52dc68d
Merge pull request #25 from chrisconley/license
g00fy- Mar 12, 2014
c6850b6
feat: partial updates - use `partial="true"` to update values on each…
g00fy- Mar 12, 2014
401ad9c
Fix README typo
cloutierlp May 29, 2014
670fa91
using HTML entities rather than UTF-8 chars.
lperrin Jun 8, 2014
832bf1f
add support to disable the date picker
Jun 13, 2014
c615a28
fixing the build
Jun 16, 2014
81609c4
Merge pull request #47 from CosticaPuntaru/master
g00fy- Jun 16, 2014
0e57007
Cleaned up the namespace removing global functions. Global functions …
set321go Jun 29, 2014
c149c41
Renamed Factory file to match factory name
set321go Jun 29, 2014
3bee741
Renamed Factory file to match factory name
set321go Jun 29, 2014
b3649b8
Added tests for the utils factory
set321go Jun 29, 2014
cbfba51
added iml files to igore list
set321go Jun 29, 2014
9892586
Merge pull request #49 from set321go/namespace-cleanup
g00fy- Aug 10, 2014
df70b9f
Merge pull request #43 from cloutierlp/master
g00fy- Aug 10, 2014
07ac397
Npm install command fixed.
bulutcy Aug 26, 2014
ffc62e0
work with bootstrap 3
Oct 16, 2014
fe85e6c
Add ngModel for ngChange Work
silverwolfx10 Nov 24, 2014
11b7d32
Merge pull request #70 from silverwolfx10/patch-2
g00fy- Nov 25, 2014
3da2814
BugFix ngChange
silverwolfx10 Nov 25, 2014
9b1c79f
Merge pull request #71 from silverwolfx10/patch-3
g00fy- Nov 25, 2014
ab2e784
pull upstream.
lperrin Feb 1, 2015
7a1e61c
Merge pull request #46 from lperrin/master
g00fy- Feb 9, 2015
530ac25
Merge pull request #55 from bulutcy/patch-1
g00fy- Feb 9, 2015
140c9b8
Fixing issue #76
eralha Feb 11, 2015
5273f8c
Fixing issue #76
eralha Feb 11, 2015
d7c7f50
Merge pull request #64 from thomasvs/feature-bootstrap-3
g00fy- Feb 12, 2015
5a63f6a
Date range datepickers always set to show correct dates when opend.
stefan-sopic Feb 20, 2015
0dc721e
Merge pull request #79 from stefan-sopic/master
eralha Feb 20, 2015
7096f35
Dropping recess for less, build PR #79
eralha Feb 20, 2015
325e161
Fixing issue #80
eralha Feb 23, 2015
6f0805f
Adding auto close issue #72
eralha Mar 9, 2015
6c17275
Adding auto close issue #72
eralha Mar 9, 2015
0b1da9c
Autoclose to popup calendar
Hi-Fi Mar 23, 2015
d82ea5b
Merge pull request #87 from Hi-Fi/master
eralha Mar 23, 2015
5ce3531
Buil PR #87
eralha Mar 23, 2015
f8504b6
Fixing issue #91
eralha Apr 1, 2015
76a0760
Fixing issue #91
eralha Apr 2, 2015
4ac7695
Add: Disable date selection before today
cbw-jmccormick Apr 3, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.tmp
.sass-cache
app/components
.idea
.idea
*.iml
4 changes: 2 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"browser": true,
"es5": true,
"esnext": true,
"bitwise": true,
"bitwise": false,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"immed": false,
"indent": 2,
"latedef": true,
"newcap": true,
Expand Down
165 changes: 103 additions & 62 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ var mountFolder = function (connect, dir) {

module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
require('load-grunt-tasks')(grunt);

// configurable paths
var yeomanConfig = {
app : 'app',
dist: 'dist'
app: 'app',
dist: 'dist',
tmp: '.tmp'
};

try {
Expand All @@ -20,21 +21,47 @@ module.exports = function (grunt) {
}

grunt.initConfig({
yeoman : yeomanConfig,
watch : {
yeoman: yeomanConfig,
watch: {
less: {
files: ['<%= yeoman.app %>/styles/{,*/}*.less'],
tasks: ['recess', 'copy:styles'],
options: {
nospawn: true
}
},
styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['copy:styles']
},
livereload: {
files: [
'<%= yeoman.app %>/{,*/}*.html',
'{.tmp,<%= yeoman.app %>}/styles/{,*/}*.css',
'{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
'<%= yeoman.tmp %>/styles/{,*/}*.css',
'{<%= yeoman.tmp %>,<%= yeoman.app %>}/scripts/{,*/}*.js',
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
],
tasks: ['livereload']
]
}
},
less: {
options: {
compile: true
},
dist: {
files: [
{
expand: true,
cwd: '<%= yeoman.app %>/styles',
src: 'style.less',
dest: '<%= yeoman.tmp %>/styles/',
ext: '.css'
}
]
}
},
connect: {
options : {
port : 9000,
options: {
port: 9000,
// Change this to '0.0.0.0' to access the server from outside.
hostname: 'localhost'
},
Expand All @@ -43,120 +70,132 @@ module.exports = function (grunt) {
middleware: function (connect) {
return [
lrSnippet,
mountFolder(connect, '.tmp'),
mountFolder(connect, yeomanConfig.tmp),
mountFolder(connect, yeomanConfig.app)
];
}
}
},
test : {
test: {
options: {
middleware: function (connect) {
return [
mountFolder(connect, '.tmp'),
mountFolder(connect, yeomanConfig.tmp),
mountFolder(connect, 'test')
];
}
}
}
},
open : {
open: {
server: {
url: 'http://localhost:<%= connect.options.port %>'
}
},
clean : {
dist : {
clean: {
dist: {
files: [
{
dot: true,
dot: false,
src: [
'.tmp',
'<%= yeoman.tmp %>',
'<%= yeoman.dist %>'
]
}
]
},
server: '.tmp'
server: '<%= yeoman.tmp %>'
},
jshint : {
jshint: {
options: {
jshintrc: '.jshintrc'
},
all : [
all: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js'
]
},
karma : {
karma: {
unit: {
configFile: 'karma.conf.js',
singleRun : true
singleRun: true
}
},
cssmin : {
cssmin: {
dist: {
expand: true,
cwd : '<%= yeoman.dist %>',
src : ['*.css', '!*.min.css'],
dest : '<%= yeoman.dist %>',
ext : '.min.css'
cwd: '<%= yeoman.dist %>',
src: ['*.css', '!*.min.css'],
dest: '<%= yeoman.dist %>',
ext: '.min.css'
}
},
ngmin : {
ngmin: {
dist: {
expand: true,
cwd : '<%= yeoman.dist %>',
src : ['*.js', '!*.min.js'],
dest : '<%= yeoman.dist %>',
ext : '.min.js'
cwd: '<%= yeoman.dist %>',
src: ['*.js', '!*.min.js'],
dest: '<%= yeoman.dist %>',
ext: '.min.js'
}
},
uglify : {
uglify: {
dist: {
expand: true,
cwd : '<%= yeoman.dist %>',
src : ['*.min.js'],
dest : '<%= yeoman.dist %>',
ext : '.min.js'
cwd: '<%= yeoman.dist %>',
src: ['*.min.js'],
dest: '<%= yeoman.dist %>',
ext: '.min.js'
}
},
copy : {
dist: {
files: [
{
expand : true,
flatten: true,
dot : true,
cwd : '<%= yeoman.app %>',
dest : '<%= yeoman.dist %>',
src : [
'styles/date.css'
]
}
]
copy: {
styles: {
expand: true,
cwd: '<%= yeoman.app %>/styles',
dest: '<%= yeoman.tmp %>/styles/',
src: '{,*/}*.css'
}
},
ngtemplates: {
dist: {
options: {
base : '<%= yeoman.app %>',
module: 'dateInput'
base: '<%= yeoman.app %>',
module: 'datePicker'
},
src : '<%= yeoman.app %>/scripts/*.html',
dest : '.tmp/templates.js'
src: '<%= yeoman.app %>/templates/*.html',
dest: '<%= yeoman.tmp %>/templates.js'
}
},
concurrent: {
server: [
'recess',
'copy:styles'
],
test: [
'copy:styles'
],
dist: [
'copy:styles'
]
},
concat: {
options: {
separator: '\n'
},
js: {
src: ['<%= yeoman.app %>/scripts/module.js','.tmp/templates.js'],
dest: '<%= yeoman.dist %>/index.js'
src: ['<%= yeoman.app %>/scripts/{datePicker,input,dateRange,datePickerUtils}.js', '<%= yeoman.tmp %>/templates.js'],
dest: '<%= yeoman.dist %>/index.js',
options: {
banner:'\'use strict\';\n(function(angular){\n',
footer:'})(angular);',
// Replace all 'use strict' statements in the code with a single one at the top
process: function(src) {
return src.replace(/(^|\n)[ \t]*('use strict'|"use strict");?\s*/g, '$1');
}
}
},
css: {
src: ['<%= yeoman.app %>/styles/date.css'],
src: ['<%= yeoman.tmp %>/{,*/}*.css'],
dest: '<%= yeoman.dist %>/index.css'
}
}
Expand All @@ -166,7 +205,8 @@ module.exports = function (grunt) {

grunt.registerTask('server', [
'clean:server',
'livereload-start',
'recess',
'concurrent:server',
'connect:livereload',
'open',
'watch'
Expand All @@ -179,8 +219,9 @@ module.exports = function (grunt) {
]);

grunt.registerTask('build', [
'clean:dist',
'jshint',
'clean:dist',
'less',
'ngtemplates',
'concat',
'cssmin',
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2013-2014 Piotrek Majewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading