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,27 +1,27 @@
1
1
  /* Dutch locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.nl = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.nl = {};
4
4
 
5
- Flatpickr.l10ns.nl.weekdays = {
5
+ flatpickr.l10ns.nl.weekdays = {
6
6
  shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"],
7
7
  longhand: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.nl.months = {
10
+ flatpickr.l10ns.nl.months = {
11
11
  shorthand: ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sept", "okt", "nov", "dec"],
12
12
  longhand: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.nl.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.nl.weekAbbreviation = "wk";
17
- Flatpickr.l10ns.nl.rangeSeparator = " tot ";
18
- Flatpickr.l10ns.nl.scrollTitle = "Scroll voor volgende / vorige";
19
- Flatpickr.l10ns.nl.toggleTitle = "Klik om te wisselen";
15
+ flatpickr.l10ns.nl.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.nl.weekAbbreviation = "wk";
17
+ flatpickr.l10ns.nl.rangeSeparator = " tot ";
18
+ flatpickr.l10ns.nl.scrollTitle = "Scroll voor volgende / vorige";
19
+ flatpickr.l10ns.nl.toggleTitle = "Klik om te wisselen";
20
20
 
21
- Flatpickr.l10ns.nl.ordinal = function (nth) {
21
+ flatpickr.l10ns.nl.ordinal = function (nth) {
22
22
  if (nth === 1 || nth === 8 || nth >= 20) return "ste";
23
23
 
24
24
  return "de";
25
25
  };
26
26
 
27
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
27
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,24 +1,24 @@
1
1
  /* Norwegian locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.no = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.no = {};
4
4
 
5
- Flatpickr.l10ns.no.weekdays = {
5
+ flatpickr.l10ns.no.weekdays = {
6
6
  shorthand: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
7
7
  longhand: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.no.months = {
10
+ flatpickr.l10ns.no.months = {
11
11
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
12
12
  longhand: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.no.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.no.rangeSeparator = " til ";
17
- Flatpickr.l10ns.no.weekAbbreviation = "Uke";
18
- Flatpickr.l10ns.no.scrollTitle = "Scroll for å endre";
19
- Flatpickr.l10ns.no.toggleTitle = "Klikk for å veksle";
15
+ flatpickr.l10ns.no.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.no.rangeSeparator = " til ";
17
+ flatpickr.l10ns.no.weekAbbreviation = "Uke";
18
+ flatpickr.l10ns.no.scrollTitle = "Scroll for å endre";
19
+ flatpickr.l10ns.no.toggleTitle = "Klikk for å veksle";
20
20
 
21
- Flatpickr.l10ns.no.ordinal = function () {
21
+ flatpickr.l10ns.no.ordinal = function () {
22
22
  return ".";
23
23
  };
24
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
24
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,14 +1,14 @@
1
1
  /* Punjabi locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.pa = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.pa = {};
4
4
 
5
- Flatpickr.l10ns.pa.weekdays = {
5
+ flatpickr.l10ns.pa.weekdays = {
6
6
  shorthand: ["ਐਤ", "ਸੋਮ", "ਮੰਗਲ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕਰ", "ਸ਼ਨਿੱਚਰ"],
7
7
  longhand: ["ਐਤਵਾਰ", "ਸੋਮਵਾਰ", "ਮੰਗਲਵਾਰ", "ਬੁੱਧਵਾਰ", "ਵੀਰਵਾਰ", "ਸ਼ੁੱਕਰਵਾਰ", "ਸ਼ਨਿੱਚਰਵਾਰ"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.pa.months = {
10
+ flatpickr.l10ns.pa.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
  /* Polish locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.pl = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.pl = {};
4
4
 
5
- Flatpickr.l10ns.pl.weekdays = {
5
+ flatpickr.l10ns.pl.weekdays = {
6
6
  shorthand: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
7
7
  longhand: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.pl.months = {
10
+ flatpickr.l10ns.pl.months = {
11
11
  shorthand: ["Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"],
12
12
  longhand: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.pl.ordinal = function () {
15
+ flatpickr.l10ns.pl.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,19 +1,17 @@
1
1
  /* Portuguese locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.pt = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.pt = {};
4
4
 
5
- Flatpickr.l10ns.pt.weekdays = {
5
+ flatpickr.l10ns.pt.weekdays = {
6
6
  shorthand: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
7
7
  longhand: ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.pt.months = {
10
+ flatpickr.l10ns.pt.months = {
11
11
  shorthand: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
12
12
  longhand: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.pt.rangeSeparator = " até "
16
-
17
- if (typeof module !== "undefined")
18
- module.exports = Flatpickr.l10ns;
15
+ flatpickr.l10ns.pt.rangeSeparator = " até ";
19
16
 
17
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,23 +1,21 @@
1
1
  /* Romanian locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.ro = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.ro = {};
4
4
 
5
- Flatpickr.l10ns.ro.weekdays = {
5
+ flatpickr.l10ns.ro.weekdays = {
6
6
  shorthand: ["Dum", "Lun", "Mar", "Mie", "Joi", "Vin", "Sam"],
7
7
  longhand: ["Duminică", "Luni", "Marți", "Miercuri", "Joi", "Vineri", "Sâmbătă"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.ro.months = {
10
+ flatpickr.l10ns.ro.months = {
11
11
  shorthand: ["Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", "Sep", "Oct", "Noi", "Dec"],
12
12
  longhand: ["Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.ro.firstDayOfWeek = 1;
15
+ flatpickr.l10ns.ro.firstDayOfWeek = 1;
16
16
 
17
- Flatpickr.l10ns.ro.ordinal = () => {
17
+ flatpickr.l10ns.ro.ordinal = function () {
18
18
  return "";
19
19
  };
20
20
 
21
- if (typeof module !== "undefined")
22
- module.exports = Flatpickr.l10ns;
23
-
21
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,18 +1,16 @@
1
1
  /* Russian locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.ru = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.ru = {};
4
4
 
5
- Flatpickr.l10ns.ru.firstDayOfWeek = 1; // Monday
5
+ flatpickr.l10ns.ru.firstDayOfWeek = 1; // Monday
6
6
 
7
- Flatpickr.l10ns.ru.weekdays = {
7
+ flatpickr.l10ns.ru.weekdays = {
8
8
  shorthand: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
9
9
  longhand: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"]
10
10
  };
11
11
 
12
- Flatpickr.l10ns.ru.months = {
12
+ flatpickr.l10ns.ru.months = {
13
13
  shorthand: ["Янв", "Фев", "Март", "Апр", "Май", "Июнь", "Июль", "Авг", "Сен", "Окт", "Ноя", "Дек"],
14
14
  longhand: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"]
15
15
  };
16
- if (typeof module !== "undefined")
17
- module.exports = Flatpickr.l10ns;
18
-
16
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,17 +1,15 @@
1
1
  /* Sinhala locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.si = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.si = {};
4
4
 
5
- Flatpickr.l10ns.si.weekdays = {
5
+ flatpickr.l10ns.si.weekdays = {
6
6
  shorthand: ["ඉ", "ස", "අ", "බ", "බ්‍ර", "සි", "සෙ"],
7
7
  longhand: ["ඉරිදා", "සඳුදා", "අඟහරුවාදා", "බදාදා", "බ්‍රහස්පතින්දා", "සිකුරාදා", "සෙනසුරාදා"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.si.months = {
10
+ flatpickr.l10ns.si.months = {
11
11
  shorthand: ["ජන", "පෙබ", "මාර්", "අප්‍රේ", "මැයි", "ජුනි", "ජූලි", "අගෝ", "සැප්", "ඔක්", "නොවැ", "දෙසැ"],
12
12
  longhand: ["ජනවාරි", "පෙබරවාරි", "මාර්තු", "අප්‍රේල්", "මැයි", "ජුනි", "ජූලි", "අගෝස්තු", "සැප්තැම්බර්", "ඔක්තෝබර්", "නොවැම්බර්", "දෙසැම්බර්"]
13
13
  };
14
14
 
15
- if (typeof module !== "undefined")
16
- module.exports = Flatpickr.l10ns;
17
-
15
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,21 +1,21 @@
1
1
  /* Slovak locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.sk = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.sk = {};
4
4
 
5
- Flatpickr.l10ns.sk.weekdays = {
5
+ flatpickr.l10ns.sk.weekdays = {
6
6
  shorthand: ["Ned", "Pon", "Ut", "Str", "Štv", "Pia", "Sob"],
7
7
  longhand: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.sk.months = {
10
+ flatpickr.l10ns.sk.months = {
11
11
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Máj", "Jún", "Júl", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
12
  longhand: ["Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.sk.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.sk.rangeSeparator = " do ";
17
- Flatpickr.l10ns.sk.ordinal = function () {
15
+ flatpickr.l10ns.sk.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.sk.rangeSeparator = " do ";
17
+ flatpickr.l10ns.sk.ordinal = function () {
18
18
  return ".";
19
19
  };
20
20
 
21
- if (typeof module !== "undefined") module.exports = Flatpickr.l10ns;
21
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,23 +1,21 @@
1
1
  /* Slovenian locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.sl = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.sl = {};
4
4
 
5
- Flatpickr.l10ns.sl.weekdays = {
5
+ flatpickr.l10ns.sl.weekdays = {
6
6
  shorthand: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"],
7
7
  longhand: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.sl.months = {
10
+ flatpickr.l10ns.sl.months = {
11
11
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
12
12
  longhand: ["Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.sl.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.sl.rangeSeparator = " do ";
17
- Flatpickr.l10ns.sl.ordinal = function () {
15
+ flatpickr.l10ns.sl.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.sl.rangeSeparator = " do ";
17
+ flatpickr.l10ns.sl.ordinal = function () {
18
18
  return ".";
19
19
  };
20
20
 
21
- if (typeof module !== "undefined")
22
- module.exports = Flatpickr.l10ns;
23
-
21
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,16 +1,14 @@
1
1
  /* Albanian locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.sq = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.sq = {};
4
4
 
5
- Flatpickr.l10ns.sq.weekdays = {
5
+ flatpickr.l10ns.sq.weekdays = {
6
6
  shorthand: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"],
7
7
  longhand: ["E Diel", "E Hënë", "E Martë", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.sq.months = {
10
+ flatpickr.l10ns.sq.months = {
11
11
  shorthand: ["Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Kor", "Gus", "Sht", "Tet", "Nën", "Dhj"],
12
12
  longhand: ["Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"]
13
13
  };
14
- if (typeof module !== "undefined")
15
- module.exports = Flatpickr.l10ns;
16
-
14
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,20 +1,19 @@
1
1
  /* Serbian locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.sr = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.sr = {};
4
4
 
5
- Flatpickr.l10ns.sr.weekdays = {
5
+ flatpickr.l10ns.sr.weekdays = {
6
6
  shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", "Ned"],
7
- longhand: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota", "Nedelja"]
7
+ longhand: ["Nedelja", "Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota", "Nedelja"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.sr.months = {
10
+ flatpickr.l10ns.sr.months = {
11
11
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
12
12
  longhand: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.sr.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.sr.weekAbbreviation = "Ned.";
17
- Flatpickr.l10ns.sr.rangeSeparator = " do ";
15
+ flatpickr.l10ns.sr.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.sr.weekAbbreviation = "Ned.";
17
+ flatpickr.l10ns.sr.rangeSeparator = " do ";
18
18
 
19
- if (typeof module !== "undefined")
20
- module.exports = Flatpickr.l10ns;
19
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,23 +1,21 @@
1
1
  /* Swedish locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.sv = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.sv = {};
4
4
 
5
- Flatpickr.l10ns.sv.firstDayOfWeek = 1;
6
- Flatpickr.l10ns.sv.weekAbbreviation = "v";
5
+ flatpickr.l10ns.sv.firstDayOfWeek = 1;
6
+ flatpickr.l10ns.sv.weekAbbreviation = "v";
7
7
 
8
- Flatpickr.l10ns.sv.weekdays = {
8
+ flatpickr.l10ns.sv.weekdays = {
9
9
  shorthand: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"],
10
10
  longhand: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"]
11
11
  };
12
12
 
13
- Flatpickr.l10ns.sv.months = {
13
+ flatpickr.l10ns.sv.months = {
14
14
  shorthand: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
15
15
  longhand: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"]
16
16
  };
17
17
 
18
- Flatpickr.l10ns.sv.ordinal = () => {
18
+ flatpickr.l10ns.sv.ordinal = function () {
19
19
  return ".";
20
20
  };
21
- if (typeof module !== "undefined")
22
- module.exports = Flatpickr.l10ns;
23
-
21
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,25 +1,24 @@
1
1
  /* Thai locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.th = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.th = {};
4
4
 
5
- Flatpickr.l10ns.th.weekdays = {
5
+ flatpickr.l10ns.th.weekdays = {
6
6
  shorthand: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
7
7
  longhand: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"]
8
8
  };
9
9
 
10
- Flatpickr.l10ns.th.months = {
10
+ flatpickr.l10ns.th.months = {
11
11
  shorthand: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
12
12
  longhand: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"]
13
13
  };
14
14
 
15
- Flatpickr.l10ns.th.firstDayOfWeek = 1;
16
- Flatpickr.l10ns.th.rangeSeparator = " ถึง ";
17
- Flatpickr.l10ns.th.scrollTitle = "เลื่อนเพื่อเพิ่มหรือลด";
18
- Flatpickr.l10ns.th.toggleTitle = "คลิกเพื่อเปลี่ยน";
15
+ flatpickr.l10ns.th.firstDayOfWeek = 1;
16
+ flatpickr.l10ns.th.rangeSeparator = " ถึง ";
17
+ flatpickr.l10ns.th.scrollTitle = "เลื่อนเพื่อเพิ่มหรือลด";
18
+ flatpickr.l10ns.th.toggleTitle = "คลิกเพื่อเปลี่ยน";
19
19
 
20
- Flatpickr.l10ns.th.ordinal = () => {
20
+ flatpickr.l10ns.th.ordinal = function () {
21
21
  return "";
22
22
  };
23
23
 
24
- if (typeof module !== "undefined")
25
- module.exports = Flatpickr.l10ns;
24
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,18 +1,16 @@
1
1
  /* Turkish locals for flatpickr */
2
- var Flatpickr = Flatpickr || {l10ns: {}};
3
- Flatpickr.l10ns.tr = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.tr = {};
4
4
 
5
- Flatpickr.l10ns.tr.firstDayOfWeek = 1;
5
+ flatpickr.l10ns.tr.firstDayOfWeek = 1;
6
6
 
7
- Flatpickr.l10ns.tr.weekdays = {
7
+ flatpickr.l10ns.tr.weekdays = {
8
8
  shorthand: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"],
9
9
  longhand: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"]
10
10
  };
11
11
 
12
- Flatpickr.l10ns.tr.months = {
12
+ flatpickr.l10ns.tr.months = {
13
13
  shorthand: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
14
14
  longhand: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"]
15
15
  };
16
- if (typeof module !== "undefined")
17
- module.exports = Flatpickr.l10ns;
18
-
16
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
@@ -1,17 +1,16 @@
1
1
  /* Ukrainian locals for flatpickr */
2
- var Flatpickr = Flatpickr || { l10ns: {} };
3
- Flatpickr.l10ns.uk = {};
2
+ var flatpickr = flatpickr || { l10ns: {} };
3
+ flatpickr.l10ns.uk = {};
4
4
 
5
- Flatpickr.l10ns.uk.firstDayOfWeek = 1;
5
+ flatpickr.l10ns.uk.firstDayOfWeek = 1;
6
6
 
7
- Flatpickr.l10ns.uk.weekdays = {
7
+ flatpickr.l10ns.uk.weekdays = {
8
8
  shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
9
9
  longhand: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"]
10
10
  };
11
11
 
12
- Flatpickr.l10ns.uk.months = {
12
+ flatpickr.l10ns.uk.months = {
13
13
  shorthand: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
14
14
  longhand: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"]
15
15
  };
16
- if (typeof module !== "undefined")
17
- module.exports = Flatpickr.l10ns;
16
+ if (typeof module !== "undefined") module.exports = flatpickr.l10ns;