rd_unobtrusive_date_picker 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/MIT-LICENSE +19 -0
  2. data/Manifest +45 -0
  3. data/README.rdoc +165 -0
  4. data/Rakefile +29 -0
  5. data/about.yml +7 -0
  6. data/init.rb +8 -0
  7. data/install.rb +14 -0
  8. data/lib/12_hour_time.rb +102 -0
  9. data/lib/unobtrusive_date_picker.rb +407 -0
  10. data/public/images/backstripes.gif +0 -0
  11. data/public/images/bg_header.jpg +0 -0
  12. data/public/images/bullet1.gif +0 -0
  13. data/public/images/bullet2.gif +0 -0
  14. data/public/images/cal.gif +0 -0
  15. data/public/images/gradient-e5e5e5-ffffff.gif +0 -0
  16. data/public/javascripts/datepicker.js +1445 -0
  17. data/public/javascripts/lang/af.js +40 -0
  18. data/public/javascripts/lang/ar.js +50 -0
  19. data/public/javascripts/lang/de.js +40 -0
  20. data/public/javascripts/lang/du.js +40 -0
  21. data/public/javascripts/lang/en.js +42 -0
  22. data/public/javascripts/lang/es.js +41 -0
  23. data/public/javascripts/lang/fi.js +40 -0
  24. data/public/javascripts/lang/fr.js +44 -0
  25. data/public/javascripts/lang/gr.js +40 -0
  26. data/public/javascripts/lang/he.js +49 -0
  27. data/public/javascripts/lang/it.js +13 -0
  28. data/public/javascripts/lang/nl.js +40 -0
  29. data/public/javascripts/lang/no.js +40 -0
  30. data/public/javascripts/lang/pt.js +50 -0
  31. data/public/javascripts/lang/ro.js +40 -0
  32. data/public/javascripts/lang/ru.js +40 -0
  33. data/public/javascripts/lang/sp.js +40 -0
  34. data/public/javascripts/lang/sv.js +41 -0
  35. data/public/javascripts/lang/ua.js +40 -0
  36. data/public/stylesheets/datepicker.css +263 -0
  37. data/spec/date_picker_tag_spec.rb +122 -0
  38. data/spec/date_picker_text_field_spec.rb +54 -0
  39. data/spec/datepicker_html_class_options_spec.rb +281 -0
  40. data/spec/spec.opts +12 -0
  41. data/spec/spec_helper.rb +52 -0
  42. data/spec/tag_matcher.rb +142 -0
  43. data/spec/unobtrusive_date_picker_spec.rb +129 -0
  44. data/tasks/datepicker_tasks.rake +17 -0
  45. data/uninstall.rb +12 -0
  46. data/unobtrusive_date_picker.gemspec +30 -0
  47. metadata +116 -0
@@ -0,0 +1,40 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Januarie",
4
+ "Februarie",
5
+ "Maart",
6
+ "April",
7
+ "Mei",
8
+ "Junie",
9
+ "Julie",
10
+ "Augustus",
11
+ "September",
12
+ "Oktober",
13
+ "November",
14
+ "Desember"
15
+ ],
16
+ fullDay:[
17
+ "Maandag",
18
+ "Dinsdag",
19
+ "Woensdag",
20
+ "Donderdag",
21
+ "Vrydag",
22
+ "Saterdag",
23
+ "Sondag"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Vorige maand",
36
+ "Volgende maand",
37
+ "Vorige jaar",
38
+ "Volgende jaar"
39
+ ]
40
+ };
@@ -0,0 +1,50 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "يناير",
4
+ "فبراير",
5
+ "مارس",
6
+ "أبريل",
7
+ "مايو",
8
+ "يونيو",
9
+ "يوليو",
10
+ "أغسطس",
11
+ "سبتمبر",
12
+ "أكتوبر",
13
+ "نوٿمبر",
14
+ "ديسمبر"
15
+ ],
16
+ fullDay:[
17
+ "الاثنين",
18
+ "الثلاثاء",
19
+ "الأربعاء",
20
+ "الخميس",
21
+ "الجمعة",
22
+ "السبت",
23
+ "الأحد"
24
+ ],
25
+
26
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice */
27
+
28
+
29
+ dayAbbr:[
30
+ "الاثنين",
31
+ "الثلاثاء",
32
+ "الأربعاء",
33
+ "الخميس",
34
+ "الجمعة",
35
+ "السبت",
36
+ "الأحد"
37
+ ],
38
+
39
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
40
+
41
+ firstDayOfWeek:0,
42
+ */
43
+
44
+ titles:[
45
+ "الشهر السابق",
46
+ "الشهر المقبل",
47
+ "السنة السابقة",
48
+ "السنة المقبلة"
49
+ ]
50
+ };
@@ -0,0 +1,40 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Januar",
4
+ "Februar",
5
+ "M\u00e4rz",
6
+ "April",
7
+ "Mai",
8
+ "Juni",
9
+ "Juli",
10
+ "August",
11
+ "September",
12
+ "Oktober",
13
+ "November",
14
+ "Dezember"
15
+ ],
16
+ fullDay:[
17
+ "Montag",
18
+ "Dienstag",
19
+ "Mittwoch",
20
+ "Donnerstag",
21
+ "Freitag",
22
+ "Samstag",
23
+ "Sonntag"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Voriger Monat",
36
+ "N\u00e4chst. Monat",
37
+ "Voriges Jahr",
38
+ "N\u00e4chst. Jahr"
39
+ ]
40
+ };
@@ -0,0 +1,40 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Januari",
4
+ "Februari",
5
+ "Maart",
6
+ "April",
7
+ "Mei",
8
+ "Juni",
9
+ "Juli",
10
+ "Augustus",
11
+ "September",
12
+ "Oktober",
13
+ "November",
14
+ "December"
15
+ ],
16
+ fullDay:[
17
+ "Maandag",
18
+ "Dinsdag",
19
+ "Woensdag",
20
+ "Donderdag",
21
+ "Vrijdag",
22
+ "Zaterdag",
23
+ "Zondag"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Vorige Maand",
36
+ "Volgende Maand",
37
+ "Vorig jaar",
38
+ "Volgend jaar"
39
+ ]
40
+ };
@@ -0,0 +1,42 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "January",
4
+ "February",
5
+ "March",
6
+ "April",
7
+ "May",
8
+ "June",
9
+ "July",
10
+ "August",
11
+ "September",
12
+ "October",
13
+ "November",
14
+ "December"
15
+ ],
16
+ fullDay:[
17
+ "Monday",
18
+ "Tuesday",
19
+ "Wednesday",
20
+ "Thursday",
21
+ "Friday",
22
+ "Saturday",
23
+ "Sunday"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Previous month",
36
+ "Next month",
37
+ "Previous year",
38
+ "Next year",
39
+ "Today",
40
+ "Show Calendar"
41
+ ]
42
+ };
@@ -0,0 +1,41 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Enero",
4
+ "Febrero",
5
+ "Marzo",
6
+ "Abril",
7
+ "Mayo",
8
+ "Junio",
9
+ "Julio",
10
+ "Agosto",
11
+ "Septiembre",
12
+ "Octubre",
13
+ "Noviembre",
14
+ "Diciembre"
15
+ ],
16
+ fullDay:[
17
+ "Lunes",
18
+ "Martes",
19
+ "Mi\u00e9rcoles",
20
+ "Jueves",
21
+ "Viernes",
22
+ "S\u00e1bado",
23
+ "Domingo"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Mes Anterior",
36
+ "Mes Siguiente",
37
+ "A\u00f1o anterior",
38
+ "A\u00f1o Siguiente",
39
+ "Hoy"
40
+ ]
41
+ };
@@ -0,0 +1,40 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Tammikuu",
4
+ "Helmikuu",
5
+ "Maaliskuu",
6
+ "Huhtikuu",
7
+ "Toukokuu",
8
+ "Kes\u00e4kuu",
9
+ "Hein\u00e4kuu",
10
+ "Elokuu",
11
+ "Syyskuu",
12
+ "Lokakuu",
13
+ "Marraskuu",
14
+ "Joulukuu"
15
+ ],
16
+ fullDay:[
17
+ "Maanantai",
18
+ "Tiistai",
19
+ "Keskiviikko",
20
+ "Torstai",
21
+ "Perjantai",
22
+ "Lauantai",
23
+ "Sunnuntai"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Edellinen kuukausi",
36
+ "Seuraava kuukausi",
37
+ "Edellinen vuosi",
38
+ "Seuraava vuosi"
39
+ ]
40
+ };
@@ -0,0 +1,44 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Janvier",
4
+ "F\u00E9vrier",
5
+ "Mars",
6
+ "Avril",
7
+ "Mai",
8
+ "Juin",
9
+ "Juillet",
10
+ "Ao\u00FBt",
11
+ "Septembre",
12
+ "Octobre",
13
+ "Novembre",
14
+ "D\u00E9cembre"
15
+ ],
16
+ fullDay:[
17
+ "Lundi",
18
+ "Mardi",
19
+ "Mercredi",
20
+ "Jeudi",
21
+ "Vendredi",
22
+ "Samedi",
23
+ "Dimanche"
24
+ ],
25
+
26
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
27
+
28
+ dayAbbr:[],
29
+ */
30
+
31
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
32
+
33
+ firstDayOfWeek:0,
34
+ */
35
+
36
+ titles:[
37
+ "Mois pr\u00E9cedent",
38
+ "Mois suivant",
39
+ "Ann\u00E9e pr\u00E9cedente",
40
+ "Ann\u00E9e suivante",
41
+ "Aujourd\u2019hui",
42
+ "Voir Calendrier"
43
+ ]
44
+ };
@@ -0,0 +1,40 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "Ιανουάριος",
4
+ "Φεβρουάριος",
5
+ "Μάρτιος",
6
+ "Απρίλιος",
7
+ "Μάιος",
8
+ "Ιούνιος",
9
+ "Ιούλιος",
10
+ "Αύγουστος",
11
+ "Σεπτέμβριος",
12
+ "Οκτώβριος",
13
+ "Νοέμβριος",
14
+ "Δεκέμβριος"
15
+ ],
16
+ fullDay:[
17
+ "Δευτέρα",
18
+ "Τρίτη",
19
+ "Τετάρτη",
20
+ "Πέμπτη",
21
+ "Παρασκευή",
22
+ "Σάββατο",
23
+ "Κυριακή"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+
27
+ dayAbbr:[],
28
+ */
29
+
30
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
31
+
32
+ firstDayOfWeek:0,
33
+ */
34
+ titles:[
35
+ "Προηγούμενος μήνας",
36
+ "Επόμενος μήνας",
37
+ "Προηγούμενη χρόνιά",
38
+ "Επόμενη χρονιά"
39
+ ]
40
+ };
@@ -0,0 +1,49 @@
1
+ var fdLocale = {
2
+ months:[
3
+ "ינואר",
4
+ "פברואר",
5
+ "מרץ",
6
+ "אפריל",
7
+ "מאי",
8
+ "יוני",
9
+ "יולי",
10
+ "אוגוסט",
11
+ "ספטמבר",
12
+ "אוקטובר",
13
+ "נובמבר",
14
+ "דצמבר"
15
+ ],
16
+ fullDay:[
17
+ "שני",
18
+ "שלישי",
19
+ "רביעי",
20
+ "חמישי",
21
+ "שישי",
22
+ "שבת",
23
+ "ראשון"
24
+ ],
25
+ /* Only stipulate the dayAbbr should the first letter of the fullDay not suffice
26
+ */
27
+ dayAbbr:[
28
+ 'ב',
29
+ 'ג',
30
+ 'ד',
31
+ 'ה',
32
+ 'ו',
33
+ 'ש',
34
+ 'א'
35
+ ],
36
+
37
+
38
+ /* Only stipulate the firstDayOfWeek should the first day not be Monday
39
+ */
40
+ firstDayOfWeek:6,
41
+
42
+ titles:[
43
+ "חודש קודם",
44
+ "חודש הבא",
45
+ "שנה קודמת",
46
+ "שנה הבאה",
47
+ "היום"
48
+ ]
49
+ };
@@ -0,0 +1,13 @@
1
+ // italian translation by raf
2
+
3
+ var fdLocale = {
4
+ months:[ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ],
5
+ fullDay:[ "Luned\u00ec", "Marted\u00ec", "Mercoled\u00ec", "Gioved\u00ec", "Venerd\u00ec", "Sabato", "Domenica" ],
6
+ /*
7
+ Only stipulate the dayAbbr should the first letter of the fullDay not suffice
8
+ dayAbbr:[],
9
+ Only stipulate the firstDayOfWeek should the first day not be Monday
10
+ firstDayOfWeek:0,
11
+ */
12
+ titles:[ "Mese Precedente", "Mese Successivo", "Anno Precedente", "Anno Successivo", "Oggi" ]
13
+ };