bootstrap-datepicker-rails 1.8.0.1 → 1.9.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENCE.MD +7 -0
- data/README.md +1 -1
- data/lib/bootstrap-datepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/core.js +15 -11
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js +3 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bm.js +18 -0
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.no.js +1 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sq.js +5 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +4 -3
- data/vendor/assets/stylesheets/bootstrap-datepicker.css +2 -2
- data/vendor/assets/stylesheets/bootstrap-datepicker3.css +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd4001755ef3725ade0ba79b522eed110d7b84a707163bd7bda0e151486bd615
|
4
|
+
data.tar.gz: 130ae134d1b3f8f9fa6d81b14be4c8975f4657ac1695ac811c496d4021d61d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0c45c4decb551222b8cc452855970a57b2fa7620e2c62048df33328a121c29b729e83c2785411ba6b00bb58701f6c0705955cba3feb954e0036d3c539e0d820
|
7
|
+
data.tar.gz: 2c19f6f0996b2a150636aedfd5fe6b5d711e1703a6419cde2ef878aed61dd3ef03fbe083c8d06f3b9f8f08b89fa537a99f607db4a6ec9416be3ad07a0b298a3d
|
data/LICENCE.MD
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright 2018 Gonzalo Rodríguez-Baltanás Díaz
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ Add this line to app/assets/javascripts/application.js
|
|
42
42
|
//= require bootstrap-datepicker
|
43
43
|
```
|
44
44
|
|
45
|
-
You can fine tune the included
|
45
|
+
The default includes support for all languages. You can fine tune the included locales to suit your needs:
|
46
46
|
|
47
47
|
```javascript
|
48
48
|
//= require bootstrap-datepicker/core
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.9.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
|
*/
|
@@ -89,6 +89,10 @@
|
|
89
89
|
|
90
90
|
var Datepicker = function(element, options){
|
91
91
|
$.data(element, 'datepicker', this);
|
92
|
+
|
93
|
+
this._events = [];
|
94
|
+
this._secondaryEvents = [];
|
95
|
+
|
92
96
|
this._process_options(options);
|
93
97
|
|
94
98
|
this.dates = new DateArray();
|
@@ -98,7 +102,7 @@
|
|
98
102
|
this.element = $(element);
|
99
103
|
this.isInput = this.element.is('input');
|
100
104
|
this.inputField = this.isInput ? this.element : this.element.find('input');
|
101
|
-
this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
|
105
|
+
this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn') : false;
|
102
106
|
if (this.component && this.component.length === 0)
|
103
107
|
this.component = false;
|
104
108
|
this.isInline = !this.component && this.element.is('div');
|
@@ -308,8 +312,6 @@
|
|
308
312
|
o.defaultViewDate = UTCToday();
|
309
313
|
}
|
310
314
|
},
|
311
|
-
_events: [],
|
312
|
-
_secondaryEvents: [],
|
313
315
|
_applyEvents: function(evs){
|
314
316
|
for (var i=0, el, ch, ev; i < evs.length; i++){
|
315
317
|
el = evs[i][0];
|
@@ -465,7 +467,7 @@
|
|
465
467
|
},
|
466
468
|
|
467
469
|
show: function(){
|
468
|
-
if (this.inputField.
|
470
|
+
if (this.inputField.is(':disabled') || (this.inputField.prop('readonly') && this.o.enableOnReadonly === false))
|
469
471
|
return;
|
470
472
|
if (!this.isInline)
|
471
473
|
this.picker.appendTo(this.o.container);
|
@@ -962,7 +964,9 @@
|
|
962
964
|
endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,
|
963
965
|
todaytxt = dates[this.o.language].today || dates['en'].today || '',
|
964
966
|
cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
|
965
|
-
|
967
|
+
titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,
|
968
|
+
todayDate = UTCToday(),
|
969
|
+
titleBtnVisible = (this.o.todayBtn === true || this.o.todayBtn === 'linked') && todayDate >= this.o.startDate && todayDate <= this.o.endDate && !this.weekOfDateIsDisabled(todayDate),
|
966
970
|
tooltip,
|
967
971
|
before;
|
968
972
|
if (isNaN(year) || isNaN(month))
|
@@ -971,7 +975,7 @@
|
|
971
975
|
.text(DPGlobal.formatDate(d, titleFormat, this.o.language));
|
972
976
|
this.picker.find('tfoot .today')
|
973
977
|
.text(todaytxt)
|
974
|
-
|
978
|
+
.css('display', titleBtnVisible ? 'table-cell' : 'none');
|
975
979
|
this.picker.find('tfoot .clear')
|
976
980
|
.text(cleartxt)
|
977
981
|
.css('display', this.o.clearBtn === true ? 'table-cell' : 'none');
|
@@ -1151,12 +1155,12 @@
|
|
1151
1155
|
factor *= 10;
|
1152
1156
|
/* falls through */
|
1153
1157
|
case 1:
|
1154
|
-
prevIsDisabled = Math.floor(year / factor) * factor
|
1158
|
+
prevIsDisabled = Math.floor(year / factor) * factor <= startYear;
|
1155
1159
|
nextIsDisabled = Math.floor(year / factor) * factor + factor > endYear;
|
1156
1160
|
break;
|
1157
1161
|
case 0:
|
1158
|
-
prevIsDisabled = year <= startYear && month
|
1159
|
-
nextIsDisabled = year >= endYear && month
|
1162
|
+
prevIsDisabled = year <= startYear && month <= startMonth;
|
1163
|
+
nextIsDisabled = year >= endYear && month >= endMonth;
|
1160
1164
|
break;
|
1161
1165
|
}
|
1162
1166
|
|
@@ -2003,7 +2007,7 @@
|
|
2003
2007
|
|
2004
2008
|
/* DATEPICKER VERSION
|
2005
2009
|
* =================== */
|
2006
|
-
$.fn.datepicker.version = '1.
|
2010
|
+
$.fn.datepicker.version = '1.9.0';
|
2007
2011
|
|
2008
2012
|
$.fn.datepicker.deprecated = function(msg){
|
2009
2013
|
var console = window.console;
|
@@ -7,6 +7,8 @@
|
|
7
7
|
months: ["Yanvar", "Fevral", "Mart", "Aprel", "May", "İyun", "İyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr"],
|
8
8
|
monthsShort: ["Yan", "Fev", "Mar", "Apr", "May", "İyun", "İyul", "Avq", "Sen", "Okt", "Noy", "Dek"],
|
9
9
|
today: "Bu gün",
|
10
|
-
weekStart: 1
|
10
|
+
weekStart: 1,
|
11
|
+
clear: "Təmizlə",
|
12
|
+
monthsTitle: 'Aylar'
|
11
13
|
};
|
12
14
|
}(jQuery));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Bamanankan (bm) translation for bootstrap-datepicker
|
3
|
+
* Fatou Fall <fatou@medicmobile.org>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['bm'] = {
|
7
|
+
days: ["Kari","Ntɛnɛn","Tarata","Araba","Alamisa","Juma","Sibiri"],
|
8
|
+
daysShort: ["Kar","Ntɛ","Tar","Ara","Ala","Jum","Sib"],
|
9
|
+
daysMin: ["Ka","Nt","Ta","Ar","Al","Ju","Si"],
|
10
|
+
months: ["Zanwuyekalo","Fewuruyekalo","Marisikalo","Awirilikalo","Mɛkalo","Zuwɛnkalo","Zuluyekalo","Utikalo","Sɛtanburukalo","ɔkutɔburukalo","Nowanburukalo","Desanburukalo"],
|
11
|
+
monthsShort: ["Zan","Few","Mar","Awi","Mɛ","Zuw","Zul","Uti","Sɛt","ɔku","Now","Des"],
|
12
|
+
today: "Bi",
|
13
|
+
monthsTitle: "Kalo",
|
14
|
+
clear: "Ka jɔsi",
|
15
|
+
weekStart: 1,
|
16
|
+
format: "dd/mm/yyyy"
|
17
|
+
};
|
18
|
+
}(jQuery));
|
@@ -7,7 +7,7 @@
|
|
7
7
|
days: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
|
8
8
|
daysShort: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
|
9
9
|
daysMin: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'],
|
10
|
-
months: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', '
|
10
|
+
months: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'],
|
11
11
|
monthsShort: ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'],
|
12
12
|
today: 'i dag',
|
13
13
|
monthsTitle: 'Måneder',
|
@@ -9,7 +9,11 @@
|
|
9
9
|
daysMin: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sht"],
|
10
10
|
months: ["Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"],
|
11
11
|
monthsShort: ["Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Korr", "Gu", "Sht", "Tet", "Nën", "Dhjet"],
|
12
|
-
|
12
|
+
monthsTitle: "Muaj",
|
13
|
+
today: "Sot",
|
14
|
+
weekStart: 1,
|
15
|
+
format: "dd/mm/yyyy",
|
16
|
+
clear: "Pastro"
|
13
17
|
};
|
14
18
|
}(jQuery));
|
15
19
|
|
@@ -6,12 +6,13 @@
|
|
6
6
|
$.fn.datepicker.dates['zh-CN'] = {
|
7
7
|
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
|
8
8
|
daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
9
|
-
daysMin:
|
9
|
+
daysMin: ["日", "一", "二", "三", "四", "五", "六"],
|
10
10
|
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
11
11
|
monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
12
|
-
today: "
|
12
|
+
today: "今天",
|
13
|
+
monthsTitle: "选择月份",
|
13
14
|
clear: "清除",
|
14
|
-
format: "yyyy
|
15
|
+
format: "yyyy-mm-dd",
|
15
16
|
titleFormat: "yyyy年mm月",
|
16
17
|
weekStart: 1
|
17
18
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.9.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
|
*/
|
@@ -473,4 +473,4 @@
|
|
473
473
|
border: 1px solid #ccc;
|
474
474
|
margin-left: -5px;
|
475
475
|
margin-right: -5px;
|
476
|
-
}
|
476
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Datepicker for Bootstrap v1.
|
2
|
+
* Datepicker for Bootstrap v1.9.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
|
*/
|
@@ -679,4 +679,4 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {
|
|
679
679
|
border-width: 1px 0;
|
680
680
|
margin-left: -5px;
|
681
681
|
margin-right: -5px;
|
682
|
-
}
|
682
|
+
}
|
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.9.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: 2020-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- Gemfile
|
92
|
+
- LICENCE.MD
|
92
93
|
- README.md
|
93
94
|
- Rakefile
|
94
95
|
- bootstrap-datepicker-rails.gemspec
|
@@ -103,6 +104,7 @@ files:
|
|
103
104
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar.js
|
104
105
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js
|
105
106
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js
|
107
|
+
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bm.js
|
106
108
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bn.js
|
107
109
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.br.js
|
108
110
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bs.js
|
@@ -203,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
205
|
- !ruby/object:Gem::Version
|
204
206
|
version: '0'
|
205
207
|
requirements: []
|
206
|
-
|
207
|
-
rubygems_version: 2.7.5
|
208
|
+
rubygems_version: 3.1.2
|
208
209
|
signing_key:
|
209
210
|
specification_version: 4
|
210
211
|
summary: A date picker for Twitter Bootstrap
|