pax_global_header 0000666 0000000 0000000 00000000064 13744347113 0014521 g ustar 00root root 0000000 0000000 52 comment=4524a48e52d16519d63c2d80c4e419e9be9a0825 Pikaday-1.8.2/ 0000775 0000000 0000000 00000000000 13744347113 0013113 5 ustar 00root root 0000000 0000000 Pikaday-1.8.2/.editorconfig 0000664 0000000 0000000 00000000343 13744347113 0015570 0 ustar 00root root 0000000 0000000 ; http://EditorConfig.org root = true [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.{js,css}] indent_style = space indent_size = 4 [*.md] trim_trailing_whitespace = false Pikaday-1.8.2/.gitattributes 0000664 0000000 0000000 00000000014 13744347113 0016001 0 ustar 00root root 0000000 0000000 * text=auto Pikaday-1.8.2/.gitignore 0000664 0000000 0000000 00000000036 13744347113 0015102 0 ustar 00root root 0000000 0000000 node_modules .c9revisions .c9 Pikaday-1.8.2/.jshintrc 0000664 0000000 0000000 00000001020 13744347113 0014731 0 ustar 00root root 0000000 0000000 { "node": true, "browser": true, "esnext": true, "bitwise": true, "camelcase": true, "eqeqeq": true, "immed": true, "indent": 4, "latedef": true, "newcap": true, "noarg": true, "quotmark": "single", "regexp": true, "undef": true, "unused": true, "strict": true, "trailing": true, "smarttabs": true, "expr": true, "globals": { "define": false, /* MOCHA */ "describe" : false, "it" : false, "before" : false, "beforeEach" : false, "after" : false, "afterEach" : false } } Pikaday-1.8.2/.npmignore 0000664 0000000 0000000 00000000171 13744347113 0015111 0 ustar 00root root 0000000 0000000 node_modules examples tests .editorconfig .gitattributes .jshintrc .npmignore bower.json component.json CNAME index.html Pikaday-1.8.2/CHANGELOG.md 0000775 0000000 0000000 00000007223 13744347113 0014733 0 ustar 00root root 0000000 0000000 # Changelog ## 1.8.2 - 2020-10-22 - Properly parse date string, fixes #735 #755 #688 - Cleaner packages, see #542 #580 - Add space for XHTML, fixes #526 - CSS fixes, see #431 #430 #809 #883 #237 #869 #869 #730 - Add clear functionality, see #720 - Use unique IDs, fixes #650 - Bubble event on left arrow, fixes #710 - Show week numbers based on ISO 8601 by default, fixes #388 #825 ## 1.8.0 - 2018-10-17 - Remove testling because service is not running atm - Move to github organisation Pikaday/Pikaday - Add CSS-classes indicating position - Remove the Moment.js optional dependency - Add aria label text configuration ## 1.7.0 - 2017-12-12 - Add keyboard input option, see #610 ## 1.6.1 - 2017-06-06 - Fix memory leak, fixes #630 ## 1.6.0 - 2017-05-31 - Add custom parsers, see #613 - Re-introduce correct null behavor, fixes #654 - Pick a whole week, see #516 - Added `events` option: dates that you would like to differentiate from regular days, see #152 - Fix the (re)position issue, see #643, #642 - Configure if field is blurred when date is selected, see #631 - Prevent error when no field is bound, fixes #611 ## 1.5.1 - 2016-10-28 - Only set attribute if field is bound, see #567 ## 1.5.0 - 2016-10-27 - Make Pikaday accessibile, see #522 - Add possibility to reset the max and min date to the date picker - Make Pikaday XHTML compatible, see #492 - Remove unnecessary setTimeout call, fixes #496 - Make disabled buttons not clickable in IE 10 and below, fixes #288 - Show days in next and previous months ## 1.4.0 - 2015-10-30 - Fix touch device support, see #374 - Add possibility to reset the max and min date to the date picker ## 1.3.3 - 2015-06-26 - Add theme class support, see #260 - Fix on iOS, see #101, #121 - Add date range example, see #337 - Fix dates used in examples, see #329 ## 1.3.2 - 2015-02-17 - Add options to disable days, see #171 - Add SCSS file, see #130 ## 1.3.1 - 2015-02-04 - Fix for bug introduced in #166; fixes #224, #230 ## 1.3.0 - 2015-01-09 - Fix #79 moving through months can cause calendar to "bounce around" - Add configurable number of shown months - #51 Add unit tests with ci: [testling](https://ci.testling.com/rikkert/pikaday) - Fix #94 blur input field after date selection - Add configuable container to render calendar into - Add option to show week numbers, see #147 - Positioning is now optional, see #192 ## 1.2.0 - 2014-01-28 - Fix #8 Automatically adjust datepicker position - Merge #45 Adjusting position - Merge #11 Allow using a different element to open and bind the datepicker to - Use new Bower package filename: bower.json - Merge #90 Configuration options for the title, useful for Asian languages. - Merge #96 Use proper UMD-wrapper - Merge #92 Export as CommonJS module - Merge #119 Use a px text-indent on .pika-prev/next to prevent Firefox bug - Merge #60 Add customizable position option - Add Component package definition ## 1.1.0 - 2013-03-29 - Add Ruby on Rails [gem](https://rubygems.org/gems/pikaday-gem) - Add project configuration files. (jshint and editorconfig) - Add AMD support to pikaday and pikaday.jquery - Fix #52 check if date is valid when moment.js is available - Fix #54 add CSS support for IE8 Notes: - jQuery plugin needs pikaday.js loaded first - See the examples/ dir: - amd.html module loading example - jquery-amd.html module loading the jQuery plugin example - jquery.html jQuery plugin example - moment.html moment.js library example ## 1.0.0 - 2013-03-15 - Fix issue #41 (minDate does not include the specified date) - Add Bower package definition ## 0.0.2 - 2012-10-10 - jQuery plugin version ## 0.0.1 - 2012-10-08 - Basic documentation written - GitHub repository is ready to go… Pikaday-1.8.2/CNAME 0000664 0000000 0000000 00000000014 13744347113 0013654 0 ustar 00root root 0000000 0000000 pikaday.com Pikaday-1.8.2/LICENSE 0000775 0000000 0000000 00000004610 13744347113 0014124 0 ustar 00root root 0000000 0000000 Copyright (c) 2014 David Bushell BSD & MIT license The MIT License (MIT) Copyright (c) 2014 David Bushell 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. The BSD License Copyright (c) 2014 David Bushell All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Pikaday-1.8.2/README.md 0000775 0000000 0000000 00000042562 13744347113 0014406 0 ustar 00root root 0000000 0000000 Pikaday ======== [![NPM version][npm-image]][npm-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] ### A refreshing JavaScript Datepicker * Lightweight (less than 5kb minified and gzipped) * No dependencies (but plays well with [Moment.js][moment]) * Modular CSS classes for easy styling [**Try Pikaday Demo →**][Pikaday] ![Pikaday Screenshot][screenshot] **Production ready?** Since version 1.0.0 Pikaday is stable and used in production. If you do however find bugs or have feature requests please submit them to the [GitHub issue tracker][issues]. Also see the [changelog](CHANGELOG.md) ## Installation You can install Pikaday as an NPM package: ```shell npm install pikaday ``` Or link directly to the CDN: ```html ``` ## Styles You will also need to include Pikaday CSS file. This step depends on how Pikaday was installed. Either import from NPM: ```css @import './node_modules/pikaday/css/pikaday.css'; ``` Or link to the CDN: ```html ``` ## Usage **Pikaday** can be bound to an input field: ```html ``` Add the JavaScript to the end of your document: ```html ``` If you're using **jQuery** make sure to pass only the first element: ```javascript var picker = new Pikaday({ field: $('#datepicker')[0] }); ``` If the Pikaday instance is not bound to a field you can append the element anywhere: ```javascript var field = document.getElementById('datepicker'); var picker = new Pikaday({ onSelect: function(date) { field.value = picker.toString(); } }); field.parentNode.insertBefore(picker.el, field.nextSibling); ``` ### Formatting By default, dates are formatted and parsed using standard JavaScript Date object. If [Moment.js][moment] is available in scope, it will be used to format and parse input values. You can pass an additional `format` option to the configuration which will be passed to the `moment` constructor. See the [moment.js example][] for a full version. ```html ``` For more advanced and flexible formatting you can pass your own `toString` function to the configuration which will be used to format the date object. This function has the following signature: `toString(date, format = 'YYYY-MM-DD')` You should return a string from it. Be careful, though. If the formatted string that you return cannot be correctly parsed by the `Date.parse` method (or by `moment` if it is available), then you must provide your own `parse` function in the config. This function will be passed the formatted string and the format: `parse(dateString, format = 'YYYY-MM-DD')` ```javascript var picker = new Pikaday({ field: document.getElementById('datepicker'), format: 'D/M/YYYY', toString(date, format) { // you should do formatting based on the passed format, // but we will just return 'D/M/YYYY' for simplicity const day = date.getDate(); const month = date.getMonth() + 1; const year = date.getFullYear(); return `${day}/${month}/${year}`; }, parse(dateString, format) { // dateString is the result of `toString` method const parts = dateString.split('/'); const day = parseInt(parts[0], 10); const month = parseInt(parts[1], 10) - 1; const year = parseInt(parts[2], 10); return new Date(year, month, day); } }); ``` ### Configuration As the examples demonstrate above Pikaday has many useful options: * `field` bind the datepicker to a form field * `trigger` use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`) * `bound` automatically show/hide the datepicker on `field` focus (default `true` if `field` is set) * `ariaLabel` data-attribute on the input field with an aria assistance text (only applied when `bound` is set) * `position` preferred position of the datepicker relative to the form field, e.g.: `top right`, `bottom right` **Note:** automatic adjustment may occur to avoid datepicker from being displayed outside the viewport, see [positions example][] (default to 'bottom left') * `reposition` can be set to false to not reposition datepicker within the viewport, forcing it to take the configured `position` (default: true) * `container` DOM node to render calendar into, see [container example][] (default: undefined) * `format` the default output format for `.toString()` and `field` value (requires [Moment.js][moment] for custom formatting) * `formatStrict` the default flag for moment's strict date parsing (requires [Moment.js][moment] for custom formatting) * `toString(date, format)` function which will be used for custom formatting. This function will take precedence over `moment`. * `parse(dateString, format)` function which will be used for parsing input string and getting a date object from it. This function will take precedence over `moment`. * `defaultDate` the initial date to view when first opened * `setDefaultDate` Boolean (true/false). make the `defaultDate` the initial selected value * `firstDay` first day of the week (0: Sunday, 1: Monday, etc) * `minDate` the minimum/earliest date that can be selected (this should be a native Date object - e.g. `new Date()` or `moment().toDate()`) * `maxDate` the maximum/latest date that can be selected (this should be a native Date object - e.g. `new Date()` or `moment().toDate()`) * `disableWeekends` disallow selection of Saturdays or Sundays * `disableDayFn` callback function that gets passed a Date object for each day in view. Should return true to disable selection of that day. * `yearRange` number of years either side (e.g. `10`) or array of upper/lower range (e.g. `[1900,2015]`) * `showWeekNumber` show the ISO week number at the head of the row (default `false`) * `pickWholeWeek` select a whole week instead of a day (default `false`) * `isRTL` reverse the calendar for right-to-left languages * `i18n` language defaults for month and weekday names (see internationalization below) * `yearSuffix` additional text to append to the year in the title * `showMonthAfterYear` render the month after year in the title (default `false`) * `showDaysInNextAndPreviousMonths` render days of the calendar grid that fall in the next or previous months (default: false) * `enableSelectionDaysInNextAndPreviousMonths` allows user to select date that is in the next or previous months (default: false) * `numberOfMonths` number of visible calendars * `mainCalendar` when `numberOfMonths` is used, this will help you to choose where the main calendar will be (default `left`, can be set to `right`). Only used for the first display or when a selected date is not already visible * `events` array of dates that you would like to differentiate from regular days (e.g. `['Sat Jun 28 2017', 'Sun Jun 29 2017', 'Tue Jul 01 2017',]`) * `theme` define a classname that can be used as a hook for styling different themes, see [theme example][] (default `null`) * `blurFieldOnSelect` defines if the field is blurred when a date is selected (default `true`) * `onSelect` callback function for when a date is selected * `onOpen` callback function for when the picker becomes visible * `onClose` callback function for when the picker is hidden * `onDraw` callback function for when the picker draws a new month * `keyboardInput` enable keyboard input support (default `true`) ### Styling If the `reposition` configuration-option is enabled (default), Pikaday will apply CSS-classes to the datepicker according to how it is positioned: * `top-aligned` * `left-aligned` * `right-aligned` * `bottom-aligned` Note that the DOM element at any time will typically have 2 CSS-classes (eg. `top-aligned right-aligned` etc). ## jQuery Plugin The normal version of Pikaday does not require jQuery, however there is a jQuery plugin if that floats your boat (see `plugins/pikaday.jquery.js` in the repository). This version requires jQuery, naturally, and can be used like other plugins: See the [jQuery example][] for a full version. ```html ``` ## AMD support If you use a modular script loader, Pikaday is not bound to the global object and will fit nicely in your build process. You can require Pikaday just like any other module. See the [AMD example][] for a full version. ```javascript require(['pikaday'], function(Pikaday) { var picker = new Pikaday({ field: document.getElementById('datepicker') }); }); ``` The same applies for the jQuery plugin mentioned above. See the [jQuery AMD example][] for a full version. ```javascript require(['jquery', 'pikaday.jquery'], function($) { $('#datepicker').pikaday(); }); ``` ## CommonJS module support If you use a CommonJS compatible environment you can use the require function to import Pikaday. ```javascript var pikaday = require('pikaday'); ``` When you bundle all your required modules with [Browserify][browserify] and you don't use [Moment.js][moment] specify the ignore option: `browserify main.js -o bundle.js -i moment` ## Ruby on Rails If you're using **Ruby on Rails**, make sure to check out the [Pikaday gem][gem]. ## Methods You can control the date picker after creation: ```javascript var picker = new Pikaday({ field: document.getElementById('datepicker') }); ``` ### Get and set date `picker.toString('YYYY-MM-DD')` Returns the selected date in a string format. If [Moment.js][moment] exists (recommended) then Pikaday can return any format that Moment understands. You can also provide your own `toString` function and do the formatting yourself. Read more in the [formatting](#formatting) section. If neither `moment` object exists nor `toString` function is provided, JavaScript's default [`.toDateString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toDateString) method will be used. `picker.getDate()` Returns a basic JavaScript `Date` object of the selected day, or `null` if no selection. `picker.setDate('2015-01-01')` Set the current selection. This will be restricted within the bounds of `minDate` and `maxDate` options if they're specified. You can optionally pass a boolean as the second parameter to prevent triggering of the onSelect callback (true), allowing the date to be set silently. `picker.getMoment()` Returns a [Moment.js][moment] object for the selected date (Moment must be loaded before Pikaday). `picker.setMoment(moment('14th February 2014', 'DDo MMMM YYYY'))` Set the current selection with a [Moment.js][moment] object (see `setDate` for details). ### Clear and reset date `picker.clear()` Will clear and reset the input where picker is bound to. ### Change current view `picker.gotoDate(new Date(2014, 1))` Change the current view to see a specific date. This example will jump to February 2014 ([month is a zero-based index][mdn_date]). `picker.gotoToday()` Shortcut for `picker.gotoDate(new Date())` `picker.gotoMonth(2)` Change the current view by month (0: January, 1: Februrary, etc). `picker.nextMonth()` `picker.prevMonth()` Go to the next or previous month (this will change year if necessary). `picker.gotoYear()` Change the year being viewed. `picker.setMinDate()` Update the minimum/earliest date that can be selected. `picker.setMaxDate()` Update the maximum/latest date that can be selected. `picker.setStartRange()` Update the range start date. For using two Pikaday instances to select a date range. `picker.setEndRange()` Update the range end date. For using two Pikaday instances to select a date range. ### Show and hide datepicker `picker.isVisible()` Returns `true` or `false`. `picker.show()` Make the picker visible. `picker.adjustPosition()` Recalculate and change the position of the picker. `picker.hide()` Hide the picker making it invisible. `picker.destroy()` Hide the picker and remove all event listeners — no going back! ### Internationalization The default `i18n` configuration format looks like this: ```javascript i18n: { previousMonth : 'Previous Month', nextMonth : 'Next Month', months : ['January','February','March','April','May','June','July','August','September','October','November','December'], weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'], weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] } ``` You must provide 12 months and 7 weekdays (with abbreviations). Always specify weekdays in this order with Sunday first. You can change the `firstDay` option to reorder if necessary (0: Sunday, 1: Monday, etc). You can also set `isRTL` to `true` for languages that are read right-to-left. ## Extensions ### Timepicker Pikaday is a pure datepicker. It will not support picking a time of day. However, there have been efforts to add time support to Pikaday. See [#1][issue1] and [#18][issue18]. These reside in their own fork. You can use the work [@owenmead][owenmead] did most recently at [owenmead/Pikaday][owen Pika] A more simple time selection approach done by [@xeeali][xeeali] at [xeeali/Pikaday][xeeali Pika] is based on version 1.2.0. Also [@stas][stas] has a fork [stas/Pikaday][stas Pika], but is now quite old ## Browser Compatibility * IE 7+ * Chrome 8+ * Firefox 3.5+ * Safari 3+ * Opera 10.6+ [ ](https://ci.testling.com/rikkert/pikaday) * * * ## Authors * David Bushell [https://dbushell.com][Bushell] [@dbushell][Bushell Twitter] * Ramiro Rikkert [GitHub][Rikkert] [@RamRik][Rikkert Twitter] Thanks to [@shoogledesigns][shoogledesigns] for the name. Copyright © 2014 David Bushell | BSD & MIT license [Pikaday]: https://pikaday.com/ "Pikaday" [moment]: http://momentjs.com/ "moment.js" [browserify]: http://browserify.org/ "browserify" [screenshot]: https://raw.github.com/Pikaday/Pikaday/master/examples/screenshot.png "Screenshot" [issues]: https://github.com/Pikaday/Pikaday/issues "Issue tracker" [gem]: https://rubygems.org/gems/pikaday-gem "RoR gem" [mdn_date]: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date "Date" [Bushell]: https://dbushell.com/ "dbushell.com" [Bushell Twitter]: https://twitter.com/dbushell "@dbushell" [Rikkert]: https://github.com/rikkert "Rikkert GitHub" [Rikkert Twitter]: https://twitter.com/ramrik "@ramrik" [shoogledesigns]: https://twitter.com/shoogledesigns/status/255209384261586944 "@shoogledesigns" [issue1]: https://github.com/Pikaday/Pikaday/issues/1 "Issue 1" [issue18]: https://github.com/Pikaday/Pikaday/issues/18 "Issue 18" [stas]: https://github.com/stas "@stas" [stas Pika]: https://github.com/stas/Pikaday "Pikaday" [owenmead]: https://github.com/owenmead "@owenmead" [owen Pika]: https://github.com/owenmead/Pikaday "Pikaday" [xeeali]: https://github.com/xeeali "@xeeali" [xeeali Pika]: https://github.com/xeeali/Pikaday "Pikaday" [moment.js example]: https://pikaday.com/examples/moment.html "Pikaday w/ moment.js" [jQuery example]: https://pikaday.com/examples/jquery.html "Pikaday w/ jQuery" [AMD example]: https://pikaday.com/examples/amd.html "Pikaday w/ AMD" [jQuery AMD example]: https://pikaday.com/examples/jquery-amd.html "Pikaday w/ jQuery + AMD" [trigger example]: https://pikaday.com/examples/trigger.html "Pikaday using custom trigger" [positions example]: https://pikaday.com/examples/positions.html "Pikaday using different position options" [container example]: https://pikaday.com/examples/container.html "Pikaday using custom calendar container" [theme example]: https://pikaday.com/examples/theme.html "Pikaday using multiple themes" [npm-image]: https://img.shields.io/npm/v/pikaday.svg?style=flat-square [npm-url]: https://npmjs.org/package/pikaday [license-image]: https://img.shields.io/:license-mit-blue.svg?style=flat-square [license-url]: LICENSE.md [downloads-image]: http://img.shields.io/npm/dm/pikaday.svg?style=flat-square [downloads-url]: https://npmjs.org/package/pikaday Pikaday-1.8.2/bower.json 0000775 0000000 0000000 00000001042 13744347113 0015124 0 ustar 00root root 0000000 0000000 { "name": "pikaday", "description": "A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS", "keywords": [ "datepicker", "calendar", "date" ], "main": [ "./pikaday.js", "./css/pikaday.css" ], "dependencies": {}, "ignore": [ "**/.*", "node_modules", "components", "examples", "tests" ], "license" : [ "0BSD", "MIT" ], "homepage": "https://pikaday.com", "repository": { "type": "git", "url": "https://github.com/Pikaday/Pikaday.git" } } Pikaday-1.8.2/component.json 0000775 0000000 0000000 00000000625 13744347113 0016016 0 ustar 00root root 0000000 0000000 { "name": "pikaday", "repo": "dbushell/Pikaday", "description": "A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS", "version": "1.8.2", "keywords": [ "datepicker", "calendar", "date" ], "main": "pikaday.js", "scripts": ["pikaday.js"], "styles": ["css/pikaday.css"], "dependencies": {}, "demo": "https://pikaday.com", "license": "MIT" } Pikaday-1.8.2/css/ 0000775 0000000 0000000 00000000000 13744347113 0013703 5 ustar 00root root 0000000 0000000 Pikaday-1.8.2/css/pikaday.css 0000775 0000000 0000000 00000010504 13744347113 0016042 0 ustar 00root root 0000000 0000000 @charset "UTF-8"; /*! * Pikaday * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/ */ .pika-single { z-index: 9999; display: block; position: relative; color: #333; background: #fff; border: 1px solid #ccc; border-bottom-color: #bbb; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } /* clear child float (pika-lendar), using the famous micro clearfix hack http://nicolasgallagher.com/micro-clearfix-hack/ */ .pika-single:before, .pika-single:after { content: " "; display: table; } .pika-single:after { clear: both } .pika-single.is-hidden { display: none; } .pika-single.is-bound { position: absolute; box-shadow: 0 5px 15px -5px rgba(0,0,0,.5); } .pika-lendar { float: left; width: 240px; margin: 8px; } .pika-title { position: relative; text-align: center; } .pika-label { display: inline-block; position: relative; z-index: 9999; overflow: hidden; margin: 0; padding: 5px 3px; font-size: 14px; line-height: 20px; font-weight: bold; background-color: #fff; } .pika-title select { cursor: pointer; position: absolute; z-index: 9998; margin: 0; left: 0; top: 5px; opacity: 0; } .pika-prev, .pika-next { display: block; cursor: pointer; position: relative; outline: none; border: 0; padding: 0; width: 20px; height: 30px; /* hide text using text-indent trick, using width value (it's enough) */ text-indent: 20px; white-space: nowrap; overflow: hidden; background-color: transparent; background-position: center center; background-repeat: no-repeat; background-size: 75% 75%; opacity: .5; } .pika-prev:hover, .pika-next:hover { opacity: 1; } .pika-prev, .is-rtl .pika-next { float: left; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg=='); } .pika-next, .is-rtl .pika-prev { float: right; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII='); } .pika-prev.is-disabled, .pika-next.is-disabled { cursor: default; opacity: .2; } .pika-select { display: inline-block; } .pika-table { width: 100%; border-collapse: collapse; border-spacing: 0; border: 0; } .pika-table th, .pika-table td { width: 14.285714285714286%; padding: 0; } .pika-table th { color: #999; font-size: 12px; line-height: 25px; font-weight: bold; text-align: center; } .pika-button { cursor: pointer; display: block; box-sizing: border-box; -moz-box-sizing: border-box; outline: none; border: 0; margin: 0; width: 100%; padding: 5px; color: #666; font-size: 12px; line-height: 15px; text-align: right; background: #f5f5f5; height: initial; } .pika-week { font-size: 11px; color: #999; } .is-today .pika-button { color: #33aaff; font-weight: bold; } .is-selected .pika-button, .has-event .pika-button { color: #fff; font-weight: bold; background: #33aaff; box-shadow: inset 0 1px 3px #178fe5; border-radius: 3px; } .has-event .pika-button { background: #005da9; box-shadow: inset 0 1px 3px #0076c9; } .is-disabled .pika-button, .is-inrange .pika-button { background: #D5E9F7; } .is-startrange .pika-button { color: #fff; background: #6CB31D; box-shadow: none; border-radius: 3px; } .is-endrange .pika-button { color: #fff; background: #33aaff; box-shadow: none; border-radius: 3px; } .is-disabled .pika-button { pointer-events: none; cursor: default; color: #999; opacity: .3; } .is-outside-current-month .pika-button { color: #999; opacity: .3; } .is-selection-disabled { pointer-events: none; cursor: default; } .pika-button:hover, .pika-row.pick-whole-week:hover .pika-button { color: #fff; background: #ff8000; box-shadow: none; border-radius: 3px; } /* styling for abbr */ .pika-table abbr { border-bottom: none; cursor: help; } Pikaday-1.8.2/css/site.css 0000775 0000000 0000000 00000001406 13744347113 0015365 0 ustar 00root root 0000000 0000000 html { margin: 0; padding: 0; } body { font-size: 100%; margin: 0; padding: 1.75em; font-family: 'Helvetica Neue', Arial, sans-serif; } h1 { font-size: 1.75em; margin: 0 0 0.6em 0; } h2 { font-size: 1.25em; margin: 0 0 0.6em 0; } a { color: #2996cc; } a:hover { text-decoration: none; } p { line-height: 1.5em; } .small { color: #666; font-size: 0.875em; } .large { font-size: 1.25em; } label { font-weight: bold; } input[type="text"] { margin: 0.5em 0 3em 0; padding: 0.5em; } button#datepicker-button { margin-bottom: 3em; } .flow-element { display: inline-block; margin-right: 3em; vertical-align: top; } .flow-element:last-child { margin-right: 0; } .flow-element input { margin-top: 0; } #container { min-height: 15em; } Pikaday-1.8.2/css/theme.css 0000775 0000000 0000000 00000002470 13744347113 0015525 0 ustar 00root root 0000000 0000000 /** * This theme is an example to show how you can create your own. */ .pika-single.dark-theme { color: #fff; background: #333; border: 1px solid #666; border-bottom-color: #999; } .dark-theme .pika-label { background-color: #333; } .dark-theme .pika-prev, .dark-theme .is-rtl .pika-next { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAQ0lEQVR4Ae3KIQ4AIBTD0N0/IeHGI3UIRA3ut/Zl+ltXc5++htVAmIAwAWECwgSEKbgthEoIlRAqIVRCqINQB9nDgQd7ktwFo6UpWQAAAABJRU5ErkJggg=='); } .dark-theme .pika-next, .dark-theme .is-rtl .pika-prev { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAP0lEQVQ4y+3TMQoAMAgEwfwfAvvjTZ1uGzuvHhBPPGczEG+FRqqRaqQaqUaqkX6QBmmjacvQ6qEVTjsh+xizebvlaWptGXZAAAAAAElFTkSuQmCC'); } .dark-theme .pika-table th { color: #999; } .dark-theme .pika-button { color: #fff; background: #222; } .dark-theme .pika-week { color: #999; } .dark-theme .is-today .pika-button { color: #33aaff; } .dark-theme .is-selected .pika-button { color: #fff; background: #33aaff; box-shadow: inset 0 1px 3px #178fe5; } .dark-theme .is-disabled .pika-button { color: #999; opacity: .3; } .dark-theme .pika-button:hover { color: #fff !important; background: #ff8000 !important; } Pikaday-1.8.2/css/triangle.css 0000775 0000000 0000000 00000000224 13744347113 0016223 0 ustar 00root root 0000000 0000000 /** * This theme is an example to show how you can add triangles to the dropdowns. */ .triangle-theme .pika-label:after { content:" \25be"; } Pikaday-1.8.2/examples/ 0000775 0000000 0000000 00000000000 13744347113 0014731 5 ustar 00root root 0000000 0000000 Pikaday-1.8.2/examples/amd.html 0000775 0000000 0000000 00000003565 13744347113 0016374 0 ustar 00root root 0000000 0000000
A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/aria-label.html 0000775 0000000 0000000 00000003240 13744347113 0017612 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/bound-container.html 0000775 0000000 0000000 00000003604 13744347113 0020714 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/calendars.html 0000775 0000000 0000000 00000004005 13744347113 0017555 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2013 David Bushell | BSD & MIT license | Example by MoOx
Pikaday-1.8.2/examples/container.html 0000775 0000000 0000000 00000003605 13744347113 0017610 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/date-fns.html 0000775 0000000 0000000 00000004323 13744347113 0017325 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/date-range.html 0000775 0000000 0000000 00000005214 13744347113 0017633 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license
Pikaday-1.8.2/examples/daysInNextMonth.html 0000775 0000000 0000000 00000003363 13744347113 0020723 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/diableDayFn.html 0000775 0000000 0000000 00000003272 13744347113 0017770 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/jquery-amd.html 0000775 0000000 0000000 00000004126 13744347113 0017703 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/jquery.html 0000775 0000000 0000000 00000003554 13744347113 0017150 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/moment.html 0000775 0000000 0000000 00000003777 13744347113 0017137 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ramiro Rikkert
Pikaday-1.8.2/examples/pick-whole-week.html 0000664 0000000 0000000 00000003476 13744347113 0020624 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Lei Zhao
Pikaday-1.8.2/examples/position-css-classes.html 0000664 0000000 0000000 00000010645 13744347113 0021712 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by Ruben Swieringa
Pikaday-1.8.2/examples/positions.html 0000775 0000000 0000000 00000007265 13744347113 0017663 0 ustar 00root root 0000000 0000000A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Also, take a look to the bottom right of this page to see an example with position automatically adjusted.
Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the GitHub issue tracker, thanks!
Copyright © 2014 David Bushell | BSD & MIT license | Example by MoOx
Pikaday-1.8.2/examples/screenshot.png 0000664 0000000 0000000 00000015214 13744347113 0017617 0 ustar 00root root 0000000 0000000 PNG IHDR $) SIDATx߫t# Ox ꃰ!++`C)@^Hp4输'{Y߇t2Y3k>3kƂ8@{@ $@ $ @ @ @0 @cH H @ @ H H H @ @ H_Y|q@INiI'8?|I%L8'YLIL7o? e }睆;,hh }ez=rNof='ffo߾ H낢ht֭RD)coZ[dɊ?