รวม code แก้ไข OP 3138, 3141, 2736, 2654
This commit is contained in:
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-af.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-af.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Afrikaans localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Renier Pretorius and Ruediger Thiede. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.af = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
|
||||
'Julie','Augustus','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
|
||||
dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
|
||||
dayNamesShort: ['Son', 'Maan', 'Dins', 'Woens', 'Don', 'Vry', 'Sat'],
|
||||
dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.af =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.af;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-am.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-am.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Amharic (አማርኛ) localisation for Gregorian/Julian calendars for jQuery.
|
||||
Leyu Sisay. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.am = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['ጃንዋሪ','ፈብርዋሪ','ማርች','አፕሪል','ሜይ','ጁን',
|
||||
'ጁላይ','ኦገስት','ሴፕቴምበር','ኦክቶበር','ኖቬምበር','ዲሴምበር'],
|
||||
monthNamesShort: ['ጃንዋ', 'ፈብር', 'ማርች', 'አፕሪ', 'ሜይ', 'ጁን',
|
||||
'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክቶ', 'ኖቬም', 'ዲሴም'],
|
||||
dayNames: ['ሰንዴይ', 'መንዴይ', 'ትዩስዴይ', 'ዌንስዴይ', 'ተርሰዴይ', 'ፍራይዴይ', 'ሳተርዴይ'],
|
||||
dayNamesShort: ['ሰንዴ', 'መንዴ', 'ትዩስ', 'ዌንስ', 'ተርሰ', 'ፍራይ', 'ሳተር'],
|
||||
dayNamesMin: ['ሰን', 'መን', 'ትዩ', 'ዌን', 'ተር', 'ፍራ', 'ሳተ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.am =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.am;
|
||||
}
|
||||
})(jQuery);
|
||||
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar-DZ.js
Normal file
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar-DZ.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Algerian (and Tunisian) Arabic localisation for Gregorian/Julian calendars for jQuery.
|
||||
Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['ar-DZ'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
|
||||
'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 6,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['ar-DZ'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['ar-DZ'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar-EG.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar-EG.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Arabic localisation for Gregorian/Julian calendars for jQuery.
|
||||
Mahmoud Khaled -- mahmoud.khaled@badrit.com
|
||||
NOTE: monthNames are the new months names */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['ar-EG'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['يناير', 'فبراير', 'مارس', 'إبريل', 'مايو', 'يونية',
|
||||
'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
|
||||
dayNamesMin: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 6,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['ar-EG'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['ar-EG'];
|
||||
}
|
||||
})(jQuery);
|
||||
27
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar.js
Normal file
27
wwwroot/lib/jquery.calendars/js/jquery.calendars-ar.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Arabic localisation for Gregorian/Julian calendars for jQuery.
|
||||
Khaled Al Horani -- خالد الحوراني -- koko.dw@gmail.com.
|
||||
Updated by Fahad Alqahtani April 2016. */
|
||||
/* NOTE: monthNames are the original months names and they are the Arabic names,
|
||||
not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ar = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران',
|
||||
'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
|
||||
monthNamesShort: 'كانون2_شباط_آذار_نيسان_آذار_حزيران_تموز_آب_أيلول_تشرين1_تشرين2_كانون1'.split('_'),
|
||||
dayNames: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
dayNamesMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
digits: $.calendars.substituteDigits(['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩']),
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ar =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ar;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-az.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-az.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Azerbaijani localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Jamil Najafov (necefov33@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.az = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
|
||||
'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
|
||||
monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
|
||||
'İyul','Avq','Sen','Okt','Noy','Dek'],
|
||||
dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
|
||||
dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
|
||||
dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.az =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.az;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-bg.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-bg.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Bulgarian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Stoyan Kyosev (http://svest.org). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.bg = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
|
||||
'Юли','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
|
||||
'Юли','Авг','Сеп','Окт','Нов','Дек'],
|
||||
dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
|
||||
dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.bg =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.bg;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-bs.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-bs.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Bosnian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Kenan Konjo. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.bs = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
|
||||
'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.bs =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.bs;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ca.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ca.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Catalan localisation for Gregorian/Julian calendars for jQuery.
|
||||
Writers: (joan.leon@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ca = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny',
|
||||
'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Oct','Nov','Des'],
|
||||
dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],
|
||||
dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'],
|
||||
dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ca =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ca;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-cs.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-cs.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Czech localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Tomas Muller (tomas@tomas-muller.net). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.cs = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['leden','únor','březen','duben','květen','červen',
|
||||
'červenec','srpen','září','říjen','listopad','prosinec'],
|
||||
monthNamesShort: ['led','úno','bře','dub','kvě','čer',
|
||||
'čvc','srp','zář','říj','lis','pro'],
|
||||
dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
|
||||
dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
|
||||
dayNamesMin: ['ne','po','út','st','čt','pá','so'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.cs =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.cs;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-da.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-da.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Danish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Jan Christensen ( deletestuff@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.da = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
|
||||
'Juli','August','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
|
||||
dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
|
||||
dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
|
||||
digits: null,
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.da =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.da;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-de-CH.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-de-CH.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Swiss-German localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Douglas Jose & Juerg Meier. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['de-CH'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['de-CH'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['de-CH'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-de.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-de.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
German localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Milian Wolff (mail@milianw.de). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.de = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.de =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.de;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-el.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-el.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Greek localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Alex Cicovic (http://www.alexcicovic.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.el = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
|
||||
'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
|
||||
monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
|
||||
'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
|
||||
dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
|
||||
dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
|
||||
dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.el =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.el;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-AU.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-AU.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
English/Australia localisation for Gregorian/Julian calendars for jQuery.
|
||||
Based on en-GB. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-AU'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['en-AU'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-AU'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-GB.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-GB.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
English/UK localisation for Gregorian/Julian calendars for jQuery.
|
||||
Stuart. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-GB'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['en-GB'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-GB'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-NZ.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-en-NZ.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
English/New Zealand localisation for Gregorian/Julian calendars for jQuery.
|
||||
Based on en-GB. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-NZ'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['en-NZ'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['en-NZ'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-eo.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-eo.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Esperanto localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Olivier M. (olivierweb@ifrance.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.eo = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio',
|
||||
'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aŭg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.eo =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.eo;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es-AR.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es-AR.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Spanish/Argentina localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Esteban Acosta Villafane (esteban.acosta@globant.com) of Globant (http://www.globant.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['es-AR'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
||||
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
||||
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
||||
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['es-AR'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['es-AR'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es-PE.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es-PE.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Spanish/Perú localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Fischer Tirado (fishdev@globant.com) of ASIX (http://www.asixonline.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['es-PE'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
||||
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
||||
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
||||
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mié','Jue','Vie','Sab'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['es-PE'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['es-PE'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-es.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Spanish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Traducido por Vester (xvester@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.es = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
||||
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
||||
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
||||
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.es =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.es;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-et.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-et.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Estonian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Mart Sõmermaa (mrts.pydev at gmail com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.et = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni',
|
||||
'Juuli','August','September','Oktoober','November','Detsember'],
|
||||
monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni',
|
||||
'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'],
|
||||
dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'],
|
||||
dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'],
|
||||
dayNamesMin: ['P','E','T','K','N','R','L'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.et =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.et;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-eu.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-eu.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Basque localisation for Gregorian/Julian calendars for jQuery.
|
||||
Karrikas-ek itzulia (karrikas@karrikas.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.eu = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina',
|
||||
'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'],
|
||||
monthNamesShort: ['Urt','Ots','Mar','Api','Mai','Eka',
|
||||
'Uzt','Abu','Ira','Urr','Aza','Abe'],
|
||||
dayNames: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata'],
|
||||
dayNamesShort: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'],
|
||||
dayNamesMin: ['Ig','As','As','As','Os','Os','La'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.eu =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.eu;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fa.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fa.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Farsi/Persian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Javad Mowlanezhad -- jmowla@gmail.com */
|
||||
(function($) {
|
||||
'use strict';
|
||||
/* jshint -W100 */
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fa = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['فروردین','اردیبهشت','خرداد','تیر','مرداد','شهریور',
|
||||
'مهر','آبان','آذر','دی','بهمن','اسفند'],
|
||||
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
|
||||
dayNames: ['یکشنبه','دوشنبه','سهشنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],
|
||||
dayNamesShort: ['ی','د','س','چ','پ','ج', 'ش'],
|
||||
dayNamesMin: ['ی','د','س','چ','پ','ج', 'ش'],
|
||||
digits: $.calendars.substituteDigits(['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']),
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 6,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.fa =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fa;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fi.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fi.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Finnish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Harri Kilpiö (harrikilpio@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fi = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
|
||||
'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
|
||||
monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
|
||||
'Heinä','Elo','Syys','Loka','Marras','Joulu'],
|
||||
dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'],
|
||||
dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
|
||||
dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.fi =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fi;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fo.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fo.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Faroese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Sverri Mohr Olsen, sverrimo@gmail.com */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fo = {
|
||||
name: 'Gregorianskur',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni',
|
||||
'Juli','August','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Des'],
|
||||
dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'],
|
||||
dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'],
|
||||
digits: null,
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.fo =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fo;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fr-CH.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fr-CH.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Swiss French localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Martin Voelkle (martin.voelkle@e-tc.ch). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['fr-CH'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
|
||||
'Jul','Aoû','Sep','Oct','Nov','Déc'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['fr-CH'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['fr-CH'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fr.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-fr.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
French localisation for Gregorian/Julian calendars for jQuery.
|
||||
Stéphane Nahmani (sholby@sholby.net). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fr = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
|
||||
'Jul','Aoû','Sep','Oct','Nov','Déc'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.fr =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.fr;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-gl.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-gl.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Iniciacion en galego para a extensión 'UI date picker' para jQuery.
|
||||
Traducido por Manuel (McNuel@gmx.net). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.gl = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño',
|
||||
'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ',
|
||||
'Xul','Ago','Set','Out','Nov','Dec'],
|
||||
dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Me','Xo','Ve','Sá'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.gl =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.gl;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-gu.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-gu.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Gujarati (ગુજરાતી) localisation for Gregorian/Julian calendars for jQuery.
|
||||
Naymesh Mistry (naymesh@yahoo.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.gu = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['જાન્યુઆરી','ફેબ્રુઆરી','માર્ચ','એપ્રિલ','મે','જૂન',
|
||||
'જુલાઈ','ઑગસ્ટ','સપ્ટેમ્બર','ઑક્ટોબર','નવેમ્બર','ડિસેમ્બર'],
|
||||
monthNamesShort: ['જાન્યુ','ફેબ્રુ','માર્ચ','એપ્રિલ','મે','જૂન',
|
||||
'જુલાઈ','ઑગસ્ટ','સપ્ટે','ઑક્ટો','નવે','ડિસે'],
|
||||
dayNames: ['રવિવાર','સોમવાર','મંગળવાર','બુધવાર','ગુરુવાર','શુક્રવાર','શનિવાર'],
|
||||
dayNamesShort: ['રવિ','સોમ','મંગળ','બુધ','ગુરુ','શુક્ર','શનિ'],
|
||||
dayNamesMin: ['ર','સો','મં','બુ','ગુ','શુ','શ'],
|
||||
digits: $.calendars.substituteDigits(['૦', '૧', '૨', '૩', '૪', '૫', '૬', '૭', '૮', '૯']),
|
||||
dateFormat: 'dd-M-yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.gu =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.gu;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-he.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-he.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hebrew localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Amir Hardon (ahardon at gmail dot com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.he = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
|
||||
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
|
||||
monthNamesShort: ['1','2','3','4','5','6',
|
||||
'7','8','9','10','11','12'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.he =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.he;
|
||||
}
|
||||
})(jQuery);
|
||||
23
wwwroot/lib/jquery.calendars/js/jquery.calendars-hi-IN.js
Normal file
23
wwwroot/lib/jquery.calendars/js/jquery.calendars-hi-IN.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hindi INDIA localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Pawan Kumar Singh. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['hi-IN'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['जनवरी',' फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून','जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवम्बर', 'दिसम्बर'],
|
||||
monthNamesShort: ['जन', 'फर', 'मार्च','अप्रै', 'मई', 'जून','जुलाई', 'अग', 'सित', 'अक्टू', 'नव', 'दिस'],
|
||||
dayNames: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'],
|
||||
dayNamesShort: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
||||
dayNamesMin: ['र','सो','मं','बु','गु','शु','श'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['hi-IN'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['hi-IN'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hr.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hr.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Croatian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Vjekoslav Nesek. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hr = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj',
|
||||
'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'],
|
||||
monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip',
|
||||
'Srp','Kol','Ruj','Lis','Stu','Pro'],
|
||||
dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy.',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.hr =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hr;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hu.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hu.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hungarian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hu = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
|
||||
'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
|
||||
'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
|
||||
dayNames: ['Vasárnap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
|
||||
dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
|
||||
dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.hu =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hu;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hy.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-hy.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Armenian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Levon Zakaryan (levon.zakaryan@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hy = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս',
|
||||
'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'],
|
||||
monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս',
|
||||
'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'],
|
||||
dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'],
|
||||
dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.hy =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.hy;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-id.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-id.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Indonesian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Deden Fathurahman (dedenf@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.id = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januari','Februari','Maret','April','Mei','Juni',
|
||||
'Juli','Agustus','September','Oktober','Nopember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Agus','Sep','Okt','Nop','Des'],
|
||||
dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'],
|
||||
dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'],
|
||||
dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.id =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.id;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-is.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-is.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Icelandic localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Haukur H. Thorsson (haukur@eskill.is). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.is = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní',
|
||||
'Júlí','Ágúst','September','Október','Nóvember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún',
|
||||
'Júl','Ágú','Sep','Okt','Nóv','Des'],
|
||||
dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'],
|
||||
dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.is =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.is;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-it.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-it.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Italian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Apaella (apaella@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.it = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
|
||||
'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
|
||||
'Lug','Ago','Set','Ott','Nov','Dic'],
|
||||
dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Me','Gio','Ve','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.it =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.it;
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ja.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ja.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Japanese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Kentaro SATO (kentaro@ranvis.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ja = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
monthNamesShort: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
|
||||
dayNamesShort: ['日','月','火','水','木','金','土'],
|
||||
dayNamesMin: ['日','月','火','水','木','金','土'],
|
||||
digits: $.calendars.substituteChineseDigits(
|
||||
['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], ['', '十', '百', '千']),
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ja =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ja;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ka.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ka.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Georgian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Andrei Gorbushkin. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ka = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['იანვარი','თებერვალი','მარტი','აპრილი','მაისი','ივნისი',
|
||||
'ივლისი','აგვისტო','სექტემბერი','ოქტომბერი','ნოემბერი','დეკემბერი'],
|
||||
monthNamesShort: ['იან', 'თებ', 'მარ', 'აპრ', 'მაისი', 'ივნ',
|
||||
'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ'],
|
||||
dayNames: ['კვირა', 'ორშაბათი', 'სამშაბათი', 'ოთხშაბათი', 'ხუთშაბათი', 'პარასკევი', 'შაბათი'],
|
||||
dayNamesShort: ['კვ', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'],
|
||||
dayNamesMin: ['კვ','ორ','სმ','ოთ', 'ხშ', 'პრ','შბ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ka =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ka;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-km.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-km.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Khmer initialisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Sovichet Tep (sovichet.tep@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.km = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['ខែមករា','ខែកុម្ភៈ','ខែមិនា','ខែមេសា','ខែឧសភា','ខែមិថុនា',
|
||||
'ខែកក្កដា','ខែសីហា','ខែកញ្ញា','ខែតុលា','ខែវិច្ឆិកា','ខែធ្នូ'],
|
||||
monthNamesShort: ['មក', 'កុ', 'មិនា', 'មេ', 'ឧស', 'មិថុ',
|
||||
'កក្ក', 'សី', 'កញ្ញា', 'តុលា', 'វិច្ឆិ', 'ធ្នូ'],
|
||||
dayNames: ['ថ្ងៃអាទិត្យ', 'ថ្ងៃចន្ទ', 'ថ្ងៃអង្គារ', 'ថ្ងៃពុធ', 'ថ្ងៃព្រហស្បត្តិ៍', 'ថ្ងៃសុក្រ', 'ថ្ងៃសៅរ៍'],
|
||||
dayNamesShort: ['អា', 'ចន្ទ', 'អង្គ', 'ពុធ', 'ព្រហ', 'សុ', 'សៅរ៍'],
|
||||
dayNamesMin: ['អា','ច','អ','ពុ','ព្រ','សុ','ស'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.km =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.km;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ko.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ko.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Korean localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ko = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
monthNamesShort: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
dayNames: ['일요일','월요일','화요일','수요일','목요일','금요일','토요일'],
|
||||
dayNamesShort: ['일','월','화','수','목','금','토'],
|
||||
dayNamesMin: ['일','월','화','수','목','금','토'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ko =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ko;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-lt.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-lt.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Lithuanian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Arturas Paleicikas <arturas@avalon.lt>. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.lt = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis',
|
||||
'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'],
|
||||
monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir',
|
||||
'Lie','Rugp','Rugs','Spa','Lap','Gru'],
|
||||
dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'],
|
||||
dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'],
|
||||
dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.lt =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.lt;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-lv.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-lv.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Latvian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Arturas Paleicikas <arturas.paleicikas@metasite.net>. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.lv = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs',
|
||||
'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn',
|
||||
'Jūl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'],
|
||||
dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'],
|
||||
dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'],
|
||||
digits: null,
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.lv =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.lv;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-me-ME.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-me-ME.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Montenegrin localisation for Gregorian/Julian calendars for jQuery.
|
||||
By Miloš Milošević - fleka d.o.o. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['me-ME'] = {
|
||||
name: 'Gregorijanski',
|
||||
epochs: ['pne', 'ne'],
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
|
||||
'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun',
|
||||
'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'],
|
||||
dayNames: ['Neđelja', 'Poneđeljak', 'Utorak', 'Srijeda', 'Četvrtak', 'Petak', 'Subota'],
|
||||
dayNamesShort: ['Neđ', 'Pon', 'Uto', 'Sri', 'Čet', 'Pet', 'Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['me-ME'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['me-ME'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-me.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-me.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Montenegrin localisation for Gregorian/Julian calendars for jQuery.
|
||||
By Miloš Milošević - fleka d.o.o. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.me = {
|
||||
name: 'Грегоријански',
|
||||
epochs: ['пне', 'не'],
|
||||
monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун',
|
||||
'Јул','Август','Септембар','Октобар','Новембар','Децембар'],
|
||||
monthNamesShort: ['Јан', 'Феб', 'Мар', 'Апр', 'Мај', 'Јун',
|
||||
'Јул', 'Авг', 'Сеп', 'Окт', 'Нов', 'Дец'],
|
||||
dayNames: ['Неђеља', 'Понеђељак', 'Уторак', 'Сриједа', 'Четвртак', 'Петак', 'Субота'],
|
||||
dayNamesShort: ['Неђ', 'Пон', 'Уто', 'Сри', 'Чет', 'Пет', 'Суб'],
|
||||
dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.me =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.me;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mg.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mg.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Malagasy localisation for Gregorian/Julian calendars for jQuery.
|
||||
Fran Boon (fran@aidiq.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mg = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janoary','Febroary','Martsa','Aprily','Mey','Jona',
|
||||
'Jolay','Aogositra','Septambra','Oktobra','Novambra','Desembra'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mey','Jon',
|
||||
'Jol','Aog','Sep','Okt','Nov','Des'],
|
||||
dayNames: ['Alahady','Alatsinainy','Talata','Alarobia','Alakamisy','Zoma','Sabotsy'],
|
||||
dayNamesShort: ['Alah','Alat','Tal','Alar','Alak','Zom','Sab'],
|
||||
dayNamesMin: ['Ah','At','Ta','Ar','Ak','Zo','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.mg =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mg;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mk.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mk.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Македонски MK localisation for Gregorian/Julian calendars for jQuery.
|
||||
Hajan Selmani (hajan [at] live [dot] com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mk = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Јануари','Февруари','Март','Април','Мај','Јуни',
|
||||
'Јули','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Јан', 'Фев', 'Мар', 'Апр', 'Мај', 'Јун',
|
||||
'Јул', 'Авг', 'Сеп', 'Окт', 'Нов', 'Дек'],
|
||||
dayNames: ['Недела', 'Понеделник', 'Вторник', 'Среда', 'Четврток', 'Петок', 'Сабота'],
|
||||
dayNamesShort: ['Нед', 'Пон', 'Вто', 'Сре', 'Чет', 'Пет', 'Саб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.mk =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mk;
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ml.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ml.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Malayalam localisation for Gregorian/Julian calendars for jQuery.
|
||||
Saji Nediyanchath (saji89@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
/* jshint -W100 */
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ml = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്ച്ച്','ഏപ്രില്','മേയ്','ജൂണ്',
|
||||
'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്','ഒക്ടോബര്','നവംബര്','ഡിസംബര്'],
|
||||
monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്', 'ഏപ്രി', 'മേയ്', 'ജൂണ്',
|
||||
'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'],
|
||||
dayNames: ['ഞായര്', 'തിങ്കള്', 'ചൊവ്വ', 'ബുധന്', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ml =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ml;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ms.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ms.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Malaysian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ms = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januari','Februari','Mac','April','Mei','Jun',
|
||||
'Julai','Ogos','September','Oktober','November','Disember'],
|
||||
monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun',
|
||||
'Jul','Ogo','Sep','Okt','Nov','Dis'],
|
||||
dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'],
|
||||
dayNamesShort: ['Aha','Isn','Sel','Rab','Kha','Jum','Sab'],
|
||||
dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ms =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ms;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mt.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-mt.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Maltese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Chritian Sciberras (uuf6429@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mt = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Jannar','Frar','Marzu','April','Mejju','Ġunju',
|
||||
'Lulju','Awissu','Settembru','Ottubru','Novembru','Diċembru'],
|
||||
monthNamesShort: ['Jan', 'Fra', 'Mar', 'Apr', 'Mej', 'Ġun',
|
||||
'Lul', 'Awi', 'Set', 'Ott', 'Nov', 'Diċ'],
|
||||
dayNames: ['Il-Ħadd', 'It-Tnejn', 'It-Tlieta', 'L-Erbgħa', 'Il-Ħamis', 'Il-Ġimgħa', 'Is-Sibt'],
|
||||
dayNamesShort: ['Ħad', 'Tne', 'Tli', 'Erb', 'Ħam', 'Ġim', 'Sib'],
|
||||
dayNamesMin: ['Ħ','T','T','E','Ħ','Ġ','S'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.mt =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.mt;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-nl-BE.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-nl-BE.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Dutch/Belgian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Mathias Bynens <http://mathiasbynens.be/>. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['nl-BE'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['nl-BE'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['nl-BE'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-nl.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-nl.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Dutch localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Mathias Bynens <http://mathiasbynens.be/>. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.nl = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
digits: null,
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.nl =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.nl;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-no.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-no.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Norwegian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Naimdjon Takhirov (naimdjon@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.no = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Mars','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Des'],
|
||||
dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
|
||||
dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
|
||||
dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.no =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.no;
|
||||
}
|
||||
})(jQuery);
|
||||
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-pa.js
Normal file
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-pa.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Punjabi localisation for Gregorian/Julian calendars for jQuery.
|
||||
Sarbjit Singh (sanbroz@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.pa = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['ਜਨਵਰੀ','ਫ਼ਰਵਰੀ','ਮਾਰਚ','ਅਪ੍ਰੈਲ','ਮਈ','ਜੂਨ',
|
||||
'ਜੁਲਾਈ','ਅਗਸਤ','ਸਤੰਬਰ','ਅਕਤੂਬਰ','ਨਵੰਬਰ','ਦਸੰਬਰ'],
|
||||
monthNamesShort: ['ਜਨ', 'ਫ਼ਰ', 'ਮਾਰ', 'ਅਪ੍ਰੈ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾ', 'ਅਗ', 'ਸਤੰ', 'ਅਕ', 'ਨਵੰ', 'ਦਸੰ'],
|
||||
dayNames: ['ਐਤਵਾਰ', 'ਸੋਮਵਾਰ', 'ਮੰਗਲਵਾਰ', 'ਬੁੱਧਵਾਰ', 'ਵੀਰਵਾਰ', 'ਸ਼ੁੱਕਰਵਾਰ', 'ਸ਼ਨਿੱਚਰਵਾਰ'],
|
||||
dayNamesShort: ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁੱਧ', 'ਵੀਰ', 'ਸ਼ੁੱਕਰ', 'ਸ਼ਨਿੱਚਰ'],
|
||||
dayNamesMin: ['ਐ', 'ਸੋ', 'ਮੰ', 'ਬੁੱ', 'ਵੀ', 'ਸ਼ੁੱ', 'ਸ਼'],
|
||||
digits: $.calendars.substituteDigits(['੦', '੧', '੨', '੩', '੪', '੫', '੬', '੭', '੮', '੯']),
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.pa =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.pa;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-pl.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-pl.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Polish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Jacek Wysocki (jacek.wysocki@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.pl = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec',
|
||||
'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
|
||||
monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze',
|
||||
'Lip','Sie','Wrz','Pa','Lis','Gru'],
|
||||
dayNames: ['Niedziela','Poniedzialek','Wtorek','Środa','Czwartek','Piątek','Sobota'],
|
||||
dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'],
|
||||
dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.pl =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.pl;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-pt-BR.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-pt-BR.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Brazilian Portuguese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Leonildo Costa Silva (leocsilva@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['pt-BR'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
||||
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
||||
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Out','Nov','Dez'],
|
||||
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
||||
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['pt-BR'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['pt-BR'];
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-rm.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-rm.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Romansh localisation for Gregorian/Julian calendars for jQuery.
|
||||
Yvonne Gienal (yvonne.gienal@educa.ch). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.rm = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur',
|
||||
'Fanadur','Avust','Settember','October','November','December'],
|
||||
monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer',
|
||||
'Fan','Avu','Sett','Oct','Nov','Dec'],
|
||||
dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'],
|
||||
dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'],
|
||||
dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.rm =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.rm;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ro.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ro.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Romanian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Edmond L. (ll_edmond@walla.com) and Ionut G. Stan (ionut.g.stan@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ro = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie',
|
||||
'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'],
|
||||
monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun',
|
||||
'Iul', 'Aug', 'Sep', 'Oct', 'Noi', 'Dec'],
|
||||
dayNames: ['Duminică', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
|
||||
dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'],
|
||||
dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ro =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ro;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ru.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ru.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Russian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Andrew Stromnov (stromnov@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ru = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
|
||||
dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ru =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ru;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sk.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sk.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Slovak localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Vojtech Rinik (vojto@hmm.sk). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sk = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Január','Február','Marec','Apríl','Máj','Jún',
|
||||
'Júl','August','September','Október','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún',
|
||||
'Júl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedel\'a','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'],
|
||||
dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.sk =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sk;
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-sl.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-sl.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Slovenian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Jaka Jancar (jaka@kubje.org). */
|
||||
/* c = č, s = š z = ž C = Č S = Š Z = Ž */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sl = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Marec','April','Maj','Junij',
|
||||
'Julij','Avgust','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'],
|
||||
dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.sl =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sl;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sq.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sq.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Albanian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Flakron Bytyqi (flakron@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sq = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor',
|
||||
'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'],
|
||||
monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer',
|
||||
'Kor','Gus','Sht','Tet','Nën','Dhj'],
|
||||
dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'],
|
||||
dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.sq =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sq;
|
||||
}
|
||||
})(jQuery);
|
||||
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-sr-SR.js
Normal file
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-sr-SR.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Serbian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Dejan Dimić. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['sr-SR'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
|
||||
'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['sr-SR'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['sr-SR'];
|
||||
}
|
||||
})(jQuery);
|
||||
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-sr.js
Normal file
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-sr.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Serbian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Dejan Dimić. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sr = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун',
|
||||
'Јул','Август','Септембар','Октобар','Новембар','Децембар'],
|
||||
monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун','Јул','Авг','Сеп','Окт','Нов','Дец'],
|
||||
dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'],
|
||||
dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'],
|
||||
dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.sr =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sr;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sv.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-sv.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Swedish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Anders Ekdahl (anders@nomadiz.se). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sv = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Januari','Februari','Mars','April','Maj','Juni',
|
||||
'Juli','Augusti','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'],
|
||||
dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'],
|
||||
dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.sv =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.sv;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ta.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-ta.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Tamil (UTF-8) localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by S A Sureshkumar (saskumar@live.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ta = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி',
|
||||
'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'],
|
||||
monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி',
|
||||
'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'],
|
||||
dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'],
|
||||
dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'],
|
||||
dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ta =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ta;
|
||||
}
|
||||
})(jQuery);
|
||||
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-te.js
Normal file
24
wwwroot/lib/jquery.calendars/js/jquery.calendars-te.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Telugu INDIA localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Dushyanth Karri. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.te = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['జనవరి', 'ఫిబ్రవరి', 'మార్చ్', 'ఎప్రిల్', 'మె', 'జున్',
|
||||
'జులై', 'ఆగస్ట్', 'సెప్టెంబర్', 'అక్టొబర్', 'నవెంబర్', 'డిసెంబర్'],
|
||||
monthNamesShort: ['जन', 'फर', 'మార్చ్', 'ఎప్రిల్', 'మె', 'జున్', 'జులై', 'ఆగ్', 'సెప్', 'అక్ట్', 'నొవ్', 'డిస్'],
|
||||
dayNames: ['ఆధివారం', 'సొమవారం', 'మంగ్లవారం', 'బుధవారం', 'గురువారం', 'శుక్రవారం', 'శనివారం'],
|
||||
dayNamesShort: ['ఆధి', 'సొమ', 'మంగ్ల', 'బుధ', 'గురు', 'శుక్ర', 'శని'],
|
||||
dayNamesMin: ['ఆ','సొ','మం','బు','గు','శు','శ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.te =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.te;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-th.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-th.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Thai localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by pipo (pipo@sixhead.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.th = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน',
|
||||
'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
|
||||
monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.',
|
||||
'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'],
|
||||
dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'],
|
||||
dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.th =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.th;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-tr.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-tr.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Turkish localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Izzet Emre Erkan (kara@karalamalar.net). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.tr = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran',
|
||||
'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'],
|
||||
monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz',
|
||||
'Tem','Ağu','Eyl','Eki','Kas','Ara'],
|
||||
dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'],
|
||||
dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.tr =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.tr;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-tt.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-tt.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Tatar localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Ирек Хаҗиев (khazirek@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.tt = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Гынвар','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Гыйн','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['якшәмбе','дүшәмбе','сишәмбе','чәршәмбе','пәнҗешәмбе','җомга','шимбә'],
|
||||
dayNamesShort: ['якш','дүш','сиш','чәр','пән','җом','шим'],
|
||||
dayNamesMin: ['Як','Дү','Си','Чә','Пә','Җо','Ши'],
|
||||
digits: null,
|
||||
dateFormat: 'dd.mm.yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.tt =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.tt;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-uk.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-uk.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Ukrainian localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Maxim Drogobitskiy (maxdao@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.uk = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень',
|
||||
'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],
|
||||
monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер',
|
||||
'Лип','Сер','Вер','Жов','Лис','Гру'],
|
||||
dayNames: ['неділя','понеділок','вівторок','середа','четвер','п\'ятниця','субота'],
|
||||
dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.uk =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.uk;
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ur.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-ur.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Urdu localisation for Gregorian/Julian calendars for jQuery.
|
||||
Mansoor Munib -- mansoormunib@gmail.com <http://www.mansoor.co.nr/mansoor.html>
|
||||
Thanks to Habib Ahmed, ObaidUllah Anwar. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ur = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['جنوری','فروری','مارچ','اپریل','مئی','جون',
|
||||
'جولائی','اگست','ستمبر','اکتوبر','نومبر','دسمبر'],
|
||||
monthNamesShort: ['1','2','3','4','5','6',
|
||||
'7','8','9','10','11','12'],
|
||||
dayNames: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'],
|
||||
dayNamesShort: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'],
|
||||
dayNamesMin: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'],
|
||||
digits: $.calendars.substituteDigits(['٠', '١', '٢', '٣', '۴', '۵', '۶', '۷', '٨', '٩']),
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: true
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.ur =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.ur;
|
||||
}
|
||||
})(jQuery);
|
||||
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-vi.js
Normal file
25
wwwroot/lib/jquery.calendars/js/jquery.calendars-vi.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Vietnamese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.vi = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu',
|
||||
'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'],
|
||||
monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6',
|
||||
'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'],
|
||||
dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'],
|
||||
dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions.vi =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions.vi;
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-CN.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-CN.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Simplified Chinese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Cloudream (cloudream@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-CN'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一','二','三','四','五','六',
|
||||
'七','八','九','十','十一','十二'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
digits: $.calendars.substituteChineseDigits(
|
||||
['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], ['', '十', '百', '千']),
|
||||
dateFormat: 'yyyy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['zh-CN'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-CN'];
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-HK.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-HK.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hong Kong Chinese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by SCCY (samuelcychan@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-HK'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一','二','三','四','五','六',
|
||||
'七','八','九','十','十一','十二'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
digits: $.calendars.substituteChineseDigits(
|
||||
['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], ['', '十', '百', '千']),
|
||||
dateFormat: 'dd-mm-yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['zh-HK'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-HK'];
|
||||
}
|
||||
})(jQuery);
|
||||
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-TW.js
Normal file
26
wwwroot/lib/jquery.calendars/js/jquery.calendars-zh-TW.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Traditional Chinese localisation for Gregorian/Julian calendars for jQuery.
|
||||
Written by Ressol (ressol@gmail.com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-TW'] = {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一','二','三','四','五','六',
|
||||
'七','八','九','十','十一','十二'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
digits: $.calendars.substituteChineseDigits(
|
||||
['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], ['', '十', '百', '千']),
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: false
|
||||
};
|
||||
if ($.calendars.calendars.julian) {
|
||||
$.calendars.calendars.julian.prototype.regionalOptions['zh-TW'] =
|
||||
$.calendars.calendars.gregorian.prototype.regionalOptions['zh-TW'];
|
||||
}
|
||||
})(jQuery);
|
||||
3395
wwwroot/lib/jquery.calendars/js/jquery.calendars.all.js
Normal file
3395
wwwroot/lib/jquery.calendars/js/jquery.calendars.all.js
Normal file
File diff suppressed because it is too large
Load Diff
5
wwwroot/lib/jquery.calendars/js/jquery.calendars.all.min.js
vendored
Normal file
5
wwwroot/lib/jquery.calendars/js/jquery.calendars.all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
171
wwwroot/lib/jquery.calendars/js/jquery.calendars.coptic.js
Normal file
171
wwwroot/lib/jquery.calendars/js/jquery.calendars.coptic.js
Normal file
@@ -0,0 +1,171 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Coptic calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
/** Implementation of the Coptic calendar.
|
||||
See <a href="http://en.wikipedia.org/wiki/Coptic_calendar">http://en.wikipedia.org/wiki/Coptic_calendar</a>.
|
||||
See also Calendrical Calculations: The Millennium Edition
|
||||
(<a href="http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml">http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml</a>).
|
||||
@class CopticCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function CopticCalendar(language) {
|
||||
this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
CopticCalendar.prototype = new $.calendars.baseCalendar();
|
||||
|
||||
$.extend(CopticCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof CopticCalendar */
|
||||
name: 'Coptic',
|
||||
/** Julian date of start of Coptic epoch: 29 August 284 CE (Gregorian).
|
||||
@memberof CopticCalendar */
|
||||
jdEpoch: 1825029.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof CopticCalendar */
|
||||
daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof CopticCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof CopticCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof CopticCalendar */
|
||||
firstMonth: 1,
|
||||
/** The minimum day number.
|
||||
@memberof CopticCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof CopticCalendar
|
||||
@property {string} name The calendar name.
|
||||
@property {string[]} epochs The epoch names (before/after year 0).
|
||||
@property {string[]} monthNames The long names of the months of the year.
|
||||
@property {string[]} monthNamesShort The short names of the months of the year.
|
||||
@property {string[]} dayNames The long names of the days of the week.
|
||||
@property {string[]} dayNamesShort The short names of the days of the week.
|
||||
@property {string[]} dayNamesMin The minimal names of the days of the week.
|
||||
@property {string} dateFormat The date format for this calendar.
|
||||
See the options on <a href="BaseCalendar.html#formatDate"><code>formatDate</code></a> for details.
|
||||
@property {number} firstDay The number of the first day of the week, starting at 0.
|
||||
@property {boolean} isRTL <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Coptic',
|
||||
epochs: ['BAM', 'AM'],
|
||||
monthNames: ['Thout', 'Paopi', 'Hathor', 'Koiak', 'Tobi', 'Meshir',
|
||||
'Paremhat', 'Paremoude', 'Pashons', 'Paoni', 'Epip', 'Mesori', 'Pi Kogi Enavot'],
|
||||
monthNamesShort: ['Tho', 'Pao', 'Hath', 'Koi', 'Tob', 'Mesh',
|
||||
'Pat', 'Pad', 'Pash', 'Pao', 'Epi', 'Meso', 'PiK'],
|
||||
dayNames: ['Tkyriaka', 'Pesnau', 'Pshoment', 'Peftoou', 'Ptiou', 'Psoou', 'Psabbaton'],
|
||||
dayNamesShort: ['Tky', 'Pes', 'Psh', 'Pef', 'Pti', 'Pso', 'Psa'],
|
||||
dayNamesMin: ['Tk', 'Pes', 'Psh', 'Pef', 'Pt', 'Pso', 'Psa'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
leapYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero
|
||||
return year % 4 === 3 || year % 4 === -1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of months in a year.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of months.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
monthsInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return 13;
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] the month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The week of the year.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Sunday of this week starting on Sunday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(-checkDate.dayOfWeek(), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if only <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar used. */
|
||||
daysInMonth: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
|
||||
return this.daysPerMonth[date.month() - 1] +
|
||||
(date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} month The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} day The day to examine (if only <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekDay: function(year, month, day) {
|
||||
return (this.dayOfWeek(year, month, day) || 7) < 6;
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof CopticCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] the month to convert (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if only <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
year = date.year();
|
||||
if (year < 0) { year++; } // No year zero
|
||||
return date.day() + (date.month() - 1) * 30 +
|
||||
(year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof CopticCalendar
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
var c = Math.floor(jd) + 0.5 - this.jdEpoch;
|
||||
var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;
|
||||
if (year <= 0) { year--; } // No year zero
|
||||
c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();
|
||||
var month = Math.floor(c / 30) + 1;
|
||||
var day = c - (month - 1) * 30 + 1;
|
||||
return this.newDate(year, month, day);
|
||||
}
|
||||
});
|
||||
|
||||
// Coptic calendar implementation
|
||||
$.calendars.calendars.coptic = CopticCalendar;
|
||||
|
||||
})(jQuery);
|
||||
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.coptic.min.js
vendored
Normal file
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.coptic.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){"use strict";function b(a){this.local=this.regionalOptions[a||""]||this.regionalOptions[""]}b.prototype=new a.calendars.baseCalendar,a.extend(b.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var c=this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear);return b=c.year()+(c.year()<0?1:0),b%4===3||b%4===-1},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear||a.calendars.regionalOptions[""].invalidYear),13},weekOfYear:function(a,b,c){var d=this.newDate(a,b,c);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(b,c){var d=this._validate(b,c,this.minDay,a.calendars.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(13===d.month()&&this.leapYear(d.year())?1:0)},weekDay:function(a,b,c){return(this.dayOfWeek(a,b,c)||7)<6},toJD:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return b=e.year(),b<0&&b++,e.day()+30*(e.month()-1)+365*(b-1)+Math.floor(b/4)+this.jdEpoch-1},fromJD:function(a){var b=Math.floor(a)+.5-this.jdEpoch,c=Math.floor((b-Math.floor((b+366)/1461))/365)+1;c<=0&&c--,b=Math.floor(a)+.5-this.newDate(c,1,1).toJD();var d=Math.floor(b/30)+1,e=b-30*(d-1)+1;return this.newDate(c,d,e)}}),a.calendars.calendars.coptic=b}(jQuery);
|
||||
//# sourceMappingURL=jquery.calendars.coptic.min.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\src\\js\\jquery.calendars.coptic.js"],"names":["$","CopticCalendar","language","this","local","regionalOptions","prototype","calendars","baseCalendar","extend","name","jdEpoch","daysPerMonth","hasYearZero","minMonth","firstMonth","minDay","","epochs","monthNames","monthNamesShort","dayNames","dayNamesShort","dayNamesMin","digits","dateFormat","firstDay","isRTL","leapYear","year","date","_validate","invalidYear","monthsInYear","weekOfYear","month","day","checkDate","newDate","add","dayOfWeek","Math","floor","dayOfYear","daysInMonth","invalidMonth","weekDay","toJD","invalidDate","fromJD","jd","c","coptic","jQuery"],"mappings":"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","file":"jquery.calendars.coptic.min.js"}
|
||||
215
wwwroot/lib/jquery.calendars/js/jquery.calendars.discworld.js
Normal file
215
wwwroot/lib/jquery.calendars/js/jquery.calendars.discworld.js
Normal file
@@ -0,0 +1,215 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Discworld calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2016.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
/** Implementation of the Discworld calendar - Unseen University version.
|
||||
See also <a href="http://wiki.lspace.org/mediawiki/Discworld_calendar">http://wiki.lspace.org/mediawiki/Discworld_calendar</a>
|
||||
and <a href="http://discworld.wikia.com/wiki/Discworld_calendar">http://discworld.wikia.com/wiki/Discworld_calendar</a>.
|
||||
@class DiscworldCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function DiscworldCalendar(language) {
|
||||
this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
DiscworldCalendar.prototype = new $.calendars.baseCalendar();
|
||||
|
||||
$.extend(DiscworldCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof DiscworldCalendar */
|
||||
name: 'Discworld',
|
||||
/** Julian date of start of Discworld epoch: 1 January 0001 CE.
|
||||
@memberof DiscworldCalendar */
|
||||
jdEpoch: 1721425.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof DiscworldCalendar */
|
||||
daysPerMonth: [16, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof DiscworldCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof DiscworldCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof DiscworldCalendar */
|
||||
firstMonth: 1,
|
||||
/** The minimum day number.
|
||||
@memberof DiscworldCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof DiscworldCalendar
|
||||
@property {string} name The calendar name.
|
||||
@property {string[]} epochs The epoch names (before/after year 0).
|
||||
@property {string[]} monthNames The long names of the months of the year.
|
||||
@property {string[]} monthNamesShort The short names of the months of the year.
|
||||
@property {string[]} dayNames The long names of the days of the week.
|
||||
@property {string[]} dayNamesShort The short names of the days of the week.
|
||||
@property {string[]} dayNamesMin The minimal names of the days of the week.
|
||||
@property {string} dateFormat The date format for this calendar.
|
||||
See the options on <a href="BaseCalendar.html#formatDate"><code>formatDate</code></a> for details.
|
||||
@property {number} firstDay The number of the first day of the week, starting at 0.
|
||||
@property {boolean} isRTL <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Discworld',
|
||||
epochs: ['BUC', 'UC'],
|
||||
monthNames: ['Ick', 'Offle', 'February', 'March', 'April', 'May', 'June',
|
||||
'Grune', 'August', 'Spune', 'Sektober', 'Ember', 'December'],
|
||||
monthNamesShort: ['Ick', 'Off', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Gru', 'Aug', 'Spu', 'Sek', 'Emb', 'Dec'],
|
||||
dayNames: ['Sunday', 'Octeday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Oct', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su', 'Oc', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 2,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
leapYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return false;
|
||||
},
|
||||
|
||||
/** Retrieve the number of months in a year.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of months.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
monthsInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return 13;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a year.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of days.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
daysInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return 400;
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The week of the year.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Sunday of this week starting on Sunday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(-checkDate.dayOfWeek(), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 8) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if only <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar used. */
|
||||
daysInMonth: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
|
||||
return this.daysPerMonth[date.month() - 1];
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a week.
|
||||
@memberof DiscworldCalendar
|
||||
@return {number} The number of days. */
|
||||
daysInWeek: function() {
|
||||
return 8;
|
||||
},
|
||||
|
||||
/** Retrieve the day of the week for a date.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The day of the week: 0 to number of days - 1.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
dayOfWeek: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
return (date.day() + 1) % 8;
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekDay: function(year, month, day) {
|
||||
var dow = this.dayOfWeek(year, month, day);
|
||||
return (dow >= 2 && dow <= 6);
|
||||
},
|
||||
|
||||
/** Retrieve additional information about a date.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {object} Additional information - contents depends on calendar.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
extraInfo: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
return {century: centuries[Math.floor((date.year() - 1) / 100) + 1] || ''};
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof DiscworldCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if only <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
year = date.year() + (date.year() < 0 ? 1 : 0);
|
||||
month = date.month();
|
||||
day = date.day();
|
||||
return day + (month > 1 ? 16 : 0) + (month > 2 ? (month - 2) * 32 : 0) +
|
||||
(year - 1) * 400 + this.jdEpoch - 1;
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof DiscworldCalendar
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
jd = Math.floor(jd + 0.5) - Math.floor(this.jdEpoch) - 1;
|
||||
var year = Math.floor(jd / 400) + 1;
|
||||
jd -= (year - 1) * 400;
|
||||
jd += (jd > 15 ? 16 : 0);
|
||||
var month = Math.floor(jd / 32) + 1;
|
||||
var day = jd - (month - 1) * 32 + 1;
|
||||
return this.newDate(year <= 0 ? year - 1 : year, month, day);
|
||||
}
|
||||
});
|
||||
|
||||
// Names of the centuries
|
||||
var centuries = {
|
||||
20: 'Fruitbat',
|
||||
21: 'Anchovy'
|
||||
};
|
||||
|
||||
// Discworld calendar implementation
|
||||
$.calendars.calendars.discworld = DiscworldCalendar;
|
||||
|
||||
})(jQuery);
|
||||
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.discworld.min.js
vendored
Normal file
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.discworld.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){"use strict";function b(a){this.local=this.regionalOptions[a||""]||this.regionalOptions[""]}b.prototype=new a.calendars.baseCalendar,a.extend(b.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear),!1},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear),13},daysInYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear),400},weekOfYear:function(a,b,c){var d=this.newDate(a,b,c);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/8)+1},daysInMonth:function(b,c){var d=this._validate(b,c,this.minDay,a.calendars.local.invalidMonth);return this.daysPerMonth[d.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return(e.day()+1)%8},weekDay:function(a,b,c){var d=this.dayOfWeek(a,b,c);return d>=2&&d<=6},extraInfo:function(b,d,e){var f=this._validate(b,d,e,a.calendars.local.invalidDate);return{century:c[Math.floor((f.year()-1)/100)+1]||""}},toJD:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return b=e.year()+(e.year()<0?1:0),c=e.month(),d=e.day(),d+(c>1?16:0)+(c>2?32*(c-2):0)+400*(b-1)+this.jdEpoch-1},fromJD:function(a){a=Math.floor(a+.5)-Math.floor(this.jdEpoch)-1;var b=Math.floor(a/400)+1;a-=400*(b-1),a+=a>15?16:0;var c=Math.floor(a/32)+1,d=a-32*(c-1)+1;return this.newDate(b<=0?b-1:b,c,d)}});var c={20:"Fruitbat",21:"Anchovy"};a.calendars.calendars.discworld=b}(jQuery);
|
||||
//# sourceMappingURL=jquery.calendars.discworld.min.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\src\\js\\jquery.calendars.discworld.js"],"names":["$","DiscworldCalendar","language","this","local","regionalOptions","prototype","calendars","baseCalendar","extend","name","jdEpoch","daysPerMonth","hasYearZero","minMonth","firstMonth","minDay","","epochs","monthNames","monthNamesShort","dayNames","dayNamesShort","dayNamesMin","digits","dateFormat","firstDay","isRTL","leapYear","year","_validate","invalidYear","monthsInYear","daysInYear","weekOfYear","month","day","checkDate","newDate","add","dayOfWeek","Math","floor","dayOfYear","daysInMonth","date","invalidMonth","daysInWeek","invalidDate","weekDay","dow","extraInfo","century","centuries","toJD","fromJD","jd","20","21","discworld","jQuery"],"mappings":"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","file":"jquery.calendars.discworld.min.js"}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Amharic localisation for Ethiopian calendar for jQuery v2.1.0.
|
||||
Written by Tewodros Zena February 2010. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.ethiopian.prototype.regionalOptions.am = {
|
||||
name: 'የኢትዮጵያ ዘመን አቆጣጠር',
|
||||
epochs: ['BEE', 'EE'],
|
||||
monthNames: ['መስከረም', 'ጥቅምት', 'ኅዳር', 'ታህሣሥ', 'ጥር', 'የካቲት',
|
||||
'መጋቢት', 'ሚያዝያ', 'ግንቦት', 'ሰኔ', 'ሐምሌ', 'ነሐሴ', 'ጳጉሜ'],
|
||||
monthNamesShort: ['መስከ', 'ጥቅም', 'ኅዳር', 'ታህሣ', 'ጥር', 'የካቲ',
|
||||
'መጋቢ', 'ሚያዝ', 'ግንቦ', 'ሰኔ', 'ሐምሌ', 'ነሐሴ', 'ጳጉሜ'],
|
||||
dayNames: ['እሑድ', 'ሰኞ', 'ማክሰኞ', 'ረቡዕ', 'ሓሙስ', 'ዓርብ', 'ቅዳሜ'],
|
||||
dayNamesShort: ['እሑድ', 'ሰኞ', 'ማክሰ', 'ረቡዕ', 'ሓሙስ', 'ዓርብ', 'ቅዳሜ'],
|
||||
dayNamesMin: ['እሑ', 'ሰኞ', 'ማክ', 'ረቡ', 'ሐሙ', 'ዓር', 'ቅዳ'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
};
|
||||
})(jQuery);
|
||||
171
wwwroot/lib/jquery.calendars/js/jquery.calendars.ethiopian.js
Normal file
171
wwwroot/lib/jquery.calendars/js/jquery.calendars.ethiopian.js
Normal file
@@ -0,0 +1,171 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Ethiopian calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
/** Implementation of the Ethiopian calendar.
|
||||
See <a href="http://en.wikipedia.org/wiki/Ethiopian_calendar">http://en.wikipedia.org/wiki/Ethiopian_calendar</a>.
|
||||
See also Calendrical Calculations: The Millennium Edition
|
||||
(<a href="http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml">http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml</a>).
|
||||
@class EthiopianCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function EthiopianCalendar(language) {
|
||||
this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
EthiopianCalendar.prototype = new $.calendars.baseCalendar();
|
||||
|
||||
$.extend(EthiopianCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof EthiopianCalendar */
|
||||
name: 'Ethiopian',
|
||||
/** Julian date of start of Ethiopian epoch: 27 August 8 CE (Gregorian).
|
||||
@memberof EthiopianCalendar */
|
||||
jdEpoch: 1724220.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof EthiopianCalendar */
|
||||
daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof EthiopianCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof EthiopianCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof EthiopianCalendar */
|
||||
firstMonth: 1,
|
||||
/** The minimum day number.
|
||||
@memberof EthiopianCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof EthiopianCalendar
|
||||
@property {string} name The calendar name.
|
||||
@property {string[]} epochs The epoch names (before/after year 0).
|
||||
@property {string[]} monthNames The long names of the months of the year.
|
||||
@property {string[]} monthNamesShort The short names of the months of the year.
|
||||
@property {string[]} dayNames The long names of the days of the week.
|
||||
@property {string[]} dayNamesShort The short names of the days of the week.
|
||||
@property {string[]} dayNamesMin The minimal names of the days of the week.
|
||||
@property {string} dateFormat The date format for this calendar.
|
||||
See the options on <a href="BaseCalendar.html#formatDate"><code>formatDate</code></a> for details.
|
||||
@property {number} firstDay The number of the first day of the week, starting at 0.
|
||||
@property {boolean} isRTL <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Ethiopian',
|
||||
epochs: ['BEE', 'EE'],
|
||||
monthNames: ['Meskerem', 'Tikemet', 'Hidar', 'Tahesas', 'Tir', 'Yekatit',
|
||||
'Megabit', 'Miazia', 'Genbot', 'Sene', 'Hamle', 'Nehase', 'Pagume'],
|
||||
monthNamesShort: ['Mes', 'Tik', 'Hid', 'Tah', 'Tir', 'Yek',
|
||||
'Meg', 'Mia', 'Gen', 'Sen', 'Ham', 'Neh', 'Pag'],
|
||||
dayNames: ['Ehud', 'Segno', 'Maksegno', 'Irob', 'Hamus', 'Arb', 'Kidame'],
|
||||
dayNamesShort: ['Ehu', 'Seg', 'Mak', 'Iro', 'Ham', 'Arb', 'Kid'],
|
||||
dayNamesMin: ['Eh', 'Se', 'Ma', 'Ir', 'Ha', 'Ar', 'Ki'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
leapYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero
|
||||
return year % 4 === 3 || year % 4 === -1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of months in a year.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of months.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
monthsInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return 13;
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The week of the year.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Sunday of this week starting on Sunday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(-checkDate.dayOfWeek(), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if only <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar used. */
|
||||
daysInMonth: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
|
||||
return this.daysPerMonth[date.month() - 1] +
|
||||
(date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekDay: function(year, month, day) {
|
||||
return (this.dayOfWeek(year, month, day) || 7) < 6;
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof EthiopianCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if only <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
year = date.year();
|
||||
if (year < 0) { year++; } // No year zero
|
||||
return date.day() + (date.month() - 1) * 30 +
|
||||
(year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof EthiopianCalendar
|
||||
@param {number} jd the Julian date to convert.
|
||||
@return {CDate} the equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
var c = Math.floor(jd) + 0.5 - this.jdEpoch;
|
||||
var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;
|
||||
if (year <= 0) { year--; } // No year zero
|
||||
c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();
|
||||
var month = Math.floor(c / 30) + 1;
|
||||
var day = c - (month - 1) * 30 + 1;
|
||||
return this.newDate(year, month, day);
|
||||
}
|
||||
});
|
||||
|
||||
// Ethiopian calendar implementation
|
||||
$.calendars.calendars.ethiopian = EthiopianCalendar;
|
||||
|
||||
})(jQuery);
|
||||
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.ethiopian.min.js
vendored
Normal file
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.ethiopian.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){"use strict";function b(a){this.local=this.regionalOptions[a||""]||this.regionalOptions[""]}b.prototype=new a.calendars.baseCalendar,a.extend(b.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var c=this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear);return b=c.year()+(c.year()<0?1:0),b%4===3||b%4===-1},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear||a.calendars.regionalOptions[""].invalidYear),13},weekOfYear:function(a,b,c){var d=this.newDate(a,b,c);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(b,c){var d=this._validate(b,c,this.minDay,a.calendars.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(13===d.month()&&this.leapYear(d.year())?1:0)},weekDay:function(a,b,c){return(this.dayOfWeek(a,b,c)||7)<6},toJD:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return b=e.year(),b<0&&b++,e.day()+30*(e.month()-1)+365*(b-1)+Math.floor(b/4)+this.jdEpoch-1},fromJD:function(a){var b=Math.floor(a)+.5-this.jdEpoch,c=Math.floor((b-Math.floor((b+366)/1461))/365)+1;c<=0&&c--,b=Math.floor(a)+.5-this.newDate(c,1,1).toJD();var d=Math.floor(b/30)+1,e=b-30*(d-1)+1;return this.newDate(c,d,e)}}),a.calendars.calendars.ethiopian=b}(jQuery);
|
||||
//# sourceMappingURL=jquery.calendars.ethiopian.min.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\src\\js\\jquery.calendars.ethiopian.js"],"names":["$","EthiopianCalendar","language","this","local","regionalOptions","prototype","calendars","baseCalendar","extend","name","jdEpoch","daysPerMonth","hasYearZero","minMonth","firstMonth","minDay","","epochs","monthNames","monthNamesShort","dayNames","dayNamesShort","dayNamesMin","digits","dateFormat","firstDay","isRTL","leapYear","year","date","_validate","invalidYear","monthsInYear","weekOfYear","month","day","checkDate","newDate","add","dayOfWeek","Math","floor","dayOfYear","daysInMonth","invalidMonth","weekDay","toJD","invalidDate","fromJD","jd","c","ethiopian","jQuery"],"mappings":"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","file":"jquery.calendars.ethiopian.min.js"}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hebrew localisation for Hebrew calendar for jQuery v2.1.0.
|
||||
Amir Hardon (ahardon at gmail dot com). */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.hebrew.prototype.regionalOptions.he = {
|
||||
name: 'הלוח העברי',
|
||||
epochs: ['BAM', 'AM'],
|
||||
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
|
||||
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
|
||||
monthNamesShort: ['1','2','3','4','5','6',
|
||||
'7','8','9','10','11','12'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: true
|
||||
};
|
||||
})(jQuery);
|
||||
261
wwwroot/lib/jquery.calendars/js/jquery.calendars.hebrew.js
Normal file
261
wwwroot/lib/jquery.calendars/js/jquery.calendars.hebrew.js
Normal file
@@ -0,0 +1,261 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Hebrew calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
/** Implementation of the Hebrew civil calendar.
|
||||
Based on code from <a href="http://www.fourmilab.ch/documents/calendar/">http://www.fourmilab.ch/documents/calendar/</a>.
|
||||
See also <a href="http://en.wikipedia.org/wiki/Hebrew_calendar">http://en.wikipedia.org/wiki/Hebrew_calendar</a>.
|
||||
@class HebrewCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function HebrewCalendar(language) {
|
||||
this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
HebrewCalendar.prototype = new $.calendars.baseCalendar();
|
||||
|
||||
$.extend(HebrewCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof HebrewCalendar */
|
||||
name: 'Hebrew',
|
||||
/** Julian date of start of Hebrew epoch: 7 October 3761 BCE.
|
||||
@memberof HebrewCalendar */
|
||||
jdEpoch: 347995.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof HebrewCalendar */
|
||||
daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 29],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof HebrewCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof HebrewCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof HebrewCalendar */
|
||||
firstMonth: 7,
|
||||
/** The minimum day number.
|
||||
@memberof HebrewCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof HebrewCalendar
|
||||
@property {string} name The calendar name.
|
||||
@property {string[]} epochs The epoch names (before/after year 0).
|
||||
@property {string[]} monthNames The long names of the months of the year.
|
||||
@property {string[]} monthNamesShort The short names of the months of the year.
|
||||
@property {string[]} dayNames The long names of the days of the week.
|
||||
@property {string[]} dayNamesShort The short names of the days of the week.
|
||||
@property {string[]} dayNamesMin The minimal names of the days of the week.
|
||||
@property {string} dateFormat] The date format for this calendar.
|
||||
See the options on <a href="BaseCalendar.html#formatDate"><code>formatDate</code></a> for details.
|
||||
@property {number} firstDay The number of the first day of the week, starting at 0.
|
||||
@property {boolean} isRTL <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Hebrew',
|
||||
epochs: ['BAM', 'AM'],
|
||||
monthNames: ['Nisan', 'Iyar', 'Sivan', 'Tammuz', 'Av', 'Elul',
|
||||
'Tishrei', 'Cheshvan', 'Kislev', 'Tevet', 'Shevat', 'Adar', 'Adar II'],
|
||||
monthNamesShort: ['Nis', 'Iya', 'Siv', 'Tam', 'Av', 'Elu', 'Tis', 'Che', 'Kis', 'Tev', 'She', 'Ada', 'Ad2'],
|
||||
dayNames: ['Yom Rishon', 'Yom Sheni', 'Yom Shlishi', 'Yom Revi\'i', 'Yom Chamishi', 'Yom Shishi', 'Yom Shabbat'],
|
||||
dayNamesShort: ['Ris', 'She', 'Shl', 'Rev', 'Cha', 'Shi', 'Sha'],
|
||||
dayNamesMin: ['Ri','She','Shl','Re','Ch','Shi','Sha'],
|
||||
digits: null,
|
||||
dateFormat: 'dd/mm/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
leapYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return this._leapYear(date.year());
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof HebrewCalendar
|
||||
@private
|
||||
@param {number} year The year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
_leapYear: function(year) {
|
||||
year = (year < 0 ? year + 1 : year);
|
||||
return mod(year * 7 + 1, 19) < 7;
|
||||
},
|
||||
|
||||
/** Retrieve the number of months in a year.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of months.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
monthsInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return this._leapYear(year.year ? year.year() : year) ? 13 : 12;
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The week of the year.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Sunday of this week starting on Sunday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(-checkDate.dayOfWeek(), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a year.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of days.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
daysInYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
year = date.year();
|
||||
return this.toJD((year === -1 ? +1 : year + 1), 7, 1) - this.toJD(year, 7, 1);
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if only <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar used. */
|
||||
daysInMonth: function(year, month) {
|
||||
if (year.year) {
|
||||
month = year.month();
|
||||
year = year.year();
|
||||
}
|
||||
this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
|
||||
return (month === 12 && this.leapYear(year) ? 30 : // Adar I
|
||||
(month === 8 && mod(this.daysInYear(year), 10) === 5 ? 30 : // Cheshvan in shlemah year
|
||||
(month === 9 && mod(this.daysInYear(year), 10) === 3 ? 29 : // Kislev in chaserah year
|
||||
this.daysPerMonth[month - 1])));
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekDay: function(year, month, day) {
|
||||
return this.dayOfWeek(year, month, day) !== 6;
|
||||
},
|
||||
|
||||
/** Retrieve additional information about a date - year type.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {object} Additional information - contents depends on calendar.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
extraInfo: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
return {yearType: (this.leapYear(date) ? 'embolismic' : 'common') + ' ' +
|
||||
['deficient', 'regular', 'complete'][this.daysInYear(date) % 10 - 3]};
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof HebrewCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if only <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
year = date.year();
|
||||
month = date.month();
|
||||
day = date.day();
|
||||
var adjYear = (year <= 0 ? year + 1 : year);
|
||||
var jd = this.jdEpoch + this._delay1(adjYear) + this._delay2(adjYear) + day + 1;
|
||||
var m;
|
||||
if (month < 7) {
|
||||
for (m = 7; m <= this.monthsInYear(year); m++) {
|
||||
jd += this.daysInMonth(year, m);
|
||||
}
|
||||
for (m = 1; m < month; m++) {
|
||||
jd += this.daysInMonth(year, m);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (m = 7; m < month; m++) {
|
||||
jd += this.daysInMonth(year, m);
|
||||
}
|
||||
}
|
||||
return jd;
|
||||
},
|
||||
|
||||
/** Test for delay of start of new year and to avoid
|
||||
Sunday, Wednesday, or Friday as start of the new year.
|
||||
@memberof HebrewCalendar
|
||||
@private
|
||||
@param {number} year The year to examine.
|
||||
@return {number} The days to offset by. */
|
||||
_delay1: function(year) {
|
||||
var months = Math.floor((235 * year - 234) / 19);
|
||||
var parts = 12084 + 13753 * months;
|
||||
var day = months * 29 + Math.floor(parts / 25920);
|
||||
if (mod(3 * (day + 1), 7) < 3) {
|
||||
day++;
|
||||
}
|
||||
return day;
|
||||
},
|
||||
|
||||
/** Check for delay in start of new year due to length of adjacent years.
|
||||
@memberof HebrewCalendar
|
||||
@private
|
||||
@param {number} year The year to examine.
|
||||
@return {number} The days to offset by. */
|
||||
_delay2: function(year) {
|
||||
var last = this._delay1(year - 1);
|
||||
var present = this._delay1(year);
|
||||
var next = this._delay1(year + 1);
|
||||
return ((next - present) === 356 ? 2 : ((present - last) === 382 ? 1 : 0));
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof HebrewCalendar
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
jd = Math.floor(jd) + 0.5;
|
||||
var year = Math.floor(((jd - this.jdEpoch) * 98496.0) / 35975351.0) - 1;
|
||||
while (jd >= this.toJD((year === -1 ? +1 : year + 1), 7, 1)) {
|
||||
year++;
|
||||
}
|
||||
var month = (jd < this.toJD(year, 1, 1)) ? 7 : 1;
|
||||
while (jd > this.toJD(year, month, this.daysInMonth(year, month))) {
|
||||
month++;
|
||||
}
|
||||
var day = jd - this.toJD(year, month, 1) + 1;
|
||||
return this.newDate(year, month, day);
|
||||
}
|
||||
});
|
||||
|
||||
// Modulus function which works for non-integers.
|
||||
function mod(a, b) {
|
||||
return a - (b * Math.floor(a / b));
|
||||
}
|
||||
|
||||
// Hebrew calendar implementation
|
||||
$.calendars.calendars.hebrew = HebrewCalendar;
|
||||
|
||||
})(jQuery);
|
||||
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.hebrew.min.js
vendored
Normal file
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.hebrew.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){"use strict";function b(a){this.local=this.regionalOptions[a||""]||this.regionalOptions[""]}function c(a,b){return a-b*Math.floor(a/b)}b.prototype=new a.calendars.baseCalendar,a.extend(b.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var c=this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(a){return a=a<0?a+1:a,c(7*a+1,19)<7},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear),this._leapYear(b.year?b.year():b)?13:12},weekOfYear:function(a,b,c){var d=this.newDate(a,b,c);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(b){var c=this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear);return b=c.year(),this.toJD(b===-1?1:b+1,7,1)-this.toJD(b,7,1)},daysInMonth:function(b,d){return b.year&&(d=b.month(),b=b.year()),this._validate(b,d,this.minDay,a.calendars.local.invalidMonth),12===d&&this.leapYear(b)?30:8===d&&5===c(this.daysInYear(b),10)?30:9===d&&3===c(this.daysInYear(b),10)?29:this.daysPerMonth[d-1]},weekDay:function(a,b,c){return 6!==this.dayOfWeek(a,b,c)},extraInfo:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return{yearType:(this.leapYear(e)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(e)%10-3]}},toJD:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);b=e.year(),c=e.month(),d=e.day();var f,g=b<=0?b+1:b,h=this.jdEpoch+this._delay1(g)+this._delay2(g)+d+1;if(c<7){for(f=7;f<=this.monthsInYear(b);f++)h+=this.daysInMonth(b,f);for(f=1;f<c;f++)h+=this.daysInMonth(b,f)}else for(f=7;f<c;f++)h+=this.daysInMonth(b,f);return h},_delay1:function(a){var b=Math.floor((235*a-234)/19),d=12084+13753*b,e=29*b+Math.floor(d/25920);return c(3*(e+1),7)<3&&e++,e},_delay2:function(a){var b=this._delay1(a-1),c=this._delay1(a),d=this._delay1(a+1);return d-c===356?2:c-b===382?1:0},fromJD:function(a){a=Math.floor(a)+.5;for(var b=Math.floor(98496*(a-this.jdEpoch)/35975351)-1;a>=this.toJD(b===-1?1:b+1,7,1);)b++;for(var c=a<this.toJD(b,1,1)?7:1;a>this.toJD(b,c,this.daysInMonth(b,c));)c++;var d=a-this.toJD(b,c,1)+1;return this.newDate(b,c,d)}}),a.calendars.calendars.hebrew=b}(jQuery);
|
||||
//# sourceMappingURL=jquery.calendars.hebrew.min.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\src\\js\\jquery.calendars.hebrew.js"],"names":["$","HebrewCalendar","language","this","local","regionalOptions","mod","a","b","Math","floor","prototype","calendars","baseCalendar","extend","name","jdEpoch","daysPerMonth","hasYearZero","minMonth","firstMonth","minDay","","epochs","monthNames","monthNamesShort","dayNames","dayNamesShort","dayNamesMin","digits","dateFormat","firstDay","isRTL","leapYear","year","date","_validate","invalidYear","_leapYear","monthsInYear","weekOfYear","month","day","checkDate","newDate","add","dayOfWeek","dayOfYear","daysInYear","toJD","daysInMonth","invalidMonth","weekDay","extraInfo","invalidDate","yearType","m","adjYear","jd","_delay1","_delay2","months","parts","last","present","next","fromJD","hebrew","jQuery"],"mappings":"CAMA,SAAUA,GACT,YAOA,SAASC,GAAeC,GACvBC,KAAKC,MAAQD,KAAKE,gBAAgBH,GAAY,KAAOC,KAAKE,gBAAgB,IA8O3E,QAASC,GAAIC,EAAGC,GACf,MAAOD,GAAKC,EAAIC,KAAKC,MAAMH,EAAIC,GA5OhCP,EAAeU,UAAY,GAAIX,GAAEY,UAAUC,aAE3Cb,EAAEc,OAAOb,EAAeU,WAGvBI,KAAM,SAGNC,QAAS,SAGTC,cAAe,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,IAG/DC,aAAa,EAGbC,SAAU,EAGVC,WAAY,EAGZC,OAAQ,EAiBRhB,iBACCiB,IACCP,KAAM,SACNQ,QAAS,MAAO,MAChBC,YAAa,QAAS,OAAQ,QAAS,SAAU,KAAM,OACvD,UAAW,WAAY,SAAU,QAAS,SAAU,OAAQ,WAC5DC,iBAAkB,MAAO,MAAO,MAAO,MAAO,KAAM,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OACrGC,UAAW,aAAc,YAAa,cAAe,aAAe,eAAgB,aAAc,eAClGC,eAAgB,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAC1DC,aAAc,KAAK,MAAM,MAAM,KAAK,KAAK,MAAM,OAC/CC,OAAQ,KACRC,WAAY,aACZC,SAAU,EACVC,OAAO,IASTC,SAAU,SAASC,GAClB,GAAIC,GAAOhC,KAAKiC,UAAUF,EAAM/B,KAAKgB,SAAUhB,KAAKkB,OAAQrB,EAAEY,UAAUR,MAAMiC,YAC9E,OAAOlC,MAAKmC,UAAUH,EAAKD,SAS5BI,UAAW,SAASJ,GAEnB,MADAA,GAAQA,EAAO,EAAIA,EAAO,EAAIA,EACvB5B,EAAW,EAAP4B,EAAW,EAAG,IAAM,GAQhCK,aAAc,SAASL,GAEtB,MADA/B,MAAKiC,UAAUF,EAAM/B,KAAKgB,SAAUhB,KAAKkB,OAAQrB,EAAEY,UAAUR,MAAMiC,aAC5DlC,KAAKmC,UAAUJ,EAAKA,KAAOA,EAAKA,OAASA,GAAQ,GAAK,IAU9DM,WAAY,SAASN,EAAMO,EAAOC,GAEjC,GAAIC,GAAYxC,KAAKyC,QAAQV,EAAMO,EAAOC,EAE1C,OADAC,GAAUE,KAAKF,EAAUG,YAAa,KAC/BrC,KAAKC,OAAOiC,EAAUI,YAAc,GAAK,GAAK,GAQtDC,WAAY,SAASd,GACpB,GAAIC,GAAOhC,KAAKiC,UAAUF,EAAM/B,KAAKgB,SAAUhB,KAAKkB,OAAQrB,EAAEY,UAAUR,MAAMiC,YAE9E,OADAH,GAAOC,EAAKD,OACL/B,KAAK8C,KAAMf,KAAS,EAAK,EAAKA,EAAO,EAAI,EAAG,GAAK/B,KAAK8C,KAAKf,EAAM,EAAG,IAS5EgB,YAAa,SAAShB,EAAMO,GAM3B,MALIP,GAAKA,OACRO,EAAQP,EAAKO,QACbP,EAAOA,EAAKA,QAEb/B,KAAKiC,UAAUF,EAAMO,EAAOtC,KAAKkB,OAAQrB,EAAEY,UAAUR,MAAM+C,cACzC,KAAVV,GAAgBtC,KAAK8B,SAASC,GAAQ,GACjC,IAAVO,GAAkD,IAAnCnC,EAAIH,KAAK6C,WAAWd,GAAO,IAAY,GAC5C,IAAVO,GAAkD,IAAnCnC,EAAIH,KAAK6C,WAAWd,GAAO,IAAY,GACvD/B,KAAKc,aAAawB,EAAQ,IAU7BW,QAAS,SAASlB,EAAMO,EAAOC,GAC9B,MAA4C,KAArCvC,KAAK2C,UAAUZ,EAAMO,EAAOC,IAUpCW,UAAW,SAASnB,EAAMO,EAAOC,GAChC,GAAIP,GAAOhC,KAAKiC,UAAUF,EAAMO,EAAOC,EAAK1C,EAAEY,UAAUR,MAAMkD,YAC9D,QAAQC,UAAWpD,KAAK8B,SAASE,GAAQ,aAAe,UAAY,KAClE,YAAa,UAAW,YAAYhC,KAAK6C,WAAWb,GAAQ,GAAK,KAWpEc,KAAM,SAASf,EAAMO,EAAOC,GAC3B,GAAIP,GAAOhC,KAAKiC,UAAUF,EAAMO,EAAOC,EAAK1C,EAAEY,UAAUR,MAAMkD,YAC9DpB,GAAOC,EAAKD,OACZO,EAAQN,EAAKM,QACbC,EAAMP,EAAKO,KACX,IAEIc,GAFAC,EAAWvB,GAAQ,EAAIA,EAAO,EAAIA,EAClCwB,EAAKvD,KAAKa,QAAUb,KAAKwD,QAAQF,GAAWtD,KAAKyD,QAAQH,GAAWf,EAAM,CAE9E,IAAID,EAAQ,EAAG,CACd,IAAKe,EAAI,EAAGA,GAAKrD,KAAKoC,aAAaL,GAAOsB,IACzCE,GAAMvD,KAAK+C,YAAYhB,EAAMsB,EAE9B,KAAKA,EAAI,EAAGA,EAAIf,EAAOe,IACtBE,GAAMvD,KAAK+C,YAAYhB,EAAMsB,OAI9B,KAAKA,EAAI,EAAGA,EAAIf,EAAOe,IACtBE,GAAMvD,KAAK+C,YAAYhB,EAAMsB,EAG/B,OAAOE,IASRC,QAAS,SAASzB,GACjB,GAAI2B,GAASpD,KAAKC,OAAO,IAAMwB,EAAO,KAAO,IACzC4B,EAAQ,MAAQ,MAAQD,EACxBnB,EAAe,GAATmB,EAAcpD,KAAKC,MAAMoD,EAAQ,MAI3C,OAHIxD,GAAI,GAAKoC,EAAM,GAAI,GAAK,GAC3BA,IAEMA,GAQRkB,QAAS,SAAS1B,GACjB,GAAI6B,GAAO5D,KAAKwD,QAAQzB,EAAO,GAC3B8B,EAAU7D,KAAKwD,QAAQzB,GACvB+B,EAAO9D,KAAKwD,QAAQzB,EAAO,EAC/B,OAAS+B,GAAOD,IAAa,IAAM,EAAMA,EAAUD,IAAU,IAAM,EAAI,GAOxEG,OAAQ,SAASR,GAChBA,EAAKjD,KAAKC,MAAMgD,GAAM,EAEtB,KADA,GAAIxB,GAAOzB,KAAKC,MAA6B,OAArBgD,EAAKvD,KAAKa,SAAsB,UAAc,EAC/D0C,GAAMvD,KAAK8C,KAAMf,KAAS,EAAK,EAAKA,EAAO,EAAI,EAAG,IACxDA,GAGD,KADA,GAAIO,GAASiB,EAAKvD,KAAK8C,KAAKf,EAAM,EAAG,GAAM,EAAI,EACxCwB,EAAKvD,KAAK8C,KAAKf,EAAMO,EAAOtC,KAAK+C,YAAYhB,EAAMO,KACzDA,GAED,IAAIC,GAAMgB,EAAKvD,KAAK8C,KAAKf,EAAMO,EAAO,GAAK,CAC3C,OAAOtC,MAAKyC,QAAQV,EAAMO,EAAOC,MAUnC1C,EAAEY,UAAUA,UAAUuD,OAASlE,GAE7BmE","file":"jquery.calendars.hebrew.min.js"}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Arabic localisation for Islamic calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.
|
||||
Updated by Fahad Alqahtani April 2016. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.islamic.prototype.regionalOptions.ar = {
|
||||
name: 'Islamic',
|
||||
epochs: ['BAM', 'AM'],
|
||||
monthNames: 'محرم_صفر_ربيع الأول_ربيع الثاني_جمادى الأول_جمادى الآخر_رجب_شعبان_رمضان_شوال_ذو القعدة_ذو الحجة'.split('_'),
|
||||
monthNamesShort: 'محرم_صفر_ربيع1_ربيع2_جمادى1_جمادى2_رجب_شعبان_رمضان_شوال_القعدة_الحجة'.split('_'),
|
||||
dayNames: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
dayNamesMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
digits: $.calendars.substituteDigits(['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩']),
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: true
|
||||
};
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Farsi/Persian localisation for Islamic calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009. */
|
||||
(function($) {
|
||||
'use strict';
|
||||
$.calendars.calendars.islamic.prototype.regionalOptions.fa = {
|
||||
name: 'Islamic',
|
||||
epochs: ['BAM', 'AM'],
|
||||
monthNames: ['محرّم', 'صفر', 'ربيع الأول', 'ربيع الآخر أو ربيع الثاني', 'جمادى الاول', 'جمادى الآخر أو جمادى الثاني',
|
||||
'رجب', 'شعبان', 'رمضان', 'شوّال', 'ذو القعدة', 'ذو الحجة'],
|
||||
monthNamesShort: ['محرّم', 'صفر', 'ربيع الأول', 'ربيع الآخر أو ربيع الثاني', 'جمادى الاول', 'جمادى الآخر أو جمادى الثاني',
|
||||
'رجب', 'شعبان', 'رمضان', 'شوّال', 'ذو القعدة', 'ذو الحجة'],
|
||||
dayNames: ['يوم الأحد', 'يوم الإثنين', 'يوم الثلاثاء', 'يوم الأربعاء', 'يوم الخميس', 'يوم الجمعة', 'يوم السبت'],
|
||||
dayNamesShort: ['يوم الأحد', 'يوم الإثنين', 'يوم الثلاثاء', 'يوم الأربعاء', 'يوم الخميس', 'يوم الجمعة', 'يوم السبت'],
|
||||
dayNamesMin: ['يوم الأحد', 'يوم الإثنين', 'يوم الثلاثاء', 'يوم الأربعاء', 'يوم الخميس', 'يوم الجمعة', 'يوم السبت'],
|
||||
digits: $.calendars.substituteDigits(['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']),
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 6,
|
||||
isRTL: true
|
||||
};
|
||||
})(jQuery);
|
||||
168
wwwroot/lib/jquery.calendars/js/jquery.calendars.islamic.js
Normal file
168
wwwroot/lib/jquery.calendars/js/jquery.calendars.islamic.js
Normal file
@@ -0,0 +1,168 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Islamic calendar for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
/** Implementation of the Islamic or '16 civil' calendar.
|
||||
Based on code from <a href="http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php">http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php</a>.
|
||||
See also <a href="http://en.wikipedia.org/wiki/Islamic_calendar">http://en.wikipedia.org/wiki/Islamic_calendar</a>.
|
||||
@class IslamicCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function IslamicCalendar(language) {
|
||||
this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
IslamicCalendar.prototype = new $.calendars.baseCalendar();
|
||||
|
||||
$.extend(IslamicCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof IslamicCalendar */
|
||||
name: 'Islamic',
|
||||
/** Julian date of start of Islamic epoch: 16 July 622 CE.
|
||||
@memberof IslamicCalendar */
|
||||
jdEpoch: 1948439.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof IslamicCalendar */
|
||||
daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof IslamicCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof IslamicCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof IslamicCalendar */
|
||||
firstMonth: 1,
|
||||
/** The minimum day number.
|
||||
@memberof IslamicCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof IslamicCalendar
|
||||
@property {string} name The calendar name.
|
||||
@property {string[]} epochs The epoch names (before/after year 0).
|
||||
@property {string[]} monthNames The long names of the months of the year.
|
||||
@property {string[]} monthNamesShort The short names of the months of the year.
|
||||
@property {string[]} dayNames The long names of the days of the week.
|
||||
@property {string[]} dayNamesShort The short names of the days of the week.
|
||||
@property {string[]} dayNamesMin The minimal names of the days of the week.
|
||||
@property {string} dateFormat The date format for this calendar.
|
||||
See the options on <a href="BaseCalendar.html#formatDate"><code>formatDate</code></a> for details.
|
||||
@property {number} firstDay The number of the first day of the week, starting at 0.
|
||||
@property {boolean} isRTL <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Islamic',
|
||||
epochs: ['BH', 'AH'],
|
||||
monthNames: ['Muharram', 'Safar', 'Rabi\' al-awwal', 'Rabi\' al-thani', 'Jumada al-awwal', 'Jumada al-thani',
|
||||
'Rajab', 'Sha\'aban', 'Ramadan', 'Shawwal', 'Dhu al-Qi\'dah', 'Dhu al-Hijjah'],
|
||||
monthNamesShort: ['Muh', 'Saf', 'Rab1', 'Rab2', 'Jum1', 'Jum2', 'Raj', 'Sha\'', 'Ram', 'Shaw', 'DhuQ', 'DhuH'],
|
||||
dayNames: ['Yawm al-ahad', 'Yawm al-ithnayn', 'Yawm ath-thulaathaa\'',
|
||||
'Yawm al-arbi\'aa\'', 'Yawm al-khamīs', 'Yawm al-jum\'a', 'Yawm as-sabt'],
|
||||
dayNamesShort: ['Aha', 'Ith', 'Thu', 'Arb', 'Kha', 'Jum', 'Sab'],
|
||||
dayNamesMin: ['Ah','It','Th','Ar','Kh','Ju','Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'yyyy/mm/dd',
|
||||
firstDay: 6,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
leapYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
|
||||
return (date.year() * 11 + 14) % 30 < 11;
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {number} The week of the year.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Sunday of this week starting on Sunday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(-checkDate.dayOfWeek(), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a year.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of days.
|
||||
@throws Error if an invalid year or a different calendar used. */
|
||||
daysInYear: function(year) {
|
||||
return (this.leapYear(year) ? 355 : 354);
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if only <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar used. */
|
||||
daysInMonth: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay, $.calendars.local.invalidMonth);
|
||||
return this.daysPerMonth[date.month() - 1] +
|
||||
(date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] {number} The month to examine (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if only <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
weekDay: function(year, month, day) {
|
||||
return this.dayOfWeek(year, month, day) !== 5;
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof IslamicCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if only <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if only <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day, $.calendars.local.invalidDate);
|
||||
year = date.year();
|
||||
month = date.month();
|
||||
day = date.day();
|
||||
year = (year <= 0 ? year + 1 : year);
|
||||
return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 +
|
||||
Math.floor((3 + (11 * year)) / 30) + this.jdEpoch - 1;
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof IslamicCalendar
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
jd = Math.floor(jd) + 0.5;
|
||||
var year = Math.floor((30 * (jd - this.jdEpoch) + 10646) / 10631);
|
||||
year = (year <= 0 ? year - 1 : year);
|
||||
var month = Math.min(12, Math.ceil((jd - 29 - this.toJD(year, 1, 1)) / 29.5) + 1);
|
||||
var day = jd - this.toJD(year, month, 1) + 1;
|
||||
return this.newDate(year, month, day);
|
||||
}
|
||||
});
|
||||
|
||||
// Islamic (16 civil) calendar implementation
|
||||
$.calendars.calendars.islamic = IslamicCalendar;
|
||||
|
||||
})(jQuery);
|
||||
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.islamic.min.js
vendored
Normal file
2
wwwroot/lib/jquery.calendars/js/jquery.calendars.islamic.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){"use strict";function b(a){this.local=this.regionalOptions[a||""]||this.regionalOptions[""]}b.prototype=new a.calendars.baseCalendar,a.extend(b.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(b){var c=this._validate(b,this.minMonth,this.minDay,a.calendars.local.invalidYear);return(11*c.year()+14)%30<11},weekOfYear:function(a,b,c){var d=this.newDate(a,b,c);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(a){return this.leapYear(a)?355:354},daysInMonth:function(b,c){var d=this._validate(b,c,this.minDay,a.calendars.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(12===d.month()&&this.leapYear(d.year())?1:0)},weekDay:function(a,b,c){return 5!==this.dayOfWeek(a,b,c)},toJD:function(b,c,d){var e=this._validate(b,c,d,a.calendars.local.invalidDate);return b=e.year(),c=e.month(),d=e.day(),b=b<=0?b+1:b,d+Math.ceil(29.5*(c-1))+354*(b-1)+Math.floor((3+11*b)/30)+this.jdEpoch-1},fromJD:function(a){a=Math.floor(a)+.5;var b=Math.floor((30*(a-this.jdEpoch)+10646)/10631);b=b<=0?b-1:b;var c=Math.min(12,Math.ceil((a-29-this.toJD(b,1,1))/29.5)+1),d=a-this.toJD(b,c,1)+1;return this.newDate(b,c,d)}}),a.calendars.calendars.islamic=b}(jQuery);
|
||||
//# sourceMappingURL=jquery.calendars.islamic.min.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\src\\js\\jquery.calendars.islamic.js"],"names":["$","IslamicCalendar","language","this","local","regionalOptions","prototype","calendars","baseCalendar","extend","name","jdEpoch","daysPerMonth","hasYearZero","minMonth","firstMonth","minDay","","epochs","monthNames","monthNamesShort","dayNames","dayNamesShort","dayNamesMin","digits","dateFormat","firstDay","isRTL","leapYear","year","date","_validate","invalidYear","weekOfYear","month","day","checkDate","newDate","add","dayOfWeek","Math","floor","dayOfYear","daysInYear","daysInMonth","invalidMonth","weekDay","toJD","invalidDate","ceil","fromJD","jd","min","islamic","jQuery"],"mappings":"CAMA,SAAUA,GACT,YAOA,SAASC,GAAgBC,GACxBC,KAAKC,MAAQD,KAAKE,gBAAgBH,GAAY,KAAOC,KAAKE,gBAAgB,IAG3EJ,EAAgBK,UAAY,GAAIN,GAAEO,UAAUC,aAE5CR,EAAES,OAAOR,EAAgBK,WAGxBI,KAAM,UAGNC,QAAS,UAGTC,cAAe,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,IAG3DC,aAAa,EAGbC,SAAU,EAGVC,WAAY,EAGZC,OAAQ,EAiBRX,iBACCY,IACCP,KAAM,UACNQ,QAAS,KAAM,MACfC,YAAa,WAAY,QAAS,iBAAmB,iBAAmB,kBAAmB,kBAC3F,QAAS,WAAa,UAAW,UAAW,gBAAkB,iBAC9DC,iBAAkB,MAAO,MAAO,OAAQ,OAAQ,OAAQ,OAAQ,MAAO,OAAS,MAAO,OAAQ,OAAQ,QACvGC,UAAW,eAAgB,kBAAmB,uBAC9C,mBAAsB,iBAAkB,gBAAkB,gBAC1DC,eAAgB,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OAC1DC,aAAc,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,MAC5CC,OAAQ,KACRC,WAAY,aACZC,SAAU,EACVC,OAAO,IASTC,SAAU,SAASC,GAClB,GAAIC,GAAO3B,KAAK4B,UAAUF,EAAM1B,KAAKW,SAAUX,KAAKa,OAAQhB,EAAEO,UAAUH,MAAM4B,YAC9E,QAAsB,GAAdF,EAAKD,OAAc,IAAM,GAAK,IAUvCI,WAAY,SAASJ,EAAMK,EAAOC,GAEjC,GAAIC,GAAYjC,KAAKkC,QAAQR,EAAMK,EAAOC,EAE1C,OADAC,GAAUE,KAAKF,EAAUG,YAAa,KAC/BC,KAAKC,OAAOL,EAAUM,YAAc,GAAK,GAAK,GAQtDC,WAAY,SAASd,GACpB,MAAQ1B,MAAKyB,SAASC,GAAQ,IAAM,KASrCe,YAAa,SAASf,EAAMK,GAC3B,GAAIJ,GAAO3B,KAAK4B,UAAUF,EAAMK,EAAO/B,KAAKa,OAAQhB,EAAEO,UAAUH,MAAMyC,aACtE,OAAO1C,MAAKS,aAAakB,EAAKI,QAAU,IACrB,KAAjBJ,EAAKI,SAAkB/B,KAAKyB,SAASE,EAAKD,QAAU,EAAI,IAU3DiB,QAAS,SAASjB,EAAMK,EAAOC,GAC9B,MAA4C,KAArChC,KAAKoC,UAAUV,EAAMK,EAAOC,IAWpCY,KAAM,SAASlB,EAAMK,EAAOC,GAC3B,GAAIL,GAAO3B,KAAK4B,UAAUF,EAAMK,EAAOC,EAAKnC,EAAEO,UAAUH,MAAM4C,YAK9D,OAJAnB,GAAOC,EAAKD,OACZK,EAAQJ,EAAKI,QACbC,EAAML,EAAKK,MACXN,EAAQA,GAAQ,EAAIA,EAAO,EAAIA,EACxBM,EAAMK,KAAKS,KAAK,MAAQf,EAAQ,IAAmB,KAAZL,EAAO,GACpDW,KAAKC,OAAO,EAAK,GAAKZ,GAAS,IAAM1B,KAAKQ,QAAU,GAOtDuC,OAAQ,SAASC,GAChBA,EAAKX,KAAKC,MAAMU,GAAM,EACtB,IAAItB,GAAOW,KAAKC,OAAO,IAAMU,EAAKhD,KAAKQ,SAAW,OAAS,MAC3DkB,GAAQA,GAAQ,EAAIA,EAAO,EAAIA,CAC/B,IAAIK,GAAQM,KAAKY,IAAI,GAAIZ,KAAKS,MAAME,EAAK,GAAKhD,KAAK4C,KAAKlB,EAAM,EAAG,IAAM,MAAQ,GAC3EM,EAAMgB,EAAKhD,KAAK4C,KAAKlB,EAAMK,EAAO,GAAK,CAC3C,OAAO/B,MAAKkC,QAAQR,EAAMK,EAAOC,MAKnCnC,EAAEO,UAAUA,UAAU8C,QAAUpD,GAE9BqD","file":"jquery.calendars.islamic.min.js"}
|
||||
982
wwwroot/lib/jquery.calendars/js/jquery.calendars.js
Normal file
982
wwwroot/lib/jquery.calendars/js/jquery.calendars.js
Normal file
@@ -0,0 +1,982 @@
|
||||
/* http://keith-wood.name/calendars.html
|
||||
Calendars for jQuery v2.1.0.
|
||||
Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.
|
||||
Available under the MIT (http://keith-wood.name/licence.html) license.
|
||||
Please attribute the author if you use it. */
|
||||
|
||||
(function($) { // Hide scope, no $ conflict
|
||||
'use strict';
|
||||
|
||||
function Calendars() {
|
||||
this.regionalOptions = [];
|
||||
/** Localised values.
|
||||
@memberof Calendars
|
||||
@property {string} [invalidCalendar='Calendar {0} not found']
|
||||
Error message for an unknown calendar.
|
||||
@property {string} [invalidDate='Invalid {0} date']
|
||||
Error message for an invalid date for this calendar.
|
||||
@property {string} [invalidMonth='Invalid {0} month']
|
||||
Error message for an invalid month for this calendar.
|
||||
@property {string} [invalidYear='Invalid {0} year']
|
||||
Error message for an invalid year for this calendar.
|
||||
@property {string} [differentCalendars='Cannot mix {0} and {1} dates']
|
||||
Error message for mixing different calendars. */
|
||||
this.regionalOptions[''] = {
|
||||
invalidCalendar: 'Calendar {0} not found',
|
||||
invalidDate: 'Invalid {0} date',
|
||||
invalidMonth: 'Invalid {0} month',
|
||||
invalidYear: 'Invalid {0} year',
|
||||
differentCalendars: 'Cannot mix {0} and {1} dates'
|
||||
};
|
||||
this.local = this.regionalOptions[''];
|
||||
this.calendars = {};
|
||||
this._localCals = {};
|
||||
}
|
||||
|
||||
/** Create the calendars plugin.
|
||||
<p>Provides support for various world calendars in a consistent manner.</p>
|
||||
<p>Use the global instance, <code>$.calendars</code>, to access the functionality.</p>
|
||||
@class Calendars
|
||||
@example $.calendars.instance('julian').newDate(2014, 12, 25) */
|
||||
$.extend(Calendars.prototype, {
|
||||
|
||||
/** Obtain a calendar implementation and localisation.
|
||||
@memberof Calendars
|
||||
@param {string} [name='gregorian'] The name of the calendar, e.g. 'gregorian', 'persian', 'islamic'.
|
||||
@param {string} [language=''] The language code to use for localisation (default is English).
|
||||
@return {Calendar} The calendar and localisation.
|
||||
@throws Error if calendar not found.
|
||||
@example $.calendars.instance()
|
||||
$.calendars.instance('persian')
|
||||
$.calendars.instance('hebrew', 'he') */
|
||||
instance: function(name, language) {
|
||||
name = (name || 'gregorian').toLowerCase();
|
||||
language = language || '';
|
||||
var cal = this._localCals[name + '-' + language];
|
||||
if (!cal && this.calendars[name]) {
|
||||
cal = new this.calendars[name](language);
|
||||
this._localCals[name + '-' + language] = cal;
|
||||
}
|
||||
if (!cal) {
|
||||
throw (this.local.invalidCalendar || this.regionalOptions[''].invalidCalendar).
|
||||
replace(/\{0\}/, name);
|
||||
}
|
||||
return cal;
|
||||
},
|
||||
|
||||
/** Create a new date - for today if no other parameters given.
|
||||
@memberof Calendars
|
||||
@param {CDate|number} [year] The date to copy or the year for the date.
|
||||
@param {number} [month] The month for the date (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day for the date (if numeric <code>year</code> specified above).
|
||||
@param {BaseCalendar|string} [calendar='gregorian'] The underlying calendar or the name of the calendar.
|
||||
@param {string} [language=''] The language to use for localisation (default English).
|
||||
@return {CDate} The new date.
|
||||
@throws Error if an invalid date.
|
||||
@example $.calendars.newDate()
|
||||
$.calendars.newDate(otherDate)
|
||||
$.calendars.newDate(2001, 1, 1)
|
||||
$.calendars.newDate(1379, 10, 12, 'persian') */
|
||||
newDate: function(year, month, day, calendar, language) {
|
||||
calendar = ((typeof year !== 'undefined' && year !== null) && year.year ? year.calendar() :
|
||||
(typeof calendar === 'string' ? this.instance(calendar, language) : calendar)) || this.instance();
|
||||
return calendar.newDate(year, month, day);
|
||||
},
|
||||
|
||||
/** A simple digit substitution function for localising numbers via the
|
||||
{@linkcode GregorianCalendar.regionalOptions|Calendar digits} option.
|
||||
@memberof Calendars
|
||||
@param {string[]} digits The substitute digits, for 0 through 9.
|
||||
@return {CalendarsDigits} The substitution function.
|
||||
@example digits: $.calendars.substituteDigits(['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']) */
|
||||
substituteDigits: function(digits) {
|
||||
return function(value) {
|
||||
return (value + '').replace(/[0-9]/g, function(digit) {
|
||||
return digits[digit];
|
||||
});
|
||||
};
|
||||
},
|
||||
|
||||
/** Digit substitution function for localising Chinese style numbers via the
|
||||
{@linkcode GregorianCalendar.regionalOptions|Calendar digits} option.
|
||||
@memberof Calendars
|
||||
@param {string[]} digits The substitute digits, for 0 through 9.
|
||||
@param {string[]} powers The characters denoting powers of 10, i.e. 1, 10, 100, 1000.
|
||||
@return {CalendarsDigits} The substitution function.
|
||||
@example digits: $.calendars.substituteChineseDigits(
|
||||
['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], ['', '十', '百', '千']) */
|
||||
substituteChineseDigits: function(digits, powers) {
|
||||
return function(value) {
|
||||
var localNumber = '';
|
||||
var power = 0;
|
||||
while (value > 0) {
|
||||
var units = value % 10;
|
||||
localNumber = (units === 0 ? '' : digits[units] + powers[power]) + localNumber;
|
||||
power++;
|
||||
value = Math.floor(value / 10);
|
||||
}
|
||||
if (localNumber.indexOf(digits[1] + powers[1]) === 0) {
|
||||
localNumber = localNumber.substr(1);
|
||||
}
|
||||
return localNumber || digits[0];
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
/** Generic date, based on a particular calendar.
|
||||
@class CDate
|
||||
@param {BaseCalendar} calendar The underlying calendar implementation.
|
||||
@param {number} year The year for this date.
|
||||
@param {number} month The month for this date.
|
||||
@param {number} day The day for this date.
|
||||
@return {CDate} The date object.
|
||||
@throws Error if an invalid date. */
|
||||
function CDate(calendar, year, month, day) {
|
||||
this._calendar = calendar;
|
||||
this._year = year;
|
||||
this._month = month;
|
||||
this._day = day;
|
||||
if (this._calendar._validateLevel === 0 &&
|
||||
!this._calendar.isValid(this._year, this._month, this._day)) {
|
||||
throw ($.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate).
|
||||
replace(/\{0\}/, this._calendar.local.name);
|
||||
}
|
||||
}
|
||||
|
||||
/** Pad a numeric value with leading zeroes.
|
||||
@private
|
||||
@param {number} value The number to format.
|
||||
@param {number} length The minimum length.
|
||||
@return {string} The formatted number. */
|
||||
function pad(value, length) {
|
||||
value = '' + value;
|
||||
return '000000'.substring(0, length - value.length) + value;
|
||||
}
|
||||
|
||||
$.extend(CDate.prototype, {
|
||||
|
||||
/** Create a new date.
|
||||
@memberof CDate
|
||||
@param {CDate|number} [year] The date to copy or the year for the date (default to this date).
|
||||
@param {number} [month] The month for the date (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day for the date (if numeric <code>year</code> specified above).
|
||||
@return {CDate} The new date.
|
||||
@throws Error if an invalid date.
|
||||
@example date.newDate()
|
||||
date.newDate(otherDate)
|
||||
date.newDate(2001, 1, 1) */
|
||||
newDate: function(year, month, day) {
|
||||
return this._calendar.newDate((typeof year === 'undefined' || year === null ? this : year), month, day);
|
||||
},
|
||||
|
||||
/** Set or retrieve the year for this date.
|
||||
@memberof CDate
|
||||
@param {number} [year] The year for the date.
|
||||
@return {number|CDate} The date's year (if no parameter) or the updated date.
|
||||
@throws Error if an invalid date.
|
||||
@example date.year(2001)
|
||||
var year = date.year() */
|
||||
year: function(year) {
|
||||
return (arguments.length === 0 ? this._year : this.set(year, 'y'));
|
||||
},
|
||||
|
||||
/** Set or retrieve the month for this date.
|
||||
@memberof CDate
|
||||
@param {number} [month] The month for the date.
|
||||
@return {number|CDate} The date's month (if no parameter) or the updated date.
|
||||
@throws Error if an invalid date.
|
||||
@example date.month(1)
|
||||
var month = date.month() */
|
||||
month: function(month) {
|
||||
return (arguments.length === 0 ? this._month : this.set(month, 'm'));
|
||||
},
|
||||
|
||||
/** Set or retrieve the day for this date.
|
||||
@memberof CDate
|
||||
@param {number} [day] The day for the date.
|
||||
@return {number|CData} The date's day (if no parameter) or the updated date.
|
||||
@throws Error if an invalid date.
|
||||
@example date.day(1)
|
||||
var day = date.day() */
|
||||
day: function(day) {
|
||||
return (arguments.length === 0 ? this._day : this.set(day, 'd'));
|
||||
},
|
||||
|
||||
/** Set new values for this date.
|
||||
@memberof CDate
|
||||
@param {number} year The year for the date.
|
||||
@param {number} month The month for the date.
|
||||
@param {number} day The day for the date.
|
||||
@return {CDate} The updated date.
|
||||
@throws Error if an invalid date.
|
||||
@example date.date(2001, 1, 1) */
|
||||
date: function(year, month, day) {
|
||||
if (!this._calendar.isValid(year, month, day)) {
|
||||
throw ($.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate).
|
||||
replace(/\{0\}/, this._calendar.local.name);
|
||||
}
|
||||
this._year = year;
|
||||
this._month = month;
|
||||
this._day = day;
|
||||
return this;
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof CDate
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@example if (date.leapYear()) ...*/
|
||||
leapYear: function() {
|
||||
return this._calendar.leapYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the epoch designator for this date, e.g. BCE or CE.
|
||||
@memberof CDate
|
||||
@return {string} The current epoch.
|
||||
@example var epoch = date.epoch() */
|
||||
epoch: function() {
|
||||
return this._calendar.epoch(this);
|
||||
},
|
||||
|
||||
/** Format the year, if not a simple sequential number.
|
||||
@memberof CDate
|
||||
@return {string} The formatted year.
|
||||
@example var year = date.formatYear() */
|
||||
formatYear: function() {
|
||||
return this._calendar.formatYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the month of the year for this date,
|
||||
i.e. the month's position within a numbered year.
|
||||
@memberof CDate
|
||||
@return {number} The month of the year: <code>minMonth</code> to months per year.
|
||||
@example var month = date.monthOfYear() */
|
||||
monthOfYear: function() {
|
||||
return this._calendar.monthOfYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the week of the year for this date.
|
||||
@memberof CDate
|
||||
@return {number} The week of the year: 1 to weeks per year.
|
||||
@example var week = date.weekOfYear() */
|
||||
weekOfYear: function() {
|
||||
return this._calendar.weekOfYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in the year for this date.
|
||||
@memberof CDate
|
||||
@return {number} The number of days in this year.
|
||||
@example var days = date.daysInYear() */
|
||||
daysInYear: function() {
|
||||
return this._calendar.daysInYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the day of the year for this date.
|
||||
@memberof CDate
|
||||
@return {number} The day of the year: 1 to days per year.
|
||||
@example var doy = date.dayOfYear() */
|
||||
dayOfYear: function() {
|
||||
return this._calendar.dayOfYear(this);
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in the month for this date.
|
||||
@memberof CDate
|
||||
@return {number} The number of days.
|
||||
@example var days = date.daysInMonth() */
|
||||
daysInMonth: function() {
|
||||
return this._calendar.daysInMonth(this);
|
||||
},
|
||||
|
||||
/** Retrieve the day of the week for this date.
|
||||
@memberof CDate
|
||||
@return {number} The day of the week: 0 to number of days - 1.
|
||||
@example var dow = date.dayOfWeek() */
|
||||
dayOfWeek: function() {
|
||||
return this._calendar.dayOfWeek(this);
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof CDate
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@example if (date.weekDay()) ... */
|
||||
weekDay: function() {
|
||||
return this._calendar.weekDay(this);
|
||||
},
|
||||
|
||||
/** Retrieve additional information about this date.
|
||||
@memberof CDate
|
||||
@return {object} Additional information - contents depends on calendar.
|
||||
@example var info = date.extraInfo() */
|
||||
extraInfo: function() {
|
||||
return this._calendar.extraInfo(this);
|
||||
},
|
||||
|
||||
/** Add period(s) to a date.
|
||||
@memberof CDate
|
||||
@param {number} offset The number of periods to adjust by.
|
||||
@param {string} period One of 'y' for years, 'm' for months, 'w' for weeks, 'd' for days.
|
||||
@return {CDate} The updated date.
|
||||
@example date.add(10, 'd') */
|
||||
add: function(offset, period) {
|
||||
return this._calendar.add(this, offset, period);
|
||||
},
|
||||
|
||||
/** Set a portion of the date.
|
||||
@memberof CDate
|
||||
@param {number} value The new value for the period.
|
||||
@param {string} period One of 'y' for year, 'm' for month, 'd' for day.
|
||||
@return {CDate} The updated date.
|
||||
@throws Error if not a valid date.
|
||||
@example date.set(10, 'd') */
|
||||
set: function(value, period) {
|
||||
return this._calendar.set(this, value, period);
|
||||
},
|
||||
|
||||
/** Compare this date to another date.
|
||||
@memberof CDate
|
||||
@param {CDate} date The other date.
|
||||
@return {number} -1 if this date is before the other date,
|
||||
0 if they are equal, or +1 if this date is after the other date.
|
||||
@example if (date1.compareTo(date2) < 0) ... */
|
||||
compareTo: function(date) {
|
||||
if (this._calendar.name !== date._calendar.name) {
|
||||
throw ($.calendars.local.differentCalendars || $.calendars.regionalOptions[''].differentCalendars).
|
||||
replace(/\{0\}/, this._calendar.local.name).replace(/\{1\}/, date._calendar.local.name);
|
||||
}
|
||||
var c = (this._year !== date._year ? this._year - date._year :
|
||||
this._month !== date._month ? this.monthOfYear() - date.monthOfYear() :
|
||||
this._day - date._day);
|
||||
return (c === 0 ? 0 : (c < 0 ? -1 : +1));
|
||||
},
|
||||
|
||||
/** Retrieve the calendar backing this date.
|
||||
@memberof CDate
|
||||
@return {BaseCalendar} The calendar implementation.
|
||||
@example var cal = date.calendar() */
|
||||
calendar: function() {
|
||||
return this._calendar;
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof CDate
|
||||
@return {number} The equivalent Julian date.
|
||||
@example var jd = date.toJD() */
|
||||
toJD: function() {
|
||||
return this._calendar.toJD(this);
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof CDate
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date.
|
||||
@example var date2 = date1.fromJD(jd) */
|
||||
fromJD: function(jd) {
|
||||
return this._calendar.fromJD(jd);
|
||||
},
|
||||
|
||||
/** Convert this date to a standard (Gregorian) JavaScript Date.
|
||||
@memberof CDate
|
||||
@return {Date} The equivalent JavaScript date.
|
||||
@example var jsd = date.toJSDate() */
|
||||
toJSDate: function() {
|
||||
return this._calendar.toJSDate(this);
|
||||
},
|
||||
|
||||
/** Create a new date from a standard (Gregorian) JavaScript Date.
|
||||
@memberof CDate
|
||||
@param {Date} jsd The JavaScript date to convert.
|
||||
@return {CDate} The equivalent date.
|
||||
@example var date2 = date1.fromJSDate(jsd) */
|
||||
fromJSDate: function(jsd) {
|
||||
return this._calendar.fromJSDate(jsd);
|
||||
},
|
||||
|
||||
/** Convert to a string for display.
|
||||
@memberof CDate
|
||||
@return {string} This date as a string. */
|
||||
toString: function() {
|
||||
return (this.year() < 0 ? '-' : '') + pad(Math.abs(this.year()), 4) +
|
||||
'-' + pad(this.month(), 2) + '-' + pad(this.day(), 2);
|
||||
}
|
||||
});
|
||||
|
||||
/** Basic functionality for all calendars.
|
||||
Other calendars should extend this:
|
||||
<pre>OtherCalendar.prototype = new BaseCalendar();</pre>
|
||||
@class BaseCalendar */
|
||||
function BaseCalendar() {
|
||||
this.shortYearCutoff = '+10';
|
||||
}
|
||||
|
||||
$.extend(BaseCalendar.prototype, {
|
||||
_validateLevel: 0, // "Stack" to turn validation on/off
|
||||
|
||||
/** Create a new date within this calendar - today if no parameters given.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to duplicate or the year for the date.
|
||||
@param {number} [month] The month for the date (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day for the date (if numeric <code>year</code> specified above).
|
||||
@return {CDate} The new date.
|
||||
@throws Error if not a valid date or a different calendar is used.
|
||||
@example var date = calendar.newDate(2014, 1, 26)
|
||||
var date2 = calendar.newDate(date1)
|
||||
var today = calendar.newDate() */
|
||||
newDate: function(year, month, day) {
|
||||
if (typeof year === 'undefined' || year === null) {
|
||||
return this.today();
|
||||
}
|
||||
if (year.year) {
|
||||
this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
day = year.day();
|
||||
month = year.month();
|
||||
year = year.year();
|
||||
}
|
||||
return new CDate(this, year, month, day);
|
||||
},
|
||||
|
||||
/** Create a new date for today.
|
||||
@memberof BaseCalendar
|
||||
@return {CDate} Today's date.
|
||||
@example var today = calendar.today() */
|
||||
today: function() {
|
||||
return this.fromJSDate(new Date());
|
||||
},
|
||||
|
||||
/** Retrieve the epoch designator for this date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {string} The current epoch.
|
||||
@throws Error if an invalid year or a different calendar is used.
|
||||
@example var epoch = calendar.epoch(date)
|
||||
var epoch = calendar.epoch(2014) */
|
||||
epoch: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return (date.year() < 0 ? this.local.epochs[0] : this.local.epochs[1]);
|
||||
},
|
||||
|
||||
/** Format the year, if not a simple sequential number
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to format or the year to format.
|
||||
@return {string} The formatted year.
|
||||
@throws Error if an invalid year or a different calendar is used.
|
||||
@example var year = calendar.formatYear(date)
|
||||
var year = calendar.formatYear(2014) */
|
||||
formatYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return (date.year() < 0 ? '-' : '') + pad(Math.abs(date.year()), 4);
|
||||
},
|
||||
|
||||
/** Retrieve the number of months in a year.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of months.
|
||||
@throws Error if an invalid year or a different calendar is used.
|
||||
@example var months = calendar.monthsInYear(date)
|
||||
var months = calendar.monthsInYear(2014) */
|
||||
monthsInYear: function(year) {
|
||||
this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return 12;
|
||||
},
|
||||
|
||||
/** Calculate the month's ordinal position within the year -
|
||||
for those calendars that don't start at month 1!
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if numeric <code>year</code> specified above).
|
||||
@return {number} The ordinal position, starting from <code>minMonth</code>.
|
||||
@throws Error if an invalid year/month or a different calendar is used.
|
||||
@example var pos = calendar.monthOfYear(date)
|
||||
var pos = calendar.monthOfYear(2014, 7) */
|
||||
monthOfYear: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay,
|
||||
$.calendars.local.invalidMonth || $.calendars.regionalOptions[''].invalidMonth);
|
||||
return (date.month() + this.monthsInYear(date) - this.firstMonth) %
|
||||
this.monthsInYear(date) + this.minMonth;
|
||||
},
|
||||
|
||||
/** Calculate actual month from ordinal position, starting from <code>minMonth</code>.
|
||||
@memberof BaseCalendar
|
||||
@param {number} year The year to examine.
|
||||
@param {number} ord The month's ordinal position.
|
||||
@return {number} The month's number.
|
||||
@throws Error if an invalid year/month.
|
||||
@example var month = calendar.fromMonthOfYear(2014, 7) */
|
||||
fromMonthOfYear: function(year, ord) {
|
||||
var m = (ord + this.firstMonth - 2 * this.minMonth) %
|
||||
this.monthsInYear(year) + this.minMonth;
|
||||
this._validate(year, m, this.minDay,
|
||||
$.calendars.local.invalidMonth || $.calendars.regionalOptions[''].invalidMonth);
|
||||
return m;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a year.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {number} The number of days.
|
||||
@throws Error if an invalid year or a different calendar is used.
|
||||
@example var days = calendar.daysInYear(date)
|
||||
var days = calendar.daysInYear(2014) */
|
||||
daysInYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
return (this.leapYear(date) ? 366 : 365);
|
||||
},
|
||||
|
||||
/** Retrieve the day of the year for a date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if numeric <code>year</code> specified above).
|
||||
@return {number} The day of the year: 1 to days per year.
|
||||
@throws Error if an invalid date or a different calendar is used.
|
||||
@example var doy = calendar.dayOfYear(date)
|
||||
var doy = calendar.dayOfYear(2014, 7, 1) */
|
||||
dayOfYear: function(year, month, day) {
|
||||
var date = this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
return date.toJD() - this.newDate(date.year(),
|
||||
this.fromMonthOfYear(date.year(), this.minMonth), this.minDay).toJD() + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a week.
|
||||
@memberof BaseCalendar
|
||||
@return {number} The number of days.
|
||||
@example var days = calendar.daysInWeek() */
|
||||
daysInWeek: function() {
|
||||
return 7;
|
||||
},
|
||||
|
||||
/** Retrieve the day of the week for a date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if numeric <code>year</code> specified above).
|
||||
@return {number} The day of the week: 0 to number of days - 1.
|
||||
@throws Error if an invalid date or a different calendar is used.
|
||||
@example var dow = calendar.dayOfWeek(date)
|
||||
var dow = calendar.dayOfWeek(2014, 1, 26) */
|
||||
dayOfWeek: function(year, month, day) {
|
||||
var date = this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
return (Math.floor(this.toJD(date)) + 2) % this.daysInWeek();
|
||||
},
|
||||
|
||||
/** Retrieve additional information about a date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if numeric <code>year</code> specified above).
|
||||
@return {object} Additional information - content depends on calendar.
|
||||
@throws Error if an invalid date or a different calendar is used.
|
||||
@example var info = calendar.extraInfo(date)
|
||||
var info = calendar.extraInfo(2014, 1, 26) */
|
||||
extraInfo: function(year, month, day) {
|
||||
this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
return {};
|
||||
},
|
||||
|
||||
/** Add period(s) to a date.
|
||||
Cater for no year zero.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate} date The starting date.
|
||||
@param {number} offset The number of periods to adjust by.
|
||||
@param {string} period One of 'y' for years, 'm' for months, 'w' for weeks, 'd' for days.
|
||||
@return {CDate} The updated date.
|
||||
@throws Error if a different calendar is used.
|
||||
@example calendar.add(date, 10, 'd') */
|
||||
add: function(date, offset, period) {
|
||||
this._validate(date, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
return this._correctAdd(date, this._add(date, offset, period), offset, period);
|
||||
},
|
||||
|
||||
/** Add period(s) to a date.
|
||||
@memberof BaseCalendar
|
||||
@private
|
||||
@param {CDate} date The starting date.
|
||||
@param {number} offset The number of periods to adjust by.
|
||||
@param {string} period One of 'y' for years, 'm' for months, 'w' for weeks, 'd' for days.
|
||||
@return {number[]} The updated date as year, month, and day. */
|
||||
_add: function(date, offset, period) {
|
||||
this._validateLevel++;
|
||||
var d;
|
||||
if (period === 'd' || period === 'w') {
|
||||
var jd = date.toJD() + offset * (period === 'w' ? this.daysInWeek() : 1);
|
||||
d = date.calendar().fromJD(jd);
|
||||
this._validateLevel--;
|
||||
return [d.year(), d.month(), d.day()];
|
||||
}
|
||||
try {
|
||||
var y = date.year() + (period === 'y' ? offset : 0);
|
||||
var m = date.monthOfYear() + (period === 'm' ? offset : 0);
|
||||
d = date.day();
|
||||
var resyncYearMonth = function(calendar) {
|
||||
while (m < calendar.minMonth) {
|
||||
y--;
|
||||
m += calendar.monthsInYear(y);
|
||||
}
|
||||
var yearMonths = calendar.monthsInYear(y);
|
||||
while (m > yearMonths - 1 + calendar.minMonth) {
|
||||
y++;
|
||||
m -= yearMonths;
|
||||
yearMonths = calendar.monthsInYear(y);
|
||||
}
|
||||
};
|
||||
if (period === 'y') {
|
||||
if (date.month() !== this.fromMonthOfYear(y, m)) { // Hebrew
|
||||
m = this.newDate(y, date.month(), this.minDay).monthOfYear();
|
||||
}
|
||||
m = Math.min(m, this.monthsInYear(y));
|
||||
d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));
|
||||
}
|
||||
else if (period === 'm') {
|
||||
resyncYearMonth(this);
|
||||
d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));
|
||||
}
|
||||
var ymd = [y, this.fromMonthOfYear(y, m), d];
|
||||
this._validateLevel--;
|
||||
return ymd;
|
||||
}
|
||||
catch (e) {
|
||||
this._validateLevel--;
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
|
||||
/** Correct a candidate date after adding period(s) to a date.
|
||||
Handle no year zero if necessary.
|
||||
@memberof BaseCalendar
|
||||
@private
|
||||
@param {CDate} date The starting date.
|
||||
@param {number[]} ymd The added date.
|
||||
@param {number} offset The number of periods to adjust by.
|
||||
@param {string} period One of 'y' for years, 'm' for months, 'w' for weeks, 'd' for days.
|
||||
@return {CDate} The updated date. */
|
||||
_correctAdd: function(date, ymd, offset, period) {
|
||||
if (!this.hasYearZero && (period === 'y' || period === 'm')) {
|
||||
if (ymd[0] === 0 || // In year zero
|
||||
(date.year() > 0) !== (ymd[0] > 0)) { // Crossed year zero
|
||||
var adj = {y: [1, 1, 'y'], m: [1, this.monthsInYear(-1), 'm'],
|
||||
w: [this.daysInWeek(), this.daysInYear(-1), 'd'],
|
||||
d: [1, this.daysInYear(-1), 'd']}[period];
|
||||
var dir = (offset < 0 ? -1 : +1);
|
||||
ymd = this._add(date, offset * adj[0] + dir * adj[1], adj[2]);
|
||||
}
|
||||
}
|
||||
return date.date(ymd[0], ymd[1], ymd[2]);
|
||||
},
|
||||
|
||||
/** Set a portion of the date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate} date The starting date.
|
||||
@param {number} value The new value for the period.
|
||||
@param {string} period One of 'y' for year, 'm' for month, 'd' for day.
|
||||
@return {CDate} The updated date.
|
||||
@throws Error if an invalid date or a different calendar is used.
|
||||
@example calendar.set(date, 10, 'd') */
|
||||
set: function(date, value, period) {
|
||||
this._validate(date, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
var y = (period === 'y' ? value : date.year());
|
||||
var m = (period === 'm' ? value : date.month());
|
||||
var d = (period === 'd' ? value : date.day());
|
||||
if (period === 'y' || period === 'm') {
|
||||
d = Math.min(d, this.daysInMonth(y, m));
|
||||
}
|
||||
return date.date(y, m, d);
|
||||
},
|
||||
|
||||
/** Determine whether a date is valid for this calendar.
|
||||
@memberof BaseCalendar
|
||||
@param {number} year The year to examine.
|
||||
@param {number} month The month to examine.
|
||||
@param {number} day The day to examine.
|
||||
@return {boolean} <code>true</code> if a valid date, <code>false</code> if not.
|
||||
@example if (calendar.isValid(2014, 2, 31)) ... */
|
||||
isValid: function(year, month, day) {
|
||||
this._validateLevel++;
|
||||
var valid = (this.hasYearZero || year !== 0);
|
||||
if (valid) {
|
||||
var date = this.newDate(year, month, this.minDay);
|
||||
valid = (month >= this.minMonth && month - this.minMonth < this.monthsInYear(date)) &&
|
||||
(day >= this.minDay && day - this.minDay < this.daysInMonth(date));
|
||||
}
|
||||
this._validateLevel--;
|
||||
return valid;
|
||||
},
|
||||
|
||||
/** Convert the date to a standard (Gregorian) JavaScript Date.
|
||||
@memberof BaseCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if numeric <code>year</code> specified above).
|
||||
@return {Date} The equivalent JavaScript date.
|
||||
@throws Error if an invalid date or a different calendar is used.
|
||||
@example var jsd = calendar.toJSDate(date)
|
||||
var jsd = calendar.toJSDate(2014, 1, 26) */
|
||||
toJSDate: function(year, month, day) {
|
||||
var date = this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
return $.calendars.instance().fromJD(this.toJD(date)).toJSDate();
|
||||
},
|
||||
|
||||
/** Convert the date from a standard (Gregorian) JavaScript Date.
|
||||
@memberof BaseCalendar
|
||||
@param {Date} jsd The JavaScript date.
|
||||
@return {CDate} The equivalent calendar date.
|
||||
@example var date = calendar.fromJSDate(jsd) */
|
||||
fromJSDate: function(jsd) {
|
||||
return this.fromJD($.calendars.instance().fromJSDate(jsd).toJD());
|
||||
},
|
||||
|
||||
/** Check that a candidate date is from the same calendar and is valid.
|
||||
@memberof BaseCalendar
|
||||
@private
|
||||
@param {CDate|number} year The date to validate or the year to validate.
|
||||
@param {number} [month] The month to validate (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to validate (if numeric <code>year</code> specified above).
|
||||
@param {string} error Error message if invalid.
|
||||
@throws Error if an invalid date or a different calendar is used. */
|
||||
_validate: function(year, month, day, error) {
|
||||
if (year.year) {
|
||||
if (this._validateLevel === 0 && this.name !== year.calendar().name) {
|
||||
throw ($.calendars.local.differentCalendars || $.calendars.regionalOptions[''].differentCalendars).
|
||||
replace(/\{0\}/, this.local.name).replace(/\{1\}/, year.calendar().local.name);
|
||||
}
|
||||
return year;
|
||||
}
|
||||
try {
|
||||
this._validateLevel++;
|
||||
if (this._validateLevel === 1 && !this.isValid(year, month, day)) {
|
||||
throw error.replace(/\{0\}/, this.local.name);
|
||||
}
|
||||
var date = this.newDate(year, month, day);
|
||||
this._validateLevel--;
|
||||
return date;
|
||||
}
|
||||
catch (e) {
|
||||
this._validateLevel--;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/** Implementation of the Proleptic Gregorian Calendar.
|
||||
See <a href=":http://en.wikipedia.org/wiki/Gregorian_calendar">http://en.wikipedia.org/wiki/Gregorian_calendar</a>
|
||||
and <a href="http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar">http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar</a>.
|
||||
@class GregorianCalendar
|
||||
@augments BaseCalendar
|
||||
@param {string} [language=''] The language code (default English) for localisation. */
|
||||
function GregorianCalendar(language) {
|
||||
this.local = this.regionalOptions[language] || this.regionalOptions[''];
|
||||
}
|
||||
|
||||
GregorianCalendar.prototype = new BaseCalendar();
|
||||
|
||||
$.extend(GregorianCalendar.prototype, {
|
||||
/** The calendar name.
|
||||
@memberof GregorianCalendar */
|
||||
name: 'Gregorian',
|
||||
/** Julian date of start of Gregorian epoch: 1 January 0001 CE.
|
||||
@memberof GregorianCalendar */
|
||||
jdEpoch: 1721425.5,
|
||||
/** Days per month in a common year.
|
||||
@memberof GregorianCalendar */
|
||||
daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
||||
/** <code>true</code> if has a year zero, <code>false</code> if not.
|
||||
@memberof GregorianCalendar */
|
||||
hasYearZero: false,
|
||||
/** The minimum month number.
|
||||
@memberof GregorianCalendar */
|
||||
minMonth: 1,
|
||||
/** The first month in the year.
|
||||
@memberof GregorianCalendar */
|
||||
firstMonth: 1,
|
||||
/** The minimum day number.
|
||||
@memberof GregorianCalendar */
|
||||
minDay: 1,
|
||||
|
||||
/** Convert a number into a localised form.
|
||||
@callback CalendarsDigits
|
||||
@param {number} value The number to convert.
|
||||
@return {string} The localised number.
|
||||
@example digits: $.calendars.substituteDigits(['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']) */
|
||||
|
||||
/** Localisations for the plugin.
|
||||
Entries are objects indexed by the language code ('' being the default US/English).
|
||||
Each object has the following attributes.
|
||||
@memberof GregorianCalendar
|
||||
@property {string} [name='Gregorian'] The calendar name.
|
||||
@property {string[]} [epochs=['BCE','CE']] The epoch names.
|
||||
@property {string[]} [monthNames=[...]] The long names of the months of the year.
|
||||
@property {string[]} [monthNamesShort=[...]] The short names of the months of the year.
|
||||
@property {string[]} [dayNames=[...]] The long names of the days of the week.
|
||||
@property {string[]} [dayNamesShort=[...]] The short names of the days of the week.
|
||||
@property {string[]} [dayNamesMin=[...]] The minimal names of the days of the week.
|
||||
@property {CalendarsDigits} [digits=null] Convert numbers to localised versions.
|
||||
@property {string} [dateFormat='mm/dd/yyyy'] The date format for this calendar.
|
||||
See the options on {@linkcode BaseCalendar.formatDate|formatDate} for details.
|
||||
@property {number} [firstDay=0] The number of the first day of the week, starting at 0.
|
||||
@property {boolean} [isRTL=false] <code>true</code> if this localisation reads right-to-left. */
|
||||
regionalOptions: { // Localisations
|
||||
'': {
|
||||
name: 'Gregorian',
|
||||
epochs: ['BCE', 'CE'],
|
||||
monthNames: ['January', 'February', 'March', 'April', 'May', 'June',
|
||||
'July', 'August', 'September', 'October', 'November', 'December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
||||
digits: null,
|
||||
dateFormat: 'mm/dd/yyyy',
|
||||
firstDay: 0,
|
||||
isRTL: false
|
||||
}
|
||||
},
|
||||
|
||||
/** Determine whether this date is in a leap year.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@return {boolean} <code>true</code> if this is a leap year, <code>false</code> if not.
|
||||
@throws Error if an invalid year or a different calendar is used. */
|
||||
leapYear: function(year) {
|
||||
var date = this._validate(year, this.minMonth, this.minDay,
|
||||
$.calendars.local.invalidYear || $.calendars.regionalOptions[''].invalidYear);
|
||||
year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero
|
||||
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
||||
},
|
||||
|
||||
/** Determine the week of the year for a date - ISO 8601.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if numeric <code>year</code> specified above).
|
||||
@return {number} The week of the year, starting from 1.
|
||||
@throws Error if an invalid date or a different calendar is used. */
|
||||
weekOfYear: function(year, month, day) {
|
||||
// Find Thursday of this week starting on Monday
|
||||
var checkDate = this.newDate(year, month, day);
|
||||
checkDate.add(4 - (checkDate.dayOfWeek() || 7), 'd');
|
||||
return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;
|
||||
},
|
||||
|
||||
/** Retrieve the number of days in a month.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to examine or the year of the month.
|
||||
@param {number} [month] The month (if numeric <code>year</code> specified above).
|
||||
@return {number} The number of days in this month.
|
||||
@throws Error if an invalid month/year or a different calendar is used. */
|
||||
daysInMonth: function(year, month) {
|
||||
var date = this._validate(year, month, this.minDay,
|
||||
$.calendars.local.invalidMonth || $.calendars.regionalOptions[''].invalidMonth);
|
||||
return this.daysPerMonth[date.month() - 1] +
|
||||
(date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);
|
||||
},
|
||||
|
||||
/** Determine whether this date is a week day.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to examine or the year to examine.
|
||||
@param {number} [month] The month to examine (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to examine (if numeric <code>year</code> specified above).
|
||||
@return {boolean} <code>true</code> if a week day, <code>false</code> if not.
|
||||
@throws Error if an invalid date or a different calendar is used. */
|
||||
weekDay: function(year, month, day) {
|
||||
return (this.dayOfWeek(year, month, day) || 7) < 6;
|
||||
},
|
||||
|
||||
/** Retrieve the Julian date equivalent for this date,
|
||||
i.e. days since January 1, 4713 BCE Greenwich noon.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if numeric <code>year</code> specified above).
|
||||
@return {number} The equivalent Julian date.
|
||||
@throws Error if an invalid date or a different calendar is used. */
|
||||
toJD: function(year, month, day) {
|
||||
var date = this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
year = date.year();
|
||||
month = date.month();
|
||||
day = date.day();
|
||||
if (year < 0) { year++; } // No year zero
|
||||
// Jean Meeus algorithm, "Astronomical Algorithms", 1991
|
||||
if (month < 3) {
|
||||
month += 12;
|
||||
year--;
|
||||
}
|
||||
var a = Math.floor(year / 100);
|
||||
var b = 2 - a + Math.floor(a / 4);
|
||||
return Math.floor(365.25 * (year + 4716)) +
|
||||
Math.floor(30.6001 * (month + 1)) + day + b - 1524.5;
|
||||
},
|
||||
|
||||
/** Create a new date from a Julian date.
|
||||
@memberof GregorianCalendar
|
||||
@param {number} jd The Julian date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJD: function(jd) {
|
||||
// Jean Meeus algorithm, "Astronomical Algorithms", 1991
|
||||
var z = Math.floor(jd + 0.5);
|
||||
var a = Math.floor((z - 1867216.25) / 36524.25);
|
||||
a = z + 1 + a - Math.floor(a / 4);
|
||||
var b = a + 1524;
|
||||
var c = Math.floor((b - 122.1) / 365.25);
|
||||
var d = Math.floor(365.25 * c);
|
||||
var e = Math.floor((b - d) / 30.6001);
|
||||
var day = b - d - Math.floor(e * 30.6001);
|
||||
var month = e - (e > 13.5 ? 13 : 1);
|
||||
var year = c - (month > 2.5 ? 4716 : 4715);
|
||||
if (year <= 0) { year--; } // No year zero
|
||||
return this.newDate(year, month, day);
|
||||
},
|
||||
|
||||
/** Convert this date to a standard (Gregorian) JavaScript Date.
|
||||
@memberof GregorianCalendar
|
||||
@param {CDate|number} year The date to convert or the year to convert.
|
||||
@param {number} [month] The month to convert (if numeric <code>year</code> specified above).
|
||||
@param {number} [day] The day to convert (if numeric <code>year</code> specified above).
|
||||
@return {Date} The equivalent JavaScript date.
|
||||
@throws Error if an invalid date or a different calendar is used. */
|
||||
toJSDate: function(year, month, day) {
|
||||
var date = this._validate(year, month, day,
|
||||
$.calendars.local.invalidDate || $.calendars.regionalOptions[''].invalidDate);
|
||||
var jsd = new Date(date.year(), date.month() - 1, date.day());
|
||||
jsd.setHours(0);
|
||||
jsd.setMinutes(0);
|
||||
jsd.setSeconds(0);
|
||||
jsd.setMilliseconds(0);
|
||||
// Hours may be non-zero on daylight saving cut-over:
|
||||
// > 12 when midnight changeover, but then cannot generate
|
||||
// midnight datetime, so jump to 1AM, otherwise reset.
|
||||
jsd.setHours(jsd.getHours() > 12 ? jsd.getHours() + 2 : 0);
|
||||
return jsd;
|
||||
},
|
||||
|
||||
/** Create a new date from a standard (Gregorian) JavaScript Date.
|
||||
@memberof GregorianCalendar
|
||||
@param {Date} jsd The JavaScript date to convert.
|
||||
@return {CDate} The equivalent date. */
|
||||
fromJSDate: function(jsd) {
|
||||
return this.newDate(jsd.getFullYear(), jsd.getMonth() + 1, jsd.getDate());
|
||||
}
|
||||
});
|
||||
|
||||
// Singleton manager
|
||||
$.calendars = new Calendars();
|
||||
|
||||
// Date template
|
||||
$.calendars.cdate = CDate;
|
||||
|
||||
// Base calendar template
|
||||
$.calendars.baseCalendar = BaseCalendar;
|
||||
|
||||
// Gregorian calendar implementation
|
||||
$.calendars.calendars.gregorian = GregorianCalendar;
|
||||
|
||||
})(jQuery);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user