flatpickr 4.5.2.0 → 4.5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -14
  3. data/lib/flatpickr/version.rb +1 -1
  4. data/vendor/assets/javascripts/flatpickr.js +2065 -2106
  5. data/vendor/assets/javascripts/flatpickr/l10n/ar.js +12 -35
  6. data/vendor/assets/javascripts/flatpickr/l10n/at.js +17 -53
  7. data/vendor/assets/javascripts/flatpickr/l10n/be.js +22 -58
  8. data/vendor/assets/javascripts/flatpickr/l10n/bg.js +12 -48
  9. data/vendor/assets/javascripts/flatpickr/l10n/bn.js +12 -48
  10. data/vendor/assets/javascripts/flatpickr/l10n/cat.js +34 -66
  11. data/vendor/assets/javascripts/flatpickr/l10n/cs.js +22 -58
  12. data/vendor/assets/javascripts/flatpickr/l10n/cy.js +23 -75
  13. data/vendor/assets/javascripts/flatpickr/l10n/da.js +18 -54
  14. data/vendor/assets/javascripts/flatpickr/l10n/de.js +17 -53
  15. data/vendor/assets/javascripts/flatpickr/l10n/default.js +35 -66
  16. data/vendor/assets/javascripts/flatpickr/l10n/eo.js +20 -56
  17. data/vendor/assets/javascripts/flatpickr/l10n/es.js +17 -53
  18. data/vendor/assets/javascripts/flatpickr/l10n/et.js +20 -56
  19. data/vendor/assets/javascripts/flatpickr/l10n/fa.js +16 -52
  20. data/vendor/assets/javascripts/flatpickr/l10n/fi.js +16 -52
  21. data/vendor/assets/javascripts/flatpickr/l10n/fr.js +21 -58
  22. data/vendor/assets/javascripts/flatpickr/l10n/gr.js +21 -57
  23. data/vendor/assets/javascripts/flatpickr/l10n/he.js +12 -40
  24. data/vendor/assets/javascripts/flatpickr/l10n/hi.js +12 -48
  25. data/vendor/assets/javascripts/flatpickr/l10n/hr.js +13 -49
  26. data/vendor/assets/javascripts/flatpickr/l10n/hu.js +19 -55
  27. data/vendor/assets/javascripts/flatpickr/l10n/id.js +16 -44
  28. data/vendor/assets/javascripts/flatpickr/l10n/index.js +963 -2805
  29. data/vendor/assets/javascripts/flatpickr/l10n/it.js +20 -54
  30. data/vendor/assets/javascripts/flatpickr/l10n/ja.js +12 -48
  31. data/vendor/assets/javascripts/flatpickr/l10n/km.js +21 -57
  32. data/vendor/assets/javascripts/flatpickr/l10n/ko.js +15 -51
  33. data/vendor/assets/javascripts/flatpickr/l10n/kz.js +22 -58
  34. data/vendor/assets/javascripts/flatpickr/l10n/lt.js +19 -55
  35. data/vendor/assets/javascripts/flatpickr/l10n/lv.js +14 -50
  36. data/vendor/assets/javascripts/flatpickr/l10n/mk.js +15 -51
  37. data/vendor/assets/javascripts/flatpickr/l10n/mn.js +14 -42
  38. data/vendor/assets/javascripts/flatpickr/l10n/ms.js +16 -52
  39. data/vendor/assets/javascripts/flatpickr/l10n/my.js +16 -52
  40. data/vendor/assets/javascripts/flatpickr/l10n/nl.js +21 -58
  41. data/vendor/assets/javascripts/flatpickr/l10n/no.js +20 -56
  42. data/vendor/assets/javascripts/flatpickr/l10n/pa.js +12 -48
  43. data/vendor/assets/javascripts/flatpickr/l10n/pl.js +20 -56
  44. data/vendor/assets/javascripts/flatpickr/l10n/pt.js +13 -49
  45. data/vendor/assets/javascripts/flatpickr/l10n/ro.js +16 -52
  46. data/vendor/assets/javascripts/flatpickr/l10n/ru.js +22 -58
  47. data/vendor/assets/javascripts/flatpickr/l10n/si.js +12 -48
  48. data/vendor/assets/javascripts/flatpickr/l10n/sk.js +17 -53
  49. data/vendor/assets/javascripts/flatpickr/l10n/sl.js +17 -53
  50. data/vendor/assets/javascripts/flatpickr/l10n/sq.js +12 -48
  51. data/vendor/assets/javascripts/flatpickr/l10n/sr.js +15 -51
  52. data/vendor/assets/javascripts/flatpickr/l10n/sv.js +17 -53
  53. data/vendor/assets/javascripts/flatpickr/l10n/th.js +19 -55
  54. data/vendor/assets/javascripts/flatpickr/l10n/tr.js +21 -57
  55. data/vendor/assets/javascripts/flatpickr/l10n/uk.js +13 -49
  56. data/vendor/assets/javascripts/flatpickr/l10n/vn.js +13 -49
  57. data/vendor/assets/javascripts/flatpickr/l10n/zh.js +16 -52
  58. data/vendor/assets/javascripts/flatpickr/plugins/confirmDate/confirmDate.js +32 -35
  59. data/vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js +18 -17
  60. data/vendor/assets/javascripts/flatpickr/plugins/minMaxTimePlugin.js +262 -251
  61. data/vendor/assets/javascripts/flatpickr/plugins/monthSelect/monthSelect.js +46 -63
  62. data/vendor/assets/javascripts/flatpickr/plugins/rangePlugin.js +134 -125
  63. data/vendor/assets/javascripts/flatpickr/plugins/scrollPlugin.js +44 -31
  64. data/vendor/assets/javascripts/flatpickr/plugins/weekSelect/weekSelect.js +63 -66
  65. metadata +3 -4
@@ -5,64 +5,28 @@
5
5
  (factory((global.cs = {})));
6
6
  }(this, (function (exports) { 'use strict';
7
7
 
8
- const fp = typeof window !== "undefined" && window.flatpickr !== undefined
9
- ? window.flatpickr
10
- : {
11
- l10ns: {},
12
- };
13
- const Czech = {
14
- weekdays: {
15
- shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
16
- longhand: [
17
- "Neděle",
18
- "Pondělí",
19
- "Úterý",
20
- "Středa",
21
- "Čtvrtek",
22
- "Pátek",
23
- "Sobota",
24
- ],
25
- },
26
- months: {
27
- shorthand: [
28
- "Led",
29
- "Ún",
30
- "Bře",
31
- "Dub",
32
- "Kvě",
33
- "Čer",
34
- "Čvc",
35
- "Srp",
36
- "Zář",
37
- "Říj",
38
- "Lis",
39
- "Pro",
40
- ],
41
- longhand: [
42
- "Leden",
43
- "Únor",
44
- "Březen",
45
- "Duben",
46
- "Květen",
47
- "Červen",
48
- "Červenec",
49
- "Srpen",
50
- "Září",
51
- "Říjen",
52
- "Listopad",
53
- "Prosinec",
54
- ],
55
- },
56
- firstDayOfWeek: 1,
57
- ordinal: function () {
58
- return ".";
59
- },
60
- rangeSeparator: " do ",
61
- weekAbbreviation: "Týd.",
62
- scrollTitle: "Rolujte pro změnu",
63
- toggleTitle: "Přepnout dopoledne/odpoledne",
64
- amPM: ["dop.", "odp."],
65
- yearAriaLabel: "Rok",
8
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
+ l10ns: {}
10
+ };
11
+ var Czech = {
12
+ weekdays: {
13
+ shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
14
+ longhand: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"]
15
+ },
16
+ months: {
17
+ shorthand: ["Led", "Ún", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
18
+ longhand: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"]
19
+ },
20
+ firstDayOfWeek: 1,
21
+ ordinal: function ordinal() {
22
+ return ".";
23
+ },
24
+ rangeSeparator: " do ",
25
+ weekAbbreviation: "Týd.",
26
+ scrollTitle: "Rolujte pro změnu",
27
+ toggleTitle: "Přepnout dopoledne/odpoledne",
28
+ amPM: ["dop.", "odp."],
29
+ yearAriaLabel: "Rok"
66
30
  };
67
31
  fp.l10ns.cs = Czech;
68
32
  var cs = fp.l10ns;
@@ -5,81 +5,29 @@
5
5
  (factory((global.cy = {})));
6
6
  }(this, (function (exports) { 'use strict';
7
7
 
8
- const fp = typeof window !== "undefined" && window.flatpickr !== undefined
9
- ? window.flatpickr
10
- : {
11
- l10ns: {},
12
- };
13
- const Welsh = {
14
- weekdays: {
15
- shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
16
- longhand: [
17
- "Dydd Sul",
18
- "Dydd Llun",
19
- "Dydd Mawrth",
20
- "Dydd Mercher",
21
- "Dydd Iau",
22
- "Dydd Gwener",
23
- "Dydd Sadwrn",
24
- ],
25
- },
26
- months: {
27
- shorthand: [
28
- "Ion",
29
- "Chwef",
30
- "Maw",
31
- "Ebr",
32
- "Mai",
33
- "Meh",
34
- "Gorff",
35
- "Awst",
36
- "Medi",
37
- "Hyd",
38
- "Tach",
39
- "Rhag",
40
- ],
41
- longhand: [
42
- "Ionawr",
43
- "Chwefror",
44
- "Mawrth",
45
- "Ebrill",
46
- "Mai",
47
- "Mehefin",
48
- "Gorffennaf",
49
- "Awst",
50
- "Medi",
51
- "Hydref",
52
- "Tachwedd",
53
- "Rhagfyr",
54
- ],
55
- },
56
- firstDayOfWeek: 1,
57
- ordinal: nth => {
58
- if (nth === 1)
59
- return "af";
60
- if (nth === 2)
61
- return "ail";
62
- if (nth === 3 || nth === 4)
63
- return "ydd";
64
- if (nth === 5 || nth === 6)
65
- return "ed";
66
- if ((nth >= 7 && nth <= 10) ||
67
- nth == 12 ||
68
- nth == 15 ||
69
- nth == 18 ||
70
- nth == 20)
71
- return "fed";
72
- if (nth == 11 ||
73
- nth == 13 ||
74
- nth == 14 ||
75
- nth == 16 ||
76
- nth == 17 ||
77
- nth == 19)
78
- return "eg";
79
- if (nth >= 21 && nth <= 39)
80
- return "ain";
81
- return "";
82
- },
8
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
+ l10ns: {}
10
+ };
11
+ var Welsh = {
12
+ weekdays: {
13
+ shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
14
+ longhand: ["Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn"]
15
+ },
16
+ months: {
17
+ shorthand: ["Ion", "Chwef", "Maw", "Ebr", "Mai", "Meh", "Gorff", "Awst", "Medi", "Hyd", "Tach", "Rhag"],
18
+ longhand: ["Ionawr", "Chwefror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorffennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"]
19
+ },
20
+ firstDayOfWeek: 1,
21
+ ordinal: function ordinal(nth) {
22
+ if (nth === 1) return "af";
23
+ if (nth === 2) return "ail";
24
+ if (nth === 3 || nth === 4) return "ydd";
25
+ if (nth === 5 || nth === 6) return "ed";
26
+ if (nth >= 7 && nth <= 10 || nth == 12 || nth == 15 || nth == 18 || nth == 20) return "fed";
27
+ if (nth == 11 || nth == 13 || nth == 14 || nth == 16 || nth == 17 || nth == 19) return "eg";
28
+ if (nth >= 21 && nth <= 39) return "ain";
29
+ return "";
30
+ }
83
31
  };
84
32
  fp.l10ns.cy = Welsh;
85
33
  var cy = fp.l10ns;
@@ -5,60 +5,24 @@
5
5
  (factory((global.da = {})));
6
6
  }(this, (function (exports) { 'use strict';
7
7
 
8
- const fp = typeof window !== "undefined" && window.flatpickr !== undefined
9
- ? window.flatpickr
10
- : {
11
- l10ns: {},
12
- };
13
- const Danish = {
14
- weekdays: {
15
- shorthand: ["søn", "man", "tir", "ons", "tors", "fre", "lør"],
16
- longhand: [
17
- "søndag",
18
- "mandag",
19
- "tirsdag",
20
- "onsdag",
21
- "torsdag",
22
- "fredag",
23
- "lørdag",
24
- ],
25
- },
26
- months: {
27
- shorthand: [
28
- "jan",
29
- "feb",
30
- "mar",
31
- "apr",
32
- "maj",
33
- "jun",
34
- "jul",
35
- "aug",
36
- "sep",
37
- "okt",
38
- "nov",
39
- "dec",
40
- ],
41
- longhand: [
42
- "januar",
43
- "februar",
44
- "marts",
45
- "april",
46
- "maj",
47
- "juni",
48
- "juli",
49
- "august",
50
- "september",
51
- "oktober",
52
- "november",
53
- "december",
54
- ],
55
- },
56
- ordinal: () => {
57
- return ".";
58
- },
59
- firstDayOfWeek: 1,
60
- rangeSeparator: " til ",
61
- weekAbbreviation: "uge",
8
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
+ l10ns: {}
10
+ };
11
+ var Danish = {
12
+ weekdays: {
13
+ shorthand: ["søn", "man", "tir", "ons", "tors", "fre", "lør"],
14
+ longhand: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"]
15
+ },
16
+ months: {
17
+ shorthand: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
18
+ longhand: ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"]
19
+ },
20
+ ordinal: function ordinal() {
21
+ return ".";
22
+ },
23
+ firstDayOfWeek: 1,
24
+ rangeSeparator: " til ",
25
+ weekAbbreviation: "uge"
62
26
  };
63
27
  fp.l10ns.da = Danish;
64
28
  var da = fp.l10ns;
@@ -5,59 +5,23 @@
5
5
  (factory((global.de = {})));
6
6
  }(this, (function (exports) { 'use strict';
7
7
 
8
- const fp = typeof window !== "undefined" && window.flatpickr !== undefined
9
- ? window.flatpickr
10
- : {
11
- l10ns: {},
12
- };
13
- const German = {
14
- weekdays: {
15
- shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
16
- longhand: [
17
- "Sonntag",
18
- "Montag",
19
- "Dienstag",
20
- "Mittwoch",
21
- "Donnerstag",
22
- "Freitag",
23
- "Samstag",
24
- ],
25
- },
26
- months: {
27
- shorthand: [
28
- "Jan",
29
- "Feb",
30
- "Mär",
31
- "Apr",
32
- "Mai",
33
- "Jun",
34
- "Jul",
35
- "Aug",
36
- "Sep",
37
- "Okt",
38
- "Nov",
39
- "Dez",
40
- ],
41
- longhand: [
42
- "Januar",
43
- "Februar",
44
- "März",
45
- "April",
46
- "Mai",
47
- "Juni",
48
- "Juli",
49
- "August",
50
- "September",
51
- "Oktober",
52
- "November",
53
- "Dezember",
54
- ],
55
- },
56
- firstDayOfWeek: 1,
57
- weekAbbreviation: "KW",
58
- rangeSeparator: " bis ",
59
- scrollTitle: "Zum Ändern scrollen",
60
- toggleTitle: "Zum Umschalten klicken",
8
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
+ l10ns: {}
10
+ };
11
+ var German = {
12
+ weekdays: {
13
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
14
+ longhand: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
15
+ },
16
+ months: {
17
+ shorthand: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
18
+ longhand: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
19
+ },
20
+ firstDayOfWeek: 1,
21
+ weekAbbreviation: "KW",
22
+ rangeSeparator: " bis ",
23
+ scrollTitle: "Zum Ändern scrollen",
24
+ toggleTitle: "Zum Umschalten klicken"
61
25
  };
62
26
  fp.l10ns.de = German;
63
27
  var de = fp.l10ns;
@@ -5,72 +5,41 @@
5
5
  (factory((global.default = {})));
6
6
  }(this, (function (exports) { 'use strict';
7
7
 
8
- const english = {
9
- weekdays: {
10
- shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
11
- longhand: [
12
- "Sunday",
13
- "Monday",
14
- "Tuesday",
15
- "Wednesday",
16
- "Thursday",
17
- "Friday",
18
- "Saturday",
19
- ],
20
- },
21
- months: {
22
- shorthand: [
23
- "Jan",
24
- "Feb",
25
- "Mar",
26
- "Apr",
27
- "May",
28
- "Jun",
29
- "Jul",
30
- "Aug",
31
- "Sep",
32
- "Oct",
33
- "Nov",
34
- "Dec",
35
- ],
36
- longhand: [
37
- "January",
38
- "February",
39
- "March",
40
- "April",
41
- "May",
42
- "June",
43
- "July",
44
- "August",
45
- "September",
46
- "October",
47
- "November",
48
- "December",
49
- ],
50
- },
51
- daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
52
- firstDayOfWeek: 0,
53
- ordinal: (nth) => {
54
- const s = nth % 100;
55
- if (s > 3 && s < 21)
56
- return "th";
57
- switch (s % 10) {
58
- case 1:
59
- return "st";
60
- case 2:
61
- return "nd";
62
- case 3:
63
- return "rd";
64
- default:
65
- return "th";
66
- }
67
- },
68
- rangeSeparator: " to ",
69
- weekAbbreviation: "Wk",
70
- scrollTitle: "Scroll to increment",
71
- toggleTitle: "Click to toggle",
72
- amPM: ["AM", "PM"],
73
- yearAriaLabel: "Year",
8
+ var english = {
9
+ weekdays: {
10
+ shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
11
+ longhand: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
12
+ },
13
+ months: {
14
+ shorthand: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
15
+ longhand: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
16
+ },
17
+ daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
18
+ firstDayOfWeek: 0,
19
+ ordinal: function ordinal(nth) {
20
+ var s = nth % 100;
21
+ if (s > 3 && s < 21) return "th";
22
+
23
+ switch (s % 10) {
24
+ case 1:
25
+ return "st";
26
+
27
+ case 2:
28
+ return "nd";
29
+
30
+ case 3:
31
+ return "rd";
32
+
33
+ default:
34
+ return "th";
35
+ }
36
+ },
37
+ rangeSeparator: " to ",
38
+ weekAbbreviation: "Wk",
39
+ scrollTitle: "Scroll to increment",
40
+ toggleTitle: "Click to toggle",
41
+ amPM: ["AM", "PM"],
42
+ yearAriaLabel: "Year"
74
43
  };
75
44
 
76
45
  exports.english = english;