flatpickr_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/flatpickr_rails.gemspec +26 -0
- data/lib/flatpickr_rails.rb +12 -0
- data/lib/flatpickr_rails/engine.rb +6 -0
- data/lib/flatpickr_rails/railtie.rb +5 -0
- data/lib/flatpickr_rails/version.rb +3 -0
- data/vendor/assets/javascripts/flatpickr/core.js +1 -0
- data/vendor/assets/javascripts/flatpickr/index.js +3 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ar.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bg.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bn.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.de.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.es.js +17 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fa.js +15 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fi.js +17 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fr.js +19 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.he.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.hi.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ja.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ko.js +15 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.nl.js +21 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.no.js +15 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pa.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pl.js +15 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pt.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ru.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.sq.js +11 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.tr.js +13 -0
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.zh.js +11 -0
- data/vendor/assets/stylesheets/flatpickr.confetti.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.dark.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.material_blue.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.material_green.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.material_orange.css +1 -0
- data/vendor/assets/stylesheets/flatpickr.material_red.css +1 -0
- metadata +146 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3fcea3a933196c5fc26762e45cf99bfbb6ba636a
|
4
|
+
data.tar.gz: 556e4857b173d309e5c6a3820dcb5c652b9bc1f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 335cf585cd46aec26bd055fa499fbc419a6d3ed36f44eafb215b7c4d82e064920c111edc533d217d0a70c6770cb2b0ef0a6bcceb73075d2e9c3c2588a85b0709
|
7
|
+
data.tar.gz: bdb7e7a86f19dd823c00b38913716f7e43b521a57b81ec612dd5e4fbaf41bdb78360e4c933b7ac41623ae4063e0d95d0e18768545aca9ce8c821dcc6f58806ad
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Jiren
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# FlatpickrRails
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/flatpickr_rails`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
lightweight, powerful datetimepicker. zero dependencies
|
6
|
+
|
7
|
+
https://chmln.github.io/flatpickr
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'flatpickr_rails'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install flatpickr_rails
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Add this line to app/assets/stylesheets/application.css
|
28
|
+
|
29
|
+
``` css
|
30
|
+
*= require "flatpickr"
|
31
|
+
*= require "flatpickr.material_red" # Themes
|
32
|
+
OR
|
33
|
+
*= require "flatpickr.confetti.css"
|
34
|
+
OR
|
35
|
+
*= require "flatpickr.css"
|
36
|
+
OR
|
37
|
+
*= require "flatpickr.dark.css"
|
38
|
+
OR
|
39
|
+
*= require "flatpickr.material_blue.css"
|
40
|
+
OR
|
41
|
+
*= require "flatpickr.material_green.css"
|
42
|
+
OR
|
43
|
+
*= require "flatpickr.material_orange.css"
|
44
|
+
OR
|
45
|
+
*= require "flatpickr.material_red.css"
|
46
|
+
```
|
47
|
+
|
48
|
+
Add this line to app/assets/javascripts/application.js
|
49
|
+
|
50
|
+
``` javascript
|
51
|
+
//= require flatpickr
|
52
|
+
```
|
53
|
+
|
54
|
+
## Using flatpickr-rails
|
55
|
+
|
56
|
+
|
57
|
+
```html
|
58
|
+
<input type="text" id="flatpickr-input">
|
59
|
+
```
|
60
|
+
|
61
|
+
```html
|
62
|
+
<script type="text/javascript">
|
63
|
+
$(document).ready(function(){
|
64
|
+
flatpickr('#flatpickr-input');
|
65
|
+
});
|
66
|
+
</script>
|
67
|
+
```
|
68
|
+
|
69
|
+
Examples:
|
70
|
+
|
71
|
+
https://github.com/chmln/flatpickr
|
72
|
+
|
73
|
+
There are a lot of options you can pass to datepicker(). They are documented at [https://chmln.github.io/flatpickr/](https://chmln.github.io/flatpickr/)
|
74
|
+
|
75
|
+
## Development
|
76
|
+
|
77
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
78
|
+
|
79
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
80
|
+
|
81
|
+
## Contributing
|
82
|
+
|
83
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/flatpickr_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
84
|
+
|
85
|
+
|
86
|
+
## License
|
87
|
+
|
88
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
89
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "flatpickr_rails"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'flatpickr_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "flatpickr_rails"
|
8
|
+
spec.version = FlatpickrRails::VERSION
|
9
|
+
spec.authors = ["Jiren"]
|
10
|
+
spec.email = ["jirenpatel@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A lightweight & powerful datetimepicker gem }
|
13
|
+
spec.description = %q{ JS lib https://github.com/chmln/flatpickr }
|
14
|
+
spec.homepage = "https://github.com/jiren/flatpickr_rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "railties", ">= 3.0"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "rspec"
|
26
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},flatpickr=function e(t,n){var a=void 0,i=void 0,r=function(t){return t._flatpickr&&t._flatpickr.destroy(),t._flatpickr=new e.init(t,n),t._flatpickr};return t.nodeName?r(t):/^\#[a-zA-Z0-9\-\_]*$/.test(t)?r(document.getElementById(t.slice(1))):(a=/^\.[a-zA-Z0-9\-\_]*$/.test(t)?document.getElementsByClassName(t.slice(1)):document.querySelectorAll(t),i=[].slice.call(a).map(r),{calendars:i,byID:function(e){for(var t=0;t<i.length;t++)if(i[t].element.id===e)return i[t]}})};flatpickr.init=function(e,t){var n=function(e,t,n){var a=document.createElement(e);return n&&(a.innerHTML=n),t&&(a.className=t),a};function a(e,t){var n=!1;return function(){n||(e.call(),n=!0,setTimeout(function(){n=!1},t))}}var i,r,o,l,c,u,s,d,f,p,g,m,v,h,D,b,y,w,k,L,M,C,O,I,j,T,E,S,_,H,Y,x,N,A,F,q,W,P,B,J,$,U,z=this,K=new Date;i=function(){t=t||{},z.config={},z.element=e;for(var n in z.defaultConfig)z.config[n]=t[n]||z.element.dataset&&z.element.dataset[n.toLowerCase()]||z.element.getAttribute("data-"+n)||z.defaultConfig[n];z.input=z.config.wrap?e.querySelector("[data-input]"):e,z.input.classList.add("flatpickr-input"),z.config.defaultDate&&(z.config.defaultDate=o(z.config.defaultDate)),(z.input.value||z.config.defaultDate)&&(z.selectedDateObj=o(z.config.defaultDate||z.input.value)),r(),g(),T(),z.uDate=o,z.jumpToDate(),y()},j=function(){var e=void 0,t=void 0;do e=Math.round(Math.random()*Math.pow(10,10)),t="flatpickr-"+e;while(null!==document.getElementById(t));return t},o=function(e,t){if(t=t||!1,"today"===e)e=new Date,t=!0;else if("string"==typeof e)if(e=e.trim(),z.config.parseDate)e=z.config.parseDate(e);else if(/^\d\d\d\d\-\d{1,2}\-\d\d$/.test(e))e=new Date(e.replace(/(\d)-(\d)/g,"$1/$2"));else if(Date.parse(e))e=new Date(e);else if(/^\d\d\d\d\-\d\d\-\d\d/.test(e))e=new Date(e.replace(/(\d)-(\d)/g,"$1/$2"));else if(/^(\d?\d):(\d\d)/.test(e)){var n=e.match(/^(\d?\d):(\d\d)(:(\d\d))?/),a=0;void 0!==n[4]&&(a=n[4]),e=new Date,e.setHours(n[1],n[2],a,0)}else console.error("flatpickr: invalid date string "+e),console.info(z.element);return t&&e&&e.setHours(0,0,0,0),"true"===String(z.config.utc)&&e&&!e.fp_isUTC&&(e=e.fp_toUTC()),e},l=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},r=function(){W=n("div","flatpickr-wrapper"),z.config.inline||z.config["static"]?(z.element.parentNode.insertBefore(W,z.element),W.appendChild(z.element),W.classList.add(z.config.inline?"inline":"static")):document.body.appendChild(W),z.config.altInput&&(z.altInput=n(z.input.nodeName,z.config.altInputClass+" flatpickr-input"),z.altInput.placeholder=z.input.placeholder,z.altInput.type="text",z.input.type="hidden",z.input.parentNode.insertBefore(z.altInput,z.input.nextSibling))},C=function(e){var t=z.currentYear,n=e||z.currentMonth;return 1===n&&t%4===0&&t%100!==0||t%400===0?29:z.l10n.daysInMonth[n]},y=function(){var e=void 0;if(z.selectedDateObj&&z.config.enableTime){e=z.selectedDateObj.getTime();var t,n=parseInt(P.value,10)||0,a=(60+(parseInt(B.value,10)||0))%60;z.config.enableSeconds&&(t=(60+parseInt(J.value,10)||0)%60),z.config.time_24hr||(n=n%12+12*("PM"===$.innerHTML)),z.selectedDateObj.setHours(n,a,void 0===t?z.selectedDateObj.getSeconds():t),P.value=c(z.config.time_24hr?n:(12+n)%12+12*(n%12===0)),B.value=c(a),void 0!==t&&(J.value=c(t))}z.altInput&&z.selectedDateObj&&(z.altInput.value=u(z.config.altFormat)),z.selectedDateObj&&(z.input.value=u(z.config.dateFormat)),e&&z.selectedDateObj.getTime()!==e&&E()},c=function(e){return("0"+e).slice(-2)},u=function(e){z.config.noCalendar&&(e=""),z.config.enableTime&&(e+=" "+z.config.timeFormat);for(var t="",n={D:function(){return z.l10n.weekdays.shorthand[n.w()]},F:function(){return s(n.n()-1,!1)},H:function(){return c(z.selectedDateObj.getHours())},J:function(){return n.j()+z.l10n.ordinal(n.j())},K:function(){return z.selectedDateObj.getHours()>11?"PM":"AM"},M:function(){return s(n.n()-1,!0)},S:function(){return c(z.selectedDateObj.getSeconds())},U:function(){return z.selectedDateObj.getTime()/1e3},Y:function(){return z.selectedDateObj.getFullYear()},d:function(){return c(n.j())},h:function(){return z.selectedDateObj.getHours()%12?z.selectedDateObj.getHours()%12:12},i:function(){return c(z.selectedDateObj.getMinutes())},j:function(){return z.selectedDateObj.getDate()},l:function(){return z.l10n.weekdays.longhand[n.w()]},m:function(){return c(n.n())},n:function(){return z.selectedDateObj.getMonth()+1},s:function(){return z.selectedDateObj.getSeconds()},w:function(){return z.selectedDateObj.getDay()},y:function(){return String(n.Y()).substring(2)}},a=e.split(""),i=0;i<a.length;i++){var r=a[i];n[r]&&"\\"!==a[i-1]?t+=n[r]():"\\"!==r&&(t+=r)}return t},s=function(e,t){return t||z.config.shorthandCurrentMonth?z.l10n.months.shorthand[e]:z.l10n.months.longhand[e]},d=function(e){if(z.config.minDate&&e<z.config.minDate||z.config.maxDate&&e>z.config.maxDate)return!0;e=o(e,!0);for(var t=void 0,n=0;n<z.config.disable.length;n++){if(t=z.config.disable[n],t instanceof Function&&t(e))return!0;if("string"==typeof t&&/^wkd/.test(t)&&e.getDay()===(parseInt(t.slice(-1))+z.l10n.firstDayOfWeek-1)%7)return!0;if((t instanceof Date||"string"==typeof t&&!/^wkd/.test(t))&&o(t,!0).getTime()===e.getTime())return!0;if("object"===("undefined"==typeof t?"undefined":_typeof(t))&&t.hasOwnProperty("from")&&e>=o(t.from)&&e<=o(t.to))return!0}return!1},b=function(e){e.preventDefault();var t=Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY));z.currentYear=e.target.value=parseInt(e.target.value,10)+t,z.redraw()},D=function(e){e.preventDefault();var t=parseInt(e.target.min,10),n=parseInt(e.target.max,10),a=parseInt(e.target.step,10),i=a*Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY)),r=(parseInt(e.target.value,10)+i)%(n+(0===t));r<t&&(r=n+(0===t)-a*(0===t)),e.target.value=c(r)},k=function(){N.innerHTML=s(z.currentMonth)+" ",x.value=z.currentYear},L=function(){(z.currentMonth<0||z.currentMonth>11)&&(z.currentYear+=z.currentMonth%11,z.currentMonth=(z.currentMonth+12)%12)},O=function(e){W.classList.contains("open")&&!W.contains(e.target)&&e.target!==z.element&&e.target!==z.altInput&&z.close()},M=function(e){z.currentMonth+=e,L(),k(),m()},I=function(e){e.preventDefault(),e.target.classList.contains("slot")&&(z.selectedDateObj=new Date(z.currentYear,z.currentMonth,e.target.innerHTML),y(),E(),m(),z.config.inline||z.config.enableTime||z.close())},g=function(){S=n("div","flatpickr-calendar"),S.id=j(),F=n("div","flatpickr-days"),z.config.noCalendar||(f(),p(),z.config.weekNumbers&&v(),m(),S.appendChild(F)),W.appendChild(S),z.config.enableTime&&h()},f=function(){H=n("div","flatpickr-month"),Y=n("span","flatpickr-prev-month",z.config.prevArrow),N=n("span","cur_month"),x=n("input","cur_year"),x.type="number",x.title=z.l10n.scrollTitle,A=n("span","flatpickr-next-month",z.config.nextArrow),_=n("span","flatpickr-current-month"),_.appendChild(N),_.appendChild(x),H.appendChild(Y),H.appendChild(_),H.appendChild(A),k(),S.appendChild(H)},p=function(){var e=n("div","flatpickr-weekdays"),t=z.l10n.firstDayOfWeek,a=z.l10n.weekdays.shorthand.slice();t>0&&t<a.length&&(a=[].concat(a.splice(t,a.length),a.splice(0,t))),e.innerHTML=z.config.weekNumbers?"<span>"+z.l10n.weekAbbreviation+"</span>":"",e.innerHTML+="<span>"+a.join("</span><span>")+"</span>",S.appendChild(e)},v=function(){S.classList.add("hasWeeks"),q=n("div","flatpickr-weeks"),S.appendChild(q)},m=function(){var e=(new Date(z.currentYear,z.currentMonth,1).getDay()-z.l10n.firstDayOfWeek+7)%7,t=C(),a=C((z.currentMonth-1+12)%12),i=a+1-e,r=void 0,c=void 0,u=void 0;for(z.config.weekNumbers&&q&&(q.innerHTML=""),F.innerHTML="",z.config.minDate=o(z.config.minDate,!0),z.config.maxDate=o(z.config.maxDate,!0);i<=a;i++)F.appendChild(n("span","disabled flatpickr-day",i));for(i=1;i<=42-e;i++)(i<=t||i%7===1)&&(c=new Date(z.currentYear,z.currentMonth,i,0,0,0,0,0)),z.config.weekNumbers&&q&&i%7===1&&q.appendChild(n("span","disabled flatpickr-day",c.fp_getWeek())),u=i>t||d(c),r=u?"disabled flatpickr-day":"slot flatpickr-day",!u&&l(c,K)&&(r+=" today"),!u&&z.selectedDateObj&&l(c,z.selectedDateObj)&&(r+=" selected"),F.appendChild(n("span",r,i>t?i%t:i))},h=function(){var e=n("div","flatpickr-time"),t=n("span","flatpickr-time-separator",":");P=n("input","flatpickr-hour"),B=n("input","flatpickr-minute"),P.type=B.type="number",P.value=z.selectedDateObj?c(z.selectedDateObj.getHours()):12,B.value=z.selectedDateObj?c(z.selectedDateObj.getMinutes()):"00",P.step=z.config.hourIncrement,B.step=z.config.minuteIncrement,P.min=+!z.config.time_24hr,P.max=z.config.time_24hr?23:12,B.min=0,B.max=59,P.title=B.title=z.l10n.scrollTitle,e.appendChild(P),e.appendChild(t),e.appendChild(B),z.config.enableSeconds&&(e.classList.add("has-seconds"),J=n("input","flatpickr-second"),J.type="number",J.value=z.selectedDateObj?c(z.selectedDateObj.getSeconds()):"00",J.step=5,J.min=0,J.max=59,e.appendChild(n("span","flatpickr-time-separator",":")),e.appendChild(J)),z.config.time_24hr||($=n("span","flatpickr-am-pm",["AM","PM"][P.value>11|0]),$.title=z.l10n.toggleTitle,e.appendChild($)),z.config.noCalendar&&!z.selectedDateObj&&(z.selectedDateObj=new Date),S.appendChild(e)},T=function(){function e(e){e.preventDefault(),$.innerHTML=["AM","PM"]["AM"===$.innerHTML|0]}"true"===String(z.config.clickOpens)&&(z.input.addEventListener("focus",z.open),z.altInput&&z.altInput.addEventListener("focus",z.open)),z.config.allowInput&&(z.altInput?z.altInput.addEventListener("change",w):z.input.addEventListener("change",w)),z.config.wrap&&z.element.querySelector("[data-open]")&&z.element.querySelector("[data-open]").addEventListener("click",z.open),z.config.wrap&&z.element.querySelector("[data-close]")&&z.element.querySelector("[data-close]").addEventListener("click",z.close),z.config.wrap&&z.element.querySelector("[data-toggle]")&&z.element.querySelector("[data-toggle]").addEventListener("click",z.toggle),z.config.wrap&&z.element.querySelector("[data-clear]")&&z.element.querySelector("[data-clear]").addEventListener("click",z.clear),z.config.noCalendar||(Y.addEventListener("click",function(){M(-1)}),A.addEventListener("click",function(){M(1)}),x.addEventListener("wheel",b),x.addEventListener("focus",x.select),x.addEventListener("input",function(e){z.currentYear=parseInt(e.target.value,10),z.redraw()}),F.addEventListener("click",I)),document.addEventListener("click",O,!0),document.addEventListener("focus",O,!0),z.config.enableTime&&(P.addEventListener("wheel",D),B.addEventListener("wheel",D),P.addEventListener("mouseout",y),B.addEventListener("mouseout",y),P.addEventListener("change",y),B.addEventListener("change",y),P.addEventListener("click",P.select),B.addEventListener("click",B.select),z.config.enableSeconds&&(J.addEventListener("wheel",D),J.addEventListener("mouseout",y),J.addEventListener("change",y),J.addEventListener("click",J.select)),z.config.time_24hr||($.addEventListener("focus",$.blur),$.addEventListener("click",e),$.addEventListener("wheel",e),$.addEventListener("mouseout",y))),document.createEvent?(U=document.createEvent("MouseEvent"),U.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)):U=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}),window.addEventListener("resize",a(function(){!W.classList.contains("open")||z.input.disabled||z.config.inline||z.config["static"]||z.positionCalendar()},150))},z.open=function(){z.input.disabled||z.config.inline||(z.config["static"]||z.positionCalendar(),W.classList.add("open"),z.altInput?(z.config.allowInput||z.altInput.blur(),z.altInput.classList.add("active")):(z.config.allowInput||z.input.blur(),z.input.classList.add("active")),z.config.onOpen&&z.config.onOpen(z.selectedDateObj,z.input.value))},z.positionCalendar=function(){var e=z.altInput?z.altInput:z.input,t=e.getBoundingClientRect(),n=window.pageYOffset+e.offsetHeight+t.top,a=window.pageXOffset+t.left;W.style.top=n+"px",W.style.left=a+"px"},z.toggle=function(){z.input.disabled||(W.classList.toggle("open"),z.positionCalendar(),z.altInput&&z.altInput.classList.toggle("active"),z.input.classList.toggle("active"))},z.close=function(){W.classList.remove("open"),z.input.classList.remove("active"),z.altInput&&z.altInput.classList.remove("active"),z.config.onClose&&z.config.onClose(z.selectedDateObj,z.input.value)},z.clear=function(){z.input.value="",z.selectedDateObj=null,z.jumpToDate()},E=function(){z.input.dispatchEvent(U),z.config.onChange&&z.config.onChange(z.selectedDateObj,z.input.value)},w=function(e){z.setDate(z.altInput?z.altInput.value:z.input.value)},z.destroy=function(){if(document.removeEventListener("click",O,!1),z.altInput&&z.altInput.parentNode.removeChild(z.altInput),z.config.inline){var e=z.element.parentNode,t=e.removeChild(z.element);e.removeChild(S),e.parentNode.replaceChild(t,e)}else document.getElementsByTagName("body")[0].removeChild(W)},z.redraw=function(){z.config.noCalendar||(k(),m())},z.jumpToDate=function(e){e=o(e||z.selectedDateObj||z.config.defaultDate||z.config.minDate||K),z.currentYear=e.getFullYear(),z.currentMonth=e.getMonth(),z.redraw()},z.setDate=function(e,t){e=o(e),e instanceof Date&&e.getTime()&&(z.selectedDateObj=o(e),z.jumpToDate(z.selectedDateObj),y(),t&&E())},z.setTime=function(e,t,n){z.selectedDateObj&&(P.value=parseInt(e,10)%24,B.value=parseInt(t||0,10)%60,z.config.time_24hr||($.innerHTML=e>11?"PM":"AM"),y(),n&&E())},z.set=function(e,t){e in z.config&&(z.config[e]=t,z.jumpToDate())};try{i()}catch(Z){console.error(Z),console.info(z.element)}return z},flatpickr.init.prototype={l10n:{weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"},defaultConfig:{utc:!1,noCalendar:!1,wrap:!1,weekNumbers:!1,allowInput:!1,clickOpens:!0,dateFormat:"Y-m-d",altInput:!1,altInputClass:"",altFormat:"F j, Y",defaultDate:null,minDate:null,maxDate:null,parseDate:!1,disable:[],shorthandCurrentMonth:!1,inline:!1,"static":!1,prevArrow:"<",nextArrow:">",enableTime:!1,enableSeconds:!1,timeFormat:"h:i K",time_24hr:!1,hourIncrement:1,minuteIncrement:5,onChange:null,onOpen:null,onClose:null}},Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},Date.prototype.fp_isUTC=!1,Date.prototype.fp_toUTC=function(){var e=new Date(this.getTime()+6e4*this.getTimezoneOffset());return e.fp_isUTC=!0,e},Date.prototype.fp_getWeek=function(){var e=new Date(this.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},"classList"in document.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){var e=this;function t(t){return function(n){var a=e.className.split(/\s+/),i=a.indexOf(n);t(a,i,n),e.className=a.join(" ")}}var n={add:t(function(e,t,n){return~t||e.push(n)}),remove:t(function(e,t){return~t&&e.splice(t,1)}),toggle:t(function(e,t,n){return~t?e.splice(t,1):e.push(n)}),contains:function(t){return!!~e.className.split(/\s+/).indexOf(t)}};return n}}),"undefined"!=typeof module&&(module.exports=flatpickr);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Arabic locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
|
5
|
+
longhand: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
10
|
+
longhand: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Bulgarian locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
|
5
|
+
longhand: ['Неделя', 'Понеделник', 'Вторник', 'Сряда', 'Четвъртък', 'Петък', 'Събота']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Яну', 'Фев', 'Март', 'Апр', 'Май', 'Юни', 'Юли', 'Авг', 'Сеп', 'Окт', 'Ное', 'Дек'],
|
10
|
+
longhand: ['Януари', 'Февруари', 'Март', 'Април', 'Май', 'Юни', 'Юли', 'Август', 'Септември', 'Октомври', 'Ноември', 'Декември']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Bangla locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'],
|
5
|
+
longhand: ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগ', 'সেপ্টে', 'অক্টো', 'নভে', 'ডিসে'],
|
10
|
+
longhand: ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* German locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
5
|
+
longhand: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
|
10
|
+
longhand: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']
|
11
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/* Spanish locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'],
|
5
|
+
longhand: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
|
10
|
+
longhand: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
14
|
+
return "º";
|
15
|
+
};
|
16
|
+
|
17
|
+
flatpickr.init.prototype.l10n.firstDayOfWeek = 1;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* Farsi (Persian) locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['یک', 'دو', 'سه', 'چهار', 'پنج', 'آدینه', 'شنبه'],
|
5
|
+
longhand: ['یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنچشنبه', 'آدینه', 'شنبه']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'],
|
10
|
+
longhand: ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
14
|
+
return "";
|
15
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/* Finnish locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.firstDayOfWeek = 1;
|
4
|
+
|
5
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
6
|
+
shorthand: ['Su', 'Ma', 'Ti', 'Ke', 'To', 'Pe', 'La'],
|
7
|
+
longhand: ['Sunnuntai', 'Maanantai', 'Tiistai', 'Keskiviikko', 'Torstai', 'Perjantai', 'Lauantai']
|
8
|
+
};
|
9
|
+
|
10
|
+
flatpickr.init.prototype.l10n.months = {
|
11
|
+
shorthand: ['Tammi', 'Helmi', 'Maalis', 'Huhti', 'Touko', 'Kesä', 'Heinä', 'Elo', 'Syys', 'Loka', 'Marras', 'Joulu'],
|
12
|
+
longhand: ['Tammikuu', 'Helmikuu', 'Maaliskuu', 'Huhtikuu', 'Toukokuu', 'Kesäkuu', 'Heinäkuu', 'Elokuu', 'Syyskuu', 'Lokakuu', 'Marraskuu', 'Joulukuu']
|
13
|
+
};
|
14
|
+
|
15
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
16
|
+
return ".";
|
17
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/* French locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
|
5
|
+
longhand: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Janv', 'Févr', 'Mars', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sept', 'Oct', 'Nov', 'Déc'],
|
10
|
+
longhand: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = (nth) => {
|
14
|
+
if (nth > 1) {
|
15
|
+
return "ème";
|
16
|
+
}
|
17
|
+
|
18
|
+
return "er";
|
19
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Hebrew locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ז'],
|
5
|
+
longhand: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'],
|
10
|
+
longhand: ["ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר"],
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Hindi locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
5
|
+
longhand: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['जन', 'फर', 'मार्च', 'अप्रेल', 'मई', 'जून', 'जूलाई', 'अग', 'सित', 'अक्ट', 'नव', 'दि'],
|
10
|
+
longhand: ['जनवरी ','फरवरी','मार्च','अप्रेल','मई','जून', 'जूलाई','अगस्त ','सितम्बर','अक्टूबर','नवम्बर','दिसम्बर']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Japanese locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['日', '月', '火', '水', '木', '金', '土'],
|
5
|
+
longhand: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
10
|
+
longhand: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
|
11
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* Republic of Korea locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['일', '월', '화', '수', '목', '금', '토'],
|
5
|
+
longhand: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
10
|
+
longhand: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
14
|
+
return "일";
|
15
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/* Dutch locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'],
|
5
|
+
longhand: ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Jan', 'Feb', 'Maa', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sept', 'Okt', 'Nov', 'Dec'],
|
10
|
+
longhand: ['Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.firstDayOfWeek = 1;
|
14
|
+
|
15
|
+
flatpickr.init.prototype.l10n.ordinal = (nth) => {
|
16
|
+
if (nth === 1 || nth === 8 || nth >= 20) {
|
17
|
+
return "ste";
|
18
|
+
}
|
19
|
+
|
20
|
+
return "de";
|
21
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* Norwegian locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
|
5
|
+
longhand: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
|
10
|
+
longhand: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
14
|
+
return ".";
|
15
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Punjabi locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁੱਧ', 'ਵੀਰ', 'ਸ਼ੁੱਕਰ', 'ਸ਼ਨਿੱਚਰ'],
|
5
|
+
longhand: ['ਐਤਵਾਰ', 'ਸੋਮਵਾਰ', 'ਮੰਗਲਵਾਰ', 'ਬੁੱਧਵਾਰ', 'ਵੀਰਵਾਰ', 'ਸ਼ੁੱਕਰਵਾਰ', 'ਸ਼ਨਿੱਚਰਵਾਰ']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['ਜਨ', 'ਫ਼ਰ', 'ਮਾਰ', 'ਅਪ੍ਰੈ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾ', 'ਅਗ', 'ਸਤੰ', 'ਅਕ', 'ਨਵੰ', 'ਦਸੰ'],
|
10
|
+
longhand: ['ਜਨਵਰੀ','ਫ਼ਰਵਰੀ','ਮਾਰਚ','ਅਪ੍ਰੈਲ','ਮਈ','ਜੂਨ', 'ਜੁਲਾਈ','ਅਗਸਤ','ਸਤੰਬਰ','ਅਕਤੂਬਰ','ਨਵੰਬਰ','ਦਸੰਬਰ']
|
11
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* Polish locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'],
|
5
|
+
longhand: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
|
10
|
+
longhand: ['Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień']
|
11
|
+
};
|
12
|
+
|
13
|
+
flatpickr.init.prototype.l10n.ordinal = () => {
|
14
|
+
return ".";
|
15
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Portuguese locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'],
|
5
|
+
longhand: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
10
|
+
longhand: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Russian locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
|
5
|
+
longhand: ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Янв', 'Фев', 'Март', 'Апр', 'Май', 'Июнь', 'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'],
|
10
|
+
longhand: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь']
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Albanian locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['Di', 'Hë', 'Ma', 'Më', 'En', 'Pr', 'Sh'],
|
5
|
+
longhand: ['E Diel', 'E Hënë', 'E Martë', 'E Mërkurë', 'E Enjte', 'E Premte', 'E Shtunë']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['Jan', 'Shk', 'Mar', 'Pri', 'Maj', 'Qer', 'Kor', 'Gus', 'Sht', 'Tet', 'Nën', 'Dhj'],
|
10
|
+
longhand: ['Janar', 'Shkurt', 'Mars', 'Prill', 'Maj', 'Qershor', 'Korrik', 'Gusht', 'Shtator', 'Tetor', 'Nëntor', 'Dhjetor']
|
11
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/* Turkish locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.firstDayOfWeek = 1;
|
4
|
+
|
5
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
6
|
+
shorthand: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
|
7
|
+
longhand: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi']
|
8
|
+
};
|
9
|
+
|
10
|
+
flatpickr.init.prototype.l10n.months = {
|
11
|
+
shorthand: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
|
12
|
+
longhand: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık']
|
13
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* Mandarin locals for flatpickr */
|
2
|
+
|
3
|
+
flatpickr.init.prototype.l10n.weekdays = {
|
4
|
+
shorthand: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
5
|
+
longhand: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
|
6
|
+
};
|
7
|
+
|
8
|
+
flatpickr.init.prototype.l10n.months = {
|
9
|
+
shorthand: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
10
|
+
longhand: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:rgba(72,72,72,.1)}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#ffb866}.flatpickr-month{border-radius:3px 3px 0 0;background:#ffb866;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#bbb}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:#ffb866;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px;border:1px solid rgba(72,72,72,.1);border-top:0;border-radius:0 0 3px 3px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#484848;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e2e2e2;border-color:#e2e2e2}.flatpickr-day.today{border-color:#bbb}.flatpickr-day.today:hover{border-color:#bbb;background:#bbb;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#ffb866;color:#fff;border-color:#ffb866}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(72,72,72,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#484848}.flatpickr-time{overflow:auto;text-align:center;border:1px solid rgba(72,72,72,.1);border-top:0}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#ececec}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;border:1px solid #ddd;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:#ddd}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#fff}.flatpickr-month{background:0 0;color:#000;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#f99595}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(0,0,0,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#000}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:0 0;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#393939;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#f99595}.flatpickr-day.today:hover{border-color:#f99595;background:#f99595;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#446cb3;color:#fff;border-color:#446cb3}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(57,57,57,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#393939}.flatpickr-time{overflow:auto;text-align:center;border-top:1px solid #ddd}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#f0f0f0}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#323a45;border:1px solid #2d343e;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:#2d343e}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#323a45}.flatpickr-month{background:0 0;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#ff6b66}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:0 0;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{color:#fff;opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:rgba(255,255,255,.9);cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.today:hover{color:#fff;background:#ff6b66;border-color:#ff6b66}.flatpickr-day:hover{background:#4f5b6d;border-color:#4f5b6d}.flatpickr-day.today{border-color:#ff6b66}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(255,255,255,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:rgba(255,255,255,.9)}.flatpickr-time{overflow:auto;text-align:center;border-top:1px solid #2d343e}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#586579}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:rgba(72,72,72,.1)}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#42a5f5}.flatpickr-month{border-radius:3px 3px 0 0;background:#42a5f5;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#bbb}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:#42a5f5;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px;border:1px solid rgba(72,72,72,.1);border-top:0;border-radius:0 0 3px 3px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#484848;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e2e2e2;border-color:#e2e2e2}.flatpickr-day.today{border-color:#bbb}.flatpickr-day.today:hover{border-color:#bbb;background:#bbb;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#42a5f5;color:#fff;border-color:#42a5f5}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(72,72,72,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#484848}.flatpickr-time{overflow:auto;text-align:center;border:1px solid rgba(72,72,72,.1);border-top:0}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#ececec}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:rgba(72,72,72,.1)}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#1bbc9b}.flatpickr-month{border-radius:3px 3px 0 0;background:#1bbc9b;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#bbb}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:#1bbc9b;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px;border:1px solid rgba(72,72,72,.1);border-top:0;border-radius:0 0 3px 3px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#484848;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e2e2e2;border-color:#e2e2e2}.flatpickr-day.today{border-color:#bbb}.flatpickr-day.today:hover{border-color:#bbb;background:#bbb;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#1bbc9b;color:#fff;border-color:#1bbc9b}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(72,72,72,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#484848}.flatpickr-time{overflow:auto;text-align:center;border:1px solid rgba(72,72,72,.1);border-top:0}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#ececec}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:rgba(255,138,101,.2)}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#ff8a65}.flatpickr-month{border-radius:3px 3px 0 0;background:#ff8a65;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#bbb}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:#ff8a65;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px;border:1px solid rgba(255,138,101,.2);border-top:0;border-radius:0 0 3px 3px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#484848;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e2e2e2;border-color:#e2e2e2}.flatpickr-day.today{border-color:#bbb}.flatpickr-day.today:hover{border-color:#bbb;background:#bbb;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#ff8a65;color:#fff;border-color:#ff8a65}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(72,72,72,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#484848}.flatpickr-time{overflow:auto;text-align:center;border:1px solid rgba(255,138,101,.2);border-top:0}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#ececec}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
@@ -0,0 +1 @@
|
|
1
|
+
.flatpickr-input,.flatpickr-wrapper input{z-index:1;cursor:pointer}.flatpickr-wrapper{position:absolute;display:block}.flatpickr-wrapper.inline,.flatpickr-wrapper.static{display:block;position:relative}.flatpickr-wrapper.inline .flatpickr-calendar{position:relative}.flatpickr-wrapper.static .flatpickr-calendar{position:absolute}.flatpickr-wrapper.inline .flatpickr-calendar,.flatpickr-wrapper.open .flatpickr-calendar{z-index:99999;display:block}.flatpickr-calendar{background:#fff;font-size:90%;border-radius:3px;position:absolute;top:100%;left:0;margin-top:3px;display:none;width:256px}.flatpickr-calendar.hasWeeks{width:288px}.flatpickr-calendar.hasWeeks .flatpickr-weekdays span{width:12.5%}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;bottom:100%;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;border-bottom-color:rgba(239,83,80,.2)}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;border-bottom-color:#ef5350}.flatpickr-month{border-radius:3px 3px 0 0;background:#ef5350;color:#fff;padding:4px 5px 2px;text-align:center;position:relative}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:.5rem}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#bbb}.flatpickr-prev-month{float:left;left:.5rem}.flatpickr-next-month{float:right;right:.5rem}.flatpickr-current-month{font-size:135%;font-weight:300;color:rgba(255,255,255,.7);display:inline-block}.flatpickr-current-month .cur_month{font-weight:700;color:#fff}.flatpickr-current-month .cur_year{background:0 0;box-sizing:content-box;color:inherit;cursor:default;padding:0 0 0 2px;margin:0;width:3.1em;display:inline;font-size:inherit;line-height:inherit;height:initial;border:0}.flatpickr-current-month .cur_year:hover{background:rgba(0,0,0,.05)}.flatpickr-weekdays{font-size:90%;background:#ef5350;padding:2px 0 4px;text-align:center}.flatpickr-weekdays span{opacity:.54;text-align:center;display:inline-block;width:14.28%;font-weight:700}.flatpickr-weeks{width:32px;float:left}.flatpickr-days{padding-top:1px;border:1px solid rgba(239,83,80,.2);border-top:0;border-radius:0 0 3px 3px}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#484848;cursor:pointer;display:inline-block;width:34px;height:34px;line-height:33px;margin:0 1px 1px;text-align:center}.flatpickr-day:hover{background:#e2e2e2;border-color:#e2e2e2}.flatpickr-day.today{border-color:#bbb}.flatpickr-day.today:hover{border-color:#bbb;background:#bbb;color:#fff}.flatpickr-day.selected,.flatpickr-day.selected:hover{background:#ef5350;color:#fff;border-color:#ef5350}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{color:rgba(72,72,72,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-am-pm,.flatpickr-time input[type=number],.flatpickr-time-separator{height:38px;display:inline-block;line-height:38px;color:#484848}.flatpickr-time{overflow:auto;text-align:center;border:1px solid rgba(239,83,80,.2);border-top:0}.flatpickr-time input[type=number]{background:0 0;-webkit-appearance:none;-moz-appearance:textfield;box-shadow:none;border:0;border-radius:0;width:33%;min-width:33%;text-align:center;margin:0;padding:0;cursor:pointer;font-weight:700}.flatpickr-am-pm:hover,.flatpickr-time input[type=number]:hover{background:#ececec}.flatpickr-time input[type=number].flatpickr-minute{width:26%;font-weight:300}.flatpickr-time input[type=number].flatpickr-second{font-weight:300}.flatpickr-time input[type=number]:focus{outline:0;border:0}.flatpickr-time.has-seconds input[type=number]{width:25%;min-width:25%}.flatpickr-am-pm{width:21%;padding:0 2%;cursor:pointer;text-align:left}
|
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flatpickr_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jiren
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: " JS lib https://github.com/chmln/flatpickr "
|
70
|
+
email:
|
71
|
+
- jirenpatel@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- flatpickr_rails.gemspec
|
87
|
+
- lib/flatpickr_rails.rb
|
88
|
+
- lib/flatpickr_rails/engine.rb
|
89
|
+
- lib/flatpickr_rails/railtie.rb
|
90
|
+
- lib/flatpickr_rails/version.rb
|
91
|
+
- vendor/assets/javascripts/flatpickr/core.js
|
92
|
+
- vendor/assets/javascripts/flatpickr/index.js
|
93
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ar.js
|
94
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bg.js
|
95
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bn.js
|
96
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.de.js
|
97
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.es.js
|
98
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fa.js
|
99
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fi.js
|
100
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fr.js
|
101
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.he.js
|
102
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.hi.js
|
103
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ja.js
|
104
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ko.js
|
105
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.nl.js
|
106
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.no.js
|
107
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pa.js
|
108
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pl.js
|
109
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pt.js
|
110
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ru.js
|
111
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.sq.js
|
112
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.tr.js
|
113
|
+
- vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.zh.js
|
114
|
+
- vendor/assets/stylesheets/flatpickr.confetti.css
|
115
|
+
- vendor/assets/stylesheets/flatpickr.css
|
116
|
+
- vendor/assets/stylesheets/flatpickr.dark.css
|
117
|
+
- vendor/assets/stylesheets/flatpickr.material_blue.css
|
118
|
+
- vendor/assets/stylesheets/flatpickr.material_green.css
|
119
|
+
- vendor/assets/stylesheets/flatpickr.material_orange.css
|
120
|
+
- vendor/assets/stylesheets/flatpickr.material_red.css
|
121
|
+
homepage: https://github.com/jiren/flatpickr_rails
|
122
|
+
licenses:
|
123
|
+
- MIT
|
124
|
+
metadata: {}
|
125
|
+
post_install_message:
|
126
|
+
rdoc_options: []
|
127
|
+
require_paths:
|
128
|
+
- lib
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
requirements: []
|
140
|
+
rubyforge_project:
|
141
|
+
rubygems_version: 2.4.5
|
142
|
+
signing_key:
|
143
|
+
specification_version: 4
|
144
|
+
summary: A lightweight & powerful datetimepicker gem
|
145
|
+
test_files: []
|
146
|
+
has_rdoc:
|