@daypilot/daypilot-lite-angular 3.13.0 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/esm2020/lib/core/daypilot-core.mjs +233 -232
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +226 -227
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +232 -231
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2023 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2023.2.
|
|
133
|
+
Version: 2023.2.470-lite
|
|
134
134
|
*/
|
|
135
135
|
if ("undefined" == typeof DayPilot)
|
|
136
136
|
var DayPilot = {};
|
|
@@ -497,7 +497,7 @@ if (function () {
|
|
|
497
497
|
return null;
|
|
498
498
|
var t = e.toLowerCase();
|
|
499
499
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
500
|
-
}, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "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.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "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.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "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.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "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", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "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", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "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", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "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", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) {
|
|
500
|
+
}, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "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", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "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.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "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.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "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.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "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", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "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", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "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", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "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", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "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", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-tw", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "timePattern": "tt hh:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d tt hh:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) {
|
|
501
501
|
function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.G; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.G = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.q(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
|
|
502
502
|
var i = this;
|
|
503
503
|
this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.k = null, this.l = DayPilot.Date.today(), this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) {
|
|
@@ -586,9 +586,7 @@ if (function () {
|
|
|
586
586
|
}, this.t = function () {
|
|
587
587
|
for (var e = 0; e < this.f.length; e++)
|
|
588
588
|
this.f[e].p();
|
|
589
|
-
}, Object.defineProperty(this, "active", {
|
|
590
|
-
get: function () { return i.k; }
|
|
591
|
-
}), this.events = {}, this.events.load = function (e, t, a) {
|
|
589
|
+
}, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) {
|
|
592
590
|
if (!i.k || !i.k.control)
|
|
593
591
|
throw "DayPilot.Switcher.events.load(): Active view not found";
|
|
594
592
|
i.k.control.events.load(e, t, a);
|
|
@@ -978,15 +976,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
978
976
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
979
977
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
980
978
|
var n = this;
|
|
981
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.
|
|
979
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.470-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
|
|
982
980
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
983
981
|
i = i.parentNode;
|
|
984
982
|
var a = document.createElement("div");
|
|
985
983
|
a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
|
|
986
984
|
var o = document.createElement("div");
|
|
987
985
|
return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
988
|
-
}, this.
|
|
989
|
-
|
|
986
|
+
}, this._ = {}, this._.locale = function () {
|
|
987
|
+
var e = DayPilot.Locale.find(n.locale);
|
|
988
|
+
return e ? e : DayPilot.Locale.US;
|
|
989
|
+
}, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
990
|
+
var o = this._;
|
|
990
991
|
this.T = function (e, t) {
|
|
991
992
|
if (e && 0 === e.indexOf("$$$")) {
|
|
992
993
|
if (!window.console)
|
|
@@ -998,15 +999,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
998
999
|
return void (document.location.href = e.CallBackRedirect);
|
|
999
1000
|
if ("None" === e.UpdateType)
|
|
1000
1001
|
return n.loadingStop(), void n.s();
|
|
1001
|
-
if (n.
|
|
1002
|
+
if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ba()), e.Hashes)
|
|
1002
1003
|
for (var i in e.Hashes)
|
|
1003
1004
|
n.hashes[i] = e.Hashes[i];
|
|
1004
|
-
n.events.list = e.Events, n.
|
|
1005
|
-
}, this.
|
|
1005
|
+
n.events.list = e.Events, n.ca(), n.da(), "Full" === e.UpdateType && (n.ea(), n.fa(), n.ga(), n.ha()), n.s(), n.ia(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
1006
|
+
}, this.ja = function () { return this.ka() / 36e5; }, this.la = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.ma = function () { return this.ka() / 18e5; }, this.ka = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.la() : 24, 60 * e * 60 * 1e3; }, this.na = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.oa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.pa = function (e) {
|
|
1006
1007
|
var t = this, i = t.event;
|
|
1007
|
-
if (n.
|
|
1008
|
+
if (n.oa()) {
|
|
1008
1009
|
var a = {};
|
|
1009
|
-
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.
|
|
1010
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.qa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
1010
1011
|
return;
|
|
1011
1012
|
switch (n.eventClickHandling) {
|
|
1012
1013
|
case "CallBack":
|
|
@@ -1019,7 +1020,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1019
1020
|
var o = i.client.contextMenu();
|
|
1020
1021
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
1021
1022
|
}
|
|
1022
|
-
"function" == typeof n.onEventClicked && n.
|
|
1023
|
+
"function" == typeof n.onEventClicked && n.qa.apply(function () { n.onEventClicked(a); });
|
|
1023
1024
|
}
|
|
1024
1025
|
else
|
|
1025
1026
|
switch (n.eventClickHandling) {
|
|
@@ -1031,7 +1032,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1031
1032
|
break;
|
|
1032
1033
|
case "JavaScript": n.onEventClick(i);
|
|
1033
1034
|
}
|
|
1034
|
-
}, this.
|
|
1035
|
+
}, this.ra = function (e) {
|
|
1035
1036
|
var t = this.event;
|
|
1036
1037
|
if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
1037
1038
|
return !1;
|
|
@@ -1044,10 +1045,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1044
1045
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
1045
1046
|
}
|
|
1046
1047
|
return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
|
|
1047
|
-
}, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.
|
|
1048
|
-
if (n.
|
|
1048
|
+
}, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.sa = function (e) {
|
|
1049
|
+
if (n.oa()) {
|
|
1049
1050
|
var t = {};
|
|
1050
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
1051
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.qa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
1051
1052
|
return;
|
|
1052
1053
|
switch (n.eventDeleteHandling) {
|
|
1053
1054
|
case "CallBack":
|
|
@@ -1058,7 +1059,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1058
1059
|
break;
|
|
1059
1060
|
case "Update": n.events.remove(e);
|
|
1060
1061
|
}
|
|
1061
|
-
"function" == typeof n.onEventDeleted && n.
|
|
1062
|
+
"function" == typeof n.onEventDeleted && n.qa.apply(function () { n.onEventDeleted(t); });
|
|
1062
1063
|
}
|
|
1063
1064
|
else
|
|
1064
1065
|
switch (n.eventDeleteHandling) {
|
|
@@ -1087,16 +1088,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1087
1088
|
}, this.I = function (e, t, i, a) {
|
|
1088
1089
|
var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
|
|
1089
1090
|
if ("top" === a) {
|
|
1090
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1091
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
1091
1092
|
r = c.addTime(f + m), s = e.end();
|
|
1092
1093
|
}
|
|
1093
1094
|
else if ("bottom" === a) {
|
|
1094
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1095
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
1095
1096
|
r = l, s = c.addTime(f + m);
|
|
1096
1097
|
}
|
|
1097
|
-
if (n.
|
|
1098
|
+
if (n.oa()) {
|
|
1098
1099
|
var p = {};
|
|
1099
|
-
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.
|
|
1100
|
+
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.qa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
1100
1101
|
return;
|
|
1101
1102
|
switch (n.eventResizeHandling) {
|
|
1102
1103
|
case "PostBack":
|
|
@@ -1107,7 +1108,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1107
1108
|
break;
|
|
1108
1109
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
1109
1110
|
}
|
|
1110
|
-
"function" == typeof n.onEventResized && n.
|
|
1111
|
+
"function" == typeof n.onEventResized && n.qa.apply(function () { n.onEventResized(p); });
|
|
1111
1112
|
}
|
|
1112
1113
|
else
|
|
1113
1114
|
switch (n.eventResizeHandling) {
|
|
@@ -1136,12 +1137,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1136
1137
|
}, this.K = function (e, t, i, a) {
|
|
1137
1138
|
var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
|
|
1138
1139
|
l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
|
|
1139
|
-
var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.
|
|
1140
|
+
var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ta[t], m = f.id, p = f.start.getTime(), v = new Date;
|
|
1140
1141
|
v.setTime(p + s + u);
|
|
1141
1142
|
var y = new DayPilot.Date(v), g = y.addTime(h);
|
|
1142
|
-
if (n.
|
|
1143
|
+
if (n.oa()) {
|
|
1143
1144
|
var b = {};
|
|
1144
|
-
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
1145
|
+
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.qa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
1145
1146
|
return;
|
|
1146
1147
|
switch (n.eventMoveHandling) {
|
|
1147
1148
|
case "PostBack":
|
|
@@ -1152,7 +1153,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1152
1153
|
break;
|
|
1153
1154
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
1154
1155
|
}
|
|
1155
|
-
"function" == typeof n.onEventMoved && n.
|
|
1156
|
+
"function" == typeof n.onEventMoved && n.qa.apply(function () { n.onEventMoved(b); });
|
|
1156
1157
|
}
|
|
1157
1158
|
else
|
|
1158
1159
|
switch (n.eventMoveHandling) {
|
|
@@ -1165,9 +1166,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1165
1166
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
1166
1167
|
}
|
|
1167
1168
|
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) {
|
|
1168
|
-
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.
|
|
1169
|
+
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.oa()) {
|
|
1169
1170
|
var a = {};
|
|
1170
|
-
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
1171
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.qa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
1171
1172
|
return;
|
|
1172
1173
|
switch (n.timeRangeSelectedHandling) {
|
|
1173
1174
|
case "PostBack":
|
|
@@ -1175,7 +1176,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1175
1176
|
break;
|
|
1176
1177
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
1177
1178
|
}
|
|
1178
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
1179
|
+
"function" == typeof n.onTimeRangeSelected && n.qa.apply(function () { n.onTimeRangeSelected(a); });
|
|
1179
1180
|
}
|
|
1180
1181
|
else
|
|
1181
1182
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -1187,13 +1188,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1187
1188
|
break;
|
|
1188
1189
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
1189
1190
|
}
|
|
1190
|
-
}, this.
|
|
1191
|
+
}, this.ua = function (e) {
|
|
1191
1192
|
if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
1192
1193
|
var i = e.which;
|
|
1193
1194
|
if (1 === i || 0 === i)
|
|
1194
|
-
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.
|
|
1195
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.va(), !1;
|
|
1195
1196
|
}
|
|
1196
|
-
}, this.
|
|
1197
|
+
}, this.va = function () {
|
|
1197
1198
|
this.getSelection();
|
|
1198
1199
|
!function () {
|
|
1199
1200
|
var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
|
|
@@ -1203,7 +1204,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1203
1204
|
if (t[i] === e)
|
|
1204
1205
|
return i;
|
|
1205
1206
|
return -1;
|
|
1206
|
-
}(), o = n.
|
|
1207
|
+
}(), o = n.ta[a];
|
|
1207
1208
|
if (o) {
|
|
1208
1209
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
|
|
1209
1210
|
if (n.nav.activeSelection)
|
|
@@ -1216,12 +1217,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1216
1217
|
c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
1217
1218
|
}
|
|
1218
1219
|
}();
|
|
1219
|
-
}, this.
|
|
1220
|
+
}, this.wa = function (e) {
|
|
1220
1221
|
if ("undefined" != typeof t && t.selecting) {
|
|
1221
1222
|
var i = DayPilot.mc(e);
|
|
1222
|
-
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1223
|
+
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va());
|
|
1223
1224
|
}
|
|
1224
|
-
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.
|
|
1225
|
+
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.xa = function (e) {
|
|
1225
1226
|
if (e < 0)
|
|
1226
1227
|
return null;
|
|
1227
1228
|
for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
@@ -1229,11 +1230,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1229
1230
|
return a;
|
|
1230
1231
|
}
|
|
1231
1232
|
return null;
|
|
1232
|
-
}, this.
|
|
1233
|
+
}, this.ya = {}, this.ya.getCellCoords = function () {
|
|
1233
1234
|
var e = {};
|
|
1234
1235
|
if (e.x = 0, e.y = 0, !n.coords)
|
|
1235
1236
|
return null;
|
|
1236
|
-
e.x = n.
|
|
1237
|
+
e.x = n.xa(n.coords.x);
|
|
1237
1238
|
var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
|
|
1238
1239
|
return e.y = i, e.x < 0 ? null : e;
|
|
1239
1240
|
}, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
|
|
@@ -1252,18 +1253,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1252
1253
|
var s = {};
|
|
1253
1254
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1254
1255
|
return;
|
|
1255
|
-
n.columns.list = i, n.
|
|
1256
|
+
n.columns.list = i, n.za && n.update();
|
|
1256
1257
|
}
|
|
1257
1258
|
};
|
|
1258
1259
|
n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a });
|
|
1259
|
-
}, this.
|
|
1260
|
+
}, this.ba = function () {
|
|
1260
1261
|
var e;
|
|
1261
|
-
e = "Resources" !== n.viewType ? this.
|
|
1262
|
+
e = "Resources" !== n.viewType ? this.Aa() : n.columns.list, this.ta = [];
|
|
1262
1263
|
for (var t = 0; t < e.length; t++) {
|
|
1263
|
-
var i = this.
|
|
1264
|
-
this.
|
|
1264
|
+
var i = this.Ba(e[t]);
|
|
1265
|
+
this.ta.push(i);
|
|
1265
1266
|
}
|
|
1266
|
-
}, this.
|
|
1267
|
+
}, this.Ba = function (e) {
|
|
1267
1268
|
var t = {};
|
|
1268
1269
|
return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) {
|
|
1269
1270
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
@@ -1304,7 +1305,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1304
1305
|
return !0;
|
|
1305
1306
|
}, i.push(e), this.lines.push(i), this.lines.length - 1;
|
|
1306
1307
|
}, t;
|
|
1307
|
-
}, this.
|
|
1308
|
+
}, this.Aa = function () {
|
|
1308
1309
|
var e = [], t = this.startDate.getDatePart(), i = this.days;
|
|
1309
1310
|
switch (this.viewType) {
|
|
1310
1311
|
case "Day":
|
|
@@ -1323,22 +1324,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1323
1324
|
return e;
|
|
1324
1325
|
}, this.visibleStart = function () {
|
|
1325
1326
|
if ("Resources" === n.viewType) {
|
|
1326
|
-
if (0 === n.
|
|
1327
|
+
if (0 === n.ta.length)
|
|
1327
1328
|
return DayPilot.Date.today();
|
|
1328
|
-
var e = n.
|
|
1329
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
1329
1330
|
return new DayPilot.Date(t);
|
|
1330
1331
|
}
|
|
1331
|
-
return this.
|
|
1332
|
+
return this.ta[0].start;
|
|
1332
1333
|
}, this.visibleEnd = function () {
|
|
1333
1334
|
if ("Resources" === n.viewType) {
|
|
1334
|
-
if (0 === n.
|
|
1335
|
+
if (0 === n.ta.length)
|
|
1335
1336
|
return DayPilot.Date.today().addDays(1);
|
|
1336
|
-
var e = n.
|
|
1337
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
1337
1338
|
return new DayPilot.Date(t).addDays(1);
|
|
1338
1339
|
}
|
|
1339
|
-
var t = this.
|
|
1340
|
-
return this.
|
|
1341
|
-
}, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
1340
|
+
var t = this.ta.length - 1;
|
|
1341
|
+
return this.ta[t].start.addDays(1);
|
|
1342
|
+
}, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () {
|
|
1342
1343
|
if (this.elements.events)
|
|
1343
1344
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
1344
1345
|
var t = this.elements.events[e], i = t.event;
|
|
@@ -1349,9 +1350,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1349
1350
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
1350
1351
|
}
|
|
1351
1352
|
this.elements.events = [];
|
|
1352
|
-
}, this.
|
|
1353
|
+
}, this.Ca = function (e) {
|
|
1353
1354
|
var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
|
|
1354
|
-
o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.
|
|
1355
|
+
o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.pa, DayPilot.re(o, "contextmenu", this.ra), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
|
|
1355
1356
|
var a = 5;
|
|
1356
1357
|
if ("undefined" != typeof t) {
|
|
1357
1358
|
var r = DayPilot.mo3(o, i);
|
|
@@ -1367,7 +1368,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1367
1368
|
if (1 === a && e.client.moveEnabled()) {
|
|
1368
1369
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
1369
1370
|
var o = t.moving.helper = {};
|
|
1370
|
-
o.oldColumn = n.
|
|
1371
|
+
o.oldColumn = n.ta[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
1371
1372
|
var r = DayPilot.mo3(this, i);
|
|
1372
1373
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
1373
1374
|
}
|
|
@@ -1385,23 +1386,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1385
1386
|
}
|
|
1386
1387
|
if (e.client.deleteEnabled()) {
|
|
1387
1388
|
var h = document.createElement("div");
|
|
1388
|
-
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.
|
|
1389
|
+
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.sa(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
|
|
1389
1390
|
}
|
|
1390
1391
|
var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1391
1392
|
if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
1392
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
1393
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
|
|
1393
1394
|
}
|
|
1394
1395
|
n.elements.events.push(o);
|
|
1395
|
-
}, this.
|
|
1396
|
+
}, this.Da = function (e) {
|
|
1396
1397
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
1397
1398
|
try {
|
|
1398
1399
|
var a = e.childNodes[i];
|
|
1399
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
1400
|
+
1 === a.nodeType && (a.unselectable = "on", this.Da(a));
|
|
1400
1401
|
}
|
|
1401
1402
|
catch (e) { }
|
|
1402
|
-
}, this.
|
|
1403
|
-
for (var e = 0; e < this.
|
|
1404
|
-
var t = this.
|
|
1403
|
+
}, this.ia = function () {
|
|
1404
|
+
for (var e = 0; e < this.ta.length; e++) {
|
|
1405
|
+
var t = this.ta[e];
|
|
1405
1406
|
if (t.blocks)
|
|
1406
1407
|
for (var i = 0; i < t.blocks.length; i++)
|
|
1407
1408
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -1409,13 +1410,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1409
1410
|
var s = o[r];
|
|
1410
1411
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
1411
1412
|
var l = n === a.lines.length - 1;
|
|
1412
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
1413
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
|
|
1413
1414
|
}
|
|
1414
1415
|
}
|
|
1415
|
-
}, this.
|
|
1416
|
+
}, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ia(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ia(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ja()), n.appendChild(this.Ka()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ja = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ka = function () {
|
|
1416
1417
|
var e = document.createElement("table");
|
|
1417
1418
|
e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
|
|
1418
|
-
for (var t = this.
|
|
1419
|
+
for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
1419
1420
|
var r = a.insertCell(-1);
|
|
1420
1421
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
1421
1422
|
var s = document.createElement("div");
|
|
@@ -1424,38 +1425,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1424
1425
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
1425
1426
|
}
|
|
1426
1427
|
return e;
|
|
1427
|
-
}, this.
|
|
1428
|
+
}, this.Ia = function () {
|
|
1428
1429
|
var e = document.createElement("table");
|
|
1429
1430
|
e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
|
|
1430
|
-
for (var t = n.
|
|
1431
|
-
this.
|
|
1431
|
+
for (var t = n.ja(), i = 0; i < t; i++)
|
|
1432
|
+
this.La(e, i);
|
|
1432
1433
|
return e;
|
|
1433
|
-
}, this.
|
|
1434
|
+
}, this.La = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () {
|
|
1434
1435
|
switch (this.heightSpec) {
|
|
1435
1436
|
case "Full": return 48 * this.cellHeight;
|
|
1436
1437
|
case "BusinessHours":
|
|
1437
|
-
var e = this.
|
|
1438
|
+
var e = this.la();
|
|
1438
1439
|
return e * this.cellHeight * 2;
|
|
1439
1440
|
case "BusinessHoursNoScroll":
|
|
1440
|
-
var e = this.
|
|
1441
|
+
var e = this.la();
|
|
1441
1442
|
return e * this.cellHeight * 2;
|
|
1442
1443
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1443
1444
|
}
|
|
1444
|
-
}, this.
|
|
1445
|
+
}, this.Ma = function () {
|
|
1445
1446
|
var e = n.nav.corner ? n.nav.corner.parentNode : null;
|
|
1446
1447
|
if (e) {
|
|
1447
1448
|
e.innerHTML = "";
|
|
1448
|
-
var t = this.
|
|
1449
|
+
var t = this.Na();
|
|
1449
1450
|
e.appendChild(t), n.nav.corner = t;
|
|
1450
1451
|
}
|
|
1451
|
-
}, this.
|
|
1452
|
+
}, this.Ga = function () {
|
|
1452
1453
|
var e = document.createElement("div");
|
|
1453
1454
|
e.style.overflow = "auto";
|
|
1454
1455
|
var t = document.createElement("table");
|
|
1455
1456
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1456
1457
|
var i = t.insertRow(-1), a = i.insertCell(-1);
|
|
1457
1458
|
a.style.padding = "0px", a.style.border = "0px none";
|
|
1458
|
-
var n = this.
|
|
1459
|
+
var n = this.Na();
|
|
1459
1460
|
a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
|
|
1460
1461
|
var o = "hidden" !== this.nav.scroll.style.overflow;
|
|
1461
1462
|
if (a.appendChild(this.nav.header), o) {
|
|
@@ -1466,7 +1467,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1466
1467
|
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
1467
1468
|
}
|
|
1468
1469
|
return e.appendChild(t), e;
|
|
1469
|
-
}, this.
|
|
1470
|
+
}, this.Na = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () {
|
|
1470
1471
|
var e = this.nav.main;
|
|
1471
1472
|
e.root = null, e.onmouseup = null;
|
|
1472
1473
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1475,9 +1476,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1475
1476
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
1476
1477
|
}
|
|
1477
1478
|
this.fasterDispose || DayPilot.pu(e);
|
|
1478
|
-
}, this.
|
|
1479
|
-
var e = this.nav.main, i = 18e5, a = this.
|
|
1480
|
-
for (e && this.
|
|
1479
|
+
}, this.fa = function () {
|
|
1480
|
+
var e = this.nav.main, i = 18e5, a = this.ma(), o = n.ta;
|
|
1481
|
+
for (e && this.W(); e && e.rows && e.rows.length > 0;)
|
|
1481
1482
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1482
1483
|
this.tableCreated = !0;
|
|
1483
1484
|
for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
@@ -1494,11 +1495,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1494
1495
|
var l = e.insertRow(-1);
|
|
1495
1496
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
1496
1497
|
for (var d = 0; d < r; d++) {
|
|
1497
|
-
var m = this.
|
|
1498
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
1498
|
+
var m = this.ta[d], c = l.insertCell(-1);
|
|
1499
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
1499
1500
|
var u = document.createElement("div");
|
|
1500
1501
|
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
1501
|
-
this.
|
|
1502
|
+
this.Oa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
|
|
1502
1503
|
var p = document.createElement("div");
|
|
1503
1504
|
p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
|
|
1504
1505
|
}
|
|
@@ -1508,7 +1509,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1508
1509
|
n.coords = DayPilot.mo3(i, e);
|
|
1509
1510
|
var a = DayPilot.mc(e);
|
|
1510
1511
|
if (t.resizing) {
|
|
1511
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
1512
|
+
t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
|
|
1512
1513
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
1513
1514
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1514
1515
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -1524,7 +1525,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1524
1525
|
}
|
|
1525
1526
|
}
|
|
1526
1527
|
else if (t.moving) {
|
|
1527
|
-
if (t.movingShadow || (t.movingShadow = n.
|
|
1528
|
+
if (t.movingShadow || (t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !n.coords)
|
|
1528
1529
|
return;
|
|
1529
1530
|
var o = n.cellHeight, r = 1, u = t.moveOffsetY;
|
|
1530
1531
|
u || (u = o / 2);
|
|
@@ -1536,11 +1537,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1536
1537
|
p < 0 && (p = 0), p < h.rows[0].cells.length && p >= 0 && t.movingShadow.column !== p && (t.movingShadow.column = p, t.moveShadow(h.rows[0].cells[p]));
|
|
1537
1538
|
}
|
|
1538
1539
|
else if (t.selecting) {
|
|
1539
|
-
var a = DayPilot.mc(e), v = n.
|
|
1540
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1540
|
+
var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
|
|
1541
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
|
|
1541
1542
|
}
|
|
1542
1543
|
}, n.nav.scrollable.style.display = "";
|
|
1543
|
-
}, this.
|
|
1544
|
+
}, this.Oa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () {
|
|
1544
1545
|
var e = this.nav.header;
|
|
1545
1546
|
if (e && e.rows)
|
|
1546
1547
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1549,10 +1550,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1549
1550
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1550
1551
|
}
|
|
1551
1552
|
this.fasterDispose || DayPilot.pu(e);
|
|
1552
|
-
}, this.
|
|
1553
|
-
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.
|
|
1553
|
+
}, this.Pa = function (e) {
|
|
1554
|
+
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
|
|
1554
1555
|
var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
|
|
1555
|
-
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.
|
|
1556
|
+
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Qa;
|
|
1556
1557
|
var l = e ? document.createElement("div") : s.firstChild;
|
|
1557
1558
|
if (e) {
|
|
1558
1559
|
l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = this.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap");
|
|
@@ -1561,20 +1562,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1561
1562
|
}
|
|
1562
1563
|
r.toolTip && (d.title = r.toolTip);
|
|
1563
1564
|
var d = l.firstChild;
|
|
1564
|
-
d.innerHTML = n.
|
|
1565
|
+
d.innerHTML = n.Ra(r.name, r.html);
|
|
1565
1566
|
}
|
|
1566
|
-
}, this.
|
|
1567
|
+
}, this.Qa = function (e) {
|
|
1567
1568
|
if ("Disabled" !== n.headerClickHandling) {
|
|
1568
|
-
var t = this.data, i = n.
|
|
1569
|
+
var t = this.data, i = n.Sa(t), a = {};
|
|
1569
1570
|
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
|
|
1570
1571
|
}
|
|
1571
|
-
}, this.
|
|
1572
|
-
var e = this.nav.header, t = !0, i = this.
|
|
1572
|
+
}, this.Sa = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ta = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ea = function () {
|
|
1573
|
+
var e = this.nav.header, t = !0, i = this.ta;
|
|
1573
1574
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1574
1575
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1575
1576
|
this.headerCreated = !0;
|
|
1576
|
-
this.
|
|
1577
|
-
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.
|
|
1577
|
+
this.Pa(t);
|
|
1578
|
+
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
|
|
1578
1579
|
var t = null;
|
|
1579
1580
|
if (e instanceof DayPilot.Event)
|
|
1580
1581
|
t = e.data;
|
|
@@ -1583,7 +1584,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1583
1584
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1584
1585
|
t = e;
|
|
1585
1586
|
}
|
|
1586
|
-
n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.
|
|
1587
|
+
n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.qa.notify();
|
|
1587
1588
|
}, this.events.find = function (e) {
|
|
1588
1589
|
if (!n.events.list)
|
|
1589
1590
|
return null;
|
|
@@ -1603,7 +1604,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1603
1604
|
n.events.list.splice(i, 1, e);
|
|
1604
1605
|
}
|
|
1605
1606
|
}
|
|
1606
|
-
n.update(), n.
|
|
1607
|
+
n.update(), n.qa.notify();
|
|
1607
1608
|
}, this.events.remove = function (e) {
|
|
1608
1609
|
var t;
|
|
1609
1610
|
if (e instanceof DayPilot.Event)
|
|
@@ -1617,7 +1618,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1617
1618
|
i && (t = i.data);
|
|
1618
1619
|
}
|
|
1619
1620
|
var a = DayPilot.indexOf(n.events.list, t);
|
|
1620
|
-
n.events.list.splice(a, 1), n.update(), n.
|
|
1621
|
+
n.events.list.splice(a, 1), n.update(), n.qa.notify();
|
|
1621
1622
|
}, this.events.load = function (e, t, i) {
|
|
1622
1623
|
var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
1623
1624
|
var i, o = e.request;
|
|
@@ -1632,7 +1633,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1632
1633
|
var s = {};
|
|
1633
1634
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1634
1635
|
return;
|
|
1635
|
-
n.events.list = i, n.
|
|
1636
|
+
n.events.list = i, n.za && n.update();
|
|
1636
1637
|
}
|
|
1637
1638
|
};
|
|
1638
1639
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
@@ -1641,7 +1642,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1641
1642
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1642
1643
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1643
1644
|
}
|
|
1644
|
-
}, this.
|
|
1645
|
+
}, this.Za = function () {
|
|
1645
1646
|
if (n.nav.top.className !== n.J("_main")) {
|
|
1646
1647
|
n.nav.top.className = n.J("_main");
|
|
1647
1648
|
var e = n.nav.corner;
|
|
@@ -1650,14 +1651,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1650
1651
|
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1651
1652
|
}
|
|
1652
1653
|
}, this.update = function (e) {
|
|
1653
|
-
if (n
|
|
1654
|
-
n
|
|
1655
|
-
n.
|
|
1654
|
+
if (n.$a(e), this.za) {
|
|
1655
|
+
n._a(), n.V(), n.nav.top.style.cursor = "auto";
|
|
1656
|
+
n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Ma(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1656
1657
|
}
|
|
1657
|
-
}, this.
|
|
1658
|
+
}, this.bb = null, this.$a = function (e) {
|
|
1658
1659
|
if (e) {
|
|
1659
1660
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1660
|
-
this.
|
|
1661
|
+
this.bb = t;
|
|
1661
1662
|
for (var i in e)
|
|
1662
1663
|
if (t[i]) {
|
|
1663
1664
|
var a = t[i];
|
|
@@ -1666,13 +1667,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1666
1667
|
else
|
|
1667
1668
|
n[i] = e[i];
|
|
1668
1669
|
}
|
|
1669
|
-
}, this.
|
|
1670
|
-
var e = this.
|
|
1670
|
+
}, this.cb = function () {
|
|
1671
|
+
var e = this.bb;
|
|
1671
1672
|
for (var t in e) {
|
|
1672
1673
|
var i = e[t];
|
|
1673
1674
|
i.postInit && i.postInit();
|
|
1674
1675
|
}
|
|
1675
|
-
}, this.
|
|
1676
|
+
}, this.db = function () {
|
|
1676
1677
|
if (this.id && this.id.tagName)
|
|
1677
1678
|
this.nav.top = this.id;
|
|
1678
1679
|
else {
|
|
@@ -1681,8 +1682,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1681
1682
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1682
1683
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1683
1684
|
}
|
|
1684
|
-
}, this.
|
|
1685
|
-
var t = this.
|
|
1685
|
+
}, this.eb = {}, this.eb.events = [], this.fb = function (e) {
|
|
1686
|
+
var t = this.eb.events, i = this.events.list[e], a = {};
|
|
1686
1687
|
for (var n in i)
|
|
1687
1688
|
a[n] = i[n];
|
|
1688
1689
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1690,9 +1691,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1690
1691
|
o.data = a, this.onBeforeEventRender(o);
|
|
1691
1692
|
}
|
|
1692
1693
|
t[e] = a;
|
|
1693
|
-
}, this.
|
|
1694
|
+
}, this.ca = function () {
|
|
1694
1695
|
var e = this.events.list;
|
|
1695
|
-
if (n.
|
|
1696
|
+
if (n.eb.events = [], e) {
|
|
1696
1697
|
if (!DayPilot.isArray(e))
|
|
1697
1698
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1698
1699
|
var t = e.length, i = 864e5;
|
|
@@ -1713,11 +1714,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1713
1714
|
}
|
|
1714
1715
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1715
1716
|
for (var o = 0; o < t; o++)
|
|
1716
|
-
this.
|
|
1717
|
-
for (var o = 0; o < this.
|
|
1717
|
+
this.fb(o);
|
|
1718
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1718
1719
|
var l = {};
|
|
1719
1720
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1720
|
-
var d = this.
|
|
1721
|
+
var d = this.ta[o];
|
|
1721
1722
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1722
1723
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1723
1724
|
if (!a[m]) {
|
|
@@ -1733,21 +1734,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1733
1734
|
var _ = w.boxBottom;
|
|
1734
1735
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1735
1736
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1736
|
-
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.
|
|
1737
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.eb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1737
1738
|
}
|
|
1738
1739
|
}
|
|
1739
1740
|
}
|
|
1740
1741
|
}
|
|
1741
|
-
for (var o = 0; o < this.
|
|
1742
|
-
var d = this.
|
|
1743
|
-
d.events.sort(this.
|
|
1742
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1743
|
+
var d = this.ta[o];
|
|
1744
|
+
d.events.sort(this.gb);
|
|
1744
1745
|
for (var m = 0; m < d.events.length; m++) {
|
|
1745
1746
|
var r = d.events[m];
|
|
1746
1747
|
d.putIntoBlock(r);
|
|
1747
1748
|
}
|
|
1748
1749
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1749
1750
|
var k = d.blocks[m];
|
|
1750
|
-
k.events.sort(this.
|
|
1751
|
+
k.events.sort(this.gb);
|
|
1751
1752
|
for (var S = 0; S < k.events.length; S++) {
|
|
1752
1753
|
var r = k.events[S];
|
|
1753
1754
|
k.putIntoLine(r);
|
|
@@ -1755,7 +1756,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1755
1756
|
}
|
|
1756
1757
|
}
|
|
1757
1758
|
}
|
|
1758
|
-
}, this.
|
|
1759
|
+
}, this.gb = function (e, t) {
|
|
1759
1760
|
if (!(e && t && e.start && t.start))
|
|
1760
1761
|
return 0;
|
|
1761
1762
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1769,30 +1770,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1769
1770
|
var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
|
|
1770
1771
|
0 === s && (d = l);
|
|
1771
1772
|
var c = {};
|
|
1772
|
-
return c.cut = !1, c.top = this.
|
|
1773
|
-
}, this.
|
|
1773
|
+
return c.cut = !1, c.top = this.hb(r), c.boxTop = this.hb(l), c.boxBottom = this.hb(d), this.cache.pixels[a + "_" + i] = c, c;
|
|
1774
|
+
}, this.hb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this._a = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.da = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ha = function () { var e = this.Fa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { n.qa.scope && n.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.Va = function () {
|
|
1774
1775
|
if (n.nav.scroll) {
|
|
1775
1776
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1776
|
-
n.
|
|
1777
|
+
n.Wa.scrollHour = t;
|
|
1777
1778
|
}
|
|
1778
|
-
}, this.
|
|
1779
|
-
for (var e = this.
|
|
1779
|
+
}, this.ab = function () { var e = 0; n.Wa.scrollHour ? e = 2 * n.cellHeight * n.Wa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.ib = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.jb = function () { this._a(), this.ba(), this.Ea(), this.ea(), this.fa(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.kb(), this.R("Init"); }, this.Wa = {}, this.lb = function () { this.Wa.themes = [], this.Wa.themes.push(this.theme || this.cssClassPrefix); }, this.mb = function () {
|
|
1780
|
+
for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
|
|
1780
1781
|
var i = e[t];
|
|
1781
1782
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1782
1783
|
}
|
|
1783
|
-
this.
|
|
1784
|
-
}, this.
|
|
1784
|
+
this.Wa.themes = [];
|
|
1785
|
+
}, this.nb = function () {
|
|
1785
1786
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1786
1787
|
var e = {};
|
|
1787
1788
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1788
1789
|
}
|
|
1789
|
-
}, this.
|
|
1790
|
-
if ("function" == typeof this.onInit && !this.
|
|
1791
|
-
this.
|
|
1790
|
+
}, this.ob = function () {
|
|
1791
|
+
if ("function" == typeof this.onInit && !this.pb) {
|
|
1792
|
+
this.pb = !0;
|
|
1792
1793
|
var e = {};
|
|
1793
1794
|
this.onInit(e);
|
|
1794
1795
|
}
|
|
1795
|
-
}, this.
|
|
1796
|
+
}, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ra = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ra, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
|
|
1796
1797
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1797
1798
|
e.fn.daypilotCalendar = function (e) {
|
|
1798
1799
|
var t = null, i = this.each(function () {
|
|
@@ -1811,7 +1812,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1811
1812
|
e && e.directive("daypilotCalendar", ["$parse", function (e) {
|
|
1812
1813
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
1813
1814
|
var n = new DayPilot.Calendar(i[0]);
|
|
1814
|
-
n.
|
|
1815
|
+
n.qa.scope = t, n.init();
|
|
1815
1816
|
var o = a["id"];
|
|
1816
1817
|
o && (t[o] = n);
|
|
1817
1818
|
var r = a["publishAs"];
|
|
@@ -1824,7 +1825,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1824
1825
|
l.call(t, d, function (e) {
|
|
1825
1826
|
for (var t in e)
|
|
1826
1827
|
n[t] = e[t];
|
|
1827
|
-
n.update(), n.
|
|
1828
|
+
n.update(), n.ob();
|
|
1828
1829
|
}, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
|
|
1829
1830
|
} };
|
|
1830
1831
|
}]);
|
|
@@ -1834,13 +1835,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1834
1835
|
var DayPilot = {};
|
|
1835
1836
|
if (function () {
|
|
1836
1837
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1837
|
-
this.v = "2023.2.
|
|
1838
|
+
this.v = "2023.2.470-lite";
|
|
1838
1839
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1839
1840
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1840
|
-
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.
|
|
1841
|
+
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1841
1842
|
for (var t in e)
|
|
1842
1843
|
this[t] = e[t];
|
|
1843
|
-
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.
|
|
1844
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.qb && (this.qb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.sb(this.date); }, this.rb = function () {
|
|
1844
1845
|
var e = this.B();
|
|
1845
1846
|
if (!e)
|
|
1846
1847
|
return this.date;
|
|
@@ -1859,8 +1860,8 @@ if (function () {
|
|
|
1859
1860
|
var a = e.toString(i.pattern, i.locale);
|
|
1860
1861
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1861
1862
|
}
|
|
1862
|
-
}, this.
|
|
1863
|
-
if (!this.
|
|
1863
|
+
}, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.qb; } }), this.show = function () {
|
|
1864
|
+
if (!this.qb) {
|
|
1864
1865
|
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1865
1866
|
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.tb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.sb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1866
1867
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
@@ -1872,7 +1873,7 @@ if (function () {
|
|
|
1872
1873
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1873
1874
|
s.style.left = c + "px";
|
|
1874
1875
|
}
|
|
1875
|
-
this.
|
|
1876
|
+
this.qb = !0, this.onShow && this.onShow();
|
|
1876
1877
|
}
|
|
1877
1878
|
}, this.prepare(), this.init();
|
|
1878
1879
|
});
|
|
@@ -1884,7 +1885,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1884
1885
|
var e = function () { }, t = {};
|
|
1885
1886
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1886
1887
|
var a = this, n = null;
|
|
1887
|
-
this.v = "2023.2.
|
|
1888
|
+
this.v = "2023.2.470-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
1888
1889
|
o = o || {};
|
|
1889
1890
|
var r = null;
|
|
1890
1891
|
if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.ub.submenu = null, null !== t.mouse) {
|
|
@@ -2066,7 +2067,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2066
2067
|
this[r] = o[r];
|
|
2067
2068
|
}, DayPilot.MenuBar = function (e, t) {
|
|
2068
2069
|
var i = this;
|
|
2069
|
-
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
2070
|
+
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.za = !1;
|
|
2070
2071
|
for (var a in t)
|
|
2071
2072
|
this[a] = t[a];
|
|
2072
2073
|
this.yb = function (e) { return this.theme + "_" + e; }, this.s = function () {
|
|
@@ -2100,7 +2101,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2100
2101
|
}
|
|
2101
2102
|
DayPilot.MenuBar.active = i;
|
|
2102
2103
|
}
|
|
2103
|
-
}, this.init = function () { return this.s(), this.
|
|
2104
|
+
}, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); };
|
|
2104
2105
|
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.zb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
|
|
2105
2106
|
if (!e || !e.touches)
|
|
2106
2107
|
return null;
|
|
@@ -2832,9 +2833,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2832
2833
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2833
2834
|
var e = {};
|
|
2834
2835
|
e.Month = function (t, i) {
|
|
2835
|
-
this.v = "2023.2.
|
|
2836
|
+
this.v = "2023.2.470-lite", this.nav = {};
|
|
2836
2837
|
var a = this;
|
|
2837
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.
|
|
2838
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
2838
2839
|
var t = null;
|
|
2839
2840
|
if (e instanceof DayPilot.Event)
|
|
2840
2841
|
t = e.data;
|
|
@@ -2843,7 +2844,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2843
2844
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
2844
2845
|
t = e;
|
|
2845
2846
|
}
|
|
2846
|
-
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
2847
|
+
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify();
|
|
2847
2848
|
}, this.events.find = function (e) {
|
|
2848
2849
|
if (!a.events.list)
|
|
2849
2850
|
return null;
|
|
@@ -2863,8 +2864,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2863
2864
|
a.events.list.splice(i, 1, e);
|
|
2864
2865
|
}
|
|
2865
2866
|
}
|
|
2866
|
-
a.update(), a.
|
|
2867
|
-
}, this.events.remove = function (e) { var t = DayPilot.indexOf(a.events.list, e.data); a.events.list.splice(t, 1), a.update(), a.
|
|
2867
|
+
a.update(), a.qa.notify();
|
|
2868
|
+
}, this.events.remove = function (e) { var t = DayPilot.indexOf(a.events.list, e.data); a.events.list.splice(t, 1), a.update(), a.qa.notify(); }, this.events.load = function (e, t, i) {
|
|
2868
2869
|
var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
2869
2870
|
var i, o = e.request;
|
|
2870
2871
|
try {
|
|
@@ -2878,7 +2879,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2878
2879
|
var s = {};
|
|
2879
2880
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
2880
2881
|
return;
|
|
2881
|
-
a.events.list = i, a.
|
|
2882
|
+
a.events.list = i, a.za && a.update();
|
|
2882
2883
|
}
|
|
2883
2884
|
};
|
|
2884
2885
|
if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
@@ -2888,13 +2889,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2888
2889
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
2889
2890
|
}
|
|
2890
2891
|
}, this.update = function (e) {
|
|
2891
|
-
if (a
|
|
2892
|
-
a.
|
|
2892
|
+
if (a.$a(e), this.za && this.cells) {
|
|
2893
|
+
a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
|
|
2893
2894
|
}
|
|
2894
|
-
}, this.
|
|
2895
|
+
}, this.bb = null, this.$a = function (e) {
|
|
2895
2896
|
if (e) {
|
|
2896
2897
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
2897
|
-
this.
|
|
2898
|
+
this.bb = t;
|
|
2898
2899
|
for (var i in e)
|
|
2899
2900
|
if (t[i]) {
|
|
2900
2901
|
var n = t[i];
|
|
@@ -2903,14 +2904,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2903
2904
|
else
|
|
2904
2905
|
a[i] = e[i];
|
|
2905
2906
|
}
|
|
2906
|
-
}, this.
|
|
2907
|
-
var e = this.
|
|
2907
|
+
}, this.cb = function () {
|
|
2908
|
+
var e = this.bb;
|
|
2908
2909
|
for (var t in e) {
|
|
2909
2910
|
var i = e[t];
|
|
2910
2911
|
i.postInit && i.postInit();
|
|
2911
2912
|
}
|
|
2912
|
-
}, this.
|
|
2913
|
-
var t = this.
|
|
2913
|
+
}, this.eb = {}, this.eb.events = [], this.fb = function (e) {
|
|
2914
|
+
var t = this.eb.events, i = this.events.list[e], a = {};
|
|
2914
2915
|
for (var n in i)
|
|
2915
2916
|
a[n] = i[n];
|
|
2916
2917
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -2918,14 +2919,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2918
2919
|
o.data = a, this.onBeforeEventRender(o);
|
|
2919
2920
|
}
|
|
2920
2921
|
t[e] = a;
|
|
2921
|
-
}, this.
|
|
2922
|
+
}, this.ca = function () {
|
|
2922
2923
|
var e = this.events.list;
|
|
2923
2924
|
if (e) {
|
|
2924
2925
|
if (!DayPilot.isArray(e))
|
|
2925
2926
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
2926
2927
|
if ("function" == typeof this.onBeforeEventRender)
|
|
2927
2928
|
for (var t = 0; t < e.length; t++)
|
|
2928
|
-
this.
|
|
2929
|
+
this.fb(t);
|
|
2929
2930
|
for (var i = 0; i < e.length; i++) {
|
|
2930
2931
|
var a = e[i];
|
|
2931
2932
|
if ("object" != typeof a)
|
|
@@ -2938,31 +2939,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2938
2939
|
if (!(n.getTime() > o.getTime()))
|
|
2939
2940
|
for (var t = 0; t < this.rows.length; t++) {
|
|
2940
2941
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
2941
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
2942
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.eb.events[i]));
|
|
2942
2943
|
}
|
|
2943
2944
|
}
|
|
2944
2945
|
for (var l = 0; l < this.rows.length; l++) {
|
|
2945
2946
|
var r = this.rows[l];
|
|
2946
|
-
r.events.sort(this.
|
|
2947
|
+
r.events.sort(this.gb);
|
|
2947
2948
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
2948
2949
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
2949
2950
|
r.putIntoLine(c, u, h, l);
|
|
2950
2951
|
}
|
|
2951
2952
|
}
|
|
2952
2953
|
}
|
|
2953
|
-
}, this.
|
|
2954
|
+
}, this.V = function () {
|
|
2954
2955
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
2955
2956
|
var t = this.elements.events[e];
|
|
2956
2957
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
2957
2958
|
}
|
|
2958
2959
|
this.elements.events = [];
|
|
2959
|
-
}, this.
|
|
2960
|
+
}, this.ia = function () { this.Lc(); }, this.Lc = function () {
|
|
2960
2961
|
this.elements.events = [];
|
|
2961
2962
|
for (var e = 0; e < this.rows.length; e++)
|
|
2962
2963
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
2963
2964
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
2964
|
-
this.
|
|
2965
|
-
}, this.
|
|
2965
|
+
this.Ca(a[n]);
|
|
2966
|
+
}, this.gb = function (e, t) {
|
|
2966
2967
|
if (!(e && t && e.start && t.start))
|
|
2967
2968
|
return 0;
|
|
2968
2969
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -2998,9 +2999,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2998
2999
|
for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
2999
3000
|
i += this.rows[a].getHeight();
|
|
3000
3001
|
return i += this.cellHeaderHeight, i += t * this.lineHeight();
|
|
3001
|
-
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
3002
|
+
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ca = function (t) {
|
|
3002
3003
|
var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
|
|
3003
|
-
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.
|
|
3004
|
+
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.pa, u.oncontextmenu = a.Mc, u.onmousedown = function (i) {
|
|
3004
3005
|
i = i || window.event;
|
|
3005
3006
|
var l = i.which || i.button;
|
|
3006
3007
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
@@ -3037,7 +3038,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3037
3038
|
}
|
|
3038
3039
|
if (t.client.deleteEnabled()) {
|
|
3039
3040
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
3040
|
-
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.
|
|
3041
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
3041
3042
|
}
|
|
3042
3043
|
var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
3043
3044
|
DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u);
|
|
@@ -3069,7 +3070,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3069
3070
|
for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
3070
3071
|
e += this.rows[t].getHeight();
|
|
3071
3072
|
return e;
|
|
3072
|
-
}, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
3073
|
+
}, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ea = function () {
|
|
3073
3074
|
var t = this.nav.top;
|
|
3074
3075
|
t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main");
|
|
3075
3076
|
var i = document.createElement("div");
|
|
@@ -3118,7 +3119,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3118
3119
|
e.timeRangeSelecting.from = { x: m.x, y: m.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(m.x, m.y, 0, o, 0, null);
|
|
3119
3120
|
}
|
|
3120
3121
|
};
|
|
3121
|
-
}, this.
|
|
3122
|
+
}, this.ha = function () {
|
|
3122
3123
|
this.nav.top.style.height = this.getHeight() + "px";
|
|
3123
3124
|
for (var e = 0; e < this.cells.length; e++)
|
|
3124
3125
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
@@ -3157,7 +3158,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3157
3158
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
3158
3159
|
this.cells[e][t].onclick = null;
|
|
3159
3160
|
this.nav.cells.innerHTML = "";
|
|
3160
|
-
}, this.
|
|
3161
|
+
}, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
|
|
3161
3162
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
3162
3163
|
if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px",
|
|
3163
3164
|
l.className = this.J("_cell"), !this.isWeekend(s)) {
|
|
@@ -3184,12 +3185,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3184
3185
|
for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
3185
3186
|
t += this.rows[i].getHeight();
|
|
3186
3187
|
return t;
|
|
3187
|
-
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.
|
|
3188
|
+
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
|
|
3188
3189
|
var i = e.event;
|
|
3189
3190
|
if (i.client.clickEnabled())
|
|
3190
|
-
if (a.
|
|
3191
|
+
if (a.oa()) {
|
|
3191
3192
|
var n = {};
|
|
3192
|
-
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.
|
|
3193
|
+
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
3193
3194
|
return;
|
|
3194
3195
|
switch (a.eventClickHandling) {
|
|
3195
3196
|
case "CallBack":
|
|
@@ -3199,7 +3200,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3199
3200
|
var o = i.client.contextMenu();
|
|
3200
3201
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
3201
3202
|
}
|
|
3202
|
-
"function" == typeof a.onEventClicked && a.
|
|
3203
|
+
"function" == typeof a.onEventClicked && a.qa.apply(function () { a.onEventClicked(n); });
|
|
3203
3204
|
}
|
|
3204
3205
|
else
|
|
3205
3206
|
switch (a.eventClickHandling) {
|
|
@@ -3208,7 +3209,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3208
3209
|
break;
|
|
3209
3210
|
case "JavaScript": a.onEventClick(i);
|
|
3210
3211
|
}
|
|
3211
|
-
}, this.Mc = function () { var e = this; return a.
|
|
3212
|
+
}, this.Mc = function () { var e = this; return a.ra(e.event), !1; }, this.ra = function (e) {
|
|
3212
3213
|
if (this.event = e, !e.client.rightClickEnabled())
|
|
3213
3214
|
return !1;
|
|
3214
3215
|
var t = {};
|
|
@@ -3220,10 +3221,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3220
3221
|
}
|
|
3221
3222
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
3222
3223
|
}
|
|
3223
|
-
}, this.
|
|
3224
|
-
if (a.
|
|
3224
|
+
}, this.sa = function (e) {
|
|
3225
|
+
if (a.oa()) {
|
|
3225
3226
|
var t = {};
|
|
3226
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
3227
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.qa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
3227
3228
|
return;
|
|
3228
3229
|
switch (a.eventDeleteHandling) {
|
|
3229
3230
|
case "CallBack":
|
|
@@ -3234,7 +3235,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3234
3235
|
break;
|
|
3235
3236
|
case "Update": a.events.remove(e);
|
|
3236
3237
|
}
|
|
3237
|
-
"function" == typeof a.onEventDeleted && a.
|
|
3238
|
+
"function" == typeof a.onEventDeleted && a.qa.apply(function () { a.onEventDeleted(t); });
|
|
3238
3239
|
}
|
|
3239
3240
|
else
|
|
3240
3241
|
switch (a.eventDeleteHandling) {
|
|
@@ -3255,13 +3256,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3255
3256
|
o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o);
|
|
3256
3257
|
}, this.K = function (e, t, i, n, o, r) {
|
|
3257
3258
|
var s = e.start().getTimePart(), l = e.end().getDatePart();
|
|
3258
|
-
l !== e.end() && (l = l.addDays(1));
|
|
3259
|
+
l.getTime() !== e.end().getTime() && (l = l.addDays(1));
|
|
3259
3260
|
var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
|
|
3260
3261
|
c = c.addDays(-n);
|
|
3261
3262
|
var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
|
|
3262
|
-
if (a.
|
|
3263
|
+
if (a.oa()) {
|
|
3263
3264
|
var p = {};
|
|
3264
|
-
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.
|
|
3265
|
+
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.qa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
3265
3266
|
return;
|
|
3266
3267
|
switch (a.eventMoveHandling) {
|
|
3267
3268
|
case "CallBack":
|
|
@@ -3269,7 +3270,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3269
3270
|
break;
|
|
3270
3271
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
3271
3272
|
}
|
|
3272
|
-
"function" == typeof a.onEventMoved && a.
|
|
3273
|
+
"function" == typeof a.onEventMoved && a.qa.apply(function () { a.onEventMoved(p); });
|
|
3273
3274
|
}
|
|
3274
3275
|
else
|
|
3275
3276
|
switch (a.eventMoveHandling) {
|
|
@@ -3287,11 +3288,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3287
3288
|
n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n);
|
|
3288
3289
|
}, this.I = function (e, t, i) {
|
|
3289
3290
|
var n = e.start().getTimePart(), o = e.end().getDatePart();
|
|
3290
|
-
o !== e.end() && (o = o.addDays(1));
|
|
3291
|
+
o.getTime() !== e.end().getTime() && (o = o.addDays(1));
|
|
3291
3292
|
var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r);
|
|
3292
|
-
if (a.
|
|
3293
|
+
if (a.oa()) {
|
|
3293
3294
|
var u = {};
|
|
3294
|
-
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.
|
|
3295
|
+
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.qa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
3295
3296
|
return;
|
|
3296
3297
|
switch (a.eventResizeHandling) {
|
|
3297
3298
|
case "CallBack":
|
|
@@ -3299,7 +3300,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3299
3300
|
break;
|
|
3300
3301
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
3301
3302
|
}
|
|
3302
|
-
"function" == typeof a.onEventResized && a.
|
|
3303
|
+
"function" == typeof a.onEventResized && a.qa.apply(function () { a.onEventResized(u); });
|
|
3303
3304
|
}
|
|
3304
3305
|
else
|
|
3305
3306
|
switch (a.eventResizeHandling) {
|
|
@@ -3309,14 +3310,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3309
3310
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
3310
3311
|
}
|
|
3311
3312
|
}, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) {
|
|
3312
|
-
if (this.
|
|
3313
|
+
if (this.oa()) {
|
|
3313
3314
|
var i = {};
|
|
3314
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
3315
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.qa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
3315
3316
|
return;
|
|
3316
3317
|
switch (a.timeRangeSelectedHandling) {
|
|
3317
3318
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
3318
3319
|
}
|
|
3319
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
3320
|
+
"function" == typeof a.onTimeRangeSelected && a.qa.apply(function () { a.onTimeRangeSelected(i); });
|
|
3320
3321
|
}
|
|
3321
3322
|
else
|
|
3322
3323
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -3325,9 +3326,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3325
3326
|
break;
|
|
3326
3327
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
3327
3328
|
}
|
|
3328
|
-
}, this.
|
|
3329
|
-
var n = this.
|
|
3330
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.
|
|
3329
|
+
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { a.qa.scope && a.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
|
|
3330
|
+
var n = this._;
|
|
3331
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.Ya = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.db = function () {
|
|
3331
3332
|
if (this.id && this.id.tagName)
|
|
3332
3333
|
this.nav.top = this.id;
|
|
3333
3334
|
else {
|
|
@@ -3336,7 +3337,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3336
3337
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3337
3338
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3338
3339
|
}
|
|
3339
|
-
}, this.
|
|
3340
|
+
}, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ra = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ra, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
|
|
3340
3341
|
}, e.gMouseUp = function (t) {
|
|
3341
3342
|
if (e.movingEvent) {
|
|
3342
3343
|
var i = e.movingEvent;
|
|
@@ -3391,7 +3392,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3391
3392
|
e && e.directive("daypilotMonth", ["$parse", function (e) {
|
|
3392
3393
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
3393
3394
|
var n = new DayPilot.Month(i[0]);
|
|
3394
|
-
n.
|
|
3395
|
+
n.qa.scope = t, n.init();
|
|
3395
3396
|
var o = a["id"];
|
|
3396
3397
|
o && (t[o] = n);
|
|
3397
3398
|
var r = a["publishAs"];
|
|
@@ -3415,9 +3416,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3415
3416
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3416
3417
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3417
3418
|
DayPilot.Navigator = function (e, t) {
|
|
3418
|
-
this.v = "2023.2.
|
|
3419
|
+
this.v = "2023.2.470-lite";
|
|
3419
3420
|
var i = this;
|
|
3420
|
-
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
3421
|
+
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.eb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) {
|
|
3421
3422
|
var a = {};
|
|
3422
3423
|
a.cells = [], a.days = [], a.weeks = [];
|
|
3423
3424
|
var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
|
|
@@ -3521,7 +3522,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3521
3522
|
}
|
|
3522
3523
|
}, this.cd = null, this.select = function (e, t, a) {
|
|
3523
3524
|
var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
|
|
3524
|
-
if (!this.
|
|
3525
|
+
if (!this.za)
|
|
3525
3526
|
return void (this.cd = { "date1": r, "date2": s, "options": l });
|
|
3526
3527
|
var d = !0, c = !0;
|
|
3527
3528
|
l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
|
|
@@ -3534,17 +3535,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3534
3535
|
}
|
|
3535
3536
|
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.bd(), this.Jc(), this.Oc(), this.fd(), this._c(), this.ad(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.gd();
|
|
3536
3537
|
}, this.update = function (e) {
|
|
3537
|
-
if (i
|
|
3538
|
+
if (i.$a(e), this.za) {
|
|
3538
3539
|
if (i.hd)
|
|
3539
3540
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
3540
3541
|
i.jd();
|
|
3541
3542
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
3542
3543
|
i.Gb(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
3543
3544
|
}
|
|
3544
|
-
}, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.
|
|
3545
|
+
}, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.ca(), this._c(), this.ad(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.eb = {}; }, this.bb = null, this.$a = function (e) {
|
|
3545
3546
|
if (e) {
|
|
3546
3547
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
3547
|
-
this.
|
|
3548
|
+
this.bb = t;
|
|
3548
3549
|
for (var a in e)
|
|
3549
3550
|
if (t[a]) {
|
|
3550
3551
|
var n = t[a];
|
|
@@ -3553,8 +3554,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3553
3554
|
else
|
|
3554
3555
|
i[a] = e[a];
|
|
3555
3556
|
}
|
|
3556
|
-
}, this.
|
|
3557
|
-
var e = this.
|
|
3557
|
+
}, this.cb = function () {
|
|
3558
|
+
var e = this.bb;
|
|
3558
3559
|
for (var t in e) {
|
|
3559
3560
|
var i = e[t];
|
|
3560
3561
|
i.postInit && i.postInit();
|
|
@@ -3726,7 +3727,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3726
3727
|
}
|
|
3727
3728
|
}, this.L = function (e) {
|
|
3728
3729
|
var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
|
|
3729
|
-
if (e = e || {}, i.
|
|
3730
|
+
if (e = e || {}, i.oa()) {
|
|
3730
3731
|
var r = {};
|
|
3731
3732
|
if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
3732
3733
|
return;
|
|
@@ -3758,7 +3759,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3758
3759
|
}
|
|
3759
3760
|
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.rd(i.skipMonths); }, this.Sc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Jc(), this.Oc(), this.fd(), this.ad(), this.gd(), this._c(); }, this.dd = function () { return i.startDate.firstDayOfMonth(); }, this.ed = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.gd = function () {
|
|
3760
3761
|
var e = this.visibleStart(), t = this.visibleEnd();
|
|
3761
|
-
if (i.
|
|
3762
|
+
if (i.oa()) {
|
|
3762
3763
|
var a = {};
|
|
3763
3764
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
3764
3765
|
return;
|
|
@@ -3810,8 +3811,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3810
3811
|
return this.internal.showLinks;
|
|
3811
3812
|
var t = {};
|
|
3812
3813
|
return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t;
|
|
3813
|
-
}, this.
|
|
3814
|
-
var o = this.
|
|
3814
|
+
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.$a, this.internal.initialized = function () { return i.za; }, this._ = {};
|
|
3815
|
+
var o = this._;
|
|
3815
3816
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
|
|
3816
3817
|
if ("Auto" === i.weekStarts) {
|
|
3817
3818
|
var e = o.locale();
|
|
@@ -3819,19 +3820,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3819
3820
|
}
|
|
3820
3821
|
return i.weekStarts;
|
|
3821
3822
|
}, o.cellWidth = function () {
|
|
3822
|
-
if (i.
|
|
3823
|
-
return i.
|
|
3823
|
+
if (i.eb.cellWidth)
|
|
3824
|
+
return i.eb.cellWidth;
|
|
3824
3825
|
var e = i.ud("_cell_dimensions").width;
|
|
3825
|
-
return e || (e = i.cellWidth), i.
|
|
3826
|
+
return e || (e = i.cellWidth), i.eb.cellWidth = e, e;
|
|
3826
3827
|
}, this.clearSelection = function () {
|
|
3827
3828
|
for (var e = 0; e < this.selected.length; e++) {
|
|
3828
3829
|
var t = this.selected[e];
|
|
3829
3830
|
i.$c(t.parentNode, t.x, t.y);
|
|
3830
3831
|
}
|
|
3831
3832
|
this.selected = [];
|
|
3832
|
-
}, this.vd = function () {
|
|
3833
|
-
return !!this.backendUrl && ("undefined" == typeof i.items || !i.items);
|
|
3834
|
-
}, this.events = {}, this.ba = function () {
|
|
3833
|
+
}, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () {
|
|
3835
3834
|
if (DayPilot.isArray(this.events.list)) {
|
|
3836
3835
|
this.items = {};
|
|
3837
3836
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
@@ -3847,7 +3846,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3847
3846
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
|
|
3848
3847
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3849
3848
|
return a;
|
|
3850
|
-
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
3849
|
+
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () {
|
|
3851
3850
|
if (this.id && this.id.tagName)
|
|
3852
3851
|
this.nav.top = this.id;
|
|
3853
3852
|
else {
|
|
@@ -3858,15 +3857,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3858
3857
|
}
|
|
3859
3858
|
this.root = this.nav.top;
|
|
3860
3859
|
}, this.init = function () {
|
|
3861
|
-
if (this.
|
|
3862
|
-
this.bd(), this.Oc(), this.fd(), this.
|
|
3863
|
-
if (this.vd() && this.gd(), this.
|
|
3860
|
+
if (this.db(), !this.root.dp) {
|
|
3861
|
+
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.xd(), this.Ya();
|
|
3862
|
+
if (this.vd() && this.gd(), this.za = !0, this.cb(), this.cd) {
|
|
3864
3863
|
var e = this.cd;
|
|
3865
3864
|
this.select(e.date1, e.date2, e.options), this.cd = null;
|
|
3866
3865
|
}
|
|
3867
3866
|
return this;
|
|
3868
3867
|
}
|
|
3869
|
-
}, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.
|
|
3868
|
+
}, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Ya = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) {
|
|
3870
3869
|
if (a.start && a.end) {
|
|
3871
3870
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
3872
3871
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
@@ -3877,7 +3876,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3877
3876
|
i.L({ "mode": "FreeHand" });
|
|
3878
3877
|
}
|
|
3879
3878
|
a.start = null, a.end = null;
|
|
3880
|
-
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.hd = !0); }, this.
|
|
3879
|
+
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.hd = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.$a(t);
|
|
3881
3880
|
}, "undefined" != typeof jQuery && !function (e) {
|
|
3882
3881
|
e.fn.daypilotNavigator = function (e) {
|
|
3883
3882
|
var t = null, i = this.each(function () {
|
|
@@ -3897,7 +3896,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3897
3896
|
return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
|
|
3898
3897
|
return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
|
|
3899
3898
|
var n = new DayPilot.Navigator(i[0]);
|
|
3900
|
-
n.
|
|
3899
|
+
n.qa.scope = t, n.init();
|
|
3901
3900
|
var o = a["id"];
|
|
3902
3901
|
o && (t[o] = n);
|
|
3903
3902
|
var r = a["publishAs"];
|
|
@@ -3914,7 +3913,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3914
3913
|
for (var i in e)
|
|
3915
3914
|
n[i] = e[i];
|
|
3916
3915
|
n.update();
|
|
3917
|
-
}, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
3916
|
+
}, !0), d.call(t, u, function (e) { n.events.list = e, n.ca(), n._c(); }, !0);
|
|
3918
3917
|
};
|
|
3919
3918
|
} };
|
|
3920
3919
|
}]);
|