diff options
author | Marvin Borner | 2018-07-13 19:06:45 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-13 19:06:45 +0200 |
commit | 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 (patch) | |
tree | dbc87ef16fa01d5d99116de283592b8fe5e02944 /public/bower_components/bootstrap-datepicker/docs | |
parent | dfd839f27146df0ad0494e11734fc7d310c70ebf (diff) |
Fixed many permissions and began admin interface
Diffstat (limited to 'public/bower_components/bootstrap-datepicker/docs')
47 files changed, 2278 insertions, 0 deletions
diff --git a/public/bower_components/bootstrap-datepicker/docs/Makefile b/public/bower_components/bootstrap-datepicker/docs/Makefile new file mode 100644 index 0000000..34b6ef8 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/Makefile @@ -0,0 +1,153 @@ +# 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." diff --git a/public/bower_components/bootstrap-datepicker/docs/README.md b/public/bower_components/bootstrap-datepicker/docs/README.md new file mode 100644 index 0000000..58028f3 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/README.md @@ -0,0 +1,20 @@ +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 <http://bootstrap-datepicker.readthedocs.org/>. diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/demo_head.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/demo_head.html new file mode 100644 index 0000000..64d2e7c --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/demo_head.html @@ -0,0 +1,36 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_component.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_component.html new file mode 100644 index 0000000..2b99921 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_component.html @@ -0,0 +1,26 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_daterange.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_daterange.html new file mode 100644 index 0000000..9d158e7 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_daterange.html @@ -0,0 +1,32 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_inline.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_inline.html new file mode 100644 index 0000000..ff4e8ed --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_inline.html @@ -0,0 +1,15 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_input.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_input.html new file mode 100644 index 0000000..2e1c289 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/markup_input.html @@ -0,0 +1,21 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_calendarweeks.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_calendarweeks.html new file mode 100644 index 0000000..7565f89 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_calendarweeks.html @@ -0,0 +1,25 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_clearbtn.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_clearbtn.html new file mode 100644 index 0000000..a4b5ef0 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_clearbtn.html @@ -0,0 +1,22 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_daysofweekdisabled.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_daysofweekdisabled.html new file mode 100644 index 0000000..bd31b38 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_daysofweekdisabled.html @@ -0,0 +1,22 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_enddate.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_enddate.html new file mode 100644 index 0000000..43da9d9 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_enddate.html @@ -0,0 +1,22 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_language.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_language.html new file mode 100644 index 0000000..37f5930 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_language.html @@ -0,0 +1,36 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_multidate.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_multidate.html new file mode 100644 index 0000000..191b239 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_multidate.html @@ -0,0 +1,27 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_startdate.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_startdate.html new file mode 100644 index 0000000..ce97784 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_startdate.html @@ -0,0 +1,22 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todaybtn.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todaybtn.html new file mode 100644 index 0000000..0843012 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todaybtn.html @@ -0,0 +1,21 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todayhighlight.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todayhighlight.html new file mode 100644 index 0000000..fb38008 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_todayhighlight.html @@ -0,0 +1,47 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_weekstart.html b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_weekstart.html new file mode 100644 index 0000000..e55a04f --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/option_weekstart.html @@ -0,0 +1,25 @@ +<!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> diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.css b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.css new file mode 100644 index 0000000..0535e8c --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.css @@ -0,0 +1,9 @@ +@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; +} diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.js b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.js new file mode 100644 index 0000000..ebadc02 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/common.js @@ -0,0 +1,2 @@ +document.write("<script src='https://code.jquery.com/jquery-3.1.1.min.js'></script>"); +document.write("<script src='../../js/bootstrap-datepicker.js'></script>"); diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/debug.js b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/debug.js new file mode 100644 index 0000000..e609fa6 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/debug.js @@ -0,0 +1,21 @@ +/* + 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)); diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/html-imports.min.js b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/html-imports.min.js new file mode 100644 index 0000000..368d226 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/html-imports.min.js @@ -0,0 +1,30 @@ +// Copyright (c) 2012 The Polymer Authors. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +window.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr),c=function(a,b){this.cache={},this.onload=a,this.oncomplete=b,this.inflight=0,this.pending={}};c.prototype={addNodes:function(a){this.inflight+=a.length,d(a,this.require,this),this.checkDone()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},dedupe:function(a,b){return this.pending[a]?(this.pending[a].push(b),!0):this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(this.pending[a]=[b],!1)},fetch:function(a,c){var d=function(b,d){this.receive(a,c,b,d)}.bind(this);b.load(a,d)},receive:function(a,b,c,d){c||(this.cache[a]=d),this.pending[a].forEach(function(b){c||this.onload(a,b,d),this.tail()},this),this.pending[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.async),f.addEventListener("readystatechange",function(){4===f.readyState&&d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType="document"}};var d=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.xhr=b,a.Loader=c}(window.HTMLImports),function(a){function b(a){return c(a,j)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function d(a){return"script"===a.localName}function e(a,b){var c=a;c instanceof Document||(c=document.implementation.createHTMLDocument(j)),c._URL=b;var d=c.createElement("base");return d.setAttribute("href",b),c.baseURI||(c.baseURI=b),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}function f(a,b){function c(){k==l&&requestAnimationFrame(a)}function d(){k++,c()}b=b||o;var e=HTMLImports.isIE?"complete":"interactive",h="complete"===b.readyState||b.readyState===e;if(!h){var i=function(){("complete"===b.readyState||b.readyState===e)&&(b.removeEventListener("readystatechange",i),f(a,b))};return void b.addEventListener("readystatechange",i)}var j=b.querySelectorAll("link[rel=import]"),k=0,l=j.length;if(l)for(var m,n=0;l>n&&(m=j[n]);n++)g(m)?d.call(m):(m.addEventListener("load",d),m.addEventListener("error",d));else c()}function g(a){return i?a.import&&"loading"!==a.import.readyState:a.__importParsed}var h="import"in document.createElement("link"),i=!a.flags.imports&&h,j="import";if(!i){{var k,l=a.Loader,m=(a.xhr,"stylesheet"),n={documents:{},cache:{},preloadSelectors:["link[rel="+j+"]","template","script[src]:not([type])",'script[src][type="text/javascript"]'].join(","),loader:function(a){if(k&&k.inflight){var b=k.oncomplete;return k.oncomplete=function(){b(),a()},k}return k=new l(n.loaded,a),k.cache=n.cache,k},load:function(a,b){k=n.loader(b),n.preload(a)},preload:function(a){var b=this.marshalNodes(a);k.addNodes(b)},marshalNodes:function(a){var b=a.querySelectorAll(n.preloadSelectors);return b=this.filterMainDocumentNodes(a,b),b=this.extractTemplateNodes(b)},filterMainDocumentNodes:function(a,b){return a===document&&(b=Array.prototype.filter.call(b,function(a){return!d(a)})),b},extractTemplateNodes:function(a){var b=[];return a=Array.prototype.filter.call(a,function(a){if("template"===a.localName){if(a.content){var c=a.content.querySelectorAll("link[rel="+m+"]");c.length&&(b=b.concat(Array.prototype.slice.call(c,0)))}return!1}return!0}),b.length&&(a=a.concat(b)),a},loaded:function(a,c,d){if(b(c)){var f=n.documents[a];f||(f=e(d,a),n.documents[a]=f,n.preload(f)),c.import=c.content=d=f}c.__resource=d}};Array.prototype.forEach.call.bind(Array.prototype.forEach)}a.importer=n}var o=window.ShadowDOMPolyfill?wrap(document):document;Object.defineProperty(o,"_currentScript",{get:function(){return HTMLImports.currentScript||o.currentScript},writeable:!0,configurable:!0}),a.hasNative=h,a.useNative=i,a.whenImportsReady=f,a.IMPORT_LINK_TYPE=j,a.isImportLoaded=g}(window.HTMLImports),function(a){function b(a){var b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,g.resolveUrlsInStyle(b),b}function c(a,b){this.doc=a,this.doc.__loadTracker=this,this.callback=b}function d(a){return"link"===a.localName&&a.getAttribute("rel")===h}function e(a){return a.parentNode&&!f(a)}function f(a){return a.ownerDocument===document||a.ownerDocument.impl===document}var g=a.path,h="import",i=/Trident/.test(navigator.userAgent),j={selectors:["link[rel="+h+"]","link[rel=stylesheet]","style","script:not([type])",'script[type="text/javascript"]'],map:{link:"parseLink",script:"parseScript",style:"parseStyle"},parse:function(a,b){if(a.__importParsed)b&&b();else{a.__importParsed=!0;for(var d,e=new c(a,b),f=a.querySelectorAll(j.selectors),g=a.scripts?a.scripts.length:0,h=0;h<f.length&&(d=f[h]);h++)j[j.map[d.localName]](d),a.scripts&&g!==a.scripts.length&&(g=a.scripts.length,f=a.querySelectorAll(j.selectors));e.open()}},parseLink:function(a){if(d(a)){if(this.trackElement(a),a.__resource?j.parse(a.__resource,function(){a.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}):a.dispatchEvent(new CustomEvent("error",{bubbles:!1})),a.__pending)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});a.__importParsed=!0}else e(a)&&(a.href=a.href),this.parseGeneric(a)},trackElement:function(a){i&&"style"===a.localName||a.ownerDocument.__loadTracker.require(a)},parseStyle:function(a){a=e(a)?b(a):a,this.parseGeneric(a)},parseGeneric:function(a){f(a)||(this.trackElement(a),document.head.appendChild(a))},parseScript:function(b){if(e(b)){var c=(b.__resource||b.textContent).trim();if(c){var d=b.__nodeUrl;if(!d){d=b.ownerDocument.baseURI;var f="["+Math.floor(1e3*(Math.random()+1))+"]",g=c.match(/Polymer\(['"]([^'"]*)/);f=g&&g[1]||f,d+="/"+f+".js"}c+="\n//# sourceURL="+d+"\n",a.currentScript=b,eval.call(window,c),a.currentScript=null}}}},k=/(url\()([^)]*)(\))/g,l=/(@import[\s]*)([^;]*)(;)/g,g={resolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInCssText:function(a,b){var c=this.replaceUrls(a,b,k);return c=this.replaceUrls(c,b,l)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace(/["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};c.prototype={pending:0,isOpen:!1,open:function(){this.isOpen=!0,this.checkDone()},add:function(){this.pending++},require:function(a){this.add();var b=this,c=function(a){b.receive(a)};if(d(a))a.__pending=a.__pending||[],a.__pending.push(c);else for(var e,f=["load","error"],g=0,h=f.length;h>g&&(e=f[g]);g++)a.addEventListener(e,c)},receive:function(){this.pending--,this.checkDone()},checkDone:function(){this.isOpen&&this.pending<=0&&this.callback&&(this.isOpen=!1,this.callback())}};Array.prototype.forEach.call.bind(Array.prototype.forEach);a.parser=j,a.path=g,a.isIE=i}(HTMLImports),function(){function a(){HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),c.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}function b(){HTMLImports.useNative||HTMLImports.importer.load(c,function(){HTMLImports.parser.parse(c)})}"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent("HTMLEvents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c});var c=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.useNative||("complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?b():document.addEventListener("DOMContentLoaded",b)),HTMLImports.whenImportsReady(function(){a()})}(); +//# sourceMappingURL=html-imports.min.map
\ No newline at end of file diff --git a/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/screenshot.js b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/screenshot.js new file mode 100644 index 0000000..920d030 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_screenshots/script/screenshot.js @@ -0,0 +1,69 @@ +/* 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); +}); diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/demo_head.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/demo_head.png Binary files differnew file mode 100644 index 0000000..1207162 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/demo_head.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_component.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_component.png Binary files differnew file mode 100644 index 0000000..18df9d0 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_component.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_daterange.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_daterange.png Binary files differnew file mode 100644 index 0000000..9c9a2d4 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_daterange.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_inline.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_inline.png Binary files differnew file mode 100644 index 0000000..2e811ee --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_inline.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_input.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_input.png Binary files differnew file mode 100644 index 0000000..e085207 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/markup_input.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_calendarweeks.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_calendarweeks.png Binary files differnew file mode 100644 index 0000000..588bb8d --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_calendarweeks.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_clearbtn.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_clearbtn.png Binary files differnew file mode 100644 index 0000000..a80cd12 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_clearbtn.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_daysofweekdisabled.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_daysofweekdisabled.png Binary files differnew file mode 100644 index 0000000..23efc19 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_daysofweekdisabled.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_enddate.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_enddate.png Binary files differnew file mode 100644 index 0000000..9b960a2 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_enddate.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_language.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_language.png Binary files differnew file mode 100644 index 0000000..de84074 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_language.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_multidate.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_multidate.png Binary files differnew file mode 100644 index 0000000..25dd5a8 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_multidate.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_startdate.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_startdate.png Binary files differnew file mode 100644 index 0000000..7766476 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_startdate.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todaybtn.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todaybtn.png Binary files differnew file mode 100644 index 0000000..de4a145 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todaybtn.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todayhighlight.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todayhighlight.png Binary files differnew file mode 100644 index 0000000..f15408d --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_todayhighlight.png diff --git a/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_weekstart.png b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_weekstart.png Binary files differnew file mode 100644 index 0000000..bafbe9e --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/_static/screenshots/option_weekstart.png diff --git a/public/bower_components/bootstrap-datepicker/docs/conf.py b/public/bower_components/bootstrap-datepicker/docs/conf.py new file mode 100644 index 0000000..131dd52 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/conf.py @@ -0,0 +1,249 @@ +# -*- 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' diff --git a/public/bower_components/bootstrap-datepicker/docs/events.rst b/public/bower_components/bootstrap-datepicker/docs/events.rst new file mode 100644 index 0000000..89ffddb --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/events.rst @@ -0,0 +1,63 @@ +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. diff --git a/public/bower_components/bootstrap-datepicker/docs/i18n.rst b/public/bower_components/bootstrap-datepicker/docs/i18n.rst new file mode 100644 index 0000000..ba2928a --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/i18n.rst @@ -0,0 +1,36 @@ +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 diff --git a/public/bower_components/bootstrap-datepicker/docs/index.rst b/public/bower_components/bootstrap-datepicker/docs/index.rst new file mode 100644 index 0000000..0eacf83 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/index.rst @@ -0,0 +1,127 @@ +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 <http://semver.org/>`_. + +`Online Demo <https://eternicode.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 diff --git a/public/bower_components/bootstrap-datepicker/docs/keyboard.rst b/public/bower_components/bootstrap-datepicker/docs/keyboard.rst new file mode 100644 index 0000000..e34ba65 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/keyboard.rst @@ -0,0 +1,27 @@ +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. diff --git a/public/bower_components/bootstrap-datepicker/docs/make.bat b/public/bower_components/bootstrap-datepicker/docs/make.bat new file mode 100644 index 0000000..282b37a --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/make.bat @@ -0,0 +1,190 @@ +@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 diff --git a/public/bower_components/bootstrap-datepicker/docs/markup.rst b/public/bower_components/bootstrap-datepicker/docs/markup.rst new file mode 100644 index 0000000..546b844 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/markup.rst @@ -0,0 +1,89 @@ +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') + ); + }); diff --git a/public/bower_components/bootstrap-datepicker/docs/methods.rst b/public/bower_components/bootstrap-datepicker/docs/methods.rst new file mode 100644 index 0000000..f4be72b --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/methods.rst @@ -0,0 +1,226 @@ +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. diff --git a/public/bower_components/bootstrap-datepicker/docs/options.rst b/public/bower_components/bootstrap-datepicker/docs/options.rst new file mode 100644 index 0000000..0cf544f --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/options.rst @@ -0,0 +1,567 @@ +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. + + +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 +===================== ============= diff --git a/public/bower_components/bootstrap-datepicker/docs/requirements.txt b/public/bower_components/bootstrap-datepicker/docs/requirements.txt new file mode 100644 index 0000000..483a4e9 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/requirements.txt @@ -0,0 +1 @@ +sphinx_rtd_theme |