@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 = {};
|
|
@@ -379,7 +379,7 @@ if (function () {
|
|
|
379
379
|
DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e); }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) { if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
|
|
380
380
|
for (var i in t)
|
|
381
381
|
this[i] = t[i]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
|
|
382
|
-
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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) {
|
|
382
|
+
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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) {
|
|
383
383
|
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))); }
|
|
384
384
|
var i = this;
|
|
385
385
|
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) { var a; if ("string" == typeof e) {
|
|
@@ -420,18 +420,23 @@ if (function () {
|
|
|
420
420
|
else {
|
|
421
421
|
var r = arguments[0];
|
|
422
422
|
a = r.start, n = r.end, o = r.day;
|
|
423
|
-
} i.l = o, t(a, n, o); }; }, this.show = function (e) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
423
|
+
} i.l = o, t(a, n, o); }; }, this.show = function (e) {
|
|
424
|
+
var a, n;
|
|
425
|
+
if (e.A)
|
|
426
|
+
n = e, a = n.C;
|
|
427
|
+
else if (a = e.m ? e : this.z(e), this.k === a)
|
|
428
|
+
return;
|
|
429
|
+
if (i.onSelect) {
|
|
430
|
+
var o = {};
|
|
431
|
+
o.source = n ? n.B : null, o.target = a.control, i.onSelect(o);
|
|
432
|
+
}
|
|
433
|
+
this.k = a, a.s();
|
|
434
|
+
var r = a.u();
|
|
435
|
+
i.j.updateMode(r), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
|
|
436
|
+
}, this.z = function (e) { for (var t = 0; t < this.f.length; t++)
|
|
430
437
|
if (this.f[t].control === e)
|
|
431
438
|
return this.f[t]; return null; }, this.t = function () { for (var e = 0; e < this.f.length; e++)
|
|
432
|
-
this.f[e].p(); }, Object.defineProperty(this, "active", {
|
|
433
|
-
get: function () { return i.k; }
|
|
434
|
-
}), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
|
|
439
|
+
this.f[e].p(); }, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
|
|
435
440
|
throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.G = null, this.H = function () { if (e)
|
|
436
441
|
for (var t in e)
|
|
437
442
|
if ("triggers" === t) {
|
|
@@ -641,27 +646,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
641
646
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
642
647
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
643
648
|
var n = this;
|
|
644
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.
|
|
645
|
-
i = i.parentNode; var a = document.createElement("div"); 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"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, this.
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
if ("
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
for (var i in e.Hashes)
|
|
660
|
-
n.hashes[i] = e.Hashes[i];
|
|
661
|
-
n.events.list = e.Events, n.ba(), n.ca(), "Full" === e.UpdateType && (n.da(), n.ea(), n.fa(), n.ga()), n.s(), n.ha(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
662
|
-
}, this.ia = function () { return this.ja() / 36e5; }, this.ka = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.la = function () { return this.ja() / 18e5; }, this.ja = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.ka() : 24, 60 * e * 60 * 1e3; }, this.ma = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.na = 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.oa = function (e) { var t = this, i = t.event; if (n.na()) {
|
|
649
|
+
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) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
650
|
+
i = i.parentNode; var a = document.createElement("div"); 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"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, this._ = {}, this._.locale = function () {
|
|
651
|
+
var e = DayPilot.Locale.find(n.locale);
|
|
652
|
+
return e ? e : DayPilot.Locale.US;
|
|
653
|
+
}, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
654
|
+
var o = this._;
|
|
655
|
+
this.T = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
656
|
+
if (!window.console)
|
|
657
|
+
throw "Error received from the server side: " + e;
|
|
658
|
+
return void console.log("Error received from the server side: " + e);
|
|
659
|
+
} var e = JSON.parse(e); if (e.CallBackRedirect)
|
|
660
|
+
return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
|
|
661
|
+
return n.loadingStop(), void n.s(); 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)
|
|
662
|
+
for (var i in e.Hashes)
|
|
663
|
+
n.hashes[i] = e.Hashes[i]; 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(); }, 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) { var t = this, i = t.event; if (n.oa()) {
|
|
663
664
|
var a = {};
|
|
664
|
-
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.
|
|
665
|
+
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))
|
|
665
666
|
return;
|
|
666
667
|
switch (n.eventClickHandling) {
|
|
667
668
|
case "CallBack":
|
|
@@ -674,7 +675,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
674
675
|
var o = i.client.contextMenu();
|
|
675
676
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
676
677
|
}
|
|
677
|
-
"function" == typeof n.onEventClicked && n.
|
|
678
|
+
"function" == typeof n.onEventClicked && n.qa.apply(function () { n.onEventClicked(a); });
|
|
678
679
|
}
|
|
679
680
|
else
|
|
680
681
|
switch (n.eventClickHandling) {
|
|
@@ -685,15 +686,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
685
686
|
n.eventClickCallBack(i);
|
|
686
687
|
break;
|
|
687
688
|
case "JavaScript": n.onEventClick(i);
|
|
688
|
-
} }, this.
|
|
689
|
+
} }, this.ra = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
689
690
|
return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
|
|
690
691
|
return !1; switch (n.eventRightClickHandling) {
|
|
691
692
|
case "ContextMenu":
|
|
692
693
|
var a = t.client.contextMenu();
|
|
693
694
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
694
|
-
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.
|
|
695
|
+
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.sa = function (e) { if (n.oa()) {
|
|
695
696
|
var t = {};
|
|
696
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
697
|
+
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))
|
|
697
698
|
return;
|
|
698
699
|
switch (n.eventDeleteHandling) {
|
|
699
700
|
case "CallBack":
|
|
@@ -704,7 +705,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
704
705
|
break;
|
|
705
706
|
case "Update": n.events.remove(e);
|
|
706
707
|
}
|
|
707
|
-
"function" == typeof n.onEventDeleted && n.
|
|
708
|
+
"function" == typeof n.onEventDeleted && n.qa.apply(function () { n.onEventDeleted(t); });
|
|
708
709
|
}
|
|
709
710
|
else
|
|
710
711
|
switch (n.eventDeleteHandling) {
|
|
@@ -720,15 +721,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
720
721
|
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
721
722
|
throw "newStart is null"; if (!i)
|
|
722
723
|
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.P("EventResize", a, n); }, this.I = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
|
|
723
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
724
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
724
725
|
r = c.addTime(f + m), s = e.end();
|
|
725
726
|
}
|
|
726
727
|
else if ("bottom" === a) {
|
|
727
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
728
|
+
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;
|
|
728
729
|
r = l, s = c.addTime(f + m);
|
|
729
|
-
} if (n.
|
|
730
|
+
} if (n.oa()) {
|
|
730
731
|
var p = {};
|
|
731
|
-
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.
|
|
732
|
+
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))
|
|
732
733
|
return;
|
|
733
734
|
switch (n.eventResizeHandling) {
|
|
734
735
|
case "PostBack":
|
|
@@ -739,7 +740,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
739
740
|
break;
|
|
740
741
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
741
742
|
}
|
|
742
|
-
"function" == typeof n.onEventResized && n.
|
|
743
|
+
"function" == typeof n.onEventResized && n.qa.apply(function () { n.onEventResized(p); });
|
|
743
744
|
}
|
|
744
745
|
else
|
|
745
746
|
switch (n.eventResizeHandling) {
|
|
@@ -754,9 +755,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
754
755
|
throw "newStart is null"; if (!i)
|
|
755
756
|
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.P("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
756
757
|
throw "newStart is null"; if (!i)
|
|
757
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); 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.
|
|
758
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); 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; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.oa()) {
|
|
758
759
|
var b = {};
|
|
759
|
-
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.
|
|
760
|
+
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))
|
|
760
761
|
return;
|
|
761
762
|
switch (n.eventMoveHandling) {
|
|
762
763
|
case "PostBack":
|
|
@@ -767,7 +768,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
767
768
|
break;
|
|
768
769
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
769
770
|
}
|
|
770
|
-
"function" == typeof n.onEventMoved && n.
|
|
771
|
+
"function" == typeof n.onEventMoved && n.qa.apply(function () { n.onEventMoved(b); });
|
|
771
772
|
}
|
|
772
773
|
else
|
|
773
774
|
switch (n.eventMoveHandling) {
|
|
@@ -778,9 +779,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
778
779
|
n.eventMoveCallBack(e, y, g, f.id);
|
|
779
780
|
break;
|
|
780
781
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
781
|
-
} }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.
|
|
782
|
+
} }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.oa()) {
|
|
782
783
|
var a = {};
|
|
783
|
-
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.
|
|
784
|
+
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))
|
|
784
785
|
return;
|
|
785
786
|
switch (n.timeRangeSelectedHandling) {
|
|
786
787
|
case "PostBack":
|
|
@@ -788,7 +789,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
788
789
|
break;
|
|
789
790
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
790
791
|
}
|
|
791
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
792
|
+
"function" == typeof n.onTimeRangeSelected && n.qa.apply(function () { n.onTimeRangeSelected(a); });
|
|
792
793
|
}
|
|
793
794
|
else
|
|
794
795
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -799,26 +800,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
799
800
|
n.timeRangeSelectedCallBack(e, t);
|
|
800
801
|
break;
|
|
801
802
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
802
|
-
} }, this.
|
|
803
|
+
} }, this.ua = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
803
804
|
var i = e.which;
|
|
804
805
|
if (1 === i || 0 === i)
|
|
805
|
-
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.
|
|
806
|
-
} }, this.
|
|
806
|
+
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;
|
|
807
|
+
} }, this.va = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
|
|
807
808
|
return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
|
|
808
809
|
if (t[i] === e)
|
|
809
|
-
return i; return -1; }(), o = n.
|
|
810
|
+
return i; return -1; }(), o = n.ta[a]; if (o) {
|
|
810
811
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () { if (n.nav.activeSelection)
|
|
811
812
|
return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = n.J("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e; }();
|
|
812
813
|
c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
813
|
-
} }(); }, this.
|
|
814
|
+
} }(); }, this.wa = function (e) { if ("undefined" != typeof t && t.selecting) {
|
|
814
815
|
var i = DayPilot.mc(e);
|
|
815
|
-
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.
|
|
816
|
-
} }, 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.
|
|
816
|
+
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());
|
|
817
|
+
} }, 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) { if (e < 0)
|
|
817
818
|
return null; for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
818
819
|
if (t += i[a].offsetWidth, e < t)
|
|
819
820
|
return a;
|
|
820
|
-
} return null; }, this.
|
|
821
|
-
return null; e.x = n.
|
|
821
|
+
} return null; }, this.ya = {}, this.ya.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
|
|
822
|
+
return null; e.x = n.xa(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
|
|
822
823
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
823
824
|
i = JSON.parse(o.responseText);
|
|
824
825
|
}
|
|
@@ -829,11 +830,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
829
830
|
var s = {};
|
|
830
831
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
831
832
|
return;
|
|
832
|
-
n.columns.list = i, n.
|
|
833
|
-
} }; 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 }); }, this.
|
|
834
|
-
var i = this.
|
|
835
|
-
this.
|
|
836
|
-
} }, this.
|
|
833
|
+
n.columns.list = i, n.za && n.update();
|
|
834
|
+
} }; 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 }); }, this.ba = function () { var e; e = "Resources" !== n.viewType ? this.Aa() : n.columns.list, this.ta = []; for (var t = 0; t < e.length; t++) {
|
|
835
|
+
var i = this.Ba(e[t]);
|
|
836
|
+
this.ta.push(i);
|
|
837
|
+
} }, this.Ba = function (e) { var t = {}; 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) { for (var t = 0; t < this.blocks.length; t++) {
|
|
837
838
|
var i = this.blocks[t];
|
|
838
839
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
839
840
|
return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
|
|
@@ -853,7 +854,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
853
854
|
var o = this[n];
|
|
854
855
|
if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
|
|
855
856
|
return !1;
|
|
856
|
-
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.
|
|
857
|
+
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Aa = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
|
|
857
858
|
case "Day":
|
|
858
859
|
i = 1;
|
|
859
860
|
break;
|
|
@@ -865,16 +866,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
865
866
|
var r = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, s = {};
|
|
866
867
|
s.start = t.addDays(a), s.name = s.start.toString(r, o.locale()), e.push(s);
|
|
867
868
|
} return e; }, this.visibleStart = function () { if ("Resources" === n.viewType) {
|
|
868
|
-
if (0 === n.
|
|
869
|
+
if (0 === n.ta.length)
|
|
869
870
|
return DayPilot.Date.today();
|
|
870
|
-
var e = n.
|
|
871
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
871
872
|
return new DayPilot.Date(t);
|
|
872
|
-
} return this.
|
|
873
|
-
if (0 === n.
|
|
873
|
+
} return this.ta[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
|
|
874
|
+
if (0 === n.ta.length)
|
|
874
875
|
return DayPilot.Date.today().addDays(1);
|
|
875
|
-
var e = n.
|
|
876
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
876
877
|
return new DayPilot.Date(t).addDays(1);
|
|
877
|
-
} var t = this.
|
|
878
|
+
} var t = this.ta.length - 1; return this.ta[t].start.addDays(1); }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () { if (this.elements.events)
|
|
878
879
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
879
880
|
var t = this.elements.events[e], i = t.event;
|
|
880
881
|
if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
|
|
@@ -882,7 +883,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
882
883
|
a.onmousedown = null, a.onmousemove = null, a.onclick = null;
|
|
883
884
|
}
|
|
884
885
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
885
|
-
} this.elements.events = []; }, this.
|
|
886
|
+
} this.elements.events = []; }, this.Ca = function (e) { var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div"); 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) { var a = 5; if ("undefined" != typeof t) {
|
|
886
887
|
var r = DayPilot.mo3(o, i);
|
|
887
888
|
if (r && !t.resizing && !t.moving) {
|
|
888
889
|
o.deleteIcon && (o.deleteIcon.style.display = "");
|
|
@@ -893,7 +894,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
893
894
|
if (1 === a && e.client.moveEnabled()) {
|
|
894
895
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
895
896
|
var o = t.moving.helper = {};
|
|
896
|
-
o.oldColumn = n.
|
|
897
|
+
o.oldColumn = n.ta[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
897
898
|
var r = DayPilot.mo3(this, i);
|
|
898
899
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
899
900
|
}
|
|
@@ -906,16 +907,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
906
907
|
u.setAttribute("unselectable", "on"), u.className = this.J("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
|
|
907
908
|
} if (e.client.deleteEnabled()) {
|
|
908
909
|
var h = document.createElement("div");
|
|
909
|
-
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.
|
|
910
|
+
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);
|
|
910
911
|
} var f = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
911
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
912
|
-
} n.elements.events.push(o); }, this.
|
|
912
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
|
|
913
|
+
} n.elements.events.push(o); }, this.Da = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
913
914
|
try {
|
|
914
915
|
var a = e.childNodes[i];
|
|
915
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
916
|
+
1 === a.nodeType && (a.unselectable = "on", this.Da(a));
|
|
916
917
|
}
|
|
917
|
-
catch (e) { } }, this.
|
|
918
|
-
var t = this.
|
|
918
|
+
catch (e) { } }, this.ia = function () { for (var e = 0; e < this.ta.length; e++) {
|
|
919
|
+
var t = this.ta[e];
|
|
919
920
|
if (t.blocks)
|
|
920
921
|
for (var i = 0; i < t.blocks.length; i++)
|
|
921
922
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -923,40 +924,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
923
924
|
var s = o[r];
|
|
924
925
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
925
926
|
var l = n === a.lines.length - 1;
|
|
926
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
927
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
|
|
927
928
|
}
|
|
928
|
-
} }, this.
|
|
929
|
+
} }, 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 () { var e = document.createElement("table"); 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; for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
929
930
|
var r = a.insertCell(-1);
|
|
930
931
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
931
932
|
var s = document.createElement("div");
|
|
932
933
|
s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
933
934
|
var l = document.createElement("div");
|
|
934
935
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
935
|
-
} return e; }, this.
|
|
936
|
-
this.
|
|
936
|
+
} return e; }, this.Ia = function () { var e = document.createElement("table"); 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; }; for (var t = n.ja(), i = 0; i < t; i++)
|
|
937
|
+
this.La(e, i); return e; }, 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 () { switch (this.heightSpec) {
|
|
937
938
|
case "Full": return 48 * this.cellHeight;
|
|
938
939
|
case "BusinessHours":
|
|
939
|
-
var e = this.
|
|
940
|
+
var e = this.la();
|
|
940
941
|
return e * this.cellHeight * 2;
|
|
941
942
|
case "BusinessHoursNoScroll":
|
|
942
|
-
var e = this.
|
|
943
|
+
var e = this.la();
|
|
943
944
|
return e * this.cellHeight * 2;
|
|
944
945
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
945
|
-
} }, this.
|
|
946
|
+
} }, this.Ma = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
|
|
946
947
|
e.innerHTML = "";
|
|
947
|
-
var t = this.
|
|
948
|
+
var t = this.Na();
|
|
948
949
|
e.appendChild(t), n.nav.corner = t;
|
|
949
|
-
} }, this.
|
|
950
|
+
} }, this.Ga = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Na(); 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; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
|
|
950
951
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
951
952
|
var r = document.createElement("div");
|
|
952
953
|
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
|
|
953
954
|
var s = document.createElement("div");
|
|
954
955
|
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
955
|
-
} return e.appendChild(t), e; }, this.
|
|
956
|
+
} return e.appendChild(t), e; }, 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 () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
956
957
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
957
958
|
var n = i.cells[a];
|
|
958
959
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
959
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
960
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.fa = function () { var e = this.nav.main, i = 18e5, a = this.ma(), o = n.ta; for (e && this.W(); e && e.rows && e.rows.length > 0;)
|
|
960
961
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
961
962
|
this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0); for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
|
|
962
963
|
var c = l.insertCell(-1);
|
|
@@ -969,16 +970,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
969
970
|
var l = e.insertRow(-1);
|
|
970
971
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
971
972
|
for (var d = 0; d < r; d++) {
|
|
972
|
-
var m = this.
|
|
973
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
973
|
+
var m = this.ta[d], c = l.insertCell(-1);
|
|
974
|
+
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";
|
|
974
975
|
var u = document.createElement("div");
|
|
975
976
|
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
976
|
-
this.
|
|
977
|
+
this.Oa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
|
|
977
978
|
var p = document.createElement("div");
|
|
978
979
|
p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
|
|
979
980
|
}
|
|
980
981
|
} e.root = this, n.nav.scrollable.onmousemove = function (e) { var i = n.nav.scrollable; n.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
|
|
981
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
982
|
+
t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
|
|
982
983
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
983
984
|
if ("bottom" === t.resizing.dpBorder) {
|
|
984
985
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -994,7 +995,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
994
995
|
}
|
|
995
996
|
}
|
|
996
997
|
else if (t.moving) {
|
|
997
|
-
if (t.movingShadow || (t.movingShadow = n.
|
|
998
|
+
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)
|
|
998
999
|
return;
|
|
999
1000
|
var o = n.cellHeight, r = 1, u = t.moveOffsetY;
|
|
1000
1001
|
u || (u = o / 2);
|
|
@@ -1006,16 +1007,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1006
1007
|
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]));
|
|
1007
1008
|
}
|
|
1008
1009
|
else if (t.selecting) {
|
|
1009
|
-
var a = DayPilot.mc(e), v = n.
|
|
1010
|
-
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.
|
|
1011
|
-
} }, n.nav.scrollable.style.display = ""; }, this.
|
|
1010
|
+
var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
|
|
1011
|
+
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();
|
|
1012
|
+
} }, n.nav.scrollable.style.display = ""; }, 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 () { var e = this.nav.header; if (e && e.rows)
|
|
1012
1013
|
for (var t = 0; t < e.rows.length; t++)
|
|
1013
1014
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1014
1015
|
var n = i.cells[a];
|
|
1015
1016
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1016
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1017
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.Pa = function (e) { 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++) {
|
|
1017
1018
|
var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
|
|
1018
|
-
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.
|
|
1019
|
+
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;
|
|
1019
1020
|
var l = e ? document.createElement("div") : s.firstChild;
|
|
1020
1021
|
if (e) {
|
|
1021
1022
|
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");
|
|
@@ -1024,23 +1025,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1024
1025
|
}
|
|
1025
1026
|
r.toolTip && (d.title = r.toolTip);
|
|
1026
1027
|
var d = l.firstChild;
|
|
1027
|
-
d.innerHTML = n.
|
|
1028
|
-
} }, this.
|
|
1029
|
-
var t = this.data, i = n.
|
|
1028
|
+
d.innerHTML = n.Ra(r.name, r.html);
|
|
1029
|
+
} }, this.Qa = function (e) { if ("Disabled" !== n.headerClickHandling) {
|
|
1030
|
+
var t = this.data, i = n.Sa(t), a = {};
|
|
1030
1031
|
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);
|
|
1031
|
-
} }, this.
|
|
1032
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.
|
|
1032
|
+
} }, 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 () { var e = this.nav.header, t = !0, i = this.ta; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1033
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Pa(t); }, 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) { var t = null; if (e instanceof DayPilot.Event)
|
|
1033
1034
|
t = e.data;
|
|
1034
1035
|
else {
|
|
1035
1036
|
if ("object" != typeof e)
|
|
1036
1037
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1037
1038
|
t = e;
|
|
1038
|
-
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1039
|
+
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.qa.notify(); }, this.events.find = function (e) {
|
|
1040
|
+
if (!n.events.list)
|
|
1041
|
+
return null;
|
|
1042
|
+
for (var t = 0; t < n.events.list.length; t++) {
|
|
1043
|
+
var i = n.events.list[t];
|
|
1044
|
+
if (i.id === e)
|
|
1045
|
+
return new DayPilot.Event(i, n);
|
|
1046
|
+
}
|
|
1047
|
+
return null;
|
|
1048
|
+
}, this.events.update = function (e) { if (e instanceof DayPilot.Event)
|
|
1044
1049
|
e.commit();
|
|
1045
1050
|
else if ("object" == typeof e) {
|
|
1046
1051
|
var t = n.events.find(e.id);
|
|
@@ -1048,21 +1053,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1048
1053
|
var i = DayPilot.indexOf(n.events.list, t.data);
|
|
1049
1054
|
n.events.list.splice(i, 1, e);
|
|
1050
1055
|
}
|
|
1051
|
-
} n.update(), n.
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
i && (t = i.data);
|
|
1062
|
-
}
|
|
1063
|
-
var a = DayPilot.indexOf(n.events.list, t);
|
|
1064
|
-
n.events.list.splice(a, 1), n.update(), n.pa.notify();
|
|
1065
|
-
}, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1056
|
+
} n.update(), n.qa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1057
|
+
t = e.data;
|
|
1058
|
+
else if ("object" == typeof e) {
|
|
1059
|
+
var i = n.events.find(e.id);
|
|
1060
|
+
i && (t = i.data);
|
|
1061
|
+
}
|
|
1062
|
+
else if ("string" == typeof e || "number" == typeof e) {
|
|
1063
|
+
var i = n.events.find(e);
|
|
1064
|
+
i && (t = i.data);
|
|
1065
|
+
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.update(), n.qa.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1066
1066
|
i = JSON.parse(o.responseText);
|
|
1067
1067
|
}
|
|
1068
1068
|
catch (e) {
|
|
@@ -1072,24 +1072,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1072
1072
|
var s = {};
|
|
1073
1073
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1074
1074
|
return;
|
|
1075
|
-
n.events.list = i, n.
|
|
1075
|
+
n.events.list = i, n.za && n.update();
|
|
1076
1076
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1077
1077
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
|
|
1078
1078
|
else {
|
|
1079
1079
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1080
1080
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1081
|
-
} }, this.
|
|
1081
|
+
} }, this.Za = function () { if (n.nav.top.className !== n.J("_main")) {
|
|
1082
1082
|
n.nav.top.className = n.J("_main");
|
|
1083
1083
|
var e = n.nav.corner;
|
|
1084
1084
|
e.className = n.J("_corner"), e.firstChild.className = n.J("_corner_inner");
|
|
1085
1085
|
var t = n.nav.cornerRight;
|
|
1086
1086
|
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1087
|
-
} }, this.update = function (e) { if (n
|
|
1088
|
-
n
|
|
1089
|
-
n.
|
|
1090
|
-
} }, this.
|
|
1087
|
+
} }, this.update = function (e) { if (n.$a(e), this.za) {
|
|
1088
|
+
n._a(), n.V(), n.nav.top.style.cursor = "auto";
|
|
1089
|
+
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();
|
|
1090
|
+
} }, this.bb = null, this.$a = function (e) { if (e) {
|
|
1091
1091
|
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; } } };
|
|
1092
|
-
this.
|
|
1092
|
+
this.bb = t;
|
|
1093
1093
|
for (var i in e)
|
|
1094
1094
|
if (t[i]) {
|
|
1095
1095
|
var a = t[i];
|
|
@@ -1097,21 +1097,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1097
1097
|
}
|
|
1098
1098
|
else
|
|
1099
1099
|
n[i] = e[i];
|
|
1100
|
-
} }, this.
|
|
1100
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
1101
1101
|
var i = e[t];
|
|
1102
1102
|
i.postInit && i.postInit();
|
|
1103
|
-
} }, this.
|
|
1103
|
+
} }, this.db = function () { if (this.id && this.id.tagName)
|
|
1104
1104
|
this.nav.top = this.id;
|
|
1105
1105
|
else {
|
|
1106
1106
|
if ("string" != typeof this.id)
|
|
1107
1107
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1108
1108
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1109
1109
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1110
|
-
} }, this.
|
|
1110
|
+
} }, this.eb = {}, this.eb.events = [], this.fb = function (e) { var t = this.eb.events, i = this.events.list[e], a = {}; for (var n in i)
|
|
1111
1111
|
a[n] = i[n]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1112
1112
|
var o = {};
|
|
1113
1113
|
o.data = a, this.onBeforeEventRender(o);
|
|
1114
|
-
} t[e] = a; }, this.
|
|
1114
|
+
} t[e] = a; }, this.ca = function () { var e = this.events.list; if (n.eb.events = [], e) {
|
|
1115
1115
|
if (!DayPilot.isArray(e))
|
|
1116
1116
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1117
1117
|
var t = e.length, i = 864e5;
|
|
@@ -1132,11 +1132,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1132
1132
|
}
|
|
1133
1133
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1134
1134
|
for (var o = 0; o < t; o++)
|
|
1135
|
-
this.
|
|
1136
|
-
for (var o = 0; o < this.
|
|
1135
|
+
this.fb(o);
|
|
1136
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1137
1137
|
var l = {};
|
|
1138
1138
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1139
|
-
var d = this.
|
|
1139
|
+
var d = this.ta[o];
|
|
1140
1140
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1141
1141
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1142
1142
|
if (!a[m]) {
|
|
@@ -1152,60 +1152,60 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1152
1152
|
var _ = w.boxBottom;
|
|
1153
1153
|
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);
|
|
1154
1154
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1155
|
-
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.
|
|
1155
|
+
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);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
for (var o = 0; o < this.
|
|
1161
|
-
var d = this.
|
|
1162
|
-
d.events.sort(this.
|
|
1160
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1161
|
+
var d = this.ta[o];
|
|
1162
|
+
d.events.sort(this.gb);
|
|
1163
1163
|
for (var m = 0; m < d.events.length; m++) {
|
|
1164
1164
|
var r = d.events[m];
|
|
1165
1165
|
d.putIntoBlock(r);
|
|
1166
1166
|
}
|
|
1167
1167
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1168
1168
|
var k = d.blocks[m];
|
|
1169
|
-
k.events.sort(this.
|
|
1169
|
+
k.events.sort(this.gb);
|
|
1170
1170
|
for (var S = 0; S < k.events.length; S++) {
|
|
1171
1171
|
var r = k.events[S];
|
|
1172
1172
|
k.putIntoLine(r);
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
} }, this.
|
|
1176
|
+
} }, this.gb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1177
1177
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
|
|
1178
|
-
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.
|
|
1178
|
+
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; 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; }, 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 () { if (n.nav.scroll) {
|
|
1179
1179
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1180
|
-
n.
|
|
1181
|
-
} }, this.
|
|
1180
|
+
n.Wa.scrollHour = t;
|
|
1181
|
+
} }, 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 () { for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
|
|
1182
1182
|
var i = e[t];
|
|
1183
1183
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1184
|
-
} this.
|
|
1184
|
+
} this.Wa.themes = []; }, this.nb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1185
1185
|
var e = {};
|
|
1186
1186
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1187
|
-
} }, this.
|
|
1188
|
-
this.
|
|
1187
|
+
} }, this.ob = function () { if ("function" == typeof this.onInit && !this.pb) {
|
|
1188
|
+
this.pb = !0;
|
|
1189
1189
|
var e = {};
|
|
1190
1190
|
this.onInit(e);
|
|
1191
|
-
} }, this.
|
|
1191
|
+
} }, 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);
|
|
1192
1192
|
}, 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) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
1193
1193
|
var i = new DayPilot.Calendar(this.id);
|
|
1194
1194
|
this.daypilot = i;
|
|
1195
1195
|
for (name in e)
|
|
1196
1196
|
i[name] = e[name];
|
|
1197
1197
|
i.init(), t || (t = i);
|
|
1198
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.
|
|
1198
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
1199
1199
|
(0, e(r).assign)(t, n);
|
|
1200
1200
|
} for (var s in a)
|
|
1201
1201
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1202
|
-
n[t] = e[t]; n.update(), n.
|
|
1202
|
+
n[t] = e[t]; n.update(), n.ob(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
|
|
1203
1203
|
}
|
|
1204
1204
|
}(), "undefined" == typeof DayPilot)
|
|
1205
1205
|
var DayPilot = {};
|
|
1206
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.2.
|
|
1206
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.2.470-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
|
|
1207
1207
|
for (var t in e)
|
|
1208
|
-
this[t] = e[t]; }, 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.
|
|
1208
|
+
this[t] = e[t]; }, 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 () { var e = this.B(); if (!e)
|
|
1209
1209
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1210
1210
|
return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
|
|
1211
1211
|
if (a)
|
|
@@ -1214,7 +1214,7 @@ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePick
|
|
|
1214
1214
|
} return a; }, this.sb = function (e) { var t = this.B(); if (t) {
|
|
1215
1215
|
var a = e.toString(i.pattern, i.locale);
|
|
1216
1216
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1217
|
-
} }, this.
|
|
1217
|
+
} }, 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 () { if (!this.qb) {
|
|
1218
1218
|
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1219
1219
|
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;
|
|
1220
1220
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
@@ -1226,14 +1226,14 @@ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePick
|
|
|
1226
1226
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1227
1227
|
s.style.left = c + "px";
|
|
1228
1228
|
}
|
|
1229
|
-
this.
|
|
1229
|
+
this.qb = !0, this.onShow && this.onShow();
|
|
1230
1230
|
} }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
|
|
1231
1231
|
var DayPilot = {};
|
|
1232
1232
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1233
1233
|
"use strict";
|
|
1234
1234
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1235
1235
|
var e = function () { }, t = {};
|
|
1236
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2023.2.
|
|
1236
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; 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) { o = o || {}; var r = null; 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) {
|
|
1237
1237
|
a.cssOnly || (a.cssOnly = !0);
|
|
1238
1238
|
var s = null;
|
|
1239
1239
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1361,7 +1361,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1361
1361
|
this.onHide(o);
|
|
1362
1362
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
|
|
1363
1363
|
for (var r in o)
|
|
1364
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
1364
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; 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; for (var a in t)
|
|
1365
1365
|
this[a] = t[a]; this.yb = function (e) { return this.theme + "_" + e; }, this.s = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.yb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.yb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
|
|
1366
1366
|
i.zb();
|
|
1367
1367
|
else if (e.children)
|
|
@@ -1381,7 +1381,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1381
1381
|
"right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
|
|
1382
1382
|
}
|
|
1383
1383
|
DayPilot.MenuBar.active = i;
|
|
1384
|
-
} }, this.init = function () { return this.s(), this.
|
|
1384
|
+
} }, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, 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) { if (!e || !e.touches)
|
|
1385
1385
|
return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1386
1386
|
var i = DayPilot.Menu.active;
|
|
1387
1387
|
if (i) {
|
|
@@ -1740,15 +1740,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1740
1740
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1741
1741
|
var e = {};
|
|
1742
1742
|
e.Month = function (t, i) {
|
|
1743
|
-
this.v = "2023.2.
|
|
1743
|
+
this.v = "2023.2.470-lite", this.nav = {};
|
|
1744
1744
|
var a = this;
|
|
1745
|
-
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.
|
|
1745
|
+
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) { var t = null; if (e instanceof DayPilot.Event)
|
|
1746
1746
|
t = e.data;
|
|
1747
1747
|
else {
|
|
1748
1748
|
if ("object" != typeof e)
|
|
1749
1749
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
1750
1750
|
t = e;
|
|
1751
|
-
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
1751
|
+
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify(); }, this.events.find = function (e) { if (!a.events.list)
|
|
1752
1752
|
return null; for (var t = 0; t < a.events.list.length; t++) {
|
|
1753
1753
|
var i = a.events.list[t];
|
|
1754
1754
|
if (i.id === e)
|
|
@@ -1761,7 +1761,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1761
1761
|
var i = DayPilot.indexOf(a.events.list, t.data);
|
|
1762
1762
|
a.events.list.splice(i, 1, e);
|
|
1763
1763
|
}
|
|
1764
|
-
} a.update(), a.
|
|
1764
|
+
} a.update(), a.qa.notify(); }, 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) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1765
1765
|
i = JSON.parse(o.responseText);
|
|
1766
1766
|
}
|
|
1767
1767
|
catch (e) {
|
|
@@ -1771,17 +1771,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1771
1771
|
var s = {};
|
|
1772
1772
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1773
1773
|
return;
|
|
1774
|
-
a.events.list = i, a.
|
|
1774
|
+
a.events.list = i, a.za && a.update();
|
|
1775
1775
|
} }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
1776
1776
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
|
|
1777
1777
|
else {
|
|
1778
1778
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
1779
1779
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
1780
|
-
} }, this.update = function (e) { if (a
|
|
1781
|
-
a.
|
|
1782
|
-
} }, this.
|
|
1780
|
+
} }, this.update = function (e) { if (a.$a(e), this.za && this.cells) {
|
|
1781
|
+
a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
|
|
1782
|
+
} }, this.bb = null, this.$a = function (e) { if (e) {
|
|
1783
1783
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
1784
|
-
this.
|
|
1784
|
+
this.bb = t;
|
|
1785
1785
|
for (var i in e)
|
|
1786
1786
|
if (t[i]) {
|
|
1787
1787
|
var n = t[i];
|
|
@@ -1789,19 +1789,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1789
1789
|
}
|
|
1790
1790
|
else
|
|
1791
1791
|
a[i] = e[i];
|
|
1792
|
-
} }, this.
|
|
1792
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
1793
1793
|
var i = e[t];
|
|
1794
1794
|
i.postInit && i.postInit();
|
|
1795
|
-
} }, this.
|
|
1795
|
+
} }, this.eb = {}, this.eb.events = [], this.fb = function (e) { var t = this.eb.events, i = this.events.list[e], a = {}; for (var n in i)
|
|
1796
1796
|
a[n] = i[n]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1797
1797
|
var o = {};
|
|
1798
1798
|
o.data = a, this.onBeforeEventRender(o);
|
|
1799
|
-
} t[e] = a; }, this.
|
|
1799
|
+
} t[e] = a; }, this.ca = function () { var e = this.events.list; if (e) {
|
|
1800
1800
|
if (!DayPilot.isArray(e))
|
|
1801
1801
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1802
1802
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1803
1803
|
for (var t = 0; t < e.length; t++)
|
|
1804
|
-
this.
|
|
1804
|
+
this.fb(t);
|
|
1805
1805
|
for (var i = 0; i < e.length; i++) {
|
|
1806
1806
|
var a = e[i];
|
|
1807
1807
|
if ("object" != typeof a)
|
|
@@ -1814,24 +1814,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1814
1814
|
if (!(n.getTime() > o.getTime()))
|
|
1815
1815
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1816
1816
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
1817
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1817
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.eb.events[i]));
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1821
1821
|
var r = this.rows[l];
|
|
1822
|
-
r.events.sort(this.
|
|
1822
|
+
r.events.sort(this.gb);
|
|
1823
1823
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1824
1824
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1825
1825
|
r.putIntoLine(c, u, h, l);
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
} }, this.
|
|
1828
|
+
} }, this.V = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1829
1829
|
var t = this.elements.events[e];
|
|
1830
1830
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
1831
|
-
} this.elements.events = []; }, this.
|
|
1831
|
+
} this.elements.events = []; }, this.ia = function () { this.Lc(); }, this.Lc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1832
1832
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
1833
1833
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
1834
|
-
this.
|
|
1834
|
+
this.Ca(a[n]); }, this.gb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1835
1835
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, a, n, o, r) { o || (o = 0); var s = n; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = n; var l = 7 * i + t - o; l < 0 && (s += l, t = 0, i = 0); for (var d = o; d >= 7;)
|
|
1836
1836
|
i--, d -= 7; if (d > t) {
|
|
1837
1837
|
d > t + (7 - this.getColCount()) ? (i--, t = t + 7 - d) : (s = s - d + t, t = 0);
|
|
@@ -1847,7 +1847,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1847
1847
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1848
1848
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1849
1849
|
} }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
1850
|
-
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
1850
|
+
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ca = function (t) { 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"); 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) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
1851
1851
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1852
1852
|
var d = {};
|
|
1853
1853
|
d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
|
|
@@ -1875,7 +1875,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1875
1875
|
m.setAttribute("unselectable", "on"), m.className = this.J("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
|
|
1876
1876
|
} if (t.client.deleteEnabled()) {
|
|
1877
1877
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
1878
|
-
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.
|
|
1878
|
+
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);
|
|
1879
1879
|
} var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
|
|
1880
1880
|
var o = {};
|
|
1881
1881
|
o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
|
|
@@ -1886,7 +1886,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1886
1886
|
e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
|
|
1887
1887
|
e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(o);
|
|
1888
1888
|
} this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
1889
|
-
e += this.rows[t].getHeight(); return e; }, 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.
|
|
1889
|
+
e += this.rows[t].getHeight(); return e; }, 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 () { var t = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
1890
1890
|
var i = DayPilot.mo2(a.nav.top, t);
|
|
1891
1891
|
if (!i)
|
|
1892
1892
|
return;
|
|
@@ -1926,7 +1926,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1926
1926
|
o < 1 && (o = 1);
|
|
1927
1927
|
var m = h < f ? r : n;
|
|
1928
1928
|
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);
|
|
1929
|
-
} }; }, this.
|
|
1929
|
+
} }; }, this.ha = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
|
|
1930
1930
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1931
1931
|
this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
|
|
1932
1932
|
var l = o;
|
|
@@ -1947,7 +1947,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1947
1947
|
this.Nc(t, r, e);
|
|
1948
1948
|
} }, this.Jc = function () { for (var e = 0; e < this.cells.length; e++)
|
|
1949
1949
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1950
|
-
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.
|
|
1950
|
+
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
|
|
1951
1951
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
1952
1952
|
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",
|
|
1953
1953
|
l.className = this.J("_cell"), !this.isWeekend(s)) {
|
|
@@ -1966,10 +1966,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1966
1966
|
var h = s.getDay();
|
|
1967
1967
|
1 === h ? u.innerHTML = n.locale().monthNames[s.getMonth()] + " " + h : u.innerHTML = h, c.appendChild(u), this.cells[t][i] = l, o.appendChild(l);
|
|
1968
1968
|
}, this.getWeekStart = function () { return n.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
1969
|
-
t += this.rows[i].getHeight(); return t; }, 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.
|
|
1970
|
-
if (a.
|
|
1969
|
+
t += this.rows[i].getHeight(); return t; }, 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) { var i = e.event; if (i.client.clickEnabled())
|
|
1970
|
+
if (a.oa()) {
|
|
1971
1971
|
var n = {};
|
|
1972
|
-
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.
|
|
1972
|
+
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))
|
|
1973
1973
|
return;
|
|
1974
1974
|
switch (a.eventClickHandling) {
|
|
1975
1975
|
case "CallBack":
|
|
@@ -1979,7 +1979,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1979
1979
|
var o = i.client.contextMenu();
|
|
1980
1980
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
1981
1981
|
}
|
|
1982
|
-
"function" == typeof a.onEventClicked && a.
|
|
1982
|
+
"function" == typeof a.onEventClicked && a.qa.apply(function () { a.onEventClicked(n); });
|
|
1983
1983
|
}
|
|
1984
1984
|
else
|
|
1985
1985
|
switch (a.eventClickHandling) {
|
|
@@ -1987,7 +1987,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1987
1987
|
a.eventClickCallBack(i);
|
|
1988
1988
|
break;
|
|
1989
1989
|
case "JavaScript": a.onEventClick(i);
|
|
1990
|
-
} }, this.Mc = function () { var e = this; return a.
|
|
1990
|
+
} }, this.Mc = function () { var e = this; return a.ra(e.event), !1; }, this.ra = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
1991
1991
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
|
|
1992
1992
|
switch (a.eventRightClickHandling) {
|
|
1993
1993
|
case "ContextMenu":
|
|
@@ -1995,9 +1995,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1995
1995
|
i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
|
|
1996
1996
|
}
|
|
1997
1997
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
1998
|
-
} }, this.
|
|
1998
|
+
} }, this.sa = function (e) { if (a.oa()) {
|
|
1999
1999
|
var t = {};
|
|
2000
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
2000
|
+
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))
|
|
2001
2001
|
return;
|
|
2002
2002
|
switch (a.eventDeleteHandling) {
|
|
2003
2003
|
case "CallBack":
|
|
@@ -2008,7 +2008,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2008
2008
|
break;
|
|
2009
2009
|
case "Update": a.events.remove(e);
|
|
2010
2010
|
}
|
|
2011
|
-
"function" == typeof a.onEventDeleted && a.
|
|
2011
|
+
"function" == typeof a.onEventDeleted && a.qa.apply(function () { a.onEventDeleted(t); });
|
|
2012
2012
|
}
|
|
2013
2013
|
else
|
|
2014
2014
|
switch (a.eventDeleteHandling) {
|
|
@@ -2021,9 +2021,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2021
2021
|
case "JavaScript": a.onEventDelete(e);
|
|
2022
2022
|
} }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
2023
2023
|
throw "newStart is null"; if (!i)
|
|
2024
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l !== e.end() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.
|
|
2024
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.oa()) {
|
|
2025
2025
|
var p = {};
|
|
2026
|
-
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.
|
|
2026
|
+
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))
|
|
2027
2027
|
return;
|
|
2028
2028
|
switch (a.eventMoveHandling) {
|
|
2029
2029
|
case "CallBack":
|
|
@@ -2031,7 +2031,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2031
2031
|
break;
|
|
2032
2032
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
2033
2033
|
}
|
|
2034
|
-
"function" == typeof a.onEventMoved && a.
|
|
2034
|
+
"function" == typeof a.onEventMoved && a.qa.apply(function () { a.onEventMoved(p); });
|
|
2035
2035
|
}
|
|
2036
2036
|
else
|
|
2037
2037
|
switch (a.eventMoveHandling) {
|
|
@@ -2041,9 +2041,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2041
2041
|
case "JavaScript": a.onEventMove(e, f, m);
|
|
2042
2042
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
2043
2043
|
throw "newStart is null"; if (!i)
|
|
2044
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o !== e.end() && (o = o.addDays(1)); 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); if (a.
|
|
2044
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); 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); if (a.oa()) {
|
|
2045
2045
|
var u = {};
|
|
2046
|
-
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.
|
|
2046
|
+
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))
|
|
2047
2047
|
return;
|
|
2048
2048
|
switch (a.eventResizeHandling) {
|
|
2049
2049
|
case "CallBack":
|
|
@@ -2051,7 +2051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2051
2051
|
break;
|
|
2052
2052
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
2053
2053
|
}
|
|
2054
|
-
"function" == typeof a.onEventResized && a.
|
|
2054
|
+
"function" == typeof a.onEventResized && a.qa.apply(function () { a.onEventResized(u); });
|
|
2055
2055
|
}
|
|
2056
2056
|
else
|
|
2057
2057
|
switch (a.eventResizeHandling) {
|
|
@@ -2059,14 +2059,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2059
2059
|
a.eventResizeCallBack(e, d, c);
|
|
2060
2060
|
break;
|
|
2061
2061
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
2062
|
-
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.
|
|
2062
|
+
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.oa()) {
|
|
2063
2063
|
var i = {};
|
|
2064
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
2064
|
+
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))
|
|
2065
2065
|
return;
|
|
2066
2066
|
switch (a.timeRangeSelectedHandling) {
|
|
2067
2067
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
2068
2068
|
}
|
|
2069
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
2069
|
+
"function" == typeof a.onTimeRangeSelected && a.qa.apply(function () { a.onTimeRangeSelected(i); });
|
|
2070
2070
|
}
|
|
2071
2071
|
else
|
|
2072
2072
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -2074,16 +2074,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2074
2074
|
a.timeRangeSelectedCallBack(e, t);
|
|
2075
2075
|
break;
|
|
2076
2076
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
2077
|
-
} }, this.
|
|
2078
|
-
var n = this.
|
|
2079
|
-
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.
|
|
2077
|
+
} }, 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; };
|
|
2078
|
+
var n = this._;
|
|
2079
|
+
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 () { if (this.id && this.id.tagName)
|
|
2080
2080
|
this.nav.top = this.id;
|
|
2081
2081
|
else {
|
|
2082
2082
|
if ("string" != typeof this.id)
|
|
2083
2083
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2084
2084
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2085
2085
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2086
|
-
} }, this.
|
|
2086
|
+
} }, 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);
|
|
2087
2087
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2088
2088
|
var i = e.movingEvent;
|
|
2089
2089
|
if (!i.event)
|
|
@@ -2122,7 +2122,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2122
2122
|
for (name in e)
|
|
2123
2123
|
i[name] = e[name];
|
|
2124
2124
|
i.Init(), t || (t = i);
|
|
2125
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.
|
|
2125
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2126
2126
|
(0, e(r).assign)(t, n);
|
|
2127
2127
|
} for (var s in a)
|
|
2128
2128
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
@@ -2133,9 +2133,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2133
2133
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2134
2134
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2135
2135
|
DayPilot.Navigator = function (e, t) {
|
|
2136
|
-
this.v = "2023.2.
|
|
2136
|
+
this.v = "2023.2.470-lite";
|
|
2137
2137
|
var i = this;
|
|
2138
|
-
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.
|
|
2138
|
+
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) { var a = {}; a.cells = [], a.days = [], a.weeks = []; 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; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Pc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
2139
2139
|
v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
2140
2140
|
else {
|
|
2141
2141
|
v.style.position = "relative";
|
|
@@ -2209,19 +2209,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2209
2209
|
this.selectionEnd = e;
|
|
2210
2210
|
break;
|
|
2211
2211
|
default: throw "Unknown selectMode value.";
|
|
2212
|
-
} }, this.cd = null, this.select = function (e, t, a) { 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; if (!this.
|
|
2212
|
+
} }, this.cd = null, this.select = function (e, t, a) { 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; if (!this.za)
|
|
2213
2213
|
return void (this.cd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2214
2214
|
var m = this.startDate;
|
|
2215
2215
|
(this.selectionStart < this.dd() || this.selectionStart >= this.ed()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2216
|
-
} 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(); }, this.update = function (e) { if (i
|
|
2216
|
+
} 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(); }, this.update = function (e) { if (i.$a(e), this.za) {
|
|
2217
2217
|
if (i.hd)
|
|
2218
2218
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2219
2219
|
i.jd();
|
|
2220
2220
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2221
2221
|
i.Gb(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
2222
|
-
} }, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.
|
|
2222
|
+
} }, 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) { if (e) {
|
|
2223
2223
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
2224
|
-
this.
|
|
2224
|
+
this.bb = t;
|
|
2225
2225
|
for (var a in e)
|
|
2226
2226
|
if (t[a]) {
|
|
2227
2227
|
var n = t[a];
|
|
@@ -2229,7 +2229,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2229
2229
|
}
|
|
2230
2230
|
else
|
|
2231
2231
|
i[a] = e[a];
|
|
2232
|
-
} }, this.
|
|
2232
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
2233
2233
|
var i = e[t];
|
|
2234
2234
|
i.postInit && i.postInit();
|
|
2235
2235
|
} }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) { if ("function" == typeof i.onAjaxError) {
|
|
@@ -2351,7 +2351,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2351
2351
|
default: throw "unknown selectMode";
|
|
2352
2352
|
}
|
|
2353
2353
|
i.ad(), i.L();
|
|
2354
|
-
} }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.
|
|
2354
|
+
} }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.oa()) {
|
|
2355
2355
|
var r = {};
|
|
2356
2356
|
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))
|
|
2357
2357
|
return;
|
|
@@ -2380,7 +2380,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2380
2380
|
break;
|
|
2381
2381
|
case "None": break;
|
|
2382
2382
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
2383
|
-
} }, 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 () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.
|
|
2383
|
+
} }, 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 () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.oa()) {
|
|
2384
2384
|
var a = {};
|
|
2385
2385
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
2386
2386
|
return;
|
|
@@ -2420,18 +2420,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2420
2420
|
var i = this.months[t];
|
|
2421
2421
|
a += i.height;
|
|
2422
2422
|
} return a; }, this.sd = function (e) { if (this.internal.showLinks)
|
|
2423
|
-
return this.internal.showLinks; var t = {}; 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; }, this.
|
|
2424
|
-
var o = this.
|
|
2423
|
+
return this.internal.showLinks; var t = {}; 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; }, 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._ = {};
|
|
2424
|
+
var o = this._;
|
|
2425
2425
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
|
|
2426
2426
|
var e = o.locale();
|
|
2427
2427
|
return e ? e.weekStarts : 0;
|
|
2428
|
-
} return i.weekStarts; }, o.cellWidth = function () { if (i.
|
|
2429
|
-
return i.
|
|
2430
|
-
var
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2428
|
+
} return i.weekStarts; }, o.cellWidth = function () { if (i.eb.cellWidth)
|
|
2429
|
+
return i.eb.cellWidth; var e = i.ud("_cell_dimensions").width; return e || (e = i.cellWidth), i.eb.cellWidth = e, e; }, this.clearSelection = function () {
|
|
2430
|
+
for (var e = 0; e < this.selected.length; e++) {
|
|
2431
|
+
var t = this.selected[e];
|
|
2432
|
+
i.$c(t.parentNode, t.x, t.y);
|
|
2433
|
+
}
|
|
2434
|
+
this.selected = [];
|
|
2435
|
+
}, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2435
2436
|
this.items = {};
|
|
2436
2437
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2437
2438
|
var t = this.events.list[e];
|
|
@@ -2442,21 +2443,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2442
2443
|
}
|
|
2443
2444
|
}
|
|
2444
2445
|
} }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
|
|
2445
|
-
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
2446
|
+
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () { if (this.id && this.id.tagName)
|
|
2446
2447
|
this.nav.top = this.id;
|
|
2447
2448
|
else {
|
|
2448
2449
|
if ("string" != typeof this.id)
|
|
2449
2450
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2450
2451
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2451
2452
|
throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
|
|
2452
|
-
} this.root = this.nav.top; }, this.init = function () { if (this.
|
|
2453
|
-
this.bd(), this.Oc(), this.fd(), this.
|
|
2454
|
-
if (this.vd() && this.gd(), this.
|
|
2453
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.db(), !this.root.dp) {
|
|
2454
|
+
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.xd(), this.Ya();
|
|
2455
|
+
if (this.vd() && this.gd(), this.za = !0, this.cb(), this.cd) {
|
|
2455
2456
|
var e = this.cd;
|
|
2456
2457
|
this.select(e.date1, e.date2, e.options), this.cd = null;
|
|
2457
2458
|
}
|
|
2458
2459
|
return this;
|
|
2459
|
-
} }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.
|
|
2460
|
+
} }, 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) { if (a.start && a.end) {
|
|
2460
2461
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
2461
2462
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
2462
2463
|
return a.start = null, void a.clear();
|
|
@@ -2464,21 +2465,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2464
2465
|
var o = a.ordered();
|
|
2465
2466
|
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Jc(), i.Oc(), i.fd(), i._c(), i.ad();
|
|
2466
2467
|
i.L({ "mode": "FreeHand" });
|
|
2467
|
-
} a.start = null, a.end = null; }, 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.
|
|
2468
|
+
} a.start = null, a.end = null; }, 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);
|
|
2468
2469
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
2469
2470
|
var i = new DayPilot.Navigator(this.id);
|
|
2470
2471
|
this.daypilot = i;
|
|
2471
2472
|
for (var a in e)
|
|
2472
2473
|
i[a] = e[a];
|
|
2473
2474
|
i.Init(), t || (t = i);
|
|
2474
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.
|
|
2475
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2475
2476
|
(0, e(r).assign)(t, n);
|
|
2476
2477
|
} for (var s in a)
|
|
2477
2478
|
if (0 === s.indexOf("on")) {
|
|
2478
2479
|
var l = DayPilot.Util.shouldApply(s);
|
|
2479
2480
|
l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
|
|
2480
2481
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
|
|
2481
|
-
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
2482
|
+
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ca(), n._c(); }, !0); }; } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2482
2483
|
}
|
|
2483
2484
|
}();
|
|
2484
2485
|
|