flatpickr 2.6.1.0 → 2.6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flatpickr/version.rb +1 -1
  3. data/vendor/assets/javascripts/flatpickr.js +50 -45
  4. data/vendor/assets/javascripts/flatpickr/l10n/ar.js +5 -7
  5. data/vendor/assets/javascripts/flatpickr/l10n/bg.js +5 -7
  6. data/vendor/assets/javascripts/flatpickr/l10n/bn.js +5 -7
  7. data/vendor/assets/javascripts/flatpickr/l10n/cat.js +5 -7
  8. data/vendor/assets/javascripts/flatpickr/l10n/cs.js +5 -7
  9. data/vendor/assets/javascripts/flatpickr/l10n/cy.js +18 -28
  10. data/vendor/assets/javascripts/flatpickr/l10n/da.js +5 -7
  11. data/vendor/assets/javascripts/flatpickr/l10n/de.js +9 -9
  12. data/vendor/assets/javascripts/flatpickr/l10n/eo.js +26 -0
  13. data/vendor/assets/javascripts/flatpickr/l10n/es.js +5 -7
  14. data/vendor/assets/javascripts/flatpickr/l10n/et.js +5 -7
  15. data/vendor/assets/javascripts/flatpickr/l10n/fa.js +5 -7
  16. data/vendor/assets/javascripts/flatpickr/l10n/fi.js +5 -7
  17. data/vendor/assets/javascripts/flatpickr/l10n/fr.js +11 -10
  18. data/vendor/assets/javascripts/flatpickr/l10n/gr.js +1 -3
  19. data/vendor/assets/javascripts/flatpickr/l10n/he.js +4 -6
  20. data/vendor/assets/javascripts/flatpickr/l10n/hi.js +5 -7
  21. data/vendor/assets/javascripts/flatpickr/l10n/hr.js +5 -7
  22. data/vendor/assets/javascripts/flatpickr/l10n/hu.js +5 -7
  23. data/vendor/assets/javascripts/flatpickr/l10n/id.js +5 -7
  24. data/vendor/assets/javascripts/flatpickr/l10n/it.js +9 -11
  25. data/vendor/assets/javascripts/flatpickr/l10n/ja.js +5 -7
  26. data/vendor/assets/javascripts/flatpickr/l10n/ko.js +5 -7
  27. data/vendor/assets/javascripts/flatpickr/l10n/lt.js +5 -7
  28. data/vendor/assets/javascripts/flatpickr/l10n/lv.js +5 -7
  29. data/vendor/assets/javascripts/flatpickr/l10n/mk.js +7 -9
  30. data/vendor/assets/javascripts/flatpickr/l10n/ms.js +5 -7
  31. data/vendor/assets/javascripts/flatpickr/l10n/my.js +5 -7
  32. data/vendor/assets/javascripts/flatpickr/l10n/nl.js +11 -10
  33. data/vendor/assets/javascripts/flatpickr/l10n/no.js +7 -7
  34. data/vendor/assets/javascripts/flatpickr/l10n/pa.js +5 -7
  35. data/vendor/assets/javascripts/flatpickr/l10n/pl.js +5 -7
  36. data/vendor/assets/javascripts/flatpickr/l10n/pt.js +6 -8
  37. data/vendor/assets/javascripts/flatpickr/l10n/ro.js +5 -7
  38. data/vendor/assets/javascripts/flatpickr/l10n/ru.js +5 -7
  39. data/vendor/assets/javascripts/flatpickr/l10n/si.js +5 -7
  40. data/vendor/assets/javascripts/flatpickr/l10n/sk.js +21 -0
  41. data/vendor/assets/javascripts/flatpickr/l10n/sl.js +21 -0
  42. data/vendor/assets/javascripts/flatpickr/l10n/sq.js +5 -7
  43. data/vendor/assets/javascripts/flatpickr/l10n/sr.js +7 -9
  44. data/vendor/assets/javascripts/flatpickr/l10n/sv.js +5 -7
  45. data/vendor/assets/javascripts/flatpickr/l10n/th.js +8 -8
  46. data/vendor/assets/javascripts/flatpickr/l10n/tr.js +5 -7
  47. data/vendor/assets/javascripts/flatpickr/l10n/uk.js +5 -7
  48. data/vendor/assets/javascripts/flatpickr/l10n/vn.js +5 -7
  49. data/vendor/assets/javascripts/flatpickr/l10n/zh.js +10 -7
  50. metadata +4 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9da89081235956c80ee50d4c622e8d349d10e05
4
- data.tar.gz: efca85a7b4912c2cb9eddfe675f0e4698344f523
3
+ metadata.gz: a14d1bcc193c01712b87523b8235a7f324958c7f
4
+ data.tar.gz: 85e34ff91dcd207372cbb0b266252fd3a4ff61da
5
5
  SHA512:
6
- metadata.gz: db529a7f7ad9c9e829c0ffb399637446c44901405bfc13da7ac7e9e899012b7ff291ebe38178773ce61cdee9656610c5ab51ce91cebe3413fe279cdb8593ce7f
7
- data.tar.gz: 149c456d96d6cefc3ac4674d752b683c22341a7b3208bf6b6b04cc1f77132011fa74d0aa082a079e55e71dff30d7dc391ce932622a89e50d842c5402eaf85016
6
+ metadata.gz: 5aa6774667ef95d19394c42adf1e935888f1b8a3dfdd895c23d5a39f08dae231aae66a91ee563a767142286a207813458ccfb794eccbb7385fd5c1a3e3331202
7
+ data.tar.gz: 388a5f854122015e6102060f61f457553bd8d06ea17729f511024ad5594aebdf1ce508bfa9138d8cac6af556408c616fef1b08a0c762541a2fe61b8595702bf8
@@ -1,3 +1,3 @@
1
1
  module Flatpickr
2
- VERSION = '2.6.1.0'
2
+ VERSION = '2.6.2.0'
3
3
  end
@@ -2,7 +2,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2
2
 
3
3
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
4
 
5
- /*! flatpickr v2.6.1, @license MIT */
5
+ /*! flatpickr v2.6.2, @license MIT */
6
6
  function Flatpickr(element, config) {
7
7
  var self = this;
8
8
 
@@ -23,10 +23,6 @@ function Flatpickr(element, config) {
23
23
  self.toggle = toggle;
24
24
 
25
25
  function init() {
26
- if (element._flatpickr) element._flatpickr.destroy();
27
-
28
- element._flatpickr = self;
29
-
30
26
  self.element = element;
31
27
  self.instanceConfig = config || {};
32
28
  self.parseDate = Flatpickr.prototype.parseDate.bind(self);
@@ -106,7 +102,7 @@ function Flatpickr(element, config) {
106
102
 
107
103
  var hours = (parseInt(self.hourElement.value, 10) || 0) % (self.amPM ? 12 : 24),
108
104
  minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60,
109
- seconds = self.config.enableSeconds ? parseInt(self.secondElement.value, 10) || 0 : 0;
105
+ seconds = self.config.enableSeconds ? (parseInt(self.secondElement.value, 10) || 0) % 60 : 0;
110
106
 
111
107
  if (self.amPM !== undefined) hours = hours % 12 + 12 * (self.amPM.textContent === "PM");
112
108
 
@@ -455,7 +451,7 @@ function Flatpickr(element, config) {
455
451
 
456
452
  dayElement.dateObj = date;
457
453
  dayElement.$i = i;
458
- dayElement.setAttribute("aria-label", self.formatDate(date, "F j, Y"));
454
+ dayElement.setAttribute("aria-label", self.formatDate(date, self.config.ariaDateFormat));
459
455
 
460
456
  if (compareDates(date, self.now) === 0) {
461
457
  self.todayDateElem = dayElement;
@@ -834,36 +830,35 @@ function Flatpickr(element, config) {
834
830
  triggerEvent("Close");
835
831
  }
836
832
 
837
- function destroy(instance) {
838
- instance = instance || self;
839
-
840
- for (var i = instance._handlers.length; i--;) {
841
- var h = instance._handlers[i];
833
+ function destroy() {
834
+ for (var i = self._handlers.length; i--;) {
835
+ var h = self._handlers[i];
842
836
  h.element.removeEventListener(h.event, h.handler);
843
837
  }
844
838
 
845
- instance._handlers = [];
839
+ self._handlers = [];
846
840
 
847
- if (instance.mobileInput) {
848
- if (instance.mobileInput.parentNode) instance.mobileInput.parentNode.removeChild(instance.mobileInput);
849
- instance.mobileInput = undefined;
850
- } else if (instance.calendarContainer && instance.calendarContainer.parentNode) instance.calendarContainer.parentNode.removeChild(instance.calendarContainer);
841
+ if (self.mobileInput) {
842
+ if (self.mobileInput.parentNode) self.mobileInput.parentNode.removeChild(self.mobileInput);
843
+ self.mobileInput = null;
844
+ } else if (self.calendarContainer && self.calendarContainer.parentNode) self.calendarContainer.parentNode.removeChild(self.calendarContainer);
851
845
 
852
- if (instance.altInput) {
853
- instance.input.type = "text";
854
- if (instance.altInput.parentNode) instance.altInput.parentNode.removeChild(instance.altInput);
855
- instance.altInput = undefined;
846
+ if (self.altInput) {
847
+ self.input.type = "text";
848
+ if (self.altInput.parentNode) self.altInput.parentNode.removeChild(self.altInput);
849
+ delete self.altInput;
856
850
  }
857
851
 
858
- if (instance.input) {
859
- instance.input.type = instance.input._type;
860
- instance.input.classList.remove("flatpickr-input");
861
- instance.input.removeAttribute("readonly");
862
- instance.input.value = "";
852
+ if (self.input) {
853
+ self.input.type = self.input._type;
854
+ self.input.classList.remove("flatpickr-input");
855
+ self.input.removeAttribute("readonly");
856
+ self.input.value = "";
863
857
  }
864
858
 
865
- instance.config = undefined;
866
- instance.input._flatpickr = undefined;
859
+ ["_showTimeInput", "latestSelectedDateObj", "_hideNextMonthArrow", "_hidePrevMonthArrow", "__hideNextMonthArrow", "__hidePrevMonthArrow", "isMobile", "isOpen", "selectedDateElem", "minDateHasTime", "maxDateHasTime", "days", "daysContainer", "_input", "_positionElement", "innerContainer", "rContainer", "monthNav", "todayDateElem", "calendarContainer", "weekdayContainer", "prevMonthNav", "nextMonthNav", "currentMonthElement", "currentYearElement", "navigationCurrentMonth", "selectedDateElem", "config"].forEach(function (k) {
860
+ return delete self[k];
861
+ });
867
862
  }
868
863
 
869
864
  function isCalendarElem(elem) {
@@ -884,7 +879,6 @@ function Flatpickr(element, config) {
884
879
  if (lostFocus) {
885
880
  e.preventDefault();
886
881
  self.close();
887
- self._input.blur();
888
882
 
889
883
  if (self.config.mode === "range" && self.selectedDates.length === 1) {
890
884
  self.clear(false);
@@ -965,18 +959,20 @@ function Flatpickr(element, config) {
965
959
 
966
960
  case "ArrowLeft":
967
961
  case "ArrowRight":
968
- e.preventDefault();
962
+ if (!isTimeObj) {
963
+ e.preventDefault();
969
964
 
970
- if (self.daysContainer) {
971
- var _delta = e.key === "ArrowRight" ? 1 : -1;
965
+ if (self.daysContainer) {
966
+ var _delta = e.key === "ArrowRight" ? 1 : -1;
972
967
 
973
- if (!e.ctrlKey) focusOnDay(e.target.$i, _delta);else {
974
- changeMonth(_delta, true);
975
- afterDayAnim(function () {
976
- focusOnDay(e.target.$i, 0);
977
- });
978
- }
979
- } else if (self.config.enableTime && !isTimeObj) self.hourElement.focus();
968
+ if (!e.ctrlKey) focusOnDay(e.target.$i, _delta);else {
969
+ changeMonth(_delta, true);
970
+ afterDayAnim(function () {
971
+ focusOnDay(e.target.$i, 0);
972
+ });
973
+ }
974
+ } else if (self.config.enableTime && !isTimeObj) self.hourElement.focus();
975
+ }
980
976
 
981
977
  break;
982
978
 
@@ -1001,7 +997,10 @@ function Flatpickr(element, config) {
1001
997
  if (e.target === self.hourElement) {
1002
998
  e.preventDefault();
1003
999
  self.minuteElement.select();
1004
- } else if (e.target === self.minuteElement && self.amPM) {
1000
+ } else if (e.target === self.minuteElement && (self.secondElement || self.amPM)) {
1001
+ e.preventDefault();
1002
+ (self.secondElement || self.amPM).focus();
1003
+ } else if (e.target === self.secondElement) {
1005
1004
  e.preventDefault();
1006
1005
  self.amPM.focus();
1007
1006
  }
@@ -1305,10 +1304,7 @@ function Flatpickr(element, config) {
1305
1304
  self._hidePrevMonthArrow = self._hidePrevMonthArrow || self.minRangeDate > self.days.childNodes[0].dateObj;
1306
1305
 
1307
1306
  self._hideNextMonthArrow = self._hideNextMonthArrow || self.maxRangeDate < new Date(self.currentYear, self.currentMonth + 1, 1);
1308
- } else {
1309
- updateNavigationCurrentMonth();
1310
- self.close();
1311
- }
1307
+ } else updateNavigationCurrentMonth();
1312
1308
  }
1313
1309
 
1314
1310
  triggerEvent("Change");
@@ -1322,7 +1318,7 @@ function Flatpickr(element, config) {
1322
1318
  return self.hourElement.select();
1323
1319
  }, 451);
1324
1320
 
1325
- if (self.config.mode === "single" && !self.config.enableTime) self.close();
1321
+ if (self.config.mode !== "multiple" && !self.config.enableTime && self.config.closeOnSelect) self.close();
1326
1322
  }
1327
1323
 
1328
1324
  function set(option, value) {
@@ -1781,6 +1777,12 @@ Flatpickr.defaultConfig = {
1781
1777
  */
1782
1778
  clickOpens: true,
1783
1779
 
1780
+ /*
1781
+ closes calendar after date selection,
1782
+ unless 'mode' is 'multiple' or enableTime is true
1783
+ */
1784
+ closeOnSelect: true,
1785
+
1784
1786
  // display time picker in 24 hour mode
1785
1787
  time_24hr: false,
1786
1788
 
@@ -1793,6 +1795,9 @@ Flatpickr.defaultConfig = {
1793
1795
  // more date format chars at https://chmln.github.io/flatpickr/#dateformat
1794
1796
  dateFormat: "Y-m-d",
1795
1797
 
1798
+ // date format used in aria-label for days
1799
+ ariaDateFormat: "F j, Y",
1800
+
1796
1801
  // altInput - see https://chmln.github.io/flatpickr/#altinput
1797
1802
  altInput: false,
1798
1803
 
@@ -3,14 +3,12 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.ar = {};
4
4
 
5
5
  Flatpickr.l10ns.ar.weekdays = {
6
- shorthand: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
7
- longhand: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت']
6
+ shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
7
+ longhand: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.ar.months = {
11
- shorthand: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
12
- longhand: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر']
11
+ shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
12
+ longhand: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"]
13
13
  };
14
- if (typeof module !== "undefined") {
15
- module.exports = Flatpickr.l10ns;
16
- }
14
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,14 +3,12 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.bg = {};
4
4
 
5
5
  Flatpickr.l10ns.bg.weekdays = {
6
- shorthand: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
7
- longhand: ['Неделя', 'Понеделник', 'Вторник', 'Сряда', 'Четвъртък', 'Петък', 'Събота']
6
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
7
+ longhand: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.bg.months = {
11
- shorthand: ['Яну', 'Фев', 'Март', 'Апр', 'Май', 'Юни', 'Юли', 'Авг', 'Сеп', 'Окт', 'Ное', 'Дек'],
12
- longhand: ['Януари', 'Февруари', 'Март', 'Април', 'Май', 'Юни', 'Юли', 'Август', 'Септември', 'Октомври', 'Ноември', 'Декември']
11
+ shorthand: ["Яну", "Фев", "Март", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"],
12
+ longhand: ["Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"]
13
13
  };
14
- if (typeof module !== "undefined") {
15
- module.exports = Flatpickr.l10ns;
16
- }
14
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,14 +3,12 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.bn = {};
4
4
 
5
5
  Flatpickr.l10ns.bn.weekdays = {
6
- shorthand: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'],
7
- longhand: ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার']
6
+ shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
7
+ longhand: ["রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার", "শুক্রবার", "শনিবার"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.bn.months = {
11
- shorthand: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগ', 'সেপ্টে', 'অক্টো', 'নভে', 'ডিসে'],
12
- longhand: ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর']
11
+ shorthand: ["জানু", "ফেব্রু", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগ", "সেপ্টে", "অক্টো", "নভে", "ডিসে"],
12
+ longhand: ["জানুয়ারী", "ফেব্রুয়ারী", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগস্ট", "সেপ্টেম্বর", "অক্টোবর", "নভেম্বর", "ডিসেম্বর"]
13
13
  };
14
- if (typeof module !== "undefined") {
15
- module.exports = Flatpickr.l10ns;
16
- }
14
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,13 +3,13 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.cat = {};
4
4
 
5
5
  Flatpickr.l10ns.cat.weekdays = {
6
- shorthand: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
7
- longhand: ['Diumenge', 'Dilluns', 'Dimarts', 'Dimecres', 'Dijous', 'Divendres', 'Dissabte']
6
+ shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
7
+ longhand: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.cat.months = {
11
- shorthand: ['Gen', 'Febr', 'Març', 'Abr', 'Maig', 'Juny', 'Jul', 'Ag', 'Set', 'Oct', 'Nov', 'Des'],
12
- longhand: ['Gener', 'Febrer', 'Març', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre']
11
+ shorthand: ["Gen", "Febr", "Març", "Abr", "Maig", "Juny", "Jul", "Ag", "Set", "Oct", "Nov", "Des"],
12
+ longhand: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"]
13
13
  };
14
14
 
15
15
  Flatpickr.l10ns.cat.ordinal = function (nth) {
@@ -31,6 +31,4 @@ Flatpickr.l10ns.cat.ordinal = function (nth) {
31
31
 
32
32
  Flatpickr.l10ns.cat.firstDayOfWeek = 1;
33
33
 
34
- if (typeof module !== "undefined") {
35
- module.exports = Flatpickr.l10ns;
36
- }
34
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,13 +3,13 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.cs = {};
4
4
 
5
5
  Flatpickr.l10ns.cs.weekdays = {
6
- shorthand: ['Ne', 'Po', 'Út', 'St', 'Čt', '', 'So'],
7
- longhand: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota']
6
+ shorthand: ["Ne", "Po", "Út", "St", "Čt", "", "So"],
7
+ longhand: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.cs.months = {
11
- shorthand: ['Led', 'Ún', 'Bře', 'Dub', 'Kvě', 'Čer', 'Čvc', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'],
12
- longhand: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec']
11
+ shorthand: ["Led", "Ún", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
12
+ longhand: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"]
13
13
  };
14
14
 
15
15
  Flatpickr.l10ns.cs.firstDayOfWeek = 1;
@@ -17,6 +17,4 @@ Flatpickr.l10ns.cs.firstDayOfWeek = 1;
17
17
  Flatpickr.l10ns.cs.ordinal = function () {
18
18
  return ".";
19
19
  };
20
- if (typeof module !== "undefined") {
21
- module.exports = Flatpickr.l10ns;
22
- }
20
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,44 +3,34 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.cy = {};
4
4
 
5
5
  Flatpickr.l10ns.cy.weekdays = {
6
- shorthand: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
7
- longhand: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn']
6
+ shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
7
+ longhand: ["Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.cy.months = {
11
- shorthand: ['Ion', 'Chwef', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gorff', 'Awst', 'Medi', 'Hyd', 'Tach', 'Rhag'],
12
- longhand: ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr']
11
+ shorthand: ["Ion", "Chwef", "Maw", "Ebr", "Mai", "Meh", "Gorff", "Awst", "Medi", "Hyd", "Tach", "Rhag"],
12
+ longhand: ["Ionawr", "Chwefror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorffennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"]
13
13
  };
14
14
 
15
15
  Flatpickr.l10ns.cy.firstDayOfWeek = 1;
16
16
 
17
17
  Flatpickr.l10ns.cy.ordinal = function (nth) {
18
- if (nth === 1) {
19
- return "af";
20
- }
21
- if (nth === 2) {
22
- return "ail";
23
- }
24
- if (nth === 3 || nth === 4) {
25
- return "ydd";
26
- }
27
- if (nth === 5 || nth === 6) {
28
- return "ed";
29
- }
30
- if (nth >= 7 && nth <= 10 || nth == 12 || nth == 15 || nth == 18 || nth == 20) {
31
- return "fed";
32
- }
33
- if (nth == 11 || nth == 13 || nth == 14 || nth == 16 || nth == 17 || nth == 19) {
34
- return "eg";
35
- }
36
- if (nth >= 21 && nth <= 39) {
37
- return "ain";
38
- }
18
+ if (nth === 1) return "af";
19
+
20
+ if (nth === 2) return "ail";
21
+
22
+ if (nth === 3 || nth === 4) return "ydd";
23
+
24
+ if (nth === 5 || nth === 6) return "ed";
25
+
26
+ if (nth >= 7 && nth <= 10 || nth == 12 || nth == 15 || nth == 18 || nth == 20) return "fed";
27
+
28
+ if (nth == 11 || nth == 13 || nth == 14 || nth == 16 || nth == 17 || nth == 19) return "eg";
29
+
30
+ if (nth >= 21 && nth <= 39) return "ain";
39
31
 
40
32
  // Inconclusive.
41
33
  return "";
42
34
  };
43
35
 
44
- if (typeof module !== "undefined") {
45
- module.exports = Flatpickr.l10ns;
46
- }
36
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,18 +3,16 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.da = {};
4
4
 
5
5
  Flatpickr.l10ns.da.weekdays = {
6
- shorthand: ['Søn', 'Man', 'Tir', 'Ons', 'Tors', 'Fre', 'Lør'],
7
- longhand: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag']
6
+ shorthand: ["Søn", "Man", "Tir", "Ons", "Tors", "Fre", "Lør"],
7
+ longhand: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.da.months = {
11
- shorthand: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
12
- longhand: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December']
11
+ shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
+ longhand: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"]
13
13
  };
14
14
 
15
15
  Flatpickr.l10ns.da.ordinal = function () {
16
16
  return ".";
17
17
  };
18
- if (typeof module !== "undefined") {
19
- module.exports = Flatpickr.l10ns;
20
- }
18
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -3,19 +3,19 @@ var Flatpickr = Flatpickr || { l10ns: {} };
3
3
  Flatpickr.l10ns.de = {};
4
4
 
5
5
  Flatpickr.l10ns.de.weekdays = {
6
- shorthand: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
7
- longhand: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']
6
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
7
+ longhand: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
8
8
  };
9
9
 
10
10
  Flatpickr.l10ns.de.months = {
11
- shorthand: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
12
- longhand: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']
11
+ shorthand: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
12
+ longhand: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
13
13
  };
14
14
 
15
15
  Flatpickr.l10ns.de.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.de.weekAbbreviation = 'KW';
17
- Flatpickr.l10ns.de.rangeSeparator = ' bis ';
16
+ Flatpickr.l10ns.de.weekAbbreviation = "KW";
17
+ Flatpickr.l10ns.de.rangeSeparator = " bis ";
18
+ Flatpickr.l10ns.de.scrollTitle = "Zum Ändern scrollen";
19
+ Flatpickr.l10ns.de.toggleTitle = "Zum Umschalten klicken";
18
20
 
19
- if (typeof module !== "undefined") {
20
- module.exports = Flatpickr.l10ns;
21
- }
21
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
@@ -0,0 +1,26 @@
1
+ /* Esperanto locals for flatpickr */
2
+ var Flatpickr = Flatpickr || { l10ns: {} };
3
+ Flatpickr.l10ns.eo = {};
4
+
5
+ Flatpickr.l10ns.eo.firstDayOfWeek = 1;
6
+
7
+ Flatpickr.l10ns.eo.rangeSeparator = " ĝis ";
8
+ Flatpickr.l10ns.eo.weekAbbreviation = "Sem";
9
+ Flatpickr.l10ns.eo.scrollTitle = "Rulumu por pligrandigi la valoron";
10
+ Flatpickr.l10ns.eo.toggleTitle = "Klaku por ŝalti";
11
+
12
+ Flatpickr.l10ns.eo.weekdays = {
13
+ shorthand: ["Dim", "Lun", "Mar", "Mer", "Ĵaŭ", "Ven", "Sab"],
14
+ longhand: ["dimanĉo", "lundo", "mardo", "merkredo", "ĵaŭdo", "vendredo", "sabato"]
15
+ };
16
+
17
+ Flatpickr.l10ns.eo.months = {
18
+ shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aŭg", "Sep", "Okt", "Nov", "Dec"],
19
+ longhand: ["januaro", "februaro", "marto", "aprilo", "majo", "junio", "julio", "aŭgusto", "septembro", "oktobro", "novembro", "decembro"]
20
+ };
21
+
22
+ Flatpickr.l10ns.eo.ordinal = function () {
23
+ return "-a";
24
+ };
25
+
26
+ if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;