Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
package files updated
  • Loading branch information
amsul committed Feb 1, 2014
1 parent c22cc81 commit 4487eb0
Show file tree
Hide file tree
Showing 32 changed files with 184 additions and 244 deletions.
8 changes: 8 additions & 0 deletions .jshintrc
@@ -0,0 +1,8 @@
{
"debug": true,
"devel": true,
"browser": true,
"asi": true,
"unused": true,
"eqnull": true
}
16 changes: 13 additions & 3 deletions CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog

## 3.4.0

- ARIA support added.
- [#128](https://github.com/amsul/pickadate.js/issues/128): Date parser recognizes a string value and uses month index as 1.
- [#316](https://github.com/amsul/pickadate.js/issues/316): Date and time parser fall back to default format if none is specified.
- [#326](https://github.com/amsul/pickadate.js/issues/326): Fixed `set('disable', true)` crashing with `max: true` in options.
- [#329](https://github.com/amsul/pickadate.js/issues/329): Fixed time picker not parsing midnight correcly.
- Improved time picker setting a time relative to “now”.


## 3.3.2

- [#283](https://github.com/amsul/pickadate.js/issues/283): Adjusted font size for narrow screens.
Expand All @@ -16,11 +26,11 @@
- [#249](https://github.com/amsul/pickadate.js/issues/249) & [#120](https://github.com/amsul/pickadate.js/issues/120): Fixed jQuery Mobile and MagnificPopup click issues.
- [#247](https://github.com/amsul/pickadate.js/issues/247): Fixed setting min limit on time picker.
- [#278](https://github.com/amsul/pickadate.js/issues/278) & [#285](https://github.com/amsul/pickadate.js/issues/285): Fixed Firefox and IE bug for finding `activeElement`.
- [#279](https://github.com/amsul/pickadate.js/issues/279): Added option to `set` things with [muted callbacks](http://amsul.ca/pickadate.js/api.htm#muted-callbacks).
- [#279](https://github.com/amsul/pickadate.js/issues/279): Added option to `set` things with [muted callbacks](http://amsul.github.io/pickadate.js/pickadate.js/api.htm#muted-callbacks).
- Fixed French translations capitalization.
- Fixed time picker scrolling.
- Added setting a [time using a native JavaScript date objects](http://amsul.ca/api.htm#method-set-select-time).
- Added option to keep an [editable `input`](http://amsul.ca/date.htm#editable) element.
- Added setting a [time using a native JavaScript date objects](http://amsul.github.io/pickadate.js/api.htm#method-set-select-time).
- Added option to keep an [editable `input`](http://amsul.github.io/pickadate.js/date.htm#editable) element.


## 3.3.0
Expand Down
14 changes: 7 additions & 7 deletions Gruntfile.js
Expand Up @@ -4,10 +4,7 @@
*/

/*jshint
asi: true
*/
/*global
module: true
node: true
*/


Expand Down Expand Up @@ -164,6 +161,9 @@ module.exports = function( grunt ) {

// Lint the files.
jshint: {
options: {
jshintrc: true
},
gruntfile: 'Gruntfile.js',
demos: [ '<%= dirs.src.demos %>/scripts/base.js' ],
pickers: [
Expand Down Expand Up @@ -275,13 +275,13 @@ module.exports = function( grunt ) {
grunt.registerMultiTask( 'htmlify', 'Recursively build static HTML files', function() {

var task = this,
options = task.options(),
// options = task.options(),

// Process the base file using the source file content.
processFile = function( fileSource ) {

var processedContent = '',
fileNameMatch = fileSource.match( /([\w-]+)(\.htm)$/ )
var processedContent = ''/*,
fileNameMatch = fileSource.match( /([\w-]+)(\.htm)$/ )*/

// Recursively process the base template using the file source content.
grunt.verbose.writeln( 'Processing ' + fileSource )
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,4 +1,4 @@
Copyright 2013 Amsul, http://amsul.ca
Copyright 2014 Amsul, http://amsul.ca

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:

Expand Down
16 changes: 8 additions & 8 deletions README.md
@@ -1,4 +1,4 @@
# pickadate v3.3.2 [![pickadate build status](https://travis-ci.org/amsul/pickadate.js.png?branch=gh-pages)](https://travis-ci.org/amsul/pickadate.js)
# pickadate v3.4.0 [![pickadate build status](https://travis-ci.org/amsul/pickadate.js.png?branch=gh-pages)](https://travis-ci.org/amsul/pickadate.js)

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.

Expand All @@ -11,7 +11,7 @@ The mobile-friendly, responsive, and lightweight jQuery date & time input picker

#### To get it:

[Download v3.3.2](https://github.com/amsul/pickadate.js/archive/3.3.2.zip) or `git clone git://github.com/amsul/pickadate.js.git` or `bower install pickadate`
[Download v3.4.0](https://github.com/amsul/pickadate.js/archive/3.4.0.zip) or `git clone git://github.com/amsul/pickadate.js.git` or `bower install pickadate`



Expand All @@ -36,9 +36,9 @@ There are currently two pickers: **date** and **time**.

File | Contents | Size (min & gzip)
----------------------- | ------------------------ | ----------------------
`picker.js` | __Base *__ | 1.37kb
`picker.date.js` | Date picker | 2.14kb
`picker.time.js` | Time picker | 1.50kb
`picker.js` | __Base *__ | 1.54kb
`picker.date.js` | Date picker | 2.17kb
`picker.time.js` | Time picker | 1.58kb

__*__ The base script is **required** for any of the pickers to function.

Expand All @@ -51,7 +51,7 @@ All themes are [generated using LESS](#less-styling) and compiled into the `lib/

File | Contents | Size (min & gzip)
----------------------- | ---------------------------- | ----------------------
`default.css` | __Base default *__ | 0.51kb
`default.css` | __Base default *__ | 0.47kb
`default.date.css` | Default date picker | 0.71kb
`default.time.css` | Default time picker | 0.35kb
`classic.css` | __Base classic *__ | 0.37kb
Expand All @@ -65,7 +65,7 @@ __**__ For languages with text flowing from right-to-left, also include the `rtl

### Translations

The translations are copied into the `lib/translations` folder. There are currently [34 languages](https://github.com/amsul/pickadate.js/blob/3.3.2/lib/translations) included.
The translations are copied into the `lib/translations` folder. There are currently [34 languages](https://github.com/amsul/pickadate.js/blob/3.4.0/lib/translations) included.



Expand Down Expand Up @@ -139,6 +139,6 @@ Before contributing any code to the project, please take a look at the [Contribu

---

© 2013 [Amsul](http://twitter.com/amsul_)
© 2014 [Amsul](http://twitter.com/amsul_)

Licensed under [MIT](http://amsul.ca/MIT)
108 changes: 59 additions & 49 deletions _raw/CHANGELOG.md
@@ -1,40 +1,50 @@
# Changelog

## 3.4.0

- ARIA support added.
- [#128]({%= pkg.bugs %}/128): Date parser recognizes a string value and uses month index as 1.
- [#316]({%= pkg.bugs %}/316): Date and time parser fall back to default format if none is specified.
- [#326]({%= pkg.bugs %}/326): Fixed `set('disable', true)` crashing with `max: true` in options.
- [#329]({%= pkg.bugs %}/329): Fixed time picker not parsing midnight correcly.
- Improved time picker setting a time relative to “now”.


## 3.3.2

- [#283](https://github.com/amsul/pickadate.js/issues/283): Adjusted font size for narrow screens.
- [#285](https://github.com/amsul/pickadate.js/issues/285): Fixed `select` menu click on Firefox.
- [#294](https://github.com/amsul/pickadate.js/issues/294): Fixed issue with `stop` method called within `onClose`.
- [#303](https://github.com/amsul/pickadate.js/issues/303): Fixed issue with `value` not being parsed when `formatSubmit` is used.
- [#283]({%= pkg.bugs %}/283): Adjusted font size for narrow screens.
- [#285]({%= pkg.bugs %}/285): Fixed `select` menu click on Firefox.
- [#294]({%= pkg.bugs %}/294): Fixed issue with `stop` method called within `onClose`.
- [#303]({%= pkg.bugs %}/303): Fixed issue with `value` not being parsed when `formatSubmit` is used.


## 3.3.1

- [#260](https://github.com/amsul/pickadate.js/issues/260): Fixed border from preventing picker from opening.
- [#248](https://github.com/amsul/pickadate.js/issues/248): Added option to enable dates/times disabled within a range.
- [#255](https://github.com/amsul/pickadate.js/issues/255): Added traditional Chinese.
- [#249](https://github.com/amsul/pickadate.js/issues/249) & [#120](https://github.com/amsul/pickadate.js/issues/120): Fixed jQuery Mobile and MagnificPopup click issues.
- [#247](https://github.com/amsul/pickadate.js/issues/247): Fixed setting min limit on time picker.
- [#278](https://github.com/amsul/pickadate.js/issues/278) & [#285](https://github.com/amsul/pickadate.js/issues/285): Fixed Firefox and IE bug for finding `activeElement`.
- [#279](https://github.com/amsul/pickadate.js/issues/279): Added option to `set` things with [muted callbacks](http://amsul.ca/pickadate.js/api.htm#muted-callbacks).
- [#260]({%= pkg.bugs %}/260): Fixed border from preventing picker from opening.
- [#248]({%= pkg.bugs %}/248): Added option to enable dates/times disabled within a range.
- [#255]({%= pkg.bugs %}/255): Added traditional Chinese.
- [#249]({%= pkg.bugs %}/249) & [#120]({%= pkg.bugs %}/120): Fixed jQuery Mobile and MagnificPopup click issues.
- [#247]({%= pkg.bugs %}/247): Fixed setting min limit on time picker.
- [#278]({%= pkg.bugs %}/278) & [#285]({%= pkg.bugs %}/285): Fixed Firefox and IE bug for finding `activeElement`.
- [#279]({%= pkg.bugs %}/279): Added option to `set` things with [muted callbacks]({%= pkg.homepage %}/pickadate.js/api.htm#muted-callbacks).
- Fixed French translations capitalization.
- Fixed time picker scrolling.
- Added setting a [time using a native JavaScript date objects](http://amsul.ca/api.htm#method-set-select-time).
- Added option to keep an [editable `input`](http://amsul.ca/date.htm#editable) element.
- Added setting a [time using a native JavaScript date objects]({%= pkg.homepage %}/api.htm#method-set-select-time).
- Added option to keep an [editable `input`]({%= pkg.homepage %}/date.htm#editable) element.


## 3.3.0

- [#238](https://github.com/amsul/pickadate.js/issues/238): Improved disabled dates validation.
- [#236](https://github.com/amsul/pickadate.js/issues/236): Fixed transparency issue in IE8 on XP.
- [#159](https://github.com/amsul/pickadate.js/issues/159): Added functionality to reset disabled dates/times.
- [#232](https://github.com/amsul/pickadate.js/issues/232): Dropdown styling tweaked.
- [#197](https://github.com/amsul/pickadate.js/issues/197): Fixed issue with forms not submitting on Firefox.
- [#230](https://github.com/amsul/pickadate.js/issues/230): Fixed issue with selected time scrolling into view.
- [#208](https://github.com/amsul/pickadate.js/issues/208) & [#209](https://github.com/amsul/pickadate.js/issues/209): Added `hiddenPrefix` option for hidden input element’s name attribute.
- [#130](https://github.com/amsul/pickadate.js/issues/130): Fixed issue with passing focus to an element with custom jQuery builds.
- [#246](https://github.com/amsul/pickadate.js/issues/246) & [#242](https://github.com/amsul/pickadate.js/issues/242): Resolved jQuery conflict.
- [#247](https://github.com/amsul/pickadate.js/issues/247): Fixed issue with time picker intervals and the min selectable time.
- [#238]({%= pkg.bugs %}/238): Improved disabled dates validation.
- [#236]({%= pkg.bugs %}/236): Fixed transparency issue in IE8 on XP.
- [#159]({%= pkg.bugs %}/159): Added functionality to reset disabled dates/times.
- [#232]({%= pkg.bugs %}/232): Dropdown styling tweaked.
- [#197]({%= pkg.bugs %}/197): Fixed issue with forms not submitting on Firefox.
- [#230]({%= pkg.bugs %}/230): Fixed issue with selected time scrolling into view.
- [#208]({%= pkg.bugs %}/208) & [#209]({%= pkg.bugs %}/209): Added `hiddenPrefix` option for hidden input element’s name attribute.
- [#130]({%= pkg.bugs %}/130): Fixed issue with passing focus to an element with custom jQuery builds.
- [#246]({%= pkg.bugs %}/246) & [#242]({%= pkg.bugs %}/242): Resolved jQuery conflict.
- [#247]({%= pkg.bugs %}/247): Fixed issue with time picker intervals and the min selectable time.
- Added option to disabled/enable dates using JavaScript Date objects.
- Tweaked functionality in enabling/disabling dates and times.
- Improved support for RTL languages and keyboard navigation.
Expand All @@ -43,21 +53,21 @@

## 3.2.2

- [#216](https://github.com/amsul/pickadate.js/issues/216): Added generic Arabic translations.
- [#210](https://github.com/amsul/pickadate.js/issues/210): Fixed jQuery conflict in picker extension files.
- [#223](https://github.com/amsul/pickadate.js/issues/223): Time picker “disabled” attribute fix.
- [#216]({%= pkg.bugs %}/216): Added generic Arabic translations.
- [#210]({%= pkg.bugs %}/210): Fixed jQuery conflict in picker extension files.
- [#223]({%= pkg.bugs %}/223): Time picker “disabled” attribute fix.
- Fixed issue with IE losing key bindings when clicked within picker.
- Improved delegated click handling on picker elements.

## 3.2.1

- [#210](https://github.com/amsul/pickadate.js/issues/210): Wrapped files using UMD patterns.
- [#207](https://github.com/amsul/pickadate.js/issues/207): Japanese translations added.
- [#210]({%= pkg.bugs %}/210): Wrapped files using UMD patterns.
- [#207]({%= pkg.bugs %}/207): Japanese translations added.
- Some other slight improvements.

## 3.2.0

- [#178](https://github.com/amsul/pickadate.js/issues/178): Fix for flicker on iOS while changing months.
- [#178]({%= pkg.bugs %}/178): Fix for flicker on iOS while changing months.
- Added `render(true)` option to render full picker or just the “face” ([read more](http://amsul.github.io/pickadate.js/api.htm#method-render)).

## 3.1.4
Expand All @@ -72,54 +82,54 @@

## 3.1.2

- [#168](https://github.com/amsul/pickadate.js/issues/168): Fixed month navigation with disabled dates.
- [#168]({%= pkg.bugs %}/168): Fixed month navigation with disabled dates.

## 3.1.1

- [#161](https://github.com/amsul/pickadate.js/issues/161): Corrected “no-drop” cursor on input element for certain browsers.
- [#158](https://github.com/amsul/pickadate.js/issues/158): Fixed CSS for disabled dates with unfocused input.
- [#155](https://github.com/amsul/pickadate.js/issues/155): Corrected unescaped translations.
- [#161]({%= pkg.bugs %}/161): Corrected “no-drop” cursor on input element for certain browsers.
- [#158]({%= pkg.bugs %}/158): Fixed CSS for disabled dates with unfocused input.
- [#155]({%= pkg.bugs %}/155): Corrected unescaped translations.

## 3.1.0

- [#140](https://github.com/amsul/pickadate.js/issues/140): Fix for freezing with unexpected date format.
- [#154](https://github.com/amsul/pickadate.js/issues/154): Fix for “mm” and “m” formats opening with incorrect month.
- [#140]({%= pkg.bugs %}/140): Fix for freezing with unexpected date format.
- [#154]({%= pkg.bugs %}/154): Fix for “mm” and “m” formats opening with incorrect month.
- Border styling adjusted for disabled times.

## v3.0.5

- [#145](https://github.com/amsul/pickadate.js/issues/145): Fix for `getFirstWordLength` not being defined.
- [#137](https://github.com/amsul/pickadate.js/issues/137): Corrected Norwegian translation.
- [#145]({%= pkg.bugs %}/145): Fix for `getFirstWordLength` not being defined.
- [#137]({%= pkg.bugs %}/137): Corrected Norwegian translation.

## v3.0.4

- [#132](https://github.com/amsul/pickadate.js/issues/132): Fix for using `firstDay` with month starting on Sunday.
- [#132]({%= pkg.bugs %}/132): Fix for using `firstDay` with month starting on Sunday.
- Improved disabled dates validation.

## v3.0.3

- [#126](https://github.com/amsul/pickadate.js/issues/126): Fix for all dates disabled.
- [#127](https://github.com/amsul/pickadate.js/issues/127): Fix for jQuery no conflict.
- [#129](https://github.com/amsul/pickadate.js/issues/129): Fix for month nav wrapping around same year.
- [#126]({%= pkg.bugs %}/126): Fix for all dates disabled.
- [#127]({%= pkg.bugs %}/127): Fix for jQuery no conflict.
- [#129]({%= pkg.bugs %}/129): Fix for month nav wrapping around same year.

## v3.0.2

- [#124](https://github.com/amsul/pickadate.js/issues/124): Fixed bug with navigating past year.
- [#124]({%= pkg.bugs %}/124): Fixed bug with navigating past year.

## v3.0.1

- [#123](https://github.com/amsul/pickadate.js/issues/123): Removed `hiddenSuffix` extra quote character.
- [#123]({%= pkg.bugs %}/123): Removed `hiddenSuffix` extra quote character.
- Fixed issue with month navigation on the 31st date.

## v3.0.0

With this major release, the entire API has been rethought to allow the picker to be much more configurable and extensible. These are the most notable updates:

- [#20](https://github.com/amsul/pickadate.js/issues/20): Introduced a new [time picker](http://amsul.github.io/pickadate.js/time.htm).
- [#112](https://github.com/amsul/pickadate.js/issues/112): Firefox select month/year fix.
- [#84](https://github.com/amsul/pickadate.js/issues/84): Scrollbar not hidden to avoid page shift.
- [#89](https://github.com/amsul/pickadate.js/issues/89): Better event handling on clicks/focuses/keydowns within the holder.
- [#98](https://github.com/amsul/pickadate.js/issues/98): Destroy picker data from element.
- [#20]({%= pkg.bugs %}/20): Introduced a new [time picker](http://amsul.github.io/pickadate.js/time.htm).
- [#112]({%= pkg.bugs %}/112): Firefox select month/year fix.
- [#84]({%= pkg.bugs %}/84): Scrollbar not hidden to avoid page shift.
- [#89]({%= pkg.bugs %}/89): Better event handling on clicks/focuses/keydowns within the holder.
- [#98]({%= pkg.bugs %}/98): Destroy picker data from element.
- Added Grunt.js build system.
- Added QUnit test suite.
- Added Travis integration.
Expand All @@ -131,7 +141,7 @@ With this major release, the entire API has been rethought to allow the picker t
To enable all this goodness, some **backward-incompatible changes** have been introduced. These are the main ones:

<a name="zero-as-index"></a>
- [#85](https://github.com/amsul/pickadate.js/issues/85): Months have __zero-as-index__:
- [#85]({%= pkg.bugs %}/85): Months have __zero-as-index__:

Just as in JavaScript’s native Date object, the `month` used to create dates is now based on zero as the first index. Meaning:

Expand Down
2 changes: 1 addition & 1 deletion _raw/base.htm
Expand Up @@ -68,7 +68,7 @@ <h2 class="heading heading--one heading--divide-center"><span class="heading__te


<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>jQuery||document.write('<script src="tests/jquery.2.0.0.js"><\/script>')</script>
<script>window.jQuery||document.write('<script src="tests/jquery.2.0.0.js"><\/script>')</script>
<script src="{%= dirs.dest.pickers %}/picker.js"></script>
<script src="{%= dirs.dest.pickers %}/picker.date.js"></script>
<script src="{%= dirs.dest.pickers %}/picker.time.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion _raw/demo/scripts/base.js
Expand Up @@ -3,7 +3,8 @@
debug: true,
devel: true,
browser: true,
asi: true
asi: true,
unused: false
*/


Expand Down

0 comments on commit 4487eb0

Please sign in to comment.