bootstrap-datepicker-rails 1.7.1.1 → 1.8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +3 -3
- data/lib/bootstrap-datepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/core.js +15 -10
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker-en-CA.js +4 -0
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js +1 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js +2 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-CA.js +18 -0
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.lv.js +1 -0
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.no.js +10 -8
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js +5 -5
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tk.js +18 -0
- data/vendor/assets/stylesheets/bootstrap-datepicker.css +1 -1
- data/vendor/assets/stylesheets/bootstrap-datepicker3.css +1 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 70c6665475b9b31fc8a1fe921aa52837e05552cbf55fe800253ea9e92da360d5
|
4
|
+
data.tar.gz: 1f06c1bac2b05f49bc350fa6e1d2787c1be9953e949702823a7d5d34f3143592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87d48c6eed9e8bdb128e2a77f3cb9a732e367461973bb00811c99983829a07cebd7bfdd1d09a9cb261b47fdef29ab797162773e2c843e1cb7b5d193ae99542a
|
7
|
+
data.tar.gz: a3e2ff59d67d76be2aad06713c1c6b1b3defcea5f0731dfe59421c143d88726ec4b2333c31471814291af8a2079d4d7031b20874fad3b10979aa76f65467138e
|
data/Rakefile
CHANGED
@@ -9,13 +9,13 @@ task :update do
|
|
9
9
|
checkout_branch = "tags/#{ARGV.last}"
|
10
10
|
task ARGV.last.to_sym {}
|
11
11
|
else
|
12
|
-
checkout_branch = "`git describe --abbrev=0`"
|
12
|
+
checkout_branch = "`git describe --abbrev=0 --tags`"
|
13
13
|
end
|
14
14
|
|
15
15
|
if Dir.exist?('bootstrap-datepicker-src')
|
16
16
|
system("cd bootstrap-datepicker-src && git checkout master && git pull && git checkout #{checkout_branch}")
|
17
17
|
else
|
18
|
-
system("git clone git://github.com/
|
18
|
+
system("git clone git://github.com/uxsolutions/bootstrap-datepicker.git bootstrap-datepicker-src")
|
19
19
|
system("cd bootstrap-datepicker-src && git checkout #{checkout_branch}")
|
20
20
|
end
|
21
21
|
|
@@ -26,7 +26,7 @@ task :update do
|
|
26
26
|
system("git status")
|
27
27
|
|
28
28
|
puts "\n"
|
29
|
-
puts "bootstrap-datepicker version: #{JSON.parse(File.read('./bootstrap-datepicker-src/
|
29
|
+
puts "bootstrap-datepicker version: #{JSON.parse(File.read('./bootstrap-datepicker-src/package.json'))['version']}"
|
30
30
|
puts "bootstrap-datepicker-rails version: #{BootstrapDatepickerRails::Rails::VERSION}"
|
31
31
|
end
|
32
32
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
5
5
|
*/
|
6
6
|
|
7
7
|
(function(factory){
|
8
|
-
if (typeof define ===
|
9
|
-
define([
|
8
|
+
if (typeof define === 'function' && define.amd) {
|
9
|
+
define(['jquery'], factory);
|
10
10
|
} else if (typeof exports === 'object') {
|
11
11
|
factory(require('jquery'));
|
12
12
|
} else {
|
@@ -1141,10 +1141,6 @@
|
|
1141
1141
|
nextIsDisabled,
|
1142
1142
|
factor = 1;
|
1143
1143
|
switch (this.viewMode){
|
1144
|
-
case 0:
|
1145
|
-
prevIsDisabled = year <= startYear && month <= startMonth;
|
1146
|
-
nextIsDisabled = year >= endYear && month >= endMonth;
|
1147
|
-
break;
|
1148
1144
|
case 4:
|
1149
1145
|
factor *= 10;
|
1150
1146
|
/* falls through */
|
@@ -1155,8 +1151,12 @@
|
|
1155
1151
|
factor *= 10;
|
1156
1152
|
/* falls through */
|
1157
1153
|
case 1:
|
1158
|
-
prevIsDisabled = Math.floor(year / factor) * factor
|
1159
|
-
nextIsDisabled = Math.floor(year / factor) * factor + factor
|
1154
|
+
prevIsDisabled = Math.floor(year / factor) * factor < startYear;
|
1155
|
+
nextIsDisabled = Math.floor(year / factor) * factor + factor > endYear;
|
1156
|
+
break;
|
1157
|
+
case 0:
|
1158
|
+
prevIsDisabled = year <= startYear && month < startMonth;
|
1159
|
+
nextIsDisabled = year >= endYear && month > endMonth;
|
1160
1160
|
break;
|
1161
1161
|
}
|
1162
1162
|
|
@@ -1532,6 +1532,11 @@
|
|
1532
1532
|
p.setRange(range);
|
1533
1533
|
});
|
1534
1534
|
},
|
1535
|
+
clearDates: function(){
|
1536
|
+
$.each(this.pickers, function(i, p){
|
1537
|
+
p.clearDates();
|
1538
|
+
});
|
1539
|
+
},
|
1535
1540
|
dateUpdated: function(e){
|
1536
1541
|
// `this.updating` is a workaround for preventing infinite recursion
|
1537
1542
|
// between `changeDate` triggering and `setUTCDate` calling. Until
|
@@ -1998,7 +2003,7 @@
|
|
1998
2003
|
|
1999
2004
|
/* DATEPICKER VERSION
|
2000
2005
|
* =================== */
|
2001
|
-
$.fn.datepicker.version = '1.
|
2006
|
+
$.fn.datepicker.version = '1.8.0';
|
2002
2007
|
|
2003
2008
|
$.fn.datepicker.deprecated = function(msg){
|
2004
2009
|
var console = window.console;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Canadian English translation for bootstrap-datepicker
|
3
3
|
* Mike Nacey <mnacey@gmail.com>
|
4
|
+
* DEPRECATED: This filename doesn't follow the convention, use bootstrap-datepicker.en-CA.js instead
|
4
5
|
*/
|
5
6
|
;(function($){
|
6
7
|
$.fn.datepicker.dates['en-CA'] = {
|
@@ -15,4 +16,7 @@
|
|
15
16
|
weekStart: 0,
|
16
17
|
format: "yyyy-mm-dd"
|
17
18
|
};
|
19
|
+
|
20
|
+
$.fn.datepicker.deprecated('This filename doesn\'t follow the convention, use bootstrap-datepicker.en-CA.js instead.');
|
21
|
+
|
18
22
|
}(jQuery));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Canadian English translation for bootstrap-datepicker
|
3
|
+
* Mike Nacey <mnacey@gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['en-CA'] = {
|
7
|
+
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
8
|
+
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
9
|
+
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
10
|
+
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
11
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
12
|
+
today: "Today",
|
13
|
+
monthsTitle: "Months",
|
14
|
+
clear: "Clear",
|
15
|
+
weekStart: 0,
|
16
|
+
format: "yyyy-mm-dd"
|
17
|
+
};
|
18
|
+
}(jQuery));
|
@@ -10,6 +10,7 @@
|
|
10
10
|
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se"],
|
11
11
|
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
|
12
12
|
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
13
|
+
monthsTitle: "Mēneši",
|
13
14
|
today: "Šodien",
|
14
15
|
clear: "Nodzēst",
|
15
16
|
weekStart: 1
|
@@ -1,14 +1,16 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
|
2
|
+
* Norwegian translation for bootstrap-datepicker
|
3
|
+
* George Gooding <george@nettsentrisk.no>
|
4
|
+
*/
|
4
5
|
;(function($){
|
5
6
|
$.fn.datepicker.dates['no'] = {
|
6
|
-
days: ['
|
7
|
-
daysShort: ['
|
8
|
-
daysMin: ['
|
9
|
-
months: ['
|
10
|
-
monthsShort: ['
|
11
|
-
today: '
|
7
|
+
days: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
|
8
|
+
daysShort: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
|
9
|
+
daysMin: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'],
|
10
|
+
months: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'vovember', 'desember'],
|
11
|
+
monthsShort: ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'],
|
12
|
+
today: 'i dag',
|
13
|
+
monthsTitle: 'Måneder',
|
12
14
|
clear: 'Nullstill',
|
13
15
|
weekStart: 1,
|
14
16
|
format: 'dd.mm.yyyy'
|
@@ -4,11 +4,11 @@
|
|
4
4
|
*/
|
5
5
|
;(function($){
|
6
6
|
$.fn.datepicker.dates['sv'] = {
|
7
|
-
days: ["
|
8
|
-
daysShort: ["
|
9
|
-
daysMin: ["
|
10
|
-
months: ["
|
11
|
-
monthsShort: ["
|
7
|
+
days: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"],
|
8
|
+
daysShort: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"],
|
9
|
+
daysMin: ["sö", "må", "ti", "on", "to", "fr", "lö"],
|
10
|
+
months: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"],
|
11
|
+
monthsShort: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
|
12
12
|
today: "Idag",
|
13
13
|
format: "yyyy-mm-dd",
|
14
14
|
weekStart: 1,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Turkmen translation for bootstrap-datepicker
|
3
|
+
* N'Bayramberdiyev <nbayramberdiyev@outlook.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['tk'] = {
|
7
|
+
days: ["Ýekşenbe", "Duşenbe", "Sişenbe", "Çarşenbe", "Penşenbe", "Anna", "Şenbe"],
|
8
|
+
daysShort: ["Ýek", "Duş", "Siş", "Çar", "Pen", "Ann", "Şen"],
|
9
|
+
daysMin: ["Ýe", "Du", "Si", "Ça", "Pe", "An", "Şe"],
|
10
|
+
months: ["Ýanwar", "Fewral", "Mart", "Aprel", "Maý", "Iýun", "Iýul", "Awgust", "Sentýabr", "Oktýabr", "Noýabr", "Dekabr"],
|
11
|
+
monthsShort: ["Ýan", "Few", "Mar", "Apr", "Maý", "Iýn", "Iýl", "Awg", "Sen", "Okt", "Noý", "Dek"],
|
12
|
+
today: "Bu gün",
|
13
|
+
monthsTitle: "Aýlar",
|
14
|
+
clear: "Aýyr",
|
15
|
+
weekStart: 1,
|
16
|
+
format: "dd.mm.yyyy"
|
17
|
+
};
|
18
|
+
}(jQuery));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
5
5
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
5
5
|
*/
|
@@ -676,7 +676,6 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {
|
|
676
676
|
min-width: 16px;
|
677
677
|
padding: 4px 5px;
|
678
678
|
line-height: 1.42857143;
|
679
|
-
text-shadow: 0 1px 0 #fff;
|
680
679
|
border-width: 1px 0;
|
681
680
|
margin-left: -5px;
|
682
681
|
margin-right: -5px;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-datepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Rodríguez-Baltanás Díaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js
|
114
114
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.el.js
|
115
115
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-AU.js
|
116
|
+
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-CA.js
|
116
117
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js
|
117
118
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-IE.js
|
118
119
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-NZ.js
|
@@ -172,6 +173,7 @@ files:
|
|
172
173
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ta.js
|
173
174
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tg.js
|
174
175
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js
|
176
|
+
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tk.js
|
175
177
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js
|
176
178
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ua.js
|
177
179
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js
|
@@ -202,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
204
|
version: '0'
|
203
205
|
requirements: []
|
204
206
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
207
|
+
rubygems_version: 2.7.5
|
206
208
|
signing_key:
|
207
209
|
specification_version: 4
|
208
210
|
summary: A date picker for Twitter Bootstrap
|