前端组件调整,剔除无用文件
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"name": "bootstrap-datepicker",
|
||||
"main": [
|
||||
"dist/css/bootstrap-datepicker3.css",
|
||||
"dist/js/bootstrap-datepicker.js"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.7.1 <4.0.0"
|
||||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/eternicode/bootstrap-datepicker",
|
||||
"version": "1.9.0",
|
||||
"_release": "1.9.0",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.9.0",
|
||||
"commit": "fb8776d65825068b9f914ab37d6fd847c951f488"
|
||||
},
|
||||
"_source": "https://github.com/eternicode/bootstrap-datepicker.git",
|
||||
"_target": "^1.7",
|
||||
"_originalSource": "bootstrap-datepicker"
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
# EditorConfig is awesome: https://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
@@ -1,13 +0,0 @@
|
||||
### Expected behaviour
|
||||
Tell us what should happen.
|
||||
|
||||
### Actual behaviour
|
||||
Tell us what happens instead.
|
||||
|
||||
### Datepicker version used
|
||||
|
||||
ex. 1.6.1.
|
||||
|
||||
### Example code
|
||||
|
||||
Jsfiddle example to reproduce the problem.
|
||||
@@ -1,7 +0,0 @@
|
||||
| Q | A
|
||||
| --------------- | ---
|
||||
| Bug fix? | no|yes
|
||||
| New feature? | no|yes
|
||||
| BC breaks? | no|yes
|
||||
| Related tickets | fixes #X, partially #Y, mentioned in #Z
|
||||
| License | MIT
|
||||
@@ -1,10 +0,0 @@
|
||||
docs/_build
|
||||
*-dist.zip
|
||||
|
||||
# OS or Editor folders
|
||||
.DS_Store
|
||||
.idea
|
||||
|
||||
# Folders to ignore
|
||||
bower_components
|
||||
node_modules
|
||||
@@ -1,7 +0,0 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "12"
|
||||
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
||||
@@ -1,509 +0,0 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
1.9.0
|
||||
-----
|
||||
|
||||
## Features
|
||||
* Added clearDates for clears range (#2114)
|
||||
|
||||
## Bugfix
|
||||
* Hide today button when before start or after end date (#2474)
|
||||
* Fix navigation buttons states (#2277)
|
||||
* Fix updateNavArrows bug (#2230)
|
||||
|
||||
## Locales
|
||||
### Bugfix
|
||||
* Added monthsTitle to Latvian locale (#2255)
|
||||
* Rename en-CA locale file to match the rest of the files (#2217)
|
||||
* Fix cs locale date format (#2275)
|
||||
* Added translation for months (fixing the default 'en' locale) (#2271)
|
||||
|
||||
1.7.1
|
||||
-----
|
||||
|
||||
## Bugfixes
|
||||
* Revert "move `jquery` to `peerDependencies` from `dependencies`"
|
||||
|
||||
1.7.0
|
||||
-----
|
||||
|
||||
## Features
|
||||
* Adding dateCells option (#1723)
|
||||
* Added keepEmptyValues option (#1558 + #1901)
|
||||
* added "changeViewMode" event; also adds the current `viewMode` to events (#1953)
|
||||
* adds `updateViewDate` option (#1982)
|
||||
* Added hiding week day names functionality (#2087)
|
||||
* Allow customizing day cell value (#2043)
|
||||
|
||||
## Bugfixes
|
||||
* originalEvent object needs preventDefault fn (#1824)
|
||||
* Fix jQuery selector from premature selection of span element in inline/embedded calendar's month selection (#1859 + #1886)
|
||||
* Use date arithmetic to allow dates with times other than 00:00:00 (#1483)
|
||||
* Multiple general fixes (#1883 + #1893)
|
||||
* Visibility fix for nav arrows (#1916)
|
||||
* Do not trigger change or changeDate on initialization (#1912)
|
||||
* Fix: Close datepicker on touchstart (#1924)
|
||||
* Fix data-date-dates-disabled attribute to accept a comma-separated list (#1946)
|
||||
* Fix maxViewMode and navigation switch click (#1951)
|
||||
* Add support jQuery 3. Bootstrap 2 still available (composer.json) (#1958)
|
||||
* fix(parseDate) use insensitive regex to support +15d with capslock (#1910)
|
||||
* Refactoring timedelta aliases (dateAliases) (#1965)
|
||||
* Fix RTL layout (#1973)
|
||||
* Remove listen `changeDate` after destroy DateRangePicker (#1968)
|
||||
* add tests for setDatesDisabled function (#1983)
|
||||
* resolves bug on days when DST is added. (#2009)
|
||||
* XHTML fixes (#1998)
|
||||
* update grunt and other dev-dependencies (#2111)
|
||||
* Use display:table-cell instead of display:block for today, clear and title (#2121)
|
||||
* moved assumeNearbyYear to correct location (#2140)
|
||||
* move `jquery` to `peerDependencies` from `dependencies` (#2163)
|
||||
* Use default arrow values (#2176)
|
||||
|
||||
## Locales
|
||||
### New
|
||||
* en-ZA (#1798)
|
||||
* en-ZNZ (#1799)
|
||||
* en-IE (#1800)
|
||||
* ar-tn (#1863)
|
||||
* Added Sinhala (si) locale (#2025)
|
||||
* Occitan locale (#2024 + #2026)
|
||||
* [l10n]Add breton translation (#2028)
|
||||
* Added Tajik language (#2117)
|
||||
* Add Uzbek latin and cyrill locales (#2152)
|
||||
* add Bengali (Bangla) language (#2171)
|
||||
* Added Hindi locale (#2199)
|
||||
|
||||
### Bugfix
|
||||
* km/kh (#1812)
|
||||
* Capital letters in Polish translation (#1890)
|
||||
* Add missing monthsTitle in cs (#1900)
|
||||
* Update bootstrap-datepicker.da.js (#1936)
|
||||
* Fix typo in month name (#2040)
|
||||
* Added missing basque language properties (#2066)
|
||||
* Added weekStart to slovenian translation (#2067)
|
||||
* add monthsTitle for ru (#2092)
|
||||
* Change danish (da) date format to match the rest of the locales (#2048)
|
||||
* Fix Tamil Language file with proper locale code (#2141)
|
||||
* Revert strange changes, +monthsTitle (#2153)
|
||||
* updated Tajik (cyrillic) translation file (#2167)
|
||||
* Romanian uses dd/mm/yyyy format for dates (#2173)
|
||||
* Missing latvian translation (#2204)
|
||||
|
||||
## Docs
|
||||
* Fix typo in index.rst (#1882)
|
||||
* Update CDNjs info in README.md (#1933)
|
||||
* [Doc] Keyboard navigation is not supported for embedded / inline type (#2002)
|
||||
* Removed reference to stefan petre (#2031)
|
||||
* Improve defaultViewDate documentation (#2052)
|
||||
* Add notes about multiple dates and examples for update method (#2060)
|
||||
* Add Code Of Conduct (#2095)
|
||||
* Update install instructions on README.md (#2160)
|
||||
|
||||
1.6.2 - 1.6.3 - 1.6.4
|
||||
---------------------
|
||||
|
||||
Bugfix
|
||||
|
||||
* Backported jquery 3 fix from #1958
|
||||
|
||||
1.6.1
|
||||
-----
|
||||
Bugfixes
|
||||
|
||||
* add specific class for disabled dates back (Fixes #1785)
|
||||
* [fix] Allow keyboard navigation for non-input fields (Fixes: #874)
|
||||
* fix kazakh mothShort
|
||||
* Fix bug when clicking on a day that is highlighted today in the next month
|
||||
* dates read out are 12am UTC
|
||||
* Fix show by component (with disabled attribute)
|
||||
|
||||
1.6.0
|
||||
-----
|
||||
Features
|
||||
|
||||
* Changes nonpunctuation to accept unicode characters
|
||||
* Add "assumeNearbyYear" option
|
||||
* Decade and century picking
|
||||
* Added timedelta aliases. (Fixes #785)
|
||||
* add getter methods for date limits
|
||||
* Replace arrow entities for glyphicon + template + libs snippets (Fixes: #610 #833 #1007)
|
||||
* added class .disabled to dow header
|
||||
* Rename "remove" to "destroy" and create alias
|
||||
|
||||
Bugfix
|
||||
|
||||
* Month/year view keyboard navigation
|
||||
* fix changeMonth, changeYear not triggered when selecting day from prev/next month
|
||||
* Fix default arrows for BS2 and screenshots (for docs)
|
||||
* Extend beforeShowMonth event functionality to work like beforeShowDay and beforeShowYear
|
||||
|
||||
Locale changes
|
||||
|
||||
* Correct date format for ko locale
|
||||
* Add en-AU (Australian English) locale
|
||||
|
||||
Repository
|
||||
|
||||
* Add CSS sourcemap
|
||||
* [BS3 Less] Remove unused variables and cleanup
|
||||
* Added timezone aware tests
|
||||
* remove .idea-folder from npm
|
||||
|
||||
1.5.1
|
||||
-----
|
||||
|
||||
Bugfixes
|
||||
* Fix calculation for new position when datepicker goes offscreen when inside a container (Fixes: #1619)
|
||||
* Fix datepicker title not centered when displaying calendar weeks (Fixes: #1625)
|
||||
* Fixing looping when calling dp inside change event (Fixes: #1628)
|
||||
* Add scrollTop to position if container is not body (Fixes: #1616)
|
||||
* Use document scrollTop instead of body scrollTop when using the body container
|
||||
* Fix focus for disabled week days (Fixes: #1365, #1187, #1648)
|
||||
* Fixes enableOnReadOnly bug when datepicker is of type component
|
||||
|
||||
Translations
|
||||
* Added missing translations for slovak translation. (Fixes: #1521)
|
||||
* Added missing date format for norwegian (nb) locale (Fixes #1690)
|
||||
* Armenian translation short names
|
||||
* adding Today translation, default date format for the lithuanian translation
|
||||
|
||||
Docs
|
||||
* Document data-api on container
|
||||
* Added docs for the different stylesheet files. (Fixes #1459)
|
||||
|
||||
Repository
|
||||
* Enable travis container builds for faster builds
|
||||
|
||||
1.5.0
|
||||
-----
|
||||
|
||||
Features
|
||||
* Added down key as datepicker show trigger
|
||||
* immediateUpdates option (updates input when a year or month is selected)
|
||||
* Highlight days of week
|
||||
* maxViewMode option
|
||||
* Include "main" property in package.json
|
||||
* Require.js support. (Fixes: #280)
|
||||
* Allow overriding `$.fn.show` and `$.fn.hide` (Fixes: #1424)
|
||||
* Adding border-radius variable for LESS (Fixes: #1429)
|
||||
* Add support for dropdown border variables
|
||||
* Add the posibility to have a title on the picker (Fixes: #1410)
|
||||
* Implement `beforeShowYear` (Fixes: #1226)
|
||||
* Add commonjs support
|
||||
* Trigger 'hide' event when clicking outside datepicker
|
||||
* Add css-classes for range-start and range-end
|
||||
* Update hover effect for "buttons" (matches Bootstrap 3.3.5 mixin)
|
||||
* Custom formatting options
|
||||
|
||||
Bugfixes:
|
||||
* Scrolling on mobile device closes datepicker
|
||||
* Use $.on() instead $.bind()
|
||||
* Fixed right-click and edit-menu paste
|
||||
* Ported prototype fix for Prototype Compability
|
||||
* Fixed issue with startview year
|
||||
* Fixed padding inconsistency with twitter bootstrap 3
|
||||
* prevents the click event from bubbling to any user defined click handlers
|
||||
* Added padding for .datepicker-dropdown
|
||||
* Fixes the issue with a date change firing mulitple change events
|
||||
* removed hard dependency on bootstrap (because of twbs-sass package)
|
||||
* Clearing the date should reset to defaultViewDate
|
||||
* Datepicker orientation mix up - top = bottom and bottom = top
|
||||
* Fix cursor thead styles
|
||||
* Fix date-reset issue when navigating to next with invalid date
|
||||
* Using orientation:auto but date picker still appears above, cut off, when there plenty of space below.
|
||||
* lots of orientation fixes
|
||||
|
||||
Locale changes:
|
||||
* Remove unused eighth element on week arrays )
|
||||
* Add Esperanto translation
|
||||
* Better Polish language date shortcuts translation and default date format
|
||||
* lowercase danish translation
|
||||
* Add Mongolian localization
|
||||
* update Hungarian translation
|
||||
|
||||
Docs:
|
||||
* added day to end-date to avoid confusion about example
|
||||
* added setDatesDisabled method to documentation
|
||||
|
||||
|
||||
|
||||
1.4.0
|
||||
-----
|
||||
|
||||
Features:
|
||||
* implemented beforeShowMonth option
|
||||
* Added option to disable touch keyboard input
|
||||
* All datepicker methods are chainable
|
||||
* Added a datesDisable option
|
||||
* Added option to prevent date picker to show when input field receives focus
|
||||
* adding option to define the container the datepicker will be appended to
|
||||
* Backported some placement fixes for the container option
|
||||
* Option default view date
|
||||
* Add toggleActive option
|
||||
* Added clear method
|
||||
* Added version property to datepicker object
|
||||
* Added option to not show datepicker on readonly field
|
||||
|
||||
Bugfixes:
|
||||
* Removed blank space before the previous button when calendarWeeks is true;
|
||||
* Fixed date deselection with single date picker
|
||||
* Added case-neutral matching for text months
|
||||
* Changed input-daterange to full width for bs3
|
||||
* Fix placement for RTL languages
|
||||
* fix for range picker when next date is before previous date
|
||||
* Fix for moving box on first selection
|
||||
* Do not show datepicker for readonly inputs
|
||||
* Fix getUTCDate when datepicker has no selected date
|
||||
* Only a linked today button should trigger the changeDate event
|
||||
* Fixed bug with keyboard navigation when startdate/enddate was defined
|
||||
* Right align calendar on right window edge conflict
|
||||
* On "ENTER" keydown on picker, prevent the closest form to be submitted too
|
||||
* fixed bower.json twitte bootstrap dependency
|
||||
* Replaced named entities with decimal entities
|
||||
* assigning plugin to a local variable to fix bug in noConflict
|
||||
|
||||
Repo changes:
|
||||
* Added empty ignore option in bower.json.
|
||||
* Added .editorconfig
|
||||
* Reworked grunt tasks
|
||||
|
||||
Translations:
|
||||
* Fix translation of French months
|
||||
* Update cambodia translations
|
||||
* added clear and weekStart to turkish translation
|
||||
* Days/months should start lowercase in dutch
|
||||
* Month/daynames should be lowercase in french
|
||||
* Add 'clear' and 'format' to Ukrainian locale
|
||||
* Added Montenegrin locale
|
||||
|
||||
Docs:
|
||||
* added example for inputs option
|
||||
* added missing documentation for embedded mode
|
||||
* Add additional documentaion to update method
|
||||
|
||||
1.3.1
|
||||
-----
|
||||
|
||||
Repo changes:
|
||||
* Automated screenshots have been added to the docs. These probably need to be documented so that contributors can add them when appropriate.
|
||||
* Grunt support
|
||||
* Missing description and keywords for Packagist
|
||||
* Composer: Include translation files into deployment dir
|
||||
* Add package name and version to npm package.json
|
||||
|
||||
Bugfixes:
|
||||
* Remove font-family declaration for datepicker
|
||||
* Don't deselect date unless datepicker is multidate
|
||||
* Removed comment from compiled CSS.
|
||||
* Don't clear input after typing date and hitting Enter when keyboard nav is disabled
|
||||
* Fixing the ui displaying 'undefined nan' when typing dates in Firefox & IE
|
||||
* Reset tooltip to a default empty value
|
||||
* Fix colspan if calendarWeeks & clearBtn are true
|
||||
* Removed fixed width and height in large and small group addon
|
||||
* z-index calculation should not stop at first element
|
||||
* Fix IE8 bug with Array#splice with one argument
|
||||
|
||||
Documentation:
|
||||
* ghpages: jQuery js not being loaded when using HTTPS
|
||||
* Adds clearBtn option to sandbox page
|
||||
* Minor fixes (typo's, links,...)
|
||||
|
||||
Locale changes
|
||||
|
||||
Updated languages:
|
||||
* Clear translation in czech
|
||||
* Dutch translation
|
||||
* Swedish translation
|
||||
* Japanese translation
|
||||
* Ukrainian translation fixes
|
||||
* Add spanish clear, week start and format
|
||||
* Added galician clear, week start and format
|
||||
* Added missing clear localization value for polish translation
|
||||
* Add clear zh-CN translation
|
||||
* Fixed Albanian translation typo's
|
||||
* Add missing clear and format localization value for Russian translation
|
||||
* Updated Serbian translation
|
||||
* Fixed Ukrainian iso code to uk instead of ua
|
||||
* Updated greek translation
|
||||
* Update Catalan and Spanish localizations
|
||||
* Added missing armenian translations
|
||||
|
||||
New languages:
|
||||
* Basque
|
||||
* Khmer (Cambodia)
|
||||
* Bosnian
|
||||
* British english
|
||||
* Armenian
|
||||
* Faroese
|
||||
* Swiss Italian and Swiss French
|
||||
|
||||
1.3.0
|
||||
-----
|
||||
|
||||
New features:
|
||||
* Bootstrap 3 support. Added build files `build/build_standalone3.less` and `build/build3.less`, and source files `less/datepicker3.less` and `css/datepicker3.css` (built from `build_standalone3.less`).
|
||||
* Multi-date functionality. This required rethinking several areas of the picker:
|
||||
* The internals have been modified to be completely multidate-centric.
|
||||
* Attributes and methods availabel on events have changed, but the old attributes and functions will still work.
|
||||
* Keyboard navigation has been revamped, as it didn't work at all properly with multidate selection.
|
||||
* The picker now explicitly supports "no selected date".
|
||||
|
||||
Non-API changes:
|
||||
* Keyboard navigation has been changed. See `docs/keyboard.rst`.
|
||||
* Empty pickers in a range picker setup will be populated with the first date selected by the user to make finding the next date easier.
|
||||
|
||||
Bug squashed:
|
||||
* Jan 1, 1970 is now highlighted when selected
|
||||
* `touchstart` added to document-bound picker-closing events (alongside `mousedown`)
|
||||
* Fixed a display bug with component add-on icons being vertically higher than they should have been.
|
||||
* Input is refocused after clicking the picker.
|
||||
* `changeDate` event is triggered when `setDate` is called.
|
||||
|
||||
Locale changes:
|
||||
* Added Ukrainian, Belgium-Dutch, Welsh, Galician, Vietnamese, and Azerbaijani
|
||||
* `clear` for German, Danish, Italian, and Romanian
|
||||
* Fixed `weekStart` and `format` for Norwegian
|
||||
* `weekStart` and `format` for Georgian
|
||||
* Tweaks for Latvian, French, Vietnamese, Swedish, and Croatian
|
||||
* De-duplicated Ukrainian files from `uk` and `ua` to just `ua`
|
||||
|
||||
Repository changes:
|
||||
* Documentation has been moved from the base `README.md` file to the `docs/` folder, and been re-written to use sphinx docs. The docs are now viewable online at https://bootstrap-datepicker.readthedocs.org/. The [gh-pages](https://uxsolutions.github.io/bootstrap-datepicker/) branch has been reduced to the sandbox demo.
|
||||
* Changed the js file header to point at repo/demo/docs urls instead of eyecon.ro
|
||||
* The css files are now the output of the standalone build scripts instead of `build/build.less` etc.
|
||||
* `composer.json` now supports component-installer
|
||||
* Added [JSHint](http://www.jshint.com/docs/) and [JSCS](https://github.com/mdevils/node-jscs) configurations
|
||||
|
||||
|
||||
1.2.0
|
||||
-----
|
||||
|
||||
New features:
|
||||
* Google Closure Compiler Compatibility
|
||||
* Smart orientation by default, and explicit picker orientation with the `orientation` option
|
||||
* Text inside the picker is no longer user-selectable
|
||||
* Packagist/Composer support (I think...)
|
||||
* No longer depends on glyphicons for arrows
|
||||
* `clearDate` event added, fired when the date is cleared
|
||||
|
||||
Bug squashed:
|
||||
* `noConflict` fixed
|
||||
* Fix for large years causing an infinite loop in date parsing
|
||||
* Fixed cases where `changeYear` and `changeMonth` events were not being triggered
|
||||
* `component.js` moved to `bower.js`
|
||||
* Falsey values for `startDate` and `endDate` translate to `-Infinity` and `Infinity`, respectively (effectively, falsey values mean "no bounds")
|
||||
* Fixed `autoclose` for non-input, non-component elements
|
||||
* Fixed 50% param in `mix()` less function -- expands compatibility with less compilers
|
||||
* Fixed `update` method to update the selected date
|
||||
* `beforeShowDay` was getting UTC dates, now it gets local dates (all dates that developers are given should be in local time, not UTC).
|
||||
* `startDate` and `endDate` were a bit confused when given `new Date()` -- they would not allow today to be selected (the range should be inclusive), they would change whether it was selectable based on local time, etc. These quirks should be fixed now. They both also now expect local dates (which will then be time-zeroed and converted to UTC).
|
||||
* Fixed selected date not being automatically constrained to the specified range when `setStartDate` and `setEndDate` were called.
|
||||
* No longer uses jQuery's `.size()` (deprecated in favor of `.length`)
|
||||
* `changeDate` triggered during manual user input
|
||||
* `change` event fired when input value changed, it wasn't in some cases
|
||||
|
||||
Locale changes:
|
||||
* Added Arabic, Norwegian, Georgian
|
||||
* `clear` for French
|
||||
* `today` and `clear` for Bahasa
|
||||
* `today` and `clear` for Portuguese (both `pt` and `pt-BR`)
|
||||
* `format` for Turkish
|
||||
* `format` and `weekStart` for Swedish
|
||||
* `format` and `weekStart` for Simplified Chinese; `today`, `format`, and `weekStart` for Traditional Chinese
|
||||
* Fixed typo in Serbian latin (`rs-latin`)
|
||||
* More appropriate use of Traditional Chinese habit in `zh-TW`
|
||||
|
||||
|
||||
1.1.3
|
||||
----------
|
||||
|
||||
Clicking the clear button now triggers the input's `change` and datepicker's `changeDate` events.
|
||||
Fixed a bug that broke the event-attached `format` function.
|
||||
|
||||
|
||||
1.1.2
|
||||
----------
|
||||
|
||||
Botched release, no change from 1.1.1
|
||||
|
||||
|
||||
1.1.1
|
||||
----------
|
||||
|
||||
Fixes a bug when setting startDate or endDate during initialization.
|
||||
|
||||
|
||||
1.1.0
|
||||
----------
|
||||
|
||||
New features:
|
||||
* Date range picker.
|
||||
* Data API / noConflict.
|
||||
* `getDate` and `setDate` methods.
|
||||
* `format` method for events; this allows you to easily format the `date` associated with the event.
|
||||
* New options:
|
||||
* `beforeShowDay` option: a dev-provided function that can enable/disable dates, add css classes, and add tooltips.
|
||||
* `clearBtn`, a button for resetting the picker.
|
||||
|
||||
Internal changes:
|
||||
* Cleaner and more reliable method for extracting options from all potential sources (defaults, locale overrides, data-attrs, and instantiation options, in that order). This also populates `$.fn.datepicker.defaults` with the default values, and uses this hash as the actual source of defaults, meaning you can globally change the default value for a given option.
|
||||
|
||||
Bugs squashed:
|
||||
* Resolved a conflict with bootstrap's native `.switch` class.
|
||||
* Fixed a bug with components where they would be stuck with a stale value when editing the value manually.
|
||||
* The `date` attributes on events are now local dates instead of internal UTC dates.
|
||||
* Separate `Date` objects for internal selected and view date references.
|
||||
* Clicking multiple times inside inputs no longer hides the picker.
|
||||
|
||||
Minor improvements:
|
||||
* Better text color for highlighted "today" date.
|
||||
* Last year in decade view now marked as "new" instead of "old".
|
||||
* Formats now properly handle trailing separators.
|
||||
|
||||
Locale changes:
|
||||
* Added Albanian, Estonian, and Macedonian
|
||||
* Added `weekStart` for Russian
|
||||
* Added `weekStart` and `format` for Finnish
|
||||
|
||||
Potentially backward-incompatible changes:
|
||||
* Options revamp:
|
||||
* This fixes bugs in the correlation of some data-attrs to their associated option names. If you use `data-date-weekstart`, `data-date-startdate`, or `data-date-enddate`, you should update these to `data-date-week-start`, `data-date-start-date`, or `data-date-end-date`, respectively.
|
||||
* All options for datepicker are now properties on the datepicker's `o` property; options are no longer stored on the Datepicker instance itself. If you have code that accesses options stored on the datepicker instance (eg, `datepicker.format`), you will need to update it to access those options via the `o` property (eg, `datepicker.o.format`). "Raw" options are available via the `_o` property.
|
||||
|
||||
1.0.2
|
||||
----------
|
||||
|
||||
Small optimizations release
|
||||
|
||||
* Reduced the number of times `update` is called on initialization.
|
||||
* Datepicker now detaches the picker dropdown when it is hidden, and appends it when shown. This removes the picker from the DOM when it is not in use.
|
||||
* No longer listens to document/window events unless picker is visible.
|
||||
|
||||
v1.0.1
|
||||
------
|
||||
|
||||
* Support for [Bower](https://bower.io/)
|
||||
* Component pickers are now aligned under the input, not the add-on element.
|
||||
* Japanese locale now has "today" and "format".
|
||||
* "remove" method removes `.data().date` if the datepicker is on a non-input.
|
||||
* Events on initialized elements are no longer blocked from bubbling up the DOM (jQuery.live et al can now catch the events).
|
||||
* Component triggers now include `.btn` in addition to `.add-on`.
|
||||
* Updates to README contents.
|
||||
|
||||
v1.0.0
|
||||
------
|
||||
|
||||
Initial release:
|
||||
|
||||
* format option
|
||||
* weekStart option
|
||||
* calendarWeeks option
|
||||
* startDate / endDate options
|
||||
* daysOfWeekDisabled option
|
||||
* autoclose option
|
||||
* startView / mnViewMode options
|
||||
* todayBtn / todayHighlight options
|
||||
* keyboardNavigation option
|
||||
* language option
|
||||
* forceParse option
|
||||
@@ -1,71 +0,0 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and maintainers pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, gender identity and expression, level of experience,
|
||||
nationality, personal appearance, race, religion, or sexual identity and
|
||||
orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or
|
||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any contributor for other behaviors that they deem inappropriate,
|
||||
threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. Examples of
|
||||
representing a project or community include using an official project e-mail
|
||||
address, posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event. Representation of a project may be
|
||||
further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at <https://github.com/uxsolutions/bootstrap-datepicker>. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||
faith may face temporary or permanent repercussions as determined by other
|
||||
members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org), version 1.4,
|
||||
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
|
||||
@@ -1,41 +0,0 @@
|
||||
# Contributing
|
||||
|
||||
## Support requests
|
||||
|
||||
The issue tracker is not the place for support requests. If you get stuck with bootstrap-datepicker, it's very likely that the fine folks at [StackOverflow](https://stackoverflow.com/) will be able to help you; simply describe the problem you're having and provide them a link to the repo (so they know what code you're using). Another option is to post to the [bootstrap-datepicker google group](https://groups.google.com/group/bootstrap-datepicker).
|
||||
|
||||
## Issues
|
||||
|
||||
If you've found a bug in bootstrap-datepicker, we want to know about it! However, please keep the following in mind:
|
||||
|
||||
* This is not the bootstrap-datepicker from [eyecon.ro](https://www.eyecon.ro/bootstrap-datepicker/). Stefan provided the initial code for bootstrap-datepicker, but this repo is divergent from his codebase. Please make sure you're using either the latest tagged version or the latest master from https://github.com/uxsolutions/bootstrap-datepicker/.
|
||||
* A working example of the bug you've found is *much* easier to work with than a description alone. If possible, please provide a link to a demonstration of the bug, perhaps using https://jsfiddle.net/ .
|
||||
* CDN-backed assets can be found at http://bsdp-assets.blackcherry.us/ . These should be used *only* for building test cases, as they may be removed or changed at any time.
|
||||
* Finally, it's possible someone else has already reported the same bug you have. Please search the issue tracker for similar issues before posting your own. Thanks!
|
||||
|
||||
## Pull Requests
|
||||
|
||||
Patches welcome!
|
||||
|
||||
For all cases, you should have your own fork of the repo.
|
||||
|
||||
To submit a pull request for a **new feature**:
|
||||
|
||||
1. Run the tests. Every pull request for a new feature should have an accompanying unit test and docs changes. See the `README.md` in the `tests/` and `docs/` directories for details.
|
||||
2. Create a new branch off of the `master` branch for your feature. This is particularly helpful when you want to submit multiple pull requests.
|
||||
3. Add a test (or multiple tests) for your feature. Again, see `tests/README.md`.
|
||||
4. Add your new feature, making the test pass.
|
||||
5. Push to your fork and submit the pull request!
|
||||
|
||||
To submit a **bug fix**:
|
||||
|
||||
1. Create a new branch off of the `master` branch.
|
||||
2. Add a test that demonstrates the bug.
|
||||
3. Make the test pass.
|
||||
4. Push to your fork and submit the pull request!
|
||||
|
||||
To submit a **documentation fix**:
|
||||
|
||||
1. Create a new branch off of the `master` branch.
|
||||
2. Add your documentation fixes (no tests required).
|
||||
3. Push to your fork and submit the pull request!
|
||||
@@ -1,261 +0,0 @@
|
||||
module.exports = function(grunt){
|
||||
'use strict';
|
||||
|
||||
// Force use of Unix newlines
|
||||
grunt.util.linefeed = '\n';
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
//Metadata
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
banner: [
|
||||
'/*!',
|
||||
' * Datepicker for Bootstrap v<%= pkg.version %> (<%= pkg.homepage %>)',
|
||||
' *',
|
||||
' * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)',
|
||||
' */'
|
||||
].join('\n') + '\n',
|
||||
|
||||
// Task configuration.
|
||||
clean: {
|
||||
dist: ['dist', '*-dist.zip']
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: 'js/.jshintrc'
|
||||
},
|
||||
main: {
|
||||
src: 'js/bootstrap-datepicker.js'
|
||||
},
|
||||
locales: {
|
||||
src: 'js/locales/*.js'
|
||||
},
|
||||
gruntfile: {
|
||||
options: {
|
||||
jshintrc: 'grunt/.jshintrc'
|
||||
},
|
||||
src: 'Gruntfile.js'
|
||||
}
|
||||
},
|
||||
jscs: {
|
||||
options: {
|
||||
config: 'js/.jscsrc'
|
||||
},
|
||||
main: {
|
||||
src: 'js/bootstrap-datepicker.js'
|
||||
},
|
||||
locales: {
|
||||
src: 'js/locales/*.js'
|
||||
},
|
||||
gruntfile: {
|
||||
src: 'Gruntfile.js'
|
||||
}
|
||||
},
|
||||
qunit: {
|
||||
main: 'tests/tests.html',
|
||||
timezone: 'tests/timezone.html',
|
||||
options: {
|
||||
console: false
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
options: {
|
||||
stripBanners: true
|
||||
},
|
||||
main: {
|
||||
src: 'js/bootstrap-datepicker.js',
|
||||
dest: 'dist/js/<%= pkg.name %>.js'
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
preserveComments: 'some'
|
||||
},
|
||||
main: {
|
||||
src: '<%= concat.main.dest %>',
|
||||
dest: 'dist/js/<%= pkg.name %>.min.js'
|
||||
},
|
||||
locales: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'js/locales/',
|
||||
src: '*.js',
|
||||
dest: 'dist/locales/',
|
||||
rename: function(dest, name){
|
||||
return dest + name.replace(/\.js$/, '.min.js');
|
||||
}
|
||||
}]
|
||||
}
|
||||
},
|
||||
less: {
|
||||
options: {
|
||||
sourceMap: true,
|
||||
outputSourceFiles: true
|
||||
},
|
||||
standalone_bs2: {
|
||||
options: {
|
||||
sourceMapURL: '<%= pkg.name %>.standalone.css.map'
|
||||
},
|
||||
src: 'build/build_standalone.less',
|
||||
dest: 'dist/css/<%= pkg.name %>.standalone.css'
|
||||
},
|
||||
standalone_bs3: {
|
||||
options: {
|
||||
sourceMapURL: '<%= pkg.name %>3.standalone.css.map'
|
||||
},
|
||||
src: 'build/build_standalone3.less',
|
||||
dest: 'dist/css/<%= pkg.name %>3.standalone.css'
|
||||
},
|
||||
main_bs2: {
|
||||
options: {
|
||||
sourceMapURL: '<%= pkg.name %>.css.map'
|
||||
},
|
||||
src: 'build/build.less',
|
||||
dest: 'dist/css/<%= pkg.name %>.css'
|
||||
},
|
||||
main_bs3: {
|
||||
options: {
|
||||
sourceMapURL: '<%= pkg.name %>3.css.map'
|
||||
},
|
||||
src: 'build/build3.less',
|
||||
dest: 'dist/css/<%= pkg.name %>3.css'
|
||||
}
|
||||
},
|
||||
usebanner: {
|
||||
options: {
|
||||
banner: '<%= banner %>'
|
||||
},
|
||||
css: 'dist/css/*.css',
|
||||
js: 'dist/js/**/*.js'
|
||||
},
|
||||
cssmin: {
|
||||
options: {
|
||||
compatibility: 'ie8',
|
||||
keepSpecialComments: '*',
|
||||
advanced: false
|
||||
},
|
||||
main: {
|
||||
files: {
|
||||
'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
|
||||
'dist/css/<%= pkg.name %>3.min.css': 'dist/css/<%= pkg.name %>3.css'
|
||||
}
|
||||
},
|
||||
standalone: {
|
||||
files: {
|
||||
'dist/css/<%= pkg.name %>.standalone.min.css': 'dist/css/<%= pkg.name %>.standalone.css',
|
||||
'dist/css/<%= pkg.name %>3.standalone.min.css': 'dist/css/<%= pkg.name %>3.standalone.css'
|
||||
}
|
||||
}
|
||||
},
|
||||
csslint: {
|
||||
options: {
|
||||
csslintrc: 'less/.csslintrc'
|
||||
},
|
||||
dist: [
|
||||
'dist/css/bootstrap-datepicker.css',
|
||||
'dist/css/bootstrap-datepicker3.css',
|
||||
'dist/css/bootstrap-datepicker.standalone.css',
|
||||
'dist/css/bootstrap-datepicker3.standalone.css'
|
||||
]
|
||||
},
|
||||
compress: {
|
||||
main: {
|
||||
options: {
|
||||
archive: '<%= pkg.name %>-<%= pkg.version %>-dist.zip',
|
||||
mode: 'zip',
|
||||
level: 9,
|
||||
pretty: true
|
||||
},
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'dist/',
|
||||
src: '**'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
'string-replace': {
|
||||
js: {
|
||||
files: [{
|
||||
src: 'js/bootstrap-datepicker.js',
|
||||
dest: 'js/bootstrap-datepicker.js'
|
||||
}],
|
||||
options: {
|
||||
replacements: [{
|
||||
pattern: /\$(\.fn\.datepicker\.version)\s=\s*("|\')[0-9\.a-z].*("|');/gi,
|
||||
replacement: "$.fn.datepicker.version = '" + grunt.option('newver') + "';"
|
||||
}]
|
||||
}
|
||||
},
|
||||
npm: {
|
||||
files: [{
|
||||
src: 'package.json',
|
||||
dest: 'package.json'
|
||||
}],
|
||||
options: {
|
||||
replacements: [{
|
||||
pattern: /\"version\":\s\"[0-9\.a-z].*",/gi,
|
||||
replacement: '"version": "' + grunt.option('newver') + '",'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// These plugins provide necessary tasks.
|
||||
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
|
||||
require('time-grunt')(grunt);
|
||||
|
||||
// JS distribution task.
|
||||
grunt.registerTask('dist-js', ['concat', 'uglify:main', 'uglify:locales', 'usebanner:js']);
|
||||
|
||||
// CSS distribution task.
|
||||
grunt.registerTask('less-compile', 'less');
|
||||
grunt.registerTask('dist-css', ['less-compile', 'cssmin:main', 'cssmin:standalone', 'usebanner:css']);
|
||||
|
||||
// Full distribution task.
|
||||
grunt.registerTask('dist', ['clean:dist', 'dist-js', 'dist-css']);
|
||||
|
||||
// Code check tasks.
|
||||
grunt.registerTask('lint-js', 'Lint all js files with jshint and jscs', ['jshint', 'jscs']);
|
||||
grunt.registerTask('lint-css', 'Lint all css files', ['dist-css', 'csslint:dist']);
|
||||
grunt.registerTask('qunit-all', 'Run qunit tests', ['qunit:main', 'qunit-timezone']);
|
||||
grunt.registerTask('test', 'Lint files and run unit tests', ['lint-js', /*'lint-css',*/ 'qunit-all']);
|
||||
|
||||
// Version numbering task.
|
||||
// grunt bump-version --newver=X.Y.Z
|
||||
grunt.registerTask('bump-version', 'string-replace');
|
||||
|
||||
// Docs task.
|
||||
grunt.registerTask('screenshots', 'Rebuilds automated docs screenshots', function(){
|
||||
var phantomjs = require('phantomjs-prebuilt').path;
|
||||
|
||||
grunt.file.recurse('docs/_static/screenshots/', function(abspath){
|
||||
grunt.file.delete(abspath);
|
||||
});
|
||||
|
||||
grunt.file.recurse('docs/_screenshots/', function(abspath, root, subdir, filename){
|
||||
if (!/.html$/.test(filename))
|
||||
return;
|
||||
subdir = subdir || '';
|
||||
|
||||
var outdir = 'docs/_static/screenshots/' + subdir,
|
||||
outfile = outdir + filename.replace(/.html$/, '.png');
|
||||
|
||||
if (!grunt.file.exists(outdir))
|
||||
grunt.file.mkdir(outdir);
|
||||
|
||||
// NOTE: For 'zh-TW' and 'ja' locales install adobe-source-han-sans-jp-fonts (Arch Linux)
|
||||
grunt.util.spawn({
|
||||
cmd: phantomjs,
|
||||
args: ['docs/_screenshots/script/screenshot.js', abspath, outfile]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('qunit-timezone', 'Run timezone tests', function(){
|
||||
process.env.TZ = 'Europe/Moscow';
|
||||
grunt.task.run('qunit:timezone');
|
||||
});
|
||||
};
|
||||
202
public/static/plugins/bootstrap-datepicker/LICENSE
vendored
@@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,42 +0,0 @@
|
||||
# bootstrap-datepicker
|
||||
|
||||
[](https://gitter.im/uxsolutions/bootstrap-datepicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://travis-ci.org/uxsolutions/bootstrap-datepicker)
|
||||
[](https://raw.githubusercontent.com/uxsolutions/bootstrap-datepicker/master/LICENSE)
|
||||
[](https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
[](https://twitter.com/bsdatepicker)
|
||||
|
||||
Versions are incremented according to [semver](http://semver.org/).
|
||||
|
||||
## CDN
|
||||
|
||||
You can use the [CloudFlare](https://www.cloudflare.com) powered [cdnjs.com](https://cdnjs.com) on your website.
|
||||
|
||||
[bootstrap-datepicker](https://cdnjs.com/libraries/bootstrap-datepicker) on cdnjs
|
||||
|
||||
Please note: It might take a few hours until a new version is available on cdnjs.
|
||||
|
||||
## Links
|
||||
|
||||
* [Online Demo](https://uxsolutions.github.io/bootstrap-datepicker/)
|
||||
* [Online Docs](https://bootstrap-datepicker.readthedocs.org/en/stable/) (ReadTheDocs.com)
|
||||
* [Google Group](https://groups.google.com/group/bootstrap-datepicker/)
|
||||
* [Travis CI](https://travis-ci.org/uxsolutions/bootstrap-datepicker)
|
||||
|
||||
## Development
|
||||
|
||||
Once you cloned the repo, you'll need to install [grunt](https://gruntjs.com/) and the development dependencies using a package manager:
|
||||
|
||||
* [yarn](https://yarnpkg.com/) (recommended):
|
||||
|
||||
```
|
||||
$ [sudo] yarn global add grunt-cli
|
||||
$ yarn install
|
||||
```
|
||||
|
||||
* [npm](https://www.npmjs.com/):
|
||||
|
||||
```
|
||||
$ [sudo] npm install --global grunt-cli
|
||||
$ npm install
|
||||
```
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"name": "bootstrap-datepicker",
|
||||
"main": [
|
||||
"dist/css/bootstrap-datepicker3.css",
|
||||
"dist/js/bootstrap-datepicker.js"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"jquery" : ">=1.7.1 <4.0.0"
|
||||
},
|
||||
"ignore": []
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
// Datepicker .less buildfile. Includes select mixins/variables from bootstrap
|
||||
// and imports the included datepicker.less to output a minimal datepicker.css
|
||||
//
|
||||
// Usage:
|
||||
// lessc build.less datepicker.css
|
||||
//
|
||||
// Variables and mixins copied from bootstrap 2.0.2
|
||||
|
||||
// Variables
|
||||
@grayLight: #999;
|
||||
@grayLighter: #eee;
|
||||
@white: #fff;
|
||||
@linkColor: #08c;
|
||||
@btnPrimaryBackground: @linkColor;
|
||||
@orange: #f89406;
|
||||
@infoBackground: #d9edf7;
|
||||
@baseLineHeight: 18px;
|
||||
@baseBorderRadius: 4px;
|
||||
|
||||
// Mixins
|
||||
|
||||
// Border Radius
|
||||
.border-radius(@radius: 5px) {
|
||||
-webkit-border-radius: @radius;
|
||||
-moz-border-radius: @radius;
|
||||
border-radius: @radius;
|
||||
}
|
||||
|
||||
// Button backgrounds
|
||||
.buttonBackground(@startColor, @endColor) {
|
||||
.gradientBar(@startColor, @endColor);
|
||||
.reset-filter();
|
||||
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
||||
background-color: @endColor;
|
||||
}
|
||||
&:active,
|
||||
&.active {
|
||||
background-color: darken(@endColor, 10%) e("\9");
|
||||
}
|
||||
}
|
||||
|
||||
// Reset filters for IE
|
||||
.reset-filter() {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
}
|
||||
|
||||
// Gradient Bar Colors for buttons and alerts
|
||||
.gradientBar(@primaryColor, @secondaryColor) {
|
||||
#gradient > .vertical(@primaryColor, @secondaryColor);
|
||||
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
|
||||
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
||||
}
|
||||
|
||||
// Gradients
|
||||
#gradient {
|
||||
.vertical(@startColor: #555, @endColor: #333) {
|
||||
background-color: mix(@startColor, @endColor, 60%);
|
||||
background-image: -moz-linear-gradient(to bottom, @startColor, @endColor); // FF 3.6+
|
||||
background-image: -ms-linear-gradient(to bottom, @startColor, @endColor); // IE10
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
|
||||
background-image: -webkit-linear-gradient(to bottom, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||
background-image: -o-linear-gradient(to bottom, @startColor, @endColor); // Opera 11.10
|
||||
background-image: linear-gradient(to bottom, @startColor, @endColor); // The standard
|
||||
background-repeat: repeat-x;
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
|
||||
}
|
||||
}
|
||||
|
||||
@import "../less/datepicker.less";
|
||||
@@ -1,76 +0,0 @@
|
||||
// Datepicker .less buildfile. Includes select mixins/variables from bootstrap
|
||||
// and imports the included datepicker.less to output a minimal datepicker.css
|
||||
//
|
||||
// Usage:
|
||||
// lessc build3.less datepicker.css
|
||||
//
|
||||
// Variables and mixins copied from Bootstrap 3.3.5
|
||||
|
||||
// Variables
|
||||
@gray: lighten(#000, 33.5%); // #555
|
||||
@gray-light: lighten(#000, 46.7%); // #777
|
||||
@gray-lighter: lighten(#000, 93.5%); // #eee
|
||||
|
||||
@brand-primary: darken(#428bca, 6.5%); // #337ab7
|
||||
|
||||
@btn-primary-color: #fff;
|
||||
@btn-primary-bg: @brand-primary;
|
||||
@btn-primary-border: darken(@btn-primary-bg, 5%);
|
||||
|
||||
@btn-link-disabled-color: @gray-light;
|
||||
|
||||
@state-info-bg: #d9edf7;
|
||||
|
||||
@line-height-base: 1.428571429; // 20/14
|
||||
@border-radius-base: 4px;
|
||||
|
||||
@dropdown-bg: #fff;
|
||||
@dropdown-border: rgba(0,0,0,.15);
|
||||
|
||||
|
||||
// Mixins
|
||||
|
||||
// Button variants
|
||||
.button-variant(@color; @background; @border) {
|
||||
color: @color;
|
||||
background-color: @background;
|
||||
border-color: @border;
|
||||
|
||||
&:focus,
|
||||
&.focus {
|
||||
color: @color;
|
||||
background-color: darken(@background, 10%);
|
||||
border-color: darken(@border, 25%);
|
||||
}
|
||||
&:hover {
|
||||
color: @color;
|
||||
background-color: darken(@background, 10%);
|
||||
border-color: darken(@border, 12%);
|
||||
}
|
||||
&:active,
|
||||
&.active {
|
||||
color: @color;
|
||||
background-color: darken(@background, 10%);
|
||||
border-color: darken(@border, 12%);
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&.focus {
|
||||
color: @color;
|
||||
background-color: darken(@background, 17%);
|
||||
border-color: darken(@border, 25%);
|
||||
}
|
||||
}
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
&:hover,
|
||||
&:focus,
|
||||
&.focus {
|
||||
background-color: @background;
|
||||
border-color: @border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import "../less/datepicker3.less";
|
||||
@@ -1,64 +0,0 @@
|
||||
// Datepicker standalone .less buildfile. Includes all necessary mixins/variables/rules from bootstrap
|
||||
// and imports the included datepicker.less to output a minimal standalone datepicker.css
|
||||
//
|
||||
// Usage:
|
||||
// lessc build_standalone.less datepicker.css
|
||||
//
|
||||
// Variables, mixins, and rules copied from bootstrap 2.0.2
|
||||
|
||||
@import "build.less";
|
||||
|
||||
// Dropdown css
|
||||
|
||||
@zindexDropdown: 1000;
|
||||
@grayDark: #333;
|
||||
@baseLineHeight: 20px;
|
||||
@tableBackground: transparent; // overall background-color
|
||||
@dropdownBackground: @white;
|
||||
@dropdownBorder: rgba(0,0,0,.2);
|
||||
@dropdownLinkColor: @grayDark;
|
||||
@dropdownLinkColorHover: @white;
|
||||
@dropdownLinkBackgroundHover: @linkColor;
|
||||
|
||||
// Drop shadows
|
||||
.box-shadow(@shadow) {
|
||||
-webkit-box-shadow: @shadow;
|
||||
-moz-box-shadow: @shadow;
|
||||
box-shadow: @shadow;
|
||||
}
|
||||
|
||||
// The dropdown menu (ul)
|
||||
// ----------------------
|
||||
.datepicker{
|
||||
&.dropdown-menu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
z-index: @zindexDropdown;
|
||||
float: left;
|
||||
display: none; // none by default, but block on "open" of the menu
|
||||
min-width: 160px;
|
||||
list-style: none;
|
||||
background-color: @dropdownBackground;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
.border-radius(5px);
|
||||
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
||||
-webkit-background-clip: padding-box;
|
||||
-moz-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
*border-right-width: 2px;
|
||||
*border-bottom-width: 2px;
|
||||
|
||||
// Normally inherited from bootstrap's `body`
|
||||
color: #333333;
|
||||
font-size:13px;
|
||||
line-height: @baseLineHeight;
|
||||
}
|
||||
|
||||
&.dropdown-menu, &.datepicker-inline {
|
||||
th, td {
|
||||
padding: 4px 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
// Datepicker standalone .less buildfile. Includes all necessary mixins/variables/rules from bootstrap
|
||||
// and imports the included datepicker.less to output a minimal standalone datepicker.css
|
||||
//
|
||||
// Usage:
|
||||
// lessc build_standalone3.less datepicker.css
|
||||
//
|
||||
// Variables, mixins, and rules copied from Bootstrap 3.3.5
|
||||
|
||||
@import "build3.less";
|
||||
|
||||
// Dropdown css
|
||||
|
||||
@zindex-dropdown: 1000;
|
||||
@dropdown-fallback-border: #ccc;
|
||||
|
||||
// Drop shadows
|
||||
.box-shadow(@shadow) {
|
||||
-webkit-box-shadow: @shadow;
|
||||
-moz-box-shadow: @shadow;
|
||||
box-shadow: @shadow;
|
||||
}
|
||||
|
||||
// The dropdown menu (ul)
|
||||
// ----------------------
|
||||
.datepicker {
|
||||
&.dropdown-menu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
z-index: @zindex-dropdown;
|
||||
display: none; // none by default, but block on "open" of the menu
|
||||
float: left;
|
||||
min-width: 160px;
|
||||
list-style: none;
|
||||
background-color: @dropdown-bg;
|
||||
border: 1px solid @dropdown-fallback-border; // IE8 fallback
|
||||
border: 1px solid @dropdown-border;
|
||||
border-radius: @border-radius-base;
|
||||
.box-shadow(0 6px 12px rgba(0,0,0,.175));
|
||||
-webkit-background-clip: padding-box;
|
||||
-moz-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
|
||||
// Normally inherited from bootstrap's `body`
|
||||
color: #333333;
|
||||
font-size: 13px;
|
||||
line-height: @line-height-base;
|
||||
}
|
||||
|
||||
&.dropdown-menu, &.datepicker-inline {
|
||||
th, td {
|
||||
padding: 0px 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"name": "eternicode/bootstrap-datepicker",
|
||||
"description": "A datepicker for Bootstrap",
|
||||
"license": "Apache-2.0",
|
||||
"keywords": [
|
||||
"bootstrap",
|
||||
"datepicker"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Andrew Rowls",
|
||||
"email": "eternicode@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Community",
|
||||
"homepage": "https://github.com/uxsolutions/bootstrap-datepicker/contributors"
|
||||
}
|
||||
],
|
||||
"type": "component",
|
||||
"require": {
|
||||
"robloach/component-installer": "*",
|
||||
"components/bootstrap" : ">=2.0, <4.0",
|
||||
"components/jquery": ">=1.7.1, <4.0.0"
|
||||
},
|
||||
"extra": {
|
||||
"component": {
|
||||
"scripts": [
|
||||
"js/bootstrap-datepicker.js"
|
||||
],
|
||||
"styles": [
|
||||
"dist/css/bootstrap-datepicker.css",
|
||||
"dist/css/bootstrap-datepicker3.css"
|
||||
],
|
||||
"files": [
|
||||
"js/locales/bootstrap-datepicker.*.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,153 +0,0 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = _build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
# the i18n builder cannot share the environment and doctrees with the others
|
||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " texinfo to make Texinfo files"
|
||||
@echo " info to make Texinfo files and run them through makeinfo"
|
||||
@echo " gettext to make PO message catalogs"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
|
||||
clean:
|
||||
-rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/bootstrap-datepicker.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/bootstrap-datepicker.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/bootstrap-datepicker"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/bootstrap-datepicker"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
texinfo:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo
|
||||
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
||||
@echo "Run \`make' in that directory to run these through makeinfo" \
|
||||
"(use \`make info' here to do that automatically)."
|
||||
|
||||
info:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo "Running Texinfo files through makeinfo..."
|
||||
make -C $(BUILDDIR)/texinfo info
|
||||
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
||||
|
||||
gettext:
|
||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||
@echo
|
||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
@@ -1,20 +0,0 @@
|
||||
Documentation
|
||||
=============
|
||||
|
||||
Project documentation is built using [Sphinx docs](http://sphinx-doc.org/), which uses [ReST](http://docutils.sourceforge.net/rst.html) for markup. This allows the docs to cover a vast amount of topics without using a thousand-line README file.
|
||||
|
||||
Sphinx docs is pip-installable via `pip install sphinx`. Once installed, open a command line in the docs folder and run the following commands:
|
||||
|
||||
```bash
|
||||
$ sudo pip install -r requirements.txt
|
||||
```
|
||||
|
||||
This will install the requirements needed for the generating the docs. Afterwards you can run:
|
||||
|
||||
```bash
|
||||
$ make html
|
||||
```
|
||||
|
||||
The docs will be generated, the output files will be placed in the `_build/html/` directory, and can be browsed (locally) with any browser.
|
||||
|
||||
The docs can also be found online at <https://bootstrap-datepicker.readthedocs.org/>.
|
||||
@@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
var dp = $('.base').datepicker().data('datepicker');
|
||||
|
||||
dp.focusDate = new Date(Date.UTC(2013, 7, 14));
|
||||
dp.update();
|
||||
|
||||
$('.date').datepicker({
|
||||
format: 'mm-dd-yyyy'
|
||||
});
|
||||
$('.inline').datepicker();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture=".base, .date, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control base" value="08/03/2013">
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-3">
|
||||
<div class="input-group date">
|
||||
<input type="text" class="form-control" value="10-05-2003" readonly>
|
||||
<div class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-th"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-4 inline" data-date="01/03/2004"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,26 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('.date').datepicker({
|
||||
format: 'mm-dd-yyyy'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture=".input-group, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<div class="input-group date">
|
||||
<input type="text" class="form-control" value="12-02-2012">
|
||||
<div class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-th"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,32 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('.input-daterange').datepicker({
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture=".input-daterange, .datepicker" data-show="input:first, input:last">
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
<div class="input-group input-daterange">
|
||||
<input type="text" class="form-control" value="2012-04-05">
|
||||
<div class="input-group-addon">to</div>
|
||||
<input type="text" class="form-control" value="2012-04-19">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<div class="input-group input-daterange">
|
||||
<input type="text" class="form-control" value="2012-04-05">
|
||||
<div class="input-group-addon">to</div>
|
||||
<input type="text" class="form-control" value="2012-04-19">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,15 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('div').datepicker();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture=".datepicker">
|
||||
<div data-date="12/03/2012"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,21 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="02-16-2012">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
calendarWeeks: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control" value="01-16-2012">
|
||||
</div>
|
||||
<div class="col-sm-offset-2 col-sm-3">
|
||||
<input type="text" class="form-control" value="12-16-2012">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
clearBtn: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03-03-2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
daysOfWeekDisabled: [0, 6]
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03-05-2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
endDate: '03-14-2013'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03-03-2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<style>
|
||||
.row + .row {
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
<script src="script/common.js"></script>
|
||||
<script src="../../js/locales/bootstrap-datepicker.es.js" charset="UTF-8"></script>
|
||||
<script src="../../js/locales/bootstrap-datepicker.fr.js" charset="UTF-8"></script>
|
||||
<script src="../../js/locales/bootstrap-datepicker.zh-TW.js" charset="UTF-8"></script>
|
||||
<script src="../../js/locales/bootstrap-datepicker.ru.js" charset="UTF-8"></script>
|
||||
<script src="../../js/locales/bootstrap-datepicker.ja.js" charset="UTF-8"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('[data-date]').datepicker({
|
||||
format: 'mm/dd/yyyy' // To override locale-specific formats
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture=".datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-language="en"></div>
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-start-view="1" data-date-language="es"></div>
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-language="fr"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-start-view="1" data-date-language="zh-TW"></div>
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-language="ja"></div>
|
||||
<div class="col-sm-4" data-date="03/03/2013" data-date-start-view="1" data-date-language="ru"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,27 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
multidate: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" value="03/03/2013,03/16/2013">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" value="03/03/2013,06/16/2013" data-date-start-view="1">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" value="03/03/2013,03/16/2014" data-date-start-view="2">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
showWeekDays: false
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03-03-2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
format: 'mm-dd-yyyy',
|
||||
startDate: '03-14-2013'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03-18-2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,21 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker({
|
||||
todayBtn: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-3">
|
||||
<input type="text" class="form-control" value="03/03/2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,47 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function patch_date(f){
|
||||
var NativeDate = window.Date;
|
||||
var date = function date(y,m,d,h,i,s,j){
|
||||
switch(arguments.length){
|
||||
case 0: return date.now ? new NativeDate(date.now) : new NativeDate();
|
||||
case 1: return new NativeDate(y);
|
||||
case 2: return new NativeDate(y,m);
|
||||
case 3: return new NativeDate(y,m,d);
|
||||
case 4: return new NativeDate(y,m,d,h);
|
||||
case 5: return new NativeDate(y,m,d,h,i);
|
||||
case 6: return new NativeDate(y,m,d,h,i,s);
|
||||
case 7: return new NativeDate(y,y,m,d,h,i,s,j);
|
||||
}
|
||||
};
|
||||
date.UTC = NativeDate.UTC;
|
||||
return function(){
|
||||
Array.prototype.push.call(arguments, date);
|
||||
window.Date = date;
|
||||
f.apply(this, arguments);
|
||||
window.Date = NativeDate;
|
||||
};
|
||||
}
|
||||
var setup = patch_date(function(Date){
|
||||
Date.now = new Date(2013, 2, 18);
|
||||
$('input').datepicker({
|
||||
todayHighlight: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control" value="03/03/2013">
|
||||
</div>
|
||||
<div class="col-sm-offset-2 col-sm-3">
|
||||
<input type="text" class="form-control" value="03/18/2013">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="script/common.css">
|
||||
<script src="script/common.js"></script>
|
||||
<script>
|
||||
function setup(){
|
||||
$('input').datepicker();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body data-capture="input, .datepicker">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control" value="03/03/2013" data-date-week-start="2">
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-3">
|
||||
<input type="text" class="form-control" value="03/03/2013" data-date-week-start="4">
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-3">
|
||||
<input type="text" class="form-control" value="03/03/2013" data-date-week-start="6">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +0,0 @@
|
||||
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
|
||||
@import url('../../../dist/css/bootstrap-datepicker3.min.css');
|
||||
|
||||
body {
|
||||
/* Padding around all elements to allow space for screenshots */
|
||||
padding: 10px;
|
||||
/* Transparent background for PNG screenshots */
|
||||
background: none;
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
document.write("<script src='https://code.jquery.com/jquery-3.1.1.min.js'></script>");
|
||||
document.write("<script src='../../js/bootstrap-datepicker.js'></script>");
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
Usage: $ phantomjs --remote-debugger-port=9001 --remote-debugger-autorun=yes debug.js page.html
|
||||
|
||||
Open Chrome tab to http://localhost:9001/; open second link (ie, path to page.html)
|
||||
*/
|
||||
var system = require('system' ), fs = require('fs'), webpage = require('webpage');
|
||||
|
||||
(function(phantom){
|
||||
var page=webpage.create();
|
||||
|
||||
function debugPage(){
|
||||
console.log("Refresh a second debugger-port page and open a second webkit inspector for the target page.");
|
||||
console.log("Letting this page continue will then trigger a break in the target page.");
|
||||
debugger; // pause here in first web browser tab for steps 5 & 6
|
||||
page.open(system.args[1]);
|
||||
page.evaluateAsync(function() {
|
||||
debugger; // step 7 will wait here in the second web browser tab
|
||||
});
|
||||
}
|
||||
debugPage();
|
||||
}(phantom));
|
||||
@@ -1,69 +0,0 @@
|
||||
/* jshint phantom:true, devel:true */
|
||||
/* Usage: phantomjs screenshot.js in.html out.png */
|
||||
|
||||
var sys = require('system'),
|
||||
page = new WebPage();
|
||||
page.viewportSize = {
|
||||
width: 800,
|
||||
height: 600
|
||||
};
|
||||
|
||||
page.open(sys.args[1], function(status){
|
||||
if (status !== 'success'){
|
||||
console.log('Bad status: %s', status);
|
||||
phantom.exit(1);
|
||||
}
|
||||
window.setTimeout(function(){
|
||||
var box = page.evaluate(function(){
|
||||
var lefts, rights, tops, bottoms,
|
||||
padding = 10, // px
|
||||
selection, show;
|
||||
|
||||
// Call setup method
|
||||
if (window.setup)
|
||||
window.setup();
|
||||
// Show all pickers, or only those marked for showing
|
||||
show = $('body').data('show');
|
||||
show = show ? $(show) : $('*');
|
||||
show
|
||||
.filter(function(){
|
||||
return 'datepicker' in $(this).data();
|
||||
})
|
||||
.datepicker('show');
|
||||
|
||||
// Get bounds of selected elements
|
||||
selection = $($('body').data('capture'));
|
||||
tops = selection.map(function(){
|
||||
return $(this).offset().top;
|
||||
}).toArray();
|
||||
lefts = selection.map(function(){
|
||||
return $(this).offset().left;
|
||||
}).toArray();
|
||||
bottoms = selection.map(function(){
|
||||
return $(this).offset().top + $(this).outerHeight();
|
||||
}).toArray();
|
||||
rights = selection.map(function(){
|
||||
return $(this).offset().left + $(this).outerWidth();
|
||||
}).toArray();
|
||||
|
||||
// Convert bounds to single bounding box
|
||||
var b = {
|
||||
top: Math.min.apply(Math, tops),
|
||||
left: Math.min.apply(Math, lefts)
|
||||
};
|
||||
b.width = Math.max.apply(Math, rights) - b.left;
|
||||
b.height = Math.max.apply(Math, bottoms) - b.top;
|
||||
|
||||
// Return bounding box
|
||||
return {
|
||||
top: Math.max(b.top - padding, 0),
|
||||
left: Math.max(b.left - padding, 0),
|
||||
width: b.width + 2 * padding,
|
||||
height: b.height + 2 * padding
|
||||
};
|
||||
});
|
||||
page.clipRect = box;
|
||||
page.render(sys.args[2]);
|
||||
phantom.exit();
|
||||
}, 1);
|
||||
});
|
||||
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 31 KiB |
@@ -1,249 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# bootstrap-datepicker documentation build configuration file, created by
|
||||
# sphinx-quickstart on Fri Aug 2 14:45:57 2013.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys, os
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
#version = ''
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
#release = ''
|
||||
|
||||
import sphinx_rtd_theme
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
primary_domain = 'js'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
extensions = []
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'bootstrap-datepicker'
|
||||
copyright = u'2016, eternicode'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
highlight_language = 'javascript'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
# html_theme_path = ['_themes',]
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'bootstrap-datepickerdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#'preamble': '',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'bootstrap-datepicker.tex', u'bootstrap-datepicker Documentation',
|
||||
u'eternicode', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output --------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'bootstrap-datepicker', u'bootstrap-datepicker Documentation',
|
||||
[u'eternicode'], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output ------------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
('index', 'bootstrap-datepicker', u'bootstrap-datepicker Documentation',
|
||||
u'eternicode', 'bootstrap-datepicker', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#texinfo_show_urls = 'footnote'
|
||||
@@ -1,63 +0,0 @@
|
||||
Events
|
||||
======
|
||||
|
||||
Datepicker triggers a number of events in certain circumstances. All events have extra data attached to the event object that is passed to any event handlers
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker()
|
||||
.on(picker_event, function(e) {
|
||||
// `e` here contains the extra attributes
|
||||
});
|
||||
|
||||
* ``date``: the relevant Date object, in local timezone. For a multidate picker, this will be the latest date picked.
|
||||
* ``dates``: an Array of Date objects, in local timezone, when using a multidate picker.
|
||||
* ``format([ix], [format])``: a function to make formatting ``date`` easier. ``ix`` can be the index of a Date in the ``dates`` array to format; if absent, the last date selected will be used. ``format`` can be any format string that datepicker supports; if absent, the format set on the datepicker will be used. Both arguments are optional.
|
||||
|
||||
|
||||
show
|
||||
----
|
||||
|
||||
Fired when the date picker is displayed.
|
||||
|
||||
|
||||
hide
|
||||
----
|
||||
|
||||
Fired when the date picker is hidden.
|
||||
|
||||
|
||||
clearDate
|
||||
---------
|
||||
|
||||
Fired when the date is cleared, normally when the "clear" button (enabled with the ``clearBtn`` option) is pressed.
|
||||
|
||||
|
||||
changeDate
|
||||
----------
|
||||
|
||||
Fired when the date is changed.
|
||||
|
||||
|
||||
changeMonth
|
||||
-----------
|
||||
|
||||
Fired when the *view* month is changed from year view.
|
||||
|
||||
|
||||
changeYear
|
||||
----------
|
||||
|
||||
Fired when the *view* year is changed from decade view.
|
||||
|
||||
|
||||
changeDecade
|
||||
------------
|
||||
|
||||
Fired when the *view* decade is changed from century view.
|
||||
|
||||
|
||||
changeCentury
|
||||
-------------
|
||||
|
||||
Fired when the *view* century is changed from millennium view.
|
||||
@@ -1,36 +0,0 @@
|
||||
I18N
|
||||
====
|
||||
|
||||
The plugin supports i18n for the month and weekday names and the ``weekStart`` option. The default is English ("en"); other available translations are available in the ``js/locales/`` directory, simply include your desired locale after the plugin. To add more languages, simply add a key to ``$.fn.datepicker.dates``, before calling ``.datepicker()``. Example
|
||||
|
||||
::
|
||||
|
||||
$.fn.datepicker.dates['en'] = {
|
||||
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
||||
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
||||
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
today: "Today",
|
||||
clear: "Clear",
|
||||
format: "mm/dd/yyyy",
|
||||
titleFormat: "MM yyyy", /* Leverages same syntax as 'format' */
|
||||
weekStart: 0
|
||||
};
|
||||
|
||||
Right-to-left languages may also include ``rtl: true`` to make the calendar display appropriately.
|
||||
|
||||
If your browser (or those of your users) is displaying characters wrong, chances are the browser is loading the javascript file with a non-unicode encoding. Simply add ``charset="UTF-8"`` to your ``script`` tag:
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<script src="bootstrap-datepicker.XX.js" charset="UTF-8"></script>
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
language: 'XX'
|
||||
});
|
||||
|
||||
.. figure:: _static/screenshots/option_language.png
|
||||
:align: center
|
||||
@@ -1,127 +0,0 @@
|
||||
bootstrap-datepicker
|
||||
====================
|
||||
|
||||
Bootstrap-datepicker provides a flexible datepicker widget in the Bootstrap style.
|
||||
|
||||
.. figure:: _static/screenshots/demo_head.png
|
||||
:align: center
|
||||
|
||||
Versions are incremented according to `semver <https://semver.org/>`_.
|
||||
|
||||
`Online Demo <https://uxsolutions.github.io/bootstrap-datepicker>`_
|
||||
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
* `Bootstrap`_ 2.0.4+
|
||||
* `jQuery`_ 1.7.1+
|
||||
|
||||
.. _Bootstrap: https://getbootstrap.com/
|
||||
.. _jQuery: https://jquery.com/
|
||||
|
||||
These are the specific versions bootstrap-datepicker is tested against (``js`` files) and built against (``css`` files). Use other versions at your own risk.
|
||||
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
Requires bootstrap's dropdown component (``dropdowns.less``) for some styles, and bootstrap's sprites (``sprites.less`` and associated images) for arrows.
|
||||
|
||||
A standalone .css file (including necessary dropdown styles and alternative, text-based arrows) can be generated by running ``build/build_standalone.less`` through the ``lessc`` compiler::
|
||||
|
||||
$ lessc build/build_standalone.less datepicker.css
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Call the datepicker via javascript::
|
||||
|
||||
$('.datepicker').datepicker();
|
||||
|
||||
|
||||
Data API
|
||||
^^^^^^^^
|
||||
|
||||
As with bootstrap's own plugins, datepicker provides a data-api that can be used to instantiate datepickers without the need for custom javascript. For most datepickers, simply set ``data-provide="datepicker"`` on the element you want to initialize, and it will be intialized lazily, in true bootstrap fashion. For inline datepickers, use ``data-provide="datepicker-inline"``; these will be immediately initialized on page load, and cannot be lazily loaded.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<input data-provide="datepicker">
|
||||
|
||||
Markup with component
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div class="input-group date" data-provide="datepicker">
|
||||
<input type="text" class="form-control">
|
||||
<div class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-th"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
You can disable datepicker's data-api in the same way as you would disable other bootstrap plugins::
|
||||
|
||||
$(document).off('.datepicker.data-api');
|
||||
|
||||
|
||||
Configuration
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
:doc:`options` are passed to the ``datepicker`` function via an options hash at instantiation::
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'mm/dd/yyyy',
|
||||
startDate: '-3d'
|
||||
});
|
||||
|
||||
Most options may be provided as data-attributes on the target element:
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<input class="datepicker" data-date-format="mm/dd/yyyy">
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
startDate: '-3d'
|
||||
});
|
||||
|
||||
Defaults for all options can be modified directly by changing values in the ``$.fn.datepicker.defaults`` hash::
|
||||
|
||||
$.fn.datepicker.defaults.format = "mm/dd/yyyy";
|
||||
$('.datepicker').datepicker({
|
||||
startDate: '-3d'
|
||||
});
|
||||
|
||||
|
||||
Stylesheets
|
||||
^^^^^^^^^^^
|
||||
|
||||
There are a few different stylesheets included in the library. This is an overview of what each file is to be used for:
|
||||
|
||||
:code:`bootstrap-datepicker.css` gives legacy support for twitter bootstrap v2, :code:`bootstrap-datepicker3.css` is used for twitter bootstrap v3 support
|
||||
and :code:`bootstrap-datepicker.standalone.css` can be used to include the datepicker without depending on the twitter bootstrap library.
|
||||
|
||||
No Conflict mode
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
``$.fn.datepicker.noConflict`` provides a way to avoid conflict with other jQuery datepicker plugins::
|
||||
|
||||
var datepicker = $.fn.datepicker.noConflict(); // return $.fn.datepicker to previously assigned value
|
||||
$.fn.bootstrapDP = datepicker; // give $().bootstrapDP the bootstrap-datepicker functionality
|
||||
|
||||
|
||||
|
||||
Table of Contents
|
||||
-----------------
|
||||
|
||||
.. toctree::
|
||||
|
||||
markup
|
||||
options
|
||||
methods
|
||||
events
|
||||
keyboard
|
||||
i18n
|
||||
@@ -1,27 +0,0 @@
|
||||
Keyboard support
|
||||
================
|
||||
|
||||
The datepicker includes keyboard navigation. The "focused date" is kept track of and highlighted (as with mouse hover) during keyboard nav, and is cleared when a date is toggled or the picker is hidden.
|
||||
|
||||
up, down, left, right arrow keys
|
||||
--------------------------------
|
||||
|
||||
By themselves, left/right will move focus backward/forward one day, up/down will move focus back/forward one week.
|
||||
|
||||
With the shift key, up/left will move focus backward one month, down/right will move focus forward one month.
|
||||
|
||||
With the ctrl key, up/left will move focus backward one year, down/right will move focus forward one year.
|
||||
|
||||
Shift+ctrl behaves the same as ctrl -- that is, it does not change both month and year simultaneously, only the year.
|
||||
|
||||
enter
|
||||
-----
|
||||
|
||||
When the picker is visible, enter will toggle the focused date (if there is one). When the picker is not visible, enter will have normal effects -- submitting the current form, etc.
|
||||
|
||||
When the date is deselected, the ``clearDate`` event is triggered; otherwise, the ``changeDate`` event is triggered. If ``autoclose`` is enabled, the picker will be hidden after selection or deselection.
|
||||
|
||||
escape
|
||||
------
|
||||
|
||||
The escape key can be used to clear the focused date and hide and re-show the datepicker; hiding the picker is necessary if the user wants to manually edit the value.
|
||||
@@ -1,190 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=_build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
|
||||
set I18NSPHINXOPTS=%SPHINXOPTS% .
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. texinfo to make Texinfo files
|
||||
echo. gettext to make PO message catalogs
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\bootstrap-datepicker.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\bootstrap-datepicker.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "texinfo" (
|
||||
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "gettext" (
|
||||
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
||||
@@ -1,89 +0,0 @@
|
||||
Markup
|
||||
=======
|
||||
|
||||
The following are examples of supported markup. On their own, these will not provide a datepicker widget; you will need to instantiate the datepicker on the markup.
|
||||
|
||||
|
||||
input
|
||||
-----
|
||||
|
||||
The simplest case: focusing the input (clicking or tabbing into it) will show the picker.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<input type="text" class="form-control" value="02-16-2012">
|
||||
|
||||
.. figure:: _static/screenshots/markup_input.png
|
||||
:align: center
|
||||
|
||||
component
|
||||
---------
|
||||
|
||||
Adding the ``date`` class to an ``input-group`` bootstrap component will allow the ``input-group-addon`` elements to trigger the picker.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div class="input-group date">
|
||||
<input type="text" class="form-control" value="12-02-2012">
|
||||
<div class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-th"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
.. figure:: _static/screenshots/markup_component.png
|
||||
:align: center
|
||||
|
||||
.. _daterange:
|
||||
|
||||
date-range
|
||||
----------
|
||||
|
||||
Using the ``input-daterange`` construct with multiple child inputs will instantiate one picker per input and link them together to allow selecting ranges.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div class="input-group input-daterange">
|
||||
<input type="text" class="form-control" value="2012-04-05">
|
||||
<div class="input-group-addon">to</div>
|
||||
<input type="text" class="form-control" value="2012-04-19">
|
||||
</div>
|
||||
|
||||
.. figure:: _static/screenshots/markup_daterange.png
|
||||
:align: center
|
||||
|
||||
Note that that ``input-daterange`` itself does not implement the ``datepicker`` methods. Methods should be directly called to the inputs. For example:
|
||||
|
||||
::
|
||||
|
||||
$('.input-daterange input').each(function() {
|
||||
$(this).datepicker('clearDates');
|
||||
});
|
||||
|
||||
inline or embedded
|
||||
------------------
|
||||
|
||||
Instantiating the datepicker on a simple div will give an embedded picker that is always visible.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div data-date="12/03/2012"></div>
|
||||
|
||||
.. figure:: _static/screenshots/markup_inline.png
|
||||
:align: center
|
||||
|
||||
|
||||
Example to save the embedded datepicker value to a hidden field
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div id="datepicker" data-date="12/03/2012"></div>
|
||||
<input type="hidden" id="my_hidden_input">
|
||||
|
||||
::
|
||||
|
||||
$('#datepicker').datepicker();
|
||||
$('#datepicker').on('changeDate', function() {
|
||||
$('#my_hidden_input').val(
|
||||
$('#datepicker').datepicker('getFormattedDate')
|
||||
);
|
||||
});
|
||||
@@ -1,226 +0,0 @@
|
||||
Methods
|
||||
=======
|
||||
|
||||
Methods are called on a datepicker by calling the ``datepicker`` function with a string first argument, followed by any arguments the method takes
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker('method', arg1, arg2);
|
||||
|
||||
|
||||
destroy
|
||||
-------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Remove the datepicker. Removes attached events, internal attached objects, and added HTML elements.
|
||||
|
||||
*Alias: remove*
|
||||
|
||||
|
||||
show
|
||||
----
|
||||
|
||||
Arguments: None
|
||||
|
||||
Show the picker.
|
||||
|
||||
|
||||
hide
|
||||
----
|
||||
|
||||
Arguments: None
|
||||
|
||||
Hide the picker.
|
||||
|
||||
|
||||
update
|
||||
------
|
||||
|
||||
Arguments:
|
||||
|
||||
* date (String|Date|Array, optional)
|
||||
* date (String|Date, optional)
|
||||
* ...
|
||||
|
||||
Update the datepicker with given arguments or the current input value.
|
||||
The arguments can be either an array of strings, an array of Date objects, multiples strings or multiples Date objects.
|
||||
If ``date`` arguments are provided and they are Date objects, it is assumed to be "local" Date objects, and will be converted to UTC for internal use.
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker('update');
|
||||
$('.datepicker').datepicker('update', '2011-03-05');
|
||||
$('.datepicker').datepicker('update', '2011-03-05', '2011-03-07');
|
||||
$('.datepicker').datepicker('update', new Date(2011, 2, 5));
|
||||
$('.datepicker').datepicker('update', [new Date(2011, 2, 5), new Date(2011, 2, 7)]);
|
||||
|
||||
To reset the datepicker and clear the selected date, pass an empty string with ``update``:
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker('update', '');
|
||||
|
||||
|
||||
setDate
|
||||
-------
|
||||
|
||||
Arguments:
|
||||
|
||||
* date (Date)
|
||||
|
||||
Sets the internal date. ``date`` is assumed to be a "local" date object, and will be converted to UTC for internal use.
|
||||
|
||||
|
||||
setUTCDate
|
||||
----------
|
||||
|
||||
Arguments:
|
||||
|
||||
* date (Date)
|
||||
|
||||
Sets the internal date. ``date`` is assumed to be a UTC date object, and will not be converted.
|
||||
|
||||
|
||||
setDates
|
||||
--------
|
||||
|
||||
Arguments:
|
||||
|
||||
* date[, date[, ...]] (Date)
|
||||
|
||||
or
|
||||
|
||||
* [date[, date[, ...]]] (Array)
|
||||
|
||||
Sets the internal date list; accepts multiple dates or a single array of dates as arguments. Each ``date`` is assumed to be a "local" date object, and will be converted to UTC for internal use. For use with multidate pickers.
|
||||
|
||||
|
||||
clearDates
|
||||
----------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Clear dates.
|
||||
|
||||
|
||||
setUTCDates
|
||||
-----------
|
||||
|
||||
Arguments:
|
||||
|
||||
* date[, date[, ...]] (Date)
|
||||
|
||||
or
|
||||
|
||||
* [date[, date[, ...]]] (Array)
|
||||
|
||||
Sets the internal date list. Each ``date`` is assumed to be a UTC date object, and will not be converted. For use with multidate pickers.
|
||||
|
||||
|
||||
getDate
|
||||
-------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns a localized date object representing the internal date object of the first datepicker in the selection. For multidate pickers, returns the latest date selected.
|
||||
|
||||
|
||||
getUTCDate
|
||||
----------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns the internal UTC date object, as-is and unconverted to local time, of the first datepicker in the selection. For multidate pickers, returns the latest date selected.
|
||||
|
||||
|
||||
getDates
|
||||
--------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns a list of localized date objects representing the internal date objects of the first datepicker in the selection. For use with multidate pickers.
|
||||
|
||||
|
||||
getUTCDates
|
||||
-----------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns the internal list of UTC date objects, as they are and unconverted to local time, of the first datepicker in the selection. For use with multidate pickers.
|
||||
|
||||
|
||||
getStartDate
|
||||
------------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns the lower date limit on the datepicker.
|
||||
|
||||
|
||||
getEndDate
|
||||
----------
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns the upper date limit on the datepicker.
|
||||
|
||||
|
||||
setStartDate
|
||||
------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* startDate (Date)
|
||||
|
||||
Sets a new lower date limit on the datepicker. See :ref:`startDate` for valid values.
|
||||
|
||||
Omit startDate (or provide an otherwise falsey value) to unset the limit.
|
||||
|
||||
|
||||
setEndDate
|
||||
----------
|
||||
|
||||
Arguments:
|
||||
|
||||
* endDate (Date)
|
||||
|
||||
Sets a new upper date limit on the datepicker. See :ref:`endDate` for valid values.
|
||||
|
||||
Omit endDate (or provide an otherwise falsey value) to unset the limit.
|
||||
|
||||
|
||||
setDatesDisabled
|
||||
----------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* datesDisabled (String|Array)
|
||||
|
||||
Sets the days that should be disabled. See :ref:`datesDisabled` for valid values.
|
||||
|
||||
Omit datesDisabled (or provide an otherwise falsey value) to unset the disabled days.
|
||||
|
||||
|
||||
setDaysOfWeekDisabled
|
||||
---------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* daysOfWeekDisabled (String|Array)
|
||||
|
||||
Sets the days of week that should be disabled. See :ref:`daysOfWeekDisabled` for valid values.
|
||||
|
||||
Omit daysOfWeekDisabled (or provide an otherwise falsey value) to unset the disabled days of week.
|
||||
|
||||
|
||||
setDaysOfWeekHighlighted
|
||||
------------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* daysOfWeekHighlighted (String|Array)
|
||||
|
||||
Sets the days of week that should be highlighted. See :ref:`daysOfWeekHighlighted` for valid values.
|
||||
|
||||
Omit daysOfWeekHighlighted (or provide an otherwise falsey value) to unset the highlighted days of week.
|
||||
@@ -1,570 +0,0 @@
|
||||
Options
|
||||
=======
|
||||
|
||||
All options that take a "Date" can handle a ``Date`` object; a String formatted according to the given ``format``; or a timedelta relative to today, eg "-1d", "+6m +1y", etc, where valid units are "d" (day), "w" (week), "m" (month), and "y" (year). Use "0" as today.
|
||||
There are also aliases for the relative timedelta's: "yesterday" equals "-1d", "today" is equal to "+0d" and "tomorrow" is equal to "+1d".
|
||||
|
||||
Most options can be provided via data-attributes. An option can be converted to a data-attribute by taking its name, replacing each uppercase letter with its lowercase equivalent preceded by a dash, and prepending "data-date-" to the result. For example, ``startDate`` would be ``data-date-start-date``, ``format`` would be ``data-date-format``, and ``daysOfWeekDisabled`` would be ``data-date-days-of-week-disabled``.
|
||||
|
||||
See the `quick reference`_ for an overview of all options and their default values
|
||||
|
||||
autoclose
|
||||
---------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
Whether or not to close the datepicker immediately when a date is selected.
|
||||
|
||||
|
||||
assumeNearbyYear
|
||||
----------------
|
||||
|
||||
Boolean or Integer. Default: false
|
||||
|
||||
If true, manually-entered dates with two-digit years, such as "5/1/15", will be parsed as "2015", not "15". If the year is less than 10 years in advance, the picker will use the current century, otherwise, it will use the previous one. For example "5/1/15" would parse to May 1st, 2015, but "5/1/97" would be May 1st, 1997.
|
||||
|
||||
To configure the number of years in advance that the picker will still use the current century, use an Integer instead of the Boolean true. E.g. "assumeNearbyYear: 20"
|
||||
|
||||
|
||||
beforeShowDay
|
||||
-------------
|
||||
|
||||
Function(Date). Default: $.noop
|
||||
|
||||
A function that takes a date as a parameter and returns one of the following values:
|
||||
|
||||
* undefined to have no effect
|
||||
* A Boolean, indicating whether or not this date is selectable
|
||||
* A String representing additional CSS classes to apply to the date's cell
|
||||
* An object with the following properties:
|
||||
|
||||
* ``enabled``: same as the Boolean value above
|
||||
* ``classes``: same as the String value above
|
||||
* ``tooltip``: a tooltip to apply to this date, via the ``title`` HTML attribute
|
||||
* ``content``: the content to display in the day cell, rather than the default (day of month as text)
|
||||
|
||||
|
||||
beforeShowMonth
|
||||
---------------
|
||||
|
||||
Function(Date). Default: $.noop
|
||||
|
||||
A function that takes a date as a parameter and returns one of the following values:
|
||||
|
||||
* undefined to have no effect
|
||||
* A Boolean, indicating whether or not this month is selectable
|
||||
* A String representing additional CSS classes to apply to the month's cell
|
||||
* An object with the following properties:
|
||||
|
||||
* ``enabled``: same as the Boolean value above
|
||||
* ``classes``: same as the String value above
|
||||
* ``tooltip``: a tooltip to apply to this date, via the ``title`` HTML attribute
|
||||
|
||||
|
||||
beforeShowYear
|
||||
--------------
|
||||
|
||||
Function(Date). Default: $.noop
|
||||
|
||||
A function that takes a date as a parameter and returns one of the following values:
|
||||
|
||||
* undefined to have no effect
|
||||
* A Boolean, indicating whether or not this year is selectable
|
||||
* A String representing additional CSS classes to apply to the year's cell
|
||||
* An object with the following properties:
|
||||
|
||||
* ``enabled``: same as the Boolean value above
|
||||
* ``classes``: same as the String value above
|
||||
* ``tooltip``: a tooltip to apply to this year, via the ``title`` HTML attribute
|
||||
|
||||
|
||||
beforeShowDecade
|
||||
----------------
|
||||
|
||||
Function(Date). Default: $.noop
|
||||
|
||||
A function that takes a date as a parameter and returns one of the following values:
|
||||
|
||||
* undefined to have no effect
|
||||
* A Boolean, indicating whether or not this year is selectable
|
||||
* A String representing additional CSS classes to apply to the year's cell
|
||||
* An object with the following properties:
|
||||
|
||||
* ``enabled``: same as the Boolean value above
|
||||
* ``classes``: same as the String value above
|
||||
* ``tooltip``: a tooltip to apply to this year, via the ``title`` HTML attribute
|
||||
|
||||
|
||||
beforeShowCentury
|
||||
-----------------
|
||||
|
||||
Function(Date). Default: $.noop
|
||||
|
||||
A function that takes a date as a parameter and returns one of the following values:
|
||||
|
||||
* undefined to have no effect
|
||||
* A Boolean, indicating whether or not this year is selectable
|
||||
* A String representing additional CSS classes to apply to the year's cell
|
||||
* An object with the following properties:
|
||||
|
||||
* ``enabled``: same as the Boolean value above
|
||||
* ``classes``: same as the String value above
|
||||
* ``tooltip``: a tooltip to apply to this year, via the ``title`` HTML attribute
|
||||
|
||||
|
||||
calendarWeeks
|
||||
-------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
Whether or not to show week numbers to the left of week rows.
|
||||
|
||||
.. figure:: _static/screenshots/option_calendarweeks.png
|
||||
:align: center
|
||||
|
||||
|
||||
clearBtn
|
||||
--------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
If true, displays a "Clear" button at the bottom of the datepicker to clear the input value. If "autoclose" is also set to true, this button will also close the datepicker.
|
||||
|
||||
.. figure:: _static/screenshots/option_clearbtn.png
|
||||
:align: center
|
||||
|
||||
|
||||
container
|
||||
---------
|
||||
|
||||
String. Default: "body"
|
||||
|
||||
Appends the date picker popup to a specific element; eg: container: '#picker-container' (will default to "body")
|
||||
|
||||
.. _datesDisabled:
|
||||
|
||||
|
||||
datesDisabled
|
||||
-------------
|
||||
|
||||
String, Array. Default: []
|
||||
|
||||
Array of date strings or a single date string formatted in the given date format
|
||||
|
||||
.. _daysOfWeekDisabled:
|
||||
|
||||
|
||||
daysOfWeekDisabled
|
||||
------------------
|
||||
|
||||
String, Array. Default: []
|
||||
|
||||
Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: disable weekends: ``'06'`` or ``'0,6'`` or ``[0,6]``.
|
||||
|
||||
.. figure:: _static/screenshots/option_daysofweekdisabled.png
|
||||
:align: center
|
||||
|
||||
.. _daysOfWeekHighlighted:
|
||||
|
||||
|
||||
daysOfWeekHighlighted
|
||||
---------------------
|
||||
|
||||
String, Array. Default: []
|
||||
|
||||
Days of the week that should be highlighted. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: highlight weekends: ``'06'`` or ``'0,6'`` or ``[0,6]``.
|
||||
|
||||
|
||||
defaultViewDate
|
||||
---------------
|
||||
|
||||
Date, String or Object with keys ``year``, ``month``, and ``day``. Default: today
|
||||
|
||||
Date to view when initially opening the calendar. The internal value of the date remains today as default, but when the datepicker is first opened the calendar will open to ``defaultViewDate`` rather than today. If this option is not used, "today" remains the default view date.
|
||||
|
||||
This option can be:
|
||||
* A date, which should be in local timezone.
|
||||
* A string which must be parsable with ``format``.
|
||||
* An object with keys ``year``, ``month`` and ``day`` (can't be set from a data attribute). If the given object is missing any of the required keys, their defaults are:
|
||||
|
||||
* ``year``: the current year
|
||||
* ``month``: 0 (Note that it starts with 0 for January)
|
||||
* ``day``: 1
|
||||
|
||||
disableTouchKeyboard
|
||||
--------------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
If true, no keyboard will show on mobile devices
|
||||
|
||||
|
||||
enableOnReadonly
|
||||
----------------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
If false the datepicker will not show on a readonly datepicker field.
|
||||
|
||||
.. _endDate:
|
||||
|
||||
|
||||
endDate
|
||||
-------
|
||||
|
||||
Date or String. Default: End of time
|
||||
|
||||
The latest date that may be selected; all later dates will be disabled.
|
||||
|
||||
Date should be in local timezone. String must be parsable with ``format``.
|
||||
|
||||
.. figure:: _static/screenshots/option_enddate.png
|
||||
:align: center
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<input type="text" class="form-control" data-date-end-date="0d">
|
||||
|
||||
Will disable all dates after today.
|
||||
|
||||
|
||||
forceParse
|
||||
----------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
Whether or not to force parsing of the input value when the picker is closed. That is, when an invalid date is left in the input field by the user, the picker will forcibly parse that value, and set the input's value to the new, valid date, conforming to the given `format`.
|
||||
|
||||
|
||||
format
|
||||
------
|
||||
|
||||
String. Default: "mm/dd/yyyy"
|
||||
|
||||
The date format, combination of d, dd, D, DD, m, mm, M, MM, yy, yyyy.
|
||||
|
||||
* d, dd: Numeric date, no leading zero and leading zero, respectively. Eg, 5, 05.
|
||||
* D, DD: Abbreviated and full weekday names, respectively. Eg, Mon, Monday.
|
||||
* m, mm: Numeric month, no leading zero and leading zero, respectively. Eg, 7, 07.
|
||||
* M, MM: Abbreviated and full month names, respectively. Eg, Jan, January
|
||||
* yy, yyyy: 2- and 4-digit years, respectively. Eg, 12, 2012.
|
||||
|
||||
Object.
|
||||
|
||||
Custom formatting options
|
||||
|
||||
* toDisplay: function (date, format, language) to convert date object to string, that will be stored in input field
|
||||
* toValue: function (date, format, language) to convert string object to date, that will be used in date selection
|
||||
|
||||
::
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: {
|
||||
/*
|
||||
* Say our UI should display a week ahead,
|
||||
* but textbox should store the actual date.
|
||||
* This is useful if we need UI to select local dates,
|
||||
* but store in UTC
|
||||
*/
|
||||
toDisplay: function (date, format, language) {
|
||||
var d = new Date(date);
|
||||
d.setDate(d.getDate() - 7);
|
||||
return d.toISOString();
|
||||
},
|
||||
toValue: function (date, format, language) {
|
||||
var d = new Date(date);
|
||||
d.setDate(d.getDate() + 7);
|
||||
return new Date(d);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
immediateUpdates
|
||||
----------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
If true, selecting a year or month in the datepicker will update the input value immediately. Otherwise, only selecting a day of the month will update the input value immediately.
|
||||
|
||||
|
||||
inputs
|
||||
------
|
||||
|
||||
Array, jQuery. Default: None
|
||||
|
||||
A list of inputs to be used in a range picker, which will be attached to the selected element. Allows for explicitly creating a range picker on a non-standard element.
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div id="event_period">
|
||||
<input type="text" class="actual_range">
|
||||
<input type="text" class="actual_range">
|
||||
</div>
|
||||
|
||||
::
|
||||
|
||||
$('#event_period').datepicker({
|
||||
inputs: $('.actual_range')
|
||||
});
|
||||
|
||||
|
||||
keepEmptyValues
|
||||
---------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
Only effective in a range picker. If true, the selected value does not get propagated to other, currently empty, pickers in the range.
|
||||
|
||||
|
||||
keyboardNavigation
|
||||
------------------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
Whether or not to allow date navigation by arrow keys.
|
||||
|
||||
Keyboard navigation is not supported at all for embedded / inline mode. Also it's not working if input element hasn't focus. This could be an issue if used as component or if opened by `show` method.
|
||||
|
||||
|
||||
language
|
||||
--------
|
||||
|
||||
String. Default: "en"
|
||||
|
||||
The IETF code (eg "en" for English, "pt-BR" for Brazilian Portuguese) of the language to use for month and day names. These will also be used as the input's value (and subsequently sent to the server in the case of form submissions). If a full code (eg "de-DE") is supplied the picker will first check for an "de-DE" language and if not found will fallback and check for a "de" language. If an unknown language code is given, English will be used. See :doc:`i18n`.
|
||||
|
||||
.. figure:: _static/screenshots/option_language.png
|
||||
:align: center
|
||||
|
||||
|
||||
maxViewMode
|
||||
-----------
|
||||
|
||||
Number, String. Default: 4, "centuries"
|
||||
|
||||
Set a maximum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium".
|
||||
Gives the ability to pick only a day, a month, a year or a decade. The day is set to the 1st for "months", the month is set to January for "years", the year is set to the first year from the decade for "decades", and the year is set to the first from the millennium for "centuries".
|
||||
|
||||
|
||||
minViewMode
|
||||
-----------
|
||||
|
||||
Number, String. Default: 0, "days"
|
||||
|
||||
Set a minimum limit for the view mode. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium".
|
||||
Gives the ability to pick only a month, a year or a decade. The day is set to the 1st for "months", and the month is set to January for "years", the year is set to the first year from the decade for "decades", and the year is set to the first from the millennium for "centuries".
|
||||
|
||||
|
||||
multidate
|
||||
---------
|
||||
|
||||
Boolean, Number. Default: false
|
||||
|
||||
Enable multidate picking. Each date in month view acts as a toggle button, keeping track of which dates the user has selected in order. If a number is given, the picker will limit how many dates can be selected to that number, dropping the oldest dates from the list when the number is exceeded. ``true`` equates to no limit. The input's value (if present) is set to a string generated by joining the dates, formatted, with ``multidateSeparator``.
|
||||
|
||||
For selecting 2 dates as a range please see :ref:`daterange`
|
||||
|
||||
.. figure:: _static/screenshots/option_multidate.png
|
||||
:align: center
|
||||
|
||||
|
||||
multidateSeparator
|
||||
------------------
|
||||
|
||||
String. Default: ","
|
||||
|
||||
The string that will appear between dates when generating the input's value. When parsing the input's value for a multidate picker, this will also be used to split the incoming string to separate multiple formatted dates; as such, it is highly recommended that you not use a string that could be a substring of a formatted date (eg, using '-' to separate dates when your format is 'yyyy-mm-dd').
|
||||
|
||||
|
||||
orientation
|
||||
-----------
|
||||
|
||||
String. Default: "auto"
|
||||
|
||||
A space-separated string consisting of one or two of "left" or "right", "top" or "bottom", and "auto" (may be omitted); for example, "top left", "bottom" (horizontal orientation will default to "auto"), "right" (vertical orientation will default to "auto"), "auto top". Allows for fixed placement of the picker popup.
|
||||
|
||||
"orientation" refers to the location of the picker popup's "anchor"; you can also think of it as the location of the trigger element (input, component, etc) relative to the picker.
|
||||
|
||||
"auto" triggers "smart orientation" of the picker. Horizontal orientation will default to "left" and left offset will be tweaked to keep the picker inside the browser viewport; vertical orientation will simply choose "top" or "bottom", whichever will show more of the picker in the viewport.
|
||||
|
||||
|
||||
showOnFocus
|
||||
-----------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
If false, the datepicker will be prevented from showing when the input field associated with it receives focus.
|
||||
|
||||
.. _startdate:
|
||||
|
||||
startDate
|
||||
---------
|
||||
|
||||
Date or String. Default: Beginning of time
|
||||
|
||||
The earliest date that may be selected; all earlier dates will be disabled.
|
||||
|
||||
Date should be in local timezone. String must be parsable with ``format``.
|
||||
|
||||
.. figure:: _static/screenshots/option_startdate.png
|
||||
:align: center
|
||||
|
||||
|
||||
startView
|
||||
---------
|
||||
|
||||
Number, String. Default: 0, "days"
|
||||
|
||||
The view that the datepicker should show when it is opened. Accepts: 0 or "days" or "month", 1 or "months" or "year", 2 or "years" or "decade", 3 or "decades" or "century", and 4 or "centuries" or "millenium". Useful for date-of-birth datepickers.
|
||||
|
||||
|
||||
templates
|
||||
---------
|
||||
|
||||
Object. Default:
|
||||
|
||||
::
|
||||
|
||||
{
|
||||
leftArrow: '«',
|
||||
rightArrow: '»'
|
||||
}
|
||||
|
||||
The templates used to generate some parts of the picker. Each property must be a string with only text, or valid html.
|
||||
You can use this property to use custom icons libs. for example:
|
||||
|
||||
::
|
||||
|
||||
{
|
||||
leftArrow: '<i class="fa fa-long-arrow-left"></i>',
|
||||
rightArrow: '<i class="fa fa-long-arrow-right"></i>'
|
||||
}
|
||||
|
||||
|
||||
showWeekDays
|
||||
------------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
If false, the datepicker will not append the names of the weekdays to its view. Default behavior is appending the weekdays.
|
||||
|
||||
.. figure:: _static/screenshots/option_showweekdays.png
|
||||
:align: center
|
||||
|
||||
|
||||
title
|
||||
-----
|
||||
|
||||
String. Default: ""
|
||||
|
||||
The string that will appear on top of the datepicker. If empty the title will be hidden.
|
||||
|
||||
|
||||
todayBtn
|
||||
--------
|
||||
|
||||
Boolean, "linked". Default: false
|
||||
|
||||
If true or "linked", displays a "Today" button at the bottom of the datepicker to select the current date. If true, the "Today" button will only move the current date into view; if "linked", the current date will also be selected.
|
||||
|
||||
.. figure:: _static/screenshots/option_todaybtn.png
|
||||
:align: center
|
||||
|
||||
|
||||
todayHighlight
|
||||
--------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
If true, highlights the current date.
|
||||
|
||||
.. figure:: _static/screenshots/option_todayhighlight.png
|
||||
:align: center
|
||||
|
||||
|
||||
toggleActive
|
||||
------------
|
||||
|
||||
Boolean. Default: false
|
||||
|
||||
If true, selecting the currently active date in the datepicker will unset the respective date. This option is always true when the multidate option is being used.
|
||||
|
||||
|
||||
updateViewDate
|
||||
--------------
|
||||
|
||||
Boolean. Default: true
|
||||
|
||||
If false viewDate is set according to `value` on initialization and updated
|
||||
* if a day in last oder next month is selected or
|
||||
* if dates are changed by `setDate`, `setDates`, `setUTCDate` and `setUTCDates` methods.
|
||||
If `multidate` option is `true` the last selected date or the last date in array
|
||||
passed to `setDates` or `setUTCDates` is used.
|
||||
|
||||
weekStart
|
||||
---------
|
||||
|
||||
Integer. Default: 0
|
||||
|
||||
Day of the week start. 0 (Sunday) to 6 (Saturday)
|
||||
|
||||
.. figure:: _static/screenshots/option_weekstart.png
|
||||
:align: center
|
||||
|
||||
|
||||
zIndexOffset
|
||||
------------
|
||||
|
||||
Integer. Default: 10
|
||||
|
||||
The CSS z-index of the open datepicker is the maximum z-index of the input and all of its DOM ancestors *plus* the ``zIndexOffset``.
|
||||
|
||||
Quick reference
|
||||
===============
|
||||
|
||||
This is a quick overview of all the options and their default values
|
||||
|
||||
===================== =============
|
||||
Option Default value
|
||||
===================== =============
|
||||
autoclose false
|
||||
assumeNearbyYear false
|
||||
beforeShowDay
|
||||
beforeShowMonth
|
||||
beforeShowYear
|
||||
beforeShowDecade
|
||||
beforeShowCentury
|
||||
calendarWeeks false
|
||||
clearBtn false
|
||||
container 'body'
|
||||
datesDisabled []
|
||||
daysOfWeekDisabled []
|
||||
daysOfWeekHighlighted []
|
||||
defaultViewDate today
|
||||
disableTouchKeyboard false
|
||||
enableOnReadonly true
|
||||
endDate Infinity
|
||||
forceParse true
|
||||
format 'mm/dd/yyyy'
|
||||
immediateUpdates false
|
||||
inputs
|
||||
keepEmptyValues false
|
||||
keyboardNavigation true
|
||||
language 'en'
|
||||
maxViewMode 4 'centuries'
|
||||
minViewMode 0 'days'
|
||||
multidate false
|
||||
multidateSeparator ','
|
||||
orientation 'auto'
|
||||
showOnFocus true
|
||||
startDate -Infinity
|
||||
startView 0 'days' (current month)
|
||||
templates
|
||||
title ''
|
||||
todayBtn false
|
||||
todayHighlight true
|
||||
toggleActive false
|
||||
weekStart 0 (Sunday)
|
||||
zIndexOffset 10
|
||||
===================== =============
|
||||
@@ -1 +0,0 @@
|
||||
sphinx_rtd_theme
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends" : "../js/.jshintrc",
|
||||
"asi" : false,
|
||||
"browser" : false,
|
||||
"es3" : false,
|
||||
"node" : true
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"requireSpaceAfterKeywords": [
|
||||
"if", "else", "for", "while", "do", "switch", "return"
|
||||
],
|
||||
"disallowSpacesInFunctionExpression": {
|
||||
"beforeOpeningRoundBrace": true,
|
||||
"beforeOpeningCurlyBrace": true
|
||||
},
|
||||
"disallowSpacesInsideObjectBrackets": true,
|
||||
"disallowSpacesInsideArrayBrackets": true,
|
||||
"disallowSpacesInsideParentheses": true,
|
||||
"disallowQuotedKeysInObjects": "allButReserved",
|
||||
"disallowSpaceAfterObjectKeys": true,
|
||||
"requireSpaceAfterBinaryOperators": ["==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||||
"requireSpaceBeforeBinaryOperators": ["==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||||
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||||
"disallowSpaceBeforeBinaryOperators": [","],
|
||||
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||||
"validateLineBreaks": "LF",
|
||||
"requireKeywordsOnNewLine": ["return", "break", "delete"],
|
||||
"requireLineFeedAtFileEnd": true
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
{
|
||||
// Extra globals.
|
||||
"predef" : [
|
||||
"require",
|
||||
"define"
|
||||
],
|
||||
"jquery": true,
|
||||
"browser": true,
|
||||
|
||||
"eqeqeq": true,
|
||||
"freeze": true,
|
||||
//"indent": 4, // when we move to spaces
|
||||
"latedef": false,
|
||||
"undef": true,
|
||||
"unused": false,
|
||||
"immed": true,
|
||||
"trailing": true,
|
||||
"maxcomplexity": 50, // Can we get this under 5?
|
||||
//"maxlen": 120,
|
||||
|
||||
"-W014": false, // Bad line breaking before ? (in tertiary operator)
|
||||
"-W065": false, // Missing radix parameter to parseInt (defaults to 10)
|
||||
"-W069": false, // Literal accessor is better written in dot notation
|
||||
"-W100": false // Silently deleted characters (in locales)
|
||||
}
|
||||
@@ -1,21 +1,8 @@
|
||||
/* =========================================================
|
||||
* bootstrap-datepicker.js
|
||||
* Repo: https://github.com/uxsolutions/bootstrap-datepicker/
|
||||
* Demo: https://eternicode.github.io/bootstrap-datepicker/
|
||||
* Docs: https://bootstrap-datepicker.readthedocs.org/
|
||||
* =========================================================
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
/*!
|
||||
* Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ========================================================= */
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
||||
(function(factory){
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
* Canadian English translation for bootstrap-datepicker
|
||||
* Mike Nacey <mnacey@gmail.com>
|
||||
* DEPRECATED: This filename doesn't follow the convention, use bootstrap-datepicker.en-CA.js instead
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['en-CA'] = {
|
||||
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
||||
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
||||
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
today: "Today",
|
||||
monthsTitle: "Months",
|
||||
clear: "Clear",
|
||||
weekStart: 0,
|
||||
format: "yyyy-mm-dd"
|
||||
};
|
||||
|
||||
$.fn.datepicker.deprecated('This filename doesn\'t follow the convention, use bootstrap-datepicker.en-CA.js instead.');
|
||||
|
||||
}(jQuery));
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Arabic-Tunisia translation for bootstrap-datepicker
|
||||
* Souhaieb Besbes <besbes.souhaieb@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['ar-tn'] = {
|
||||
days: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"],
|
||||
daysShort: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت", "أحد"],
|
||||
daysMin: ["ح", "ن", "ث", "ع", "خ", "ج", "س", "ح"],
|
||||
months: ["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويليه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],
|
||||
monthsShort: ["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويليه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],
|
||||
today: "هذا اليوم",
|
||||
rtl: true
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Arabic translation for bootstrap-datepicker
|
||||
* Mohammed Alshehri <alshehri866@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['ar'] = {
|
||||
days: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"],
|
||||
daysShort: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت", "أحد"],
|
||||
daysMin: ["ح", "ن", "ث", "ع", "خ", "ج", "س", "ح"],
|
||||
months: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
|
||||
monthsShort: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
|
||||
today: "هذا اليوم",
|
||||
rtl: true
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,14 +0,0 @@
|
||||
// Azerbaijani
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['az'] = {
|
||||
days: ["Bazar", "Bazar ertəsi", "Çərşənbə axşamı", "Çərşənbə", "Cümə axşamı", "Cümə", "Şənbə"],
|
||||
daysShort: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."],
|
||||
daysMin: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."],
|
||||
months: ["Yanvar", "Fevral", "Mart", "Aprel", "May", "İyun", "İyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr"],
|
||||
monthsShort: ["Yan", "Fev", "Mar", "Apr", "May", "İyun", "İyul", "Avq", "Sen", "Okt", "Noy", "Dek"],
|
||||
today: "Bu gün",
|
||||
weekStart: 1,
|
||||
clear: "Təmizlə",
|
||||
monthsTitle: 'Aylar'
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Bulgarian translation for bootstrap-datepicker
|
||||
* Apostol Apostolov <apostol.s.apostolov@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['bg'] = {
|
||||
days: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"],
|
||||
daysShort: ["Нед", "Пон", "Вто", "Сря", "Чет", "Пет", "Съб"],
|
||||
daysMin: ["Н", "П", "В", "С", "Ч", "П", "С"],
|
||||
months: ["Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"],
|
||||
monthsShort: ["Ян", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"],
|
||||
today: "днес"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Bamanankan (bm) translation for bootstrap-datepicker
|
||||
* Fatou Fall <fatou@medicmobile.org>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['bm'] = {
|
||||
days: ["Kari","Ntɛnɛn","Tarata","Araba","Alamisa","Juma","Sibiri"],
|
||||
daysShort: ["Kar","Ntɛ","Tar","Ara","Ala","Jum","Sib"],
|
||||
daysMin: ["Ka","Nt","Ta","Ar","Al","Ju","Si"],
|
||||
months: ["Zanwuyekalo","Fewuruyekalo","Marisikalo","Awirilikalo","Mɛkalo","Zuwɛnkalo","Zuluyekalo","Utikalo","Sɛtanburukalo","ɔkutɔburukalo","Nowanburukalo","Desanburukalo"],
|
||||
monthsShort: ["Zan","Few","Mar","Awi","Mɛ","Zuw","Zul","Uti","Sɛt","ɔku","Now","Des"],
|
||||
today: "Bi",
|
||||
monthsTitle: "Kalo",
|
||||
clear: "Ka jɔsi",
|
||||
weekStart: 1,
|
||||
format: "dd/mm/yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,19 +0,0 @@
|
||||
/**
|
||||
* Bengali (Bangla) translation for bootstrap-datepicker
|
||||
* Karim Khan <kkhancse91@gmail.com>
|
||||
* Orif N. Jr. <orif.zade@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['bn'] = {
|
||||
days: ["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],
|
||||
daysShort: ["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],
|
||||
daysMin: ["রবি","সোম","মঙ্গল","বুধ","বৃহস্পতি","শুক্র","শনি"],
|
||||
months: ["জানুয়ারী","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","অগাস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"],
|
||||
monthsShort: ["জানুয়ারী","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","অগাস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"],
|
||||
today: "আজ",
|
||||
monthsTitle: "মাস",
|
||||
clear: "পরিষ্কার",
|
||||
weekStart: 0,
|
||||
format: "mm/dd/yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Breton translation for bootstrap-datepicker
|
||||
* Gwenn Meynier <tornoz@laposte.net>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['br'] = {
|
||||
days: ["Sul", "Lun", "Meurzh", "Merc'her", "Yaou", "Gwener", "Sadorn"],
|
||||
daysShort: ["Sul", "Lun", "Meu.", "Mer.", "Yao.", "Gwe.", "Sad."],
|
||||
daysMin: ["Su", "L", "Meu", "Mer", "Y", "G", "Sa"],
|
||||
months: ["Genver", "C'hwevrer", "Meurzh", "Ebrel", "Mae", "Mezheven", "Gouere", "Eost", "Gwengolo", "Here", "Du", "Kerzu"],
|
||||
monthsShort: ["Genv.", "C'hw.", "Meur.", "Ebre.", "Mae", "Mezh.", "Goue.", "Eost", "Gwen.", "Here", "Du", "Kerz."],
|
||||
today: "Hiziv",
|
||||
monthsTitle: "Miz",
|
||||
clear: "Dilemel",
|
||||
weekStart: 1,
|
||||
format: "dd/mm/yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Bosnian translation for bootstrap-datepicker
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['bs'] = {
|
||||
days: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
|
||||
daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
|
||||
daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
|
||||
months: ["Januar", "Februar", "Mart", "April", "Maj", "Juni", "Juli", "August", "Septembar", "Oktobar", "Novembar", "Decembar"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
today: "Danas",
|
||||
weekStart: 1,
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Catalan translation for bootstrap-datepicker
|
||||
* J. Garcia <jogaco.en@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['ca'] = {
|
||||
days: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"],
|
||||
daysShort: ["Diu", "Dil", "Dmt", "Dmc", "Dij", "Div", "Dis"],
|
||||
daysMin: ["dg", "dl", "dt", "dc", "dj", "dv", "ds"],
|
||||
months: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"],
|
||||
monthsShort: ["Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Oct", "Nov", "Des"],
|
||||
today: "Avui",
|
||||
monthsTitle: "Mesos",
|
||||
clear: "Esborrar",
|
||||
weekStart: 1,
|
||||
format: "dd/mm/yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,19 +0,0 @@
|
||||
/**
|
||||
* Czech translation for bootstrap-datepicker
|
||||
* Matěj Koubík <matej@koubik.name>
|
||||
* Fixes by Michal Remiš <michal.remis@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['cs'] = {
|
||||
days: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
|
||||
daysShort: ["Ned", "Pon", "Úte", "Stř", "Čtv", "Pát", "Sob"],
|
||||
daysMin: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
||||
months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
|
||||
monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"],
|
||||
today: "Dnes",
|
||||
clear: "Vymazat",
|
||||
monthsTitle: "Měsíc",
|
||||
weekStart: 1,
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Welsh translation for bootstrap-datepicker
|
||||
* S. Morris <s.morris@bangor.ac.uk>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['cy'] = {
|
||||
days: ["Sul", "Llun", "Mawrth", "Mercher", "Iau", "Gwener", "Sadwrn"],
|
||||
daysShort: ["Sul", "Llu", "Maw", "Mer", "Iau", "Gwe", "Sad"],
|
||||
daysMin: ["Su", "Ll", "Ma", "Me", "Ia", "Gwe", "Sa"],
|
||||
months: ["Ionawr", "Chewfror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorfennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"],
|
||||
monthsShort: ["Ion", "Chw", "Maw", "Ebr", "Mai", "Meh", "Gor", "Aws", "Med", "Hyd", "Tach", "Rha"],
|
||||
today: "Heddiw"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,19 +0,0 @@
|
||||
/**
|
||||
* Danish translation for bootstrap-datepicker
|
||||
* Christian Pedersen <http://github.com/chripede>
|
||||
* Ivan Mylyanyk <https://github.com/imylyanyk>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['da'] = {
|
||||
days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"],
|
||||
daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
|
||||
daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø"],
|
||||
months: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
today: "I Dag",
|
||||
weekStart: 1,
|
||||
clear: "Nulstil",
|
||||
format: "dd/mm/yyyy",
|
||||
monthsTitle:"Måneder"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* German translation for bootstrap-datepicker
|
||||
* Sam Zurcher <sam@orelias.ch>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['de'] = {
|
||||
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
||||
daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
|
||||
daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
||||
months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
|
||||
monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
|
||||
today: "Heute",
|
||||
monthsTitle: "Monate",
|
||||
clear: "Löschen",
|
||||
weekStart: 1,
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Greek translation for bootstrap-datepicker
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['el'] = {
|
||||
days: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"],
|
||||
daysShort: ["Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"],
|
||||
daysMin: ["Κυ", "Δε", "Τρ", "Τε", "Πε", "Πα", "Σα"],
|
||||
months: ["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"],
|
||||
monthsShort: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μάι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"],
|
||||
today: "Σήμερα",
|
||||
clear: "Καθαρισμός",
|
||||
weekStart: 1,
|
||||
format: "d/m/yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||