trestle 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/trestle/_confirmation.js +23 -0
  3. data/app/assets/javascripts/trestle/_datepicker.js +22 -0
  4. data/app/assets/javascripts/trestle/_errors.js +11 -0
  5. data/app/assets/javascripts/trestle/_form.js +6 -0
  6. data/app/assets/javascripts/trestle/_gallery.js +27 -0
  7. data/app/assets/javascripts/trestle/_select.js +11 -0
  8. data/app/assets/javascripts/trestle/_sidebar.js +52 -0
  9. data/app/assets/javascripts/trestle/_table.js +21 -0
  10. data/app/assets/javascripts/trestle/_tabs.js +13 -0
  11. data/app/assets/javascripts/trestle/_tooltips.js +3 -0
  12. data/app/assets/javascripts/trestle/admin.js +23 -0
  13. data/app/assets/javascripts/trestle/custom.js +4 -0
  14. data/app/assets/stylesheets/trestle/components/_table.scss +6 -0
  15. data/app/helpers/trestle/form_helper.rb +1 -1
  16. data/app/helpers/trestle/format_helper.rb +48 -0
  17. data/app/helpers/trestle/url_helper.rb +2 -8
  18. data/app/views/layouts/trestle/admin.html.erb +3 -3
  19. data/app/views/trestle/admin/index.html.erb +1 -1
  20. data/app/views/trestle/dashboard/index.html.erb +2 -2
  21. data/app/views/trestle/resource/_form.html.erb +1 -1
  22. data/app/views/trestle/resource/edit.html.erb +2 -2
  23. data/app/views/trestle/resource/index.html.erb +1 -1
  24. data/app/views/trestle/resource/new.html.erb +1 -1
  25. data/app/views/trestle/resource/show.html.erb +2 -2
  26. data/app/views/trestle/shared/_sidebar.html.erb +4 -2
  27. data/bower.json +1 -1
  28. data/config/locales/en.yml +16 -2
  29. data/lib/generators/trestle/install/install_generator.rb +3 -3
  30. data/lib/generators/trestle/install/templates/custom.js +7 -0
  31. data/lib/generators/trestle/install/templates/trestle.rb.erb +3 -2
  32. data/lib/trestle/adapters.rb +7 -64
  33. data/lib/trestle/adapters/active_record_adapter.rb +46 -20
  34. data/lib/trestle/adapters/adapter.rb +176 -0
  35. data/lib/trestle/adapters/sequel_adapter.rb +85 -0
  36. data/lib/trestle/admin.rb +1 -1
  37. data/lib/trestle/attribute.rb +14 -37
  38. data/lib/trestle/breadcrumb.rb +6 -0
  39. data/lib/trestle/configuration.rb +1 -1
  40. data/lib/trestle/form/automatic.rb +29 -21
  41. data/lib/trestle/form/builder.rb +4 -0
  42. data/lib/trestle/form/field.rb +2 -2
  43. data/lib/trestle/form/fields/check_box.rb +1 -1
  44. data/lib/trestle/form/fields/collection_select.rb +1 -1
  45. data/lib/trestle/form/fields/date_select.rb +1 -1
  46. data/lib/trestle/form/fields/datetime_select.rb +1 -1
  47. data/lib/trestle/form/fields/grouped_collection_select.rb +1 -1
  48. data/lib/trestle/form/fields/select.rb +2 -2
  49. data/lib/trestle/form/fields/tag_select.rb +1 -2
  50. data/lib/trestle/form/fields/time_select.rb +1 -1
  51. data/lib/trestle/form/fields/time_zone_select.rb +1 -1
  52. data/lib/trestle/resource.rb +11 -7
  53. data/lib/trestle/resource/builder.rb +2 -1
  54. data/lib/trestle/resource/controller.rb +61 -17
  55. data/lib/trestle/scope.rb +1 -1
  56. data/lib/trestle/table/automatic.rb +5 -11
  57. data/lib/trestle/table/builder.rb +1 -0
  58. data/lib/trestle/table/column.rb +24 -43
  59. data/lib/trestle/version.rb +1 -1
  60. data/trestle.gemspec +3 -4
  61. data/vendor/assets/bower_components/trestle/flatpickr/dist/flatpickr.css +51 -26
  62. data/vendor/assets/bower_components/trestle/flatpickr/dist/flatpickr.js +349 -299
  63. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ar.js +5 -5
  64. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/bg.js +5 -5
  65. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/bn.js +5 -5
  66. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/cat.js +7 -7
  67. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/cs.js +7 -7
  68. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/cy.js +7 -7
  69. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/da.js +6 -6
  70. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/de.js +10 -10
  71. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/eo.js +11 -11
  72. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/es.js +7 -7
  73. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/et.js +11 -11
  74. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/fa.js +6 -6
  75. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/fi.js +7 -7
  76. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/fr.js +11 -11
  77. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/gr.js +13 -13
  78. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/he.js +5 -5
  79. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/hi.js +5 -5
  80. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/hr.js +6 -6
  81. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/hu.js +10 -10
  82. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/id.js +7 -7
  83. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/index.js +97 -0
  84. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/it.js +10 -10
  85. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ja.js +5 -5
  86. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ko.js +6 -6
  87. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/lt.js +10 -10
  88. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/lv.js +6 -6
  89. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/mk.js +8 -8
  90. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ms.js +7 -7
  91. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/my.js +7 -7
  92. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/nl.js +11 -11
  93. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/no.js +11 -11
  94. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/pa.js +5 -5
  95. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/pl.js +6 -6
  96. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/pt.js +6 -8
  97. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ro.js +7 -9
  98. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/ru.js +6 -8
  99. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/si.js +5 -7
  100. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/sk.js +8 -8
  101. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/sl.js +8 -10
  102. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/sq.js +5 -7
  103. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/sr.js +9 -10
  104. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/sv.js +8 -10
  105. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/th.js +10 -11
  106. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/tr.js +6 -8
  107. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/uk.js +6 -7
  108. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/vn.js +6 -8
  109. data/vendor/assets/bower_components/trestle/flatpickr/dist/l10n/zh.js +9 -11
  110. metadata +24 -34
  111. data/app/assets/javascripts/trestle/_confirmation.js.coffee +0 -18
  112. data/app/assets/javascripts/trestle/_datepicker.js.coffee +0 -18
  113. data/app/assets/javascripts/trestle/_errors.js.coffee +0 -8
  114. data/app/assets/javascripts/trestle/_form.js.coffee +0 -4
  115. data/app/assets/javascripts/trestle/_gallery.js.coffee +0 -21
  116. data/app/assets/javascripts/trestle/_select.js.coffee +0 -7
  117. data/app/assets/javascripts/trestle/_sidebar.js.coffee +0 -45
  118. data/app/assets/javascripts/trestle/_table.js.coffee +0 -16
  119. data/app/assets/javascripts/trestle/_tabs.js.coffee +0 -9
  120. data/app/assets/javascripts/trestle/_tooltips.js.coffee +0 -2
  121. data/app/assets/javascripts/trestle/admin.js.coffee +0 -22
  122. data/app/assets/javascripts/trestle/custom.js.coffee +0 -4
  123. data/lib/generators/trestle/install/templates/custom.js.coffee +0 -7
@@ -1,14 +1,14 @@
1
1
  /* Arabic locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.ar = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.ar = {};
4
4
 
5
- Flatpickr.l10ns.ar.weekdays = {
5
+ flatpickr.l10ns.ar.weekdays = {
6
6
  shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
7
7
  longhand: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.ar.months = {
10
+ flatpickr.l10ns.ar.months = {
11
11
  shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
12
12
  longhand: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"]
13
13
  };
14
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
14
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,14 +1,14 @@
1
1
  /* Bulgarian locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.bg = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.bg = {};
4
4
 
5
- Flatpickr.l10ns.bg.weekdays = {
5
+ flatpickr.l10ns.bg.weekdays = {
6
6
  shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
7
7
  longhand: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.bg.months = {
10
+ flatpickr.l10ns.bg.months = {
11
11
  shorthand: ["Яну", "Фев", "Март", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"],
12
12
  longhand: ["Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"]
13
13
  };
14
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
14
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,14 +1,14 @@
1
1
  /* Bangla locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.bn = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.bn = {};
4
4
 
5
- Flatpickr.l10ns.bn.weekdays = {
5
+ flatpickr.l10ns.bn.weekdays = {
6
6
  shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
7
7
  longhand: ["রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার", "শুক্রবার", "শনিবার"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.bn.months = {
10
+ flatpickr.l10ns.bn.months = {
11
11
  shorthand: ["জানু", "ফেব্রু", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগ", "সেপ্টে", "অক্টো", "নভে", "ডিসে"],
12
12
  longhand: ["জানুয়ারী", "ফেব্রুয়ারী", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগস্ট", "সেপ্টেম্বর", "অক্টোবর", "নভেম্বর", "ডিসেম্বর"]
13
13
  };
14
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
14
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,18 +1,18 @@
1
1
  /* Catalan locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.cat = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.cat = {};
4
4
 
5
- Flatpickr.l10ns.cat.weekdays = {
5
+ flatpickr.l10ns.cat.weekdays = {
6
6
  shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
7
7
  longhand: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.cat.months = {
10
+ flatpickr.l10ns.cat.months = {
11
11
  shorthand: ["Gen", "Febr", "Març", "Abr", "Maig", "Juny", "Jul", "Ag", "Set", "Oct", "Nov", "Des"],
12
12
  longhand: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.cat.ordinal = function (nth) {
15
+ flatpickr.l10ns.cat.ordinal = function (nth) {
16
16
  var s = nth % 100;
17
17
  if (s > 3 && s < 21) return "è";
18
18
  switch (s % 10) {
@@ -29,6 +29,6 @@ Flatpickr.l10ns.cat.ordinal = function (nth) {
29
29
  }
30
30
  };
31
31
 
32
- Flatpickr.l10ns.cat.firstDayOfWeek = 1;
32
+ flatpickr.l10ns.cat.firstDayOfWeek = 1;
33
33
 
34
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
34
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,20 +1,20 @@
1
1
  /* Czech locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.cs = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.cs = {};
4
4
 
5
- Flatpickr.l10ns.cs.weekdays = {
5
+ flatpickr.l10ns.cs.weekdays = {
6
6
  shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
7
7
  longhand: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.cs.months = {
10
+ flatpickr.l10ns.cs.months = {
11
11
  shorthand: ["Led", "Ún", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
12
12
  longhand: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.cs.firstDayOfWeek = 1;
15
+ flatpickr.l10ns.cs.firstDayOfWeek = 1;
16
16
 
17
- Flatpickr.l10ns.cs.ordinal = function () {
17
+ flatpickr.l10ns.cs.ordinal = function () {
18
18
  return ".";
19
19
  };
20
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
20
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,20 +1,20 @@
1
1
  /* Welsh locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.cy = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.cy = {};
4
4
 
5
- Flatpickr.l10ns.cy.weekdays = {
5
+ flatpickr.l10ns.cy.weekdays = {
6
6
  shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
7
7
  longhand: ["Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.cy.months = {
10
+ flatpickr.l10ns.cy.months = {
11
11
  shorthand: ["Ion", "Chwef", "Maw", "Ebr", "Mai", "Meh", "Gorff", "Awst", "Medi", "Hyd", "Tach", "Rhag"],
12
12
  longhand: ["Ionawr", "Chwefror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorffennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.cy.firstDayOfWeek = 1;
15
+ flatpickr.l10ns.cy.firstDayOfWeek = 1;
16
16
 
17
- Flatpickr.l10ns.cy.ordinal = function (nth) {
17
+ flatpickr.l10ns.cy.ordinal = function (nth) {
18
18
  if (nth === 1) return "af";
19
19
 
20
20
  if (nth === 2) return "ail";
@@ -33,4 +33,4 @@ Flatpickr.l10ns.cy.ordinal = function (nth) {
33
33
  return "";
34
34
  };
35
35
 
36
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
36
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,18 +1,18 @@
1
1
  /* Danish locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.da = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.da = {};
4
4
 
5
- Flatpickr.l10ns.da.weekdays = {
5
+ flatpickr.l10ns.da.weekdays = {
6
6
  shorthand: ["Søn", "Man", "Tir", "Ons", "Tors", "Fre", "Lør"],
7
7
  longhand: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.da.months = {
10
+ flatpickr.l10ns.da.months = {
11
11
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
12
  longhand: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.da.ordinal = function () {
15
+ flatpickr.l10ns.da.ordinal = function () {
16
16
  return ".";
17
17
  };
18
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
18
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,21 +1,21 @@
1
1
  /* German locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.de = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.de = {};
4
4
 
5
- Flatpickr.l10ns.de.weekdays = {
5
+ flatpickr.l10ns.de.weekdays = {
6
6
  shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
7
7
  longhand: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.de.months = {
10
+ flatpickr.l10ns.de.months = {
11
11
  shorthand: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
12
12
  longhand: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.de.firstDayOfWeek = 1;
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";
15
+ flatpickr.l10ns.de.firstDayOfWeek = 1;
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";
20
20
 
21
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
21
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,26 +1,26 @@
1
1
  /* Esperanto locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.eo = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.eo = {};
4
4
 
5
- Flatpickr.l10ns.eo.firstDayOfWeek = 1;
5
+ flatpickr.l10ns.eo.firstDayOfWeek = 1;
6
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";
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
11
 
12
- Flatpickr.l10ns.eo.weekdays = {
12
+ flatpickr.l10ns.eo.weekdays = {
13
13
  shorthand: ["Dim", "Lun", "Mar", "Mer", "Ĵaŭ", "Ven", "Sab"],
14
14
  longhand: ["dimanĉo", "lundo", "mardo", "merkredo", "ĵaŭdo", "vendredo", "sabato"]
15
15
  };
16
16
 
17
- Flatpickr.l10ns.eo.months = {
17
+ flatpickr.l10ns.eo.months = {
18
18
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aŭg", "Sep", "Okt", "Nov", "Dec"],
19
19
  longhand: ["januaro", "februaro", "marto", "aprilo", "majo", "junio", "julio", "aŭgusto", "septembro", "oktobro", "novembro", "decembro"]
20
20
  };
21
21
 
22
- Flatpickr.l10ns.eo.ordinal = function () {
22
+ flatpickr.l10ns.eo.ordinal = function () {
23
23
  return "-a";
24
24
  };
25
25
 
26
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
26
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,20 +1,20 @@
1
1
  /* Spanish locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.es = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.es = {};
4
4
 
5
- Flatpickr.l10ns.es.weekdays = {
5
+ flatpickr.l10ns.es.weekdays = {
6
6
  shorthand: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
7
7
  longhand: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.es.months = {
10
+ flatpickr.l10ns.es.months = {
11
11
  shorthand: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
12
12
  longhand: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.es.ordinal = function () {
15
+ flatpickr.l10ns.es.ordinal = function () {
16
16
  return "º";
17
17
  };
18
18
 
19
- Flatpickr.l10ns.es.firstDayOfWeek = 1;
20
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
19
+ flatpickr.l10ns.es.firstDayOfWeek = 1;
20
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,26 +1,26 @@
1
1
  /* Estonian locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.et = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.et = {};
4
4
 
5
- Flatpickr.l10ns.et.weekdays = {
5
+ flatpickr.l10ns.et.weekdays = {
6
6
  shorthand: ["P", "E", "T", "K", "N", "R", "L"],
7
7
  longhand: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.et.months = {
10
+ flatpickr.l10ns.et.months = {
11
11
  shorthand: ["Jaan", "Veebr", "Märts", "Apr", "Mai", "Juuni", "Juuli", "Aug", "Sept", "Okt", "Nov", "Dets"],
12
12
  longhand: ["Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.et.firstDayOfWeek = 1;
15
+ flatpickr.l10ns.et.firstDayOfWeek = 1;
16
16
 
17
- Flatpickr.l10ns.et.ordinal = function () {
17
+ flatpickr.l10ns.et.ordinal = function () {
18
18
  return ".";
19
19
  };
20
20
 
21
- Flatpickr.l10ns.et.weekAbbreviation = "Näd";
22
- Flatpickr.l10ns.et.rangeSeparator = " kuni ";
23
- Flatpickr.l10ns.et.scrollTitle = "Keri, et suurendada";
24
- Flatpickr.l10ns.et.toggleTitle = "Klõpsa, et vahetada";
21
+ flatpickr.l10ns.et.weekAbbreviation = "Näd";
22
+ flatpickr.l10ns.et.rangeSeparator = " kuni ";
23
+ flatpickr.l10ns.et.scrollTitle = "Keri, et suurendada";
24
+ flatpickr.l10ns.et.toggleTitle = "Klõpsa, et vahetada";
25
25
 
26
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
26
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,18 +1,18 @@
1
1
  /* Farsi (Persian) locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.fa = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.fa = {};
4
4
 
5
- Flatpickr.l10ns.fa.weekdays = {
5
+ flatpickr.l10ns.fa.weekdays = {
6
6
  shorthand: ["یک", "دو", "سه", "چهار", "پنج", "آدینه", "شنبه"],
7
7
  longhand: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنچ‌شنبه", "آدینه", "شنبه"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.fa.months = {
10
+ flatpickr.l10ns.fa.months = {
11
11
  shorthand: ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"],
12
12
  longhand: ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.fa.ordinal = function () {
15
+ flatpickr.l10ns.fa.ordinal = function () {
16
16
  return "";
17
17
  };
18
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
18
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,20 +1,20 @@
1
1
  /* Finnish locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.fi = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.fi = {};
4
4
 
5
- Flatpickr.l10ns.fi.firstDayOfWeek = 1;
5
+ flatpickr.l10ns.fi.firstDayOfWeek = 1;
6
6
 
7
- Flatpickr.l10ns.fi.weekdays = {
7
+ flatpickr.l10ns.fi.weekdays = {
8
8
  shorthand: ["Su", "Ma", "Ti", "Ke", "To", "Pe", "La"],
9
9
  longhand: ["Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai"]
10
10
  };
11
11
 
12
- Flatpickr.l10ns.fi.months = {
12
+ flatpickr.l10ns.fi.months = {
13
13
  shorthand: ["Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä", "Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu"],
14
14
  longhand: ["Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"]
15
15
  };
16
16
 
17
- Flatpickr.l10ns.fi.ordinal = function () {
17
+ flatpickr.l10ns.fi.ordinal = function () {
18
18
  return ".";
19
19
  };
20
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
20
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,27 +1,27 @@
1
1
  /* French locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.fr = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.fr = {};
4
4
 
5
- Flatpickr.l10ns.fr.firstDayOfWeek = 1;
5
+ flatpickr.l10ns.fr.firstDayOfWeek = 1;
6
6
 
7
- Flatpickr.l10ns.fr.weekdays = {
7
+ flatpickr.l10ns.fr.weekdays = {
8
8
  shorthand: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
9
9
  longhand: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"]
10
10
  };
11
11
 
12
- Flatpickr.l10ns.fr.months = {
12
+ flatpickr.l10ns.fr.months = {
13
13
  shorthand: ["Janv", "Févr", "Mars", "Avr", "Mai", "Juin", "Juil", "Août", "Sept", "Oct", "Nov", "Déc"],
14
14
  longhand: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"]
15
15
  };
16
16
 
17
- Flatpickr.l10ns.fr.ordinal = function (nth) {
17
+ flatpickr.l10ns.fr.ordinal = function (nth) {
18
18
  if (nth > 1) return "ème";
19
19
 
20
20
  return "er";
21
21
  };
22
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
22
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
23
23
 
24
- Flatpickr.l10ns.fr.rangeSeparator = " au ";
25
- Flatpickr.l10ns.fr.weekAbbreviation = "Sem";
26
- Flatpickr.l10ns.fr.scrollTitle = "Défiler pour augmenter la valeur";
27
- Flatpickr.l10ns.fr.toggleTitle = "Cliquer pour basculer";
24
+ flatpickr.l10ns.fr.rangeSeparator = " au ";
25
+ flatpickr.l10ns.fr.weekAbbreviation = "Sem";
26
+ flatpickr.l10ns.fr.scrollTitle = "Défiler pour augmenter la valeur";
27
+ flatpickr.l10ns.fr.toggleTitle = "Cliquer pour basculer";
@@ -1,29 +1,29 @@
1
1
  /* Greek locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.gr = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.gr = {};
4
4
 
5
- Flatpickr.l10ns.gr.weekdays = {
5
+ flatpickr.l10ns.gr.weekdays = {
6
6
  shorthand: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"],
7
7
  longhand: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.gr.months = {
10
+ flatpickr.l10ns.gr.months = {
11
11
  shorthand: ["Ιαν", "Φεβ", "Μάρ", "Απρ", "Μάι", "Ιού", "Ιού", "Αύγ", "Σεπ", "Οκτ", "Νοέ", "Δεκ"],
12
12
  longhand: ["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.gr.firstDayOfWeek = 1;
15
+ flatpickr.l10ns.gr.firstDayOfWeek = 1;
16
16
 
17
- Flatpickr.l10ns.gr.ordinal = function () {
17
+ flatpickr.l10ns.gr.ordinal = function () {
18
18
  return "";
19
19
  };
20
20
 
21
- Flatpickr.l10ns.gr.weekAbbreviation = "Εβδ";
22
- Flatpickr.l10ns.gr.rangeSeparator = " έως ";
23
- Flatpickr.l10ns.gr.scrollTitle = "Μετακυλήστε για προσαύξηση";
24
- Flatpickr.l10ns.gr.toggleTitle = "Κάντε κλικ για αλλαγή";
21
+ flatpickr.l10ns.gr.weekAbbreviation = "Εβδ";
22
+ flatpickr.l10ns.gr.rangeSeparator = " έως ";
23
+ flatpickr.l10ns.gr.scrollTitle = "Μετακυλήστε για προσαύξηση";
24
+ flatpickr.l10ns.gr.toggleTitle = "Κάντε κλικ για αλλαγή";
25
25
 
26
- Flatpickr.l10ns.gr.am = "ΠΜ";
27
- Flatpickr.l10ns.gr.pm = "ΜΜ";
26
+ flatpickr.l10ns.gr.am = "ΠΜ";
27
+ flatpickr.l10ns.gr.pm = "ΜΜ";
28
28
 
29
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
29
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;