bootstrap-datepicker-rails 1.8.0.1 → 1.10.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/LICENCE.MD +7 -0
  3. data/README.md +1 -1
  4. data/Rakefile +2 -1
  5. data/lib/bootstrap-datepicker-rails/version.rb +1 -1
  6. data/vendor/assets/javascripts/bootstrap-datepicker/core.js +34 -24
  7. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar-DZ.js +19 -0
  8. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js +3 -1
  9. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bm.js +18 -0
  10. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ca.js +5 -5
  11. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js +1 -1
  12. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js +1 -1
  13. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-US.js +17 -0
  14. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fi.js +1 -1
  15. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fo.js +1 -1
  16. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.id.js +8 -4
  17. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kr.js +1 -1
  18. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.mr.js +18 -0
  19. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.no.js +1 -1
  20. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sq.js +6 -3
  21. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js +1 -1
  22. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +4 -3
  23. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-TW.js +5 -3
  24. data/vendor/assets/stylesheets/bootstrap-datepicker.css +3 -3
  25. data/vendor/assets/stylesheets/bootstrap-datepicker3.css +3 -3
  26. metadata +11 -9
  27. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js +0 -15
  28. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ua.js +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70c6665475b9b31fc8a1fe921aa52837e05552cbf55fe800253ea9e92da360d5
4
- data.tar.gz: 1f06c1bac2b05f49bc350fa6e1d2787c1be9953e949702823a7d5d34f3143592
3
+ metadata.gz: b56c3bd409324a8708f059018fa5159a566e8c510a6839905526a7c205be550e
4
+ data.tar.gz: e2e15d076c44cb67f2d9aa79fe08d3ebbaabde0d0a860da1cb70c07f1f1754cc
5
5
  SHA512:
6
- metadata.gz: d87d48c6eed9e8bdb128e2a77f3cb9a732e367461973bb00811c99983829a07cebd7bfdd1d09a9cb261b47fdef29ab797162773e2c843e1cb7b5d193ae99542a
7
- data.tar.gz: a3e2ff59d67d76be2aad06713c1c6b1b3defcea5f0731dfe59421c143d88726ec4b2333c31471814291af8a2079d4d7031b20874fad3b10979aa76f65467138e
6
+ metadata.gz: 7ff0fcea8c7b382d1119547b2c1446bb381a217f142ed82fa4f40496ea27ecb63bb739b30c10e4df3ca7940c89eb3047a9cabdf47755c829cee924e3f2c634d9
7
+ data.tar.gz: d27999c558c77a07ee22bd150dd530987833e3f63d4bfffb8256203f0892da35ccd94edd5a376baa4e13ca3f6cb74aa7f17247a050952a1e83f7eeebf04c7ad7
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 files to suit your needs.
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
data/Rakefile CHANGED
@@ -15,13 +15,14 @@ task :update do
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/uxsolutions/bootstrap-datepicker.git bootstrap-datepicker-src")
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
 
22
22
  system("cp bootstrap-datepicker-src/dist/css/bootstrap-datepicker.css vendor/assets/stylesheets/bootstrap-datepicker.css")
23
23
  system("cp bootstrap-datepicker-src/dist/css/bootstrap-datepicker3.css vendor/assets/stylesheets/bootstrap-datepicker3.css")
24
24
  system("cp bootstrap-datepicker-src/dist/js/bootstrap-datepicker.js vendor/assets/javascripts/bootstrap-datepicker/core.js")
25
+ system("rm -rf vendor/assets/javascripts/bootstrap-datepicker/locales/*")
25
26
  system("cp bootstrap-datepicker-src/js/locales/*.js vendor/assets/javascripts/bootstrap-datepicker/locales/")
26
27
  system("git status")
27
28
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.8.0.1"
3
+ VERSION = "1.10.0.1"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.10.0 (https://github.com/uxsolutions/bootstrap-datepicker)
3
3
  *
4
- * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4
+ * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0)
5
5
  */
6
6
 
7
7
  (function(factory){
@@ -61,7 +61,7 @@
61
61
  replace: function(new_array){
62
62
  if (!new_array)
63
63
  return;
64
- if (!$.isArray(new_array))
64
+ if (!Array.isArray(new_array))
65
65
  new_array = [new_array];
66
66
  this.clear();
67
67
  this.push.apply(this, new_array);
@@ -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,10 +102,16 @@
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;
102
- if (this.component && this.component.length === 0)
105
+ this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn') : false;
106
+ if (this.component && this.component.length === 0){
103
107
  this.component = false;
104
- this.isInline = !this.component && this.element.is('div');
108
+ }
109
+
110
+ if (this.o.isInline === null){
111
+ this.isInline = !this.component && !this.isInput;
112
+ } else {
113
+ this.isInline = this.o.isInline;
114
+ }
105
115
 
106
116
  this.picker = $(DPGlobal.template);
107
117
 
@@ -172,7 +182,7 @@
172
182
  },
173
183
 
174
184
  _resolveDaysOfWeek: function(daysOfWeek){
175
- if (!$.isArray(daysOfWeek))
185
+ if (!Array.isArray(daysOfWeek))
176
186
  daysOfWeek = daysOfWeek.split(/[,\s]*/);
177
187
  return $.map(daysOfWeek, Number);
178
188
  },
@@ -259,7 +269,7 @@
259
269
  o.daysOfWeekHighlighted = this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]);
260
270
 
261
271
  o.datesDisabled = o.datesDisabled||[];
262
- if (!$.isArray(o.datesDisabled)) {
272
+ if (!Array.isArray(o.datesDisabled)) {
263
273
  o.datesDisabled = o.datesDisabled.split(',');
264
274
  }
265
275
  o.datesDisabled = $.map(o.datesDisabled, function(d){
@@ -308,8 +318,6 @@
308
318
  o.defaultViewDate = UTCToday();
309
319
  }
310
320
  },
311
- _events: [],
312
- _secondaryEvents: [],
313
321
  _applyEvents: function(evs){
314
322
  for (var i=0, el, ch, ev; i < evs.length; i++){
315
323
  el = evs[i][0];
@@ -465,7 +473,7 @@
465
473
  },
466
474
 
467
475
  show: function(){
468
- if (this.inputField.prop('disabled') || (this.inputField.prop('readonly') && this.o.enableOnReadonly === false))
476
+ if (this.inputField.is(':disabled') || (this.inputField.prop('readonly') && this.o.enableOnReadonly === false))
469
477
  return;
470
478
  if (!this.isInline)
471
479
  this.picker.appendTo(this.o.container);
@@ -568,16 +576,15 @@
568
576
 
569
577
  clearDates: function(){
570
578
  this.inputField.val('');
571
- this.update();
572
579
  this._trigger('changeDate');
573
-
580
+ this.update();
574
581
  if (this.o.autoclose) {
575
582
  this.hide();
576
583
  }
577
584
  },
578
585
 
579
586
  setDates: function(){
580
- var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
587
+ var args = Array.isArray(arguments[0]) ? arguments[0] : arguments;
581
588
  this.update.apply(this, args);
582
589
  this._trigger('changeDate');
583
590
  this.setValue();
@@ -585,7 +592,7 @@
585
592
  },
586
593
 
587
594
  setUTCDates: function(){
588
- var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
595
+ var args = Array.isArray(arguments[0]) ? arguments[0] : arguments;
589
596
  this.setDates.apply(this, $.map(args, this._utc_to_local));
590
597
  return this;
591
598
  },
@@ -962,7 +969,9 @@
962
969
  endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,
963
970
  todaytxt = dates[this.o.language].today || dates['en'].today || '',
964
971
  cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
965
- titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,
972
+ titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,
973
+ todayDate = UTCToday(),
974
+ titleBtnVisible = (this.o.todayBtn === true || this.o.todayBtn === 'linked') && todayDate >= this.o.startDate && todayDate <= this.o.endDate && !this.weekOfDateIsDisabled(todayDate),
966
975
  tooltip,
967
976
  before;
968
977
  if (isNaN(year) || isNaN(month))
@@ -971,7 +980,7 @@
971
980
  .text(DPGlobal.formatDate(d, titleFormat, this.o.language));
972
981
  this.picker.find('tfoot .today')
973
982
  .text(todaytxt)
974
- .css('display', this.o.todayBtn === true || this.o.todayBtn === 'linked' ? 'table-cell' : 'none');
983
+ .css('display', titleBtnVisible ? 'table-cell' : 'none');
975
984
  this.picker.find('tfoot .clear')
976
985
  .text(cleartxt)
977
986
  .css('display', this.o.clearBtn === true ? 'table-cell' : 'none');
@@ -1035,7 +1044,7 @@
1035
1044
 
1036
1045
  //Check if uniqueSort exists (supported by jquery >=1.12 and >=2.2)
1037
1046
  //Fallback to unique function for older jquery versions
1038
- if ($.isFunction($.uniqueSort)) {
1047
+ if (typeof $.uniqueSort === "function") {
1039
1048
  clsName = $.uniqueSort(clsName);
1040
1049
  } else {
1041
1050
  clsName = $.unique(clsName);
@@ -1151,12 +1160,12 @@
1151
1160
  factor *= 10;
1152
1161
  /* falls through */
1153
1162
  case 1:
1154
- prevIsDisabled = Math.floor(year / factor) * factor < startYear;
1163
+ prevIsDisabled = Math.floor(year / factor) * factor <= startYear;
1155
1164
  nextIsDisabled = Math.floor(year / factor) * factor + factor > endYear;
1156
1165
  break;
1157
1166
  case 0:
1158
- prevIsDisabled = year <= startYear && month < startMonth;
1159
- nextIsDisabled = year >= endYear && month > endMonth;
1167
+ prevIsDisabled = year <= startYear && month <= startMonth;
1168
+ nextIsDisabled = year >= endYear && month >= endMonth;
1160
1169
  break;
1161
1170
  }
1162
1171
 
@@ -1567,12 +1576,12 @@
1567
1576
 
1568
1577
  if (new_date < this.dates[j]){
1569
1578
  // Date being moved earlier/left
1570
- while (j >= 0 && new_date < this.dates[j]){
1579
+ while (j >= 0 && new_date < this.dates[j] && (this.pickers[j].element.val() || "").length > 0) {
1571
1580
  this.pickers[j--].setUTCDate(new_date);
1572
1581
  }
1573
1582
  } else if (new_date > this.dates[k]){
1574
1583
  // Date being moved later/right
1575
- while (k < l && new_date > this.dates[k]){
1584
+ while (k < l && new_date > this.dates[k] && (this.pickers[k].element.val() || "").length > 0) {
1576
1585
  this.pickers[k++].setUTCDate(new_date);
1577
1586
  }
1578
1587
  }
@@ -1686,6 +1695,7 @@
1686
1695
  endDate: Infinity,
1687
1696
  forceParse: true,
1688
1697
  format: 'mm/dd/yyyy',
1698
+ isInline: null,
1689
1699
  keepEmptyValues: false,
1690
1700
  keyboardNavigation: true,
1691
1701
  language: 'en',
@@ -2003,7 +2013,7 @@
2003
2013
 
2004
2014
  /* DATEPICKER VERSION
2005
2015
  * =================== */
2006
- $.fn.datepicker.version = '1.8.0';
2016
+ $.fn.datepicker.version = '1.10.0';
2007
2017
 
2008
2018
  $.fn.datepicker.deprecated = function(msg){
2009
2019
  var console = window.console;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Arabic-Algeria translation for bootstrap-datepicker
3
+ * Rabah Saadi <infosrabah@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['ar-DZ'] = {
7
+ days: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"],
8
+ daysShort: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت", "أحد"],
9
+ daysMin: ["ح", "ن", "ث", "ع", "خ", "ج", "س", "ح"],
10
+ months: ["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويليه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],
11
+ monthsShort: ["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويليه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],
12
+ today: "هذا اليوم",
13
+ rtl: true,
14
+ monthsTitle: "أشهر",
15
+ clear: "إزالة",
16
+ format: "yyyy/mm/dd",
17
+ weekStart: 0
18
+ };
19
+ }(jQuery));
@@ -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));
@@ -4,14 +4,14 @@
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['ca'] = {
7
- days: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"],
8
- daysShort: ["Diu", "Dil", "Dmt", "Dmc", "Dij", "Div", "Dis"],
7
+ days: ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"],
8
+ daysShort: ["dg.", "dl.", "dt.", "dc.", "dj.", "dv.", "ds."],
9
9
  daysMin: ["dg", "dl", "dt", "dc", "dj", "dv", "ds"],
10
- months: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"],
11
- monthsShort: ["Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Oct", "Nov", "Des"],
10
+ months: ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre"],
11
+ monthsShort: ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des."],
12
12
  today: "Avui",
13
13
  monthsTitle: "Mesos",
14
- clear: "Esborrar",
14
+ clear: "Esborra",
15
15
  weekStart: 1,
16
16
  format: "dd/mm/yyyy"
17
17
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Danish translation for bootstrap-datepicker
3
- * Christian Pedersen <http://github.com/chripede>
3
+ * Christian Pedersen <https://github.com/chripede>
4
4
  * Ivan Mylyanyk <https://github.com/imylyanyk>
5
5
  */
6
6
  ;(function($){
@@ -5,7 +5,7 @@
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['de'] = {
7
7
  days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
8
- daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
8
+ daysShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
9
9
  daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
10
10
  months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
11
11
  monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
@@ -0,0 +1,17 @@
1
+ /**
2
+ * American English translation for bootstrap-datepicker
3
+ */
4
+ ;(function($){
5
+ $.fn.datepicker.dates['en-US'] = {
6
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
7
+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
8
+ daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
9
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
10
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
11
+ today: "Today",
12
+ monthsTitle: "Months",
13
+ clear: "Clear",
14
+ weekStart: 0,
15
+ format: "m/d/yyyy"
16
+ };
17
+ }(jQuery));
@@ -8,7 +8,7 @@
8
8
  daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau"],
9
9
  daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la"],
10
10
  months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
11
- monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"],
11
+ monthsShort: ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu"],
12
12
  today: "tänään",
13
13
  clear: "Tyhjennä",
14
14
  weekStart: 1,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Faroese translation for bootstrap-datepicker
3
- * Theodor Johannesen <http://github.com/theodorjohannesen>
3
+ * Theodor Johannesen <https://github.com/theodorjohannesen>
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['fo'] = {
@@ -1,15 +1,19 @@
1
1
  /**
2
2
  * Bahasa translation for bootstrap-datepicker
3
3
  * Azwar Akbar <azwar.akbar@gmail.com>
4
+ * Ardeman <mail@ardeman.com>
4
5
  */
5
6
  ;(function($){
6
7
  $.fn.datepicker.dates['id'] = {
7
8
  days: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"],
8
- daysShort: ["Mgu", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
9
- daysMin: ["Mg", "Sn", "Sl", "Ra", "Ka", "Ju", "Sa"],
9
+ daysShort: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
10
+ daysMin: ["Mg", "Sn", "Sl", "Rb", "Km", "Jm", "Sb"],
10
11
  months: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"],
12
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agt", "Sep", "Okt", "Nov", "Des"],
12
13
  today: "Hari Ini",
13
- clear: "Kosongkan"
14
+ monthsTitle: "Bulan",
15
+ clear: "Kosongkan",
16
+ weekStart: 0,
17
+ format: "dd-mm-yyyy"
14
18
  };
15
19
  }(jQuery));
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Korean translation for bootstrap-datepicker
3
- * Gu Youn <http://github.com/guyoun>
3
+ * Gu Youn <https://github.com/guyoun>
4
4
  *
5
5
  * DEPRECATED: This language code 'kr' is deprecated and will be removed in 2.0.
6
6
  * Korean support is now in a 'ko' translation file to follow the ISO language
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Marathi translation for bootstrap-datepicker
3
+ * Sushant Pimple <pimplesushant@gmail.com>
4
+ */
5
+ ; (function($){
6
+ $.fn.datepicker.dates['mar'] = {
7
+ days: ["रविवार", "सोमवार", "मंगळवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"],
8
+ daysShort: ["रवि", "सोम", "मंगळ", "बुध", "गुरु", "शुक्र", "शनि"],
9
+ daysMin: ["र", "सो", "मं", "बु", "गु", "शु", "श"],
10
+ months: ["जानेवारी", "फेब्रुवारी", "मार्च", "एप्रिल", "मे", "जून", "जुलै", "ऑगस्ट", "सप्टेंबर", "ऑक्टोबर", "नोव्हेंबर", "डिसेंबर"],
11
+ monthsShort: ["जाने.", "फेब्रु.", "मार्च", "एप्रिल", "मे", "जून", "जुलै", "ऑगस्ट", "सप्टें.", "ऑक्टो.", "नोव्हें.", "डिसें."],
12
+ today: "आज",
13
+ monthsTitle: "महीने",
14
+ clear: "हटवा",
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', 'vovember', 'desember'],
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',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Albanian translation for bootstrap-datepicker
3
- * Tomor Pupovci <http://www.github.com/ttomor>
3
+ * Tomor Pupovci <https://www.github.com/ttomor>
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['sq'] = {
@@ -9,7 +9,10 @@
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
- today: "Sot"
12
+ monthsTitle: "Muaj",
13
+ today: "Sot",
14
+ weekStart: 1,
15
+ format: "dd/mm/yyyy",
16
+ clear: "Pastro"
13
17
  };
14
18
  }(jQuery));
15
-
@@ -7,7 +7,7 @@
7
7
  days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"],
8
8
  daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб"],
9
9
  daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
10
- months: ["Cічень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
10
+ months: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
11
11
  monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
12
12
  today: "Сьогодні",
13
13
  clear: "Очистити",
@@ -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: "yyyymmdd",
15
+ format: "yyyy-mm-dd",
15
16
  titleFormat: "yyyy年mm月",
16
17
  weekStart: 1
17
18
  };
@@ -7,12 +7,14 @@
7
7
  $.fn.datepicker.dates['zh-TW'] = {
8
8
  days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
9
9
  daysShort: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
10
- daysMin: ["日", "一", "二", "三", "四", "五", "六"],
10
+ daysMin: ["日", "一", "二", "三", "四", "五", "六"],
11
11
  months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
12
12
  monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
13
13
  today: "今天",
14
- format: "yyyy年mm月dd日",
15
- weekStart: 1,
14
+ monthsTitle: "月份",
15
+ format: "yyyy/mm/dd",
16
+ weekStart: 0,
17
+ titleFormat: "yyyy年mm月",
16
18
  clear: "清除"
17
19
  };
18
20
  }(jQuery));
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.10.0 (https://github.com/uxsolutions/bootstrap-datepicker)
3
3
  *
4
- * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4
+ * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0)
5
5
  */
6
6
 
7
7
  .datepicker {
@@ -473,4 +473,4 @@
473
473
  border: 1px solid #ccc;
474
474
  margin-left: -5px;
475
475
  margin-right: -5px;
476
- }
476
+ }
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.10.0 (https://github.com/uxsolutions/bootstrap-datepicker)
3
3
  *
4
- * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4
+ * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0)
5
5
  */
6
6
 
7
7
  .datepicker {
@@ -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.8.0.1
4
+ version: 1.10.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-30 00:00:00.000000000 Z
11
+ date: 2023-05-20 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
@@ -99,10 +100,12 @@ files:
99
100
  - vendor/assets/javascripts/bootstrap-datepicker/core.js
100
101
  - vendor/assets/javascripts/bootstrap-datepicker/index.js
101
102
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker-en-CA.js
103
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar-DZ.js
102
104
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar-tn.js
103
105
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar.js
104
106
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js
105
107
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js
108
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bm.js
106
109
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bn.js
107
110
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.br.js
108
111
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bs.js
@@ -117,6 +120,7 @@ files:
117
120
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js
118
121
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-IE.js
119
122
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-NZ.js
123
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-US.js
120
124
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-ZA.js
121
125
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.eo.js
122
126
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js
@@ -149,8 +153,8 @@ files:
149
153
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.me.js
150
154
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.mk.js
151
155
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.mn.js
156
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.mr.js
152
157
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js
153
- - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js
154
158
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl-BE.js
155
159
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js
156
160
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.no.js
@@ -175,7 +179,6 @@ files:
175
179
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js
176
180
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tk.js
177
181
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js
178
- - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ua.js
179
182
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js
180
183
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uz-cyrl.js
181
184
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uz-latn.js
@@ -188,7 +191,7 @@ homepage: https://github.com/Nerian/bootstrap-datepicker-rails
188
191
  licenses:
189
192
  - MIT
190
193
  metadata: {}
191
- post_install_message:
194
+ post_install_message:
192
195
  rdoc_options: []
193
196
  require_paths:
194
197
  - lib
@@ -203,9 +206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
206
  - !ruby/object:Gem::Version
204
207
  version: '0'
205
208
  requirements: []
206
- rubyforge_project:
207
- rubygems_version: 2.7.5
208
- signing_key:
209
+ rubygems_version: 3.4.13
210
+ signing_key:
209
211
  specification_version: 4
210
212
  summary: A date picker for Twitter Bootstrap
211
213
  test_files: []
@@ -1,15 +0,0 @@
1
- /**
2
- * Norwegian (bokmål) translation for bootstrap-datepicker
3
- * Fredrik Sundmyhr <http://github.com/fsundmyhr>
4
- */
5
- ;(function($){
6
- $.fn.datepicker.dates['nb'] = {
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", "November", "Desember"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
12
- today: "I Dag",
13
- format: "dd.mm.yyyy"
14
- };
15
- }(jQuery));
@@ -1,15 +0,0 @@
1
- /**
2
- * Ukrainian translation for bootstrap-datepicker
3
- * Igor Polynets
4
- */
5
- ;(function($){
6
- $.fn.datepicker.dates['ua'] = {
7
- days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятница", "Субота", "Неділя"],
8
- daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Нед"],
9
- daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Нд"],
10
- months: ["Cічень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
11
- monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
12
- today: "Сьогодні",
13
- weekStart: 1
14
- };
15
- }(jQuery));