@daypilot/daypilot-lite-angular 3.26.0 → 3.27.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/esm2020/lib/core/daypilot-core.mjs +440 -426
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +559 -556
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +439 -425
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +3 -0
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2024.
|
|
133
|
+
Version: 2024.4.566-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -508,9 +508,9 @@ if (function () {
|
|
|
508
508
|
var t = e.toLowerCase();
|
|
509
509
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
510
510
|
}, 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) {
|
|
511
|
-
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.
|
|
511
|
+
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.H; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.H = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.s(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
|
|
512
512
|
var i = this;
|
|
513
|
-
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) {
|
|
513
|
+
this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.syncScrollbar = !0, this.k = null, this.l = DayPilot.Date.today(), this.m = null, 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) {
|
|
514
514
|
var a;
|
|
515
515
|
if ("string" == typeof e) {
|
|
516
516
|
if (a = document.getElementById(e), !a)
|
|
@@ -519,9 +519,9 @@ if (function () {
|
|
|
519
519
|
else
|
|
520
520
|
a = e;
|
|
521
521
|
var n = a, o = {};
|
|
522
|
-
return o.
|
|
523
|
-
if (o.
|
|
524
|
-
return o.
|
|
522
|
+
return o.n = !0, o.o = n.id, o.control = n, o.p = t || {}, o.q = function () { n.hide ? n.hide() : n.nav && n.nav.top ? n.nav.top.style.display = "none" : n.style.display = "none"; }, o.s = function (e) { (function () { return !!n.backendUrl || !("function" != typeof WebForm_DoCallback || !n.uniqueID); })() ? n.commandCallBack && n.commandCallBack("navigate", { "day": e }) : (n.startDate = e, n.update()); }, o.t = function () { i.u(), n.show ? n.show() : n.nav && n.nav.top ? n.nav.top.style.display = "" : n.style.display = ""; }, o.z = function () {
|
|
523
|
+
if (o.p.navigatorSelectMode)
|
|
524
|
+
return o.p.navigatorSelectMode;
|
|
525
525
|
if (n.isCalendar)
|
|
526
526
|
switch (n.viewType) {
|
|
527
527
|
case "Day": return "day";
|
|
@@ -545,24 +545,24 @@ if (function () {
|
|
|
545
545
|
}
|
|
546
546
|
else
|
|
547
547
|
a = e;
|
|
548
|
-
var n = this.
|
|
548
|
+
var n = this.A(t);
|
|
549
549
|
n || (n = this.addView(t));
|
|
550
550
|
var o = {};
|
|
551
|
-
return o.
|
|
552
|
-
}, this.addButton = this.addTrigger, this.select = function (e) { var t = this.
|
|
551
|
+
return o.B = !0, o.C = a, o.o = a.id, o.D = n, o.E = function (e) { i.show(o), i.F(o), e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1); }, DayPilot.re(a, "click", o.E), this.i.push(o), o;
|
|
552
|
+
}, this.addButton = this.addTrigger, this.select = function (e) { var t = this.G(e); t ? t.E() : this.i.length > 0 && this.i[0].E(); }, this.G = function (e) {
|
|
553
553
|
for (var t = 0; t < this.i.length; t++) {
|
|
554
554
|
var i = this.i[t];
|
|
555
|
-
if (i.
|
|
555
|
+
if (i.o === e)
|
|
556
556
|
return i;
|
|
557
557
|
}
|
|
558
558
|
return null;
|
|
559
|
-
}, this.
|
|
559
|
+
}, this.F = function (e) {
|
|
560
560
|
if (this.selectedClass) {
|
|
561
561
|
for (var t = 0; t < this.i.length; t++) {
|
|
562
562
|
var i = this.i[t];
|
|
563
|
-
DayPilot.Util.removeClass(i.
|
|
563
|
+
DayPilot.Util.removeClass(i.C, this.selectedClass);
|
|
564
564
|
}
|
|
565
|
-
DayPilot.Util.addClass(e.
|
|
565
|
+
DayPilot.Util.addClass(e.C, this.selectedClass);
|
|
566
566
|
}
|
|
567
567
|
}, this.addNavigator = function (e) {
|
|
568
568
|
i.j.control = e, e.timeRangeSelectedHandling = "JavaScript", e.onTimeRangeSelected = function () {
|
|
@@ -577,30 +577,35 @@ if (function () {
|
|
|
577
577
|
};
|
|
578
578
|
}, this.show = function (e) {
|
|
579
579
|
var a, n;
|
|
580
|
-
if (e.
|
|
581
|
-
n = e, a = n.
|
|
582
|
-
else if (a = e.
|
|
580
|
+
if (e.B)
|
|
581
|
+
n = e, a = n.D;
|
|
582
|
+
else if (a = e.n ? e : this.A(e),
|
|
583
|
+
this.k === a)
|
|
583
584
|
return;
|
|
584
585
|
if (i.onSelect) {
|
|
585
586
|
var o = {};
|
|
586
|
-
o.source = n ? n.
|
|
587
|
+
o.source = n ? n.C : null, o.target = a.control, i.onSelect(o);
|
|
587
588
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
589
|
+
if (i.syncScrollbar) {
|
|
590
|
+
var r = this.k && this.k.control;
|
|
591
|
+
r && r.isCalendar && (i.m = r.getScrollY());
|
|
592
|
+
}
|
|
593
|
+
this.k = a, a.t(), null !== i.m && a.control.isCalendar && a.control.setScrollY(i.m);
|
|
594
|
+
var s = a.z();
|
|
595
|
+
i.j.updateMode(s), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
|
|
596
|
+
}, this.A = function (e) {
|
|
592
597
|
for (var t = 0; t < this.f.length; t++)
|
|
593
598
|
if (this.f[t].control === e)
|
|
594
599
|
return this.f[t];
|
|
595
600
|
return null;
|
|
596
|
-
}, this.
|
|
601
|
+
}, this.u = function () {
|
|
597
602
|
for (var e = 0; e < this.f.length; e++)
|
|
598
|
-
this.f[e].
|
|
603
|
+
this.f[e].q();
|
|
599
604
|
}, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) {
|
|
600
605
|
if (!i.k || !i.k.control)
|
|
601
606
|
throw "DayPilot.Switcher.events.load(): Active view not found";
|
|
602
607
|
i.k.control.events.load(e, t, a);
|
|
603
|
-
}, this.
|
|
608
|
+
}, this.H = null, this.I = function () {
|
|
604
609
|
if (e)
|
|
605
610
|
for (var t in e)
|
|
606
611
|
if ("triggers" === t) {
|
|
@@ -609,7 +614,7 @@ if (function () {
|
|
|
609
614
|
}
|
|
610
615
|
else
|
|
611
616
|
"navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t];
|
|
612
|
-
}, this.
|
|
617
|
+
}, this.I();
|
|
613
618
|
}, DayPilot.Duration = function (e) {
|
|
614
619
|
var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3;
|
|
615
620
|
if (2 === arguments.length) {
|
|
@@ -826,7 +831,7 @@ if (function () {
|
|
|
826
831
|
if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
827
832
|
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
|
|
828
833
|
return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) };
|
|
829
|
-
}, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = DayPilot.ColorUtil.hexToRgb(e); t
|
|
834
|
+
}, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = ""; 9 === e.length && (i = e.slice(7, 9), e = e.slice(0, 7)); var a = DayPilot.ColorUtil.hexToRgb(e); "number" != typeof t && (t = 1); var n = 17, o = Math.round(t * n), r = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(r) + i; }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), i = t.r / 255, a = t.g / 255, n = t.b / 255; return Math.sqrt(.299 * i * i + .587 * a * a + .114 * n * n); }, DayPilot.ColorUtil.contrasting = function (e, t, i) { var a = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", i = i || "#000000", a > .5 ? i : t; }, DayPilot.Event = function (e, t, i) {
|
|
830
835
|
var a = this;
|
|
831
836
|
this.calendar = t, this.data = e ? e : {}, this.part = i ? i : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
|
|
832
837
|
var n = {}, o = ["id", "text", "start", "end", "resource"];
|
|
@@ -963,47 +968,46 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
963
968
|
if (!t.resizingShadow)
|
|
964
969
|
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
965
970
|
var a = t.resizing.event, n = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
|
|
966
|
-
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.
|
|
971
|
+
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.J(a, n, o, r);
|
|
967
972
|
}
|
|
968
973
|
else if (t.moving) {
|
|
969
974
|
if (!t.movingShadow)
|
|
970
975
|
return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
|
|
971
976
|
var o = t.movingShadow.offsetTop, a = t.moving.event;
|
|
972
|
-
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.
|
|
977
|
+
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.K("_event_moving_source"));
|
|
973
978
|
var s = t.movingShadow.column;
|
|
974
|
-
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.
|
|
979
|
+
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
|
|
975
980
|
}
|
|
976
981
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
977
982
|
var l = t.selecting.calendar;
|
|
978
983
|
t.selecting = !1;
|
|
979
984
|
var d = l.getSelection();
|
|
980
|
-
l.
|
|
985
|
+
l.M(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
|
|
981
986
|
}
|
|
982
987
|
else
|
|
983
988
|
t.selecting = !1;
|
|
984
989
|
}, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
|
|
985
990
|
var a = !1;
|
|
986
|
-
if (this instanceof t.Calendar && !this.
|
|
991
|
+
if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
|
|
987
992
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
988
993
|
var n = this;
|
|
989
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.
|
|
994
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.566-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.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, 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.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = 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.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.S = 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.R(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), 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.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { n.U(e.responseText); }, this.R = 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._ = function (e, t) {
|
|
990
995
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
991
996
|
i = i.parentNode;
|
|
992
997
|
var a = document.createElement("div");
|
|
993
|
-
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.
|
|
998
|
+
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.K("_shadow");
|
|
994
999
|
var o = document.createElement("div");
|
|
995
|
-
return o.className = n.
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
}, this._.ba = function () {
|
|
1000
|
+
return o.className = n.K("_shadow_inner"),
|
|
1001
|
+
a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
1002
|
+
}, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; }, this.aa.ca = function () {
|
|
999
1003
|
if ("Auto" === n.weekStarts) {
|
|
1000
1004
|
var e = o.locale();
|
|
1001
1005
|
return e ? e.weekStarts : 0;
|
|
1002
1006
|
}
|
|
1003
1007
|
return n.weekStarts || 0;
|
|
1004
1008
|
};
|
|
1005
|
-
var o = this.
|
|
1006
|
-
this.
|
|
1009
|
+
var o = this.aa;
|
|
1010
|
+
this.U = function (e, t) {
|
|
1007
1011
|
if (e && 0 === e.indexOf("$$$")) {
|
|
1008
1012
|
if (!window.console)
|
|
1009
1013
|
throw "Error received from the server side: " + e;
|
|
@@ -1013,16 +1017,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1013
1017
|
if (e.CallBackRedirect)
|
|
1014
1018
|
return void (document.location.href = e.CallBackRedirect);
|
|
1015
1019
|
if ("None" === e.UpdateType)
|
|
1016
|
-
return n.loadingStop(), void n.
|
|
1017
|
-
if (n.
|
|
1020
|
+
return n.loadingStop(), void n.t();
|
|
1021
|
+
if (n.W(), "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.da()), e.Hashes)
|
|
1018
1022
|
for (var i in e.Hashes)
|
|
1019
1023
|
n.hashes[i] = e.Hashes[i];
|
|
1020
|
-
n.events.list = e.Events, n.
|
|
1021
|
-
}, this.
|
|
1024
|
+
n.events.list = e.Events, n.ea(), n.fa(), "Full" === e.UpdateType && (n.ga(), n.ha(), n.ia(), n.ja()), n.t(), n.ka(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
1025
|
+
}, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
|
|
1022
1026
|
var t = this, i = t.event;
|
|
1023
|
-
if (n.
|
|
1027
|
+
if (n.qa()) {
|
|
1024
1028
|
var a = {};
|
|
1025
|
-
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.
|
|
1029
|
+
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.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
1026
1030
|
return;
|
|
1027
1031
|
switch (n.eventClickHandling) {
|
|
1028
1032
|
case "CallBack":
|
|
@@ -1035,7 +1039,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1035
1039
|
var o = i.client.contextMenu();
|
|
1036
1040
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
1037
1041
|
}
|
|
1038
|
-
"function" == typeof n.onEventClicked && n.
|
|
1042
|
+
"function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
|
|
1039
1043
|
}
|
|
1040
1044
|
else
|
|
1041
1045
|
switch (n.eventClickHandling) {
|
|
@@ -1047,7 +1051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1047
1051
|
break;
|
|
1048
1052
|
case "JavaScript": n.onEventClick(i);
|
|
1049
1053
|
}
|
|
1050
|
-
}, this.
|
|
1054
|
+
}, this.ta = function (e) {
|
|
1051
1055
|
var t = this.event;
|
|
1052
1056
|
if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
1053
1057
|
return !1;
|
|
@@ -1060,10 +1064,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1060
1064
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
1061
1065
|
}
|
|
1062
1066
|
return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
|
|
1063
|
-
}, this.eventDeleteCallBack = function (e, t) { this.
|
|
1064
|
-
if (n.
|
|
1067
|
+
}, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) {
|
|
1068
|
+
if (n.qa()) {
|
|
1065
1069
|
var t = {};
|
|
1066
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
1070
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
1067
1071
|
return;
|
|
1068
1072
|
switch (n.eventDeleteHandling) {
|
|
1069
1073
|
case "CallBack":
|
|
@@ -1074,7 +1078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1074
1078
|
break;
|
|
1075
1079
|
case "Update": n.events.remove(e);
|
|
1076
1080
|
}
|
|
1077
|
-
"function" == typeof n.onEventDeleted && n.
|
|
1081
|
+
"function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
|
|
1078
1082
|
}
|
|
1079
1083
|
else
|
|
1080
1084
|
switch (n.eventDeleteHandling) {
|
|
@@ -1092,27 +1096,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1092
1096
|
if (!i)
|
|
1093
1097
|
throw "newEnd is null";
|
|
1094
1098
|
var n = {};
|
|
1095
|
-
n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
1099
|
+
n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
|
|
1096
1100
|
}, this.eventResizePostBack = function (e, t, i, a) {
|
|
1097
1101
|
if (!t)
|
|
1098
1102
|
throw "newStart is null";
|
|
1099
1103
|
if (!i)
|
|
1100
1104
|
throw "newEnd is null";
|
|
1101
1105
|
var n = {};
|
|
1102
|
-
n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
1103
|
-
}, this.
|
|
1106
|
+
n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
|
|
1107
|
+
}, this.J = function (e, t, i, a) {
|
|
1104
1108
|
var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
|
|
1105
1109
|
if ("top" === a) {
|
|
1106
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1110
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
|
|
1107
1111
|
r = c.addTime(f + m), s = e.end();
|
|
1108
1112
|
}
|
|
1109
1113
|
else if ("bottom" === a) {
|
|
1110
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1114
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
|
|
1111
1115
|
r = l, s = c.addTime(f + m);
|
|
1112
1116
|
}
|
|
1113
|
-
if (n.
|
|
1117
|
+
if (n.qa()) {
|
|
1114
1118
|
var p = {};
|
|
1115
|
-
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.
|
|
1119
|
+
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.sa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
1116
1120
|
return;
|
|
1117
1121
|
switch (n.eventResizeHandling) {
|
|
1118
1122
|
case "PostBack":
|
|
@@ -1123,7 +1127,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1123
1127
|
break;
|
|
1124
1128
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
1125
1129
|
}
|
|
1126
|
-
"function" == typeof n.onEventResized && n.
|
|
1130
|
+
"function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
|
|
1127
1131
|
}
|
|
1128
1132
|
else
|
|
1129
1133
|
switch (n.eventResizeHandling) {
|
|
@@ -1141,23 +1145,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1141
1145
|
if (!i)
|
|
1142
1146
|
throw "newEnd is null";
|
|
1143
1147
|
var o = {};
|
|
1144
|
-
o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
1148
|
+
o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o);
|
|
1145
1149
|
}, this.eventMoveCallBack = function (e, t, i, a, n) {
|
|
1146
1150
|
if (!t)
|
|
1147
1151
|
throw "newStart is null";
|
|
1148
1152
|
if (!i)
|
|
1149
1153
|
throw "newEnd is null";
|
|
1150
1154
|
var o = {};
|
|
1151
|
-
o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
1152
|
-
}, this.
|
|
1155
|
+
o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
|
|
1156
|
+
}, this.L = function (e, t, i, a) {
|
|
1153
1157
|
var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
|
|
1154
1158
|
l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
|
|
1155
|
-
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.
|
|
1159
|
+
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.va[t], m = f.id, p = f.start.getTime(), v = new Date;
|
|
1156
1160
|
v.setTime(p + s + u);
|
|
1157
1161
|
var y = new DayPilot.Date(v), g = y.addTime(h);
|
|
1158
|
-
if (n.
|
|
1162
|
+
if (n.qa()) {
|
|
1159
1163
|
var b = {};
|
|
1160
|
-
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.
|
|
1164
|
+
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.sa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
1161
1165
|
return;
|
|
1162
1166
|
switch (n.eventMoveHandling) {
|
|
1163
1167
|
case "PostBack":
|
|
@@ -1168,7 +1172,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1168
1172
|
break;
|
|
1169
1173
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
1170
1174
|
}
|
|
1171
|
-
"function" == typeof n.onEventMoved && n.
|
|
1175
|
+
"function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
|
|
1172
1176
|
}
|
|
1173
1177
|
else
|
|
1174
1178
|
switch (n.eventMoveHandling) {
|
|
@@ -1180,10 +1184,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1180
1184
|
break;
|
|
1181
1185
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
1182
1186
|
}
|
|
1183
|
-
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.
|
|
1184
|
-
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.
|
|
1187
|
+
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.Q("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.S("TimeRangeSelected", a, n); }, this.M = function (e, t, i) {
|
|
1188
|
+
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
|
|
1185
1189
|
var a = {};
|
|
1186
|
-
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.
|
|
1190
|
+
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.sa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
1187
1191
|
return;
|
|
1188
1192
|
switch (n.timeRangeSelectedHandling) {
|
|
1189
1193
|
case "PostBack":
|
|
@@ -1191,7 +1195,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1191
1195
|
break;
|
|
1192
1196
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
1193
1197
|
}
|
|
1194
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
1198
|
+
"function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
|
|
1195
1199
|
}
|
|
1196
1200
|
else
|
|
1197
1201
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -1203,13 +1207,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1203
1207
|
break;
|
|
1204
1208
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
1205
1209
|
}
|
|
1206
|
-
}, this.
|
|
1210
|
+
}, this.wa = function (e) {
|
|
1207
1211
|
if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
1208
1212
|
var i = e.which;
|
|
1209
1213
|
if (1 === i || 0 === i)
|
|
1210
|
-
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.
|
|
1214
|
+
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.xa(), !1;
|
|
1211
1215
|
}
|
|
1212
|
-
}, this.
|
|
1216
|
+
}, this.xa = function () {
|
|
1213
1217
|
this.getSelection();
|
|
1214
1218
|
!function () {
|
|
1215
1219
|
var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
|
|
@@ -1219,7 +1223,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1219
1223
|
if (t[i] === e)
|
|
1220
1224
|
return i;
|
|
1221
1225
|
return -1;
|
|
1222
|
-
}(), o = n.
|
|
1226
|
+
}(), o = n.va[a];
|
|
1223
1227
|
if (o) {
|
|
1224
1228
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
|
|
1225
1229
|
if (n.nav.activeSelection)
|
|
@@ -1227,17 +1231,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1227
1231
|
var e = document.createElement("div");
|
|
1228
1232
|
e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
|
|
1229
1233
|
var t = document.createElement("div");
|
|
1230
|
-
return t.setAttribute("unselectable", "on"), t.className = n.
|
|
1234
|
+
return t.setAttribute("unselectable", "on"), t.className = n.K("_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;
|
|
1231
1235
|
}();
|
|
1232
|
-
c.className = n.
|
|
1236
|
+
c.className = n.K("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
1233
1237
|
}
|
|
1234
1238
|
}();
|
|
1235
|
-
}, this.
|
|
1239
|
+
}, this.ya = function (e) {
|
|
1236
1240
|
if ("undefined" != typeof t && t.selecting) {
|
|
1237
1241
|
var i = DayPilot.mc(e);
|
|
1238
|
-
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.
|
|
1242
|
+
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.xa());
|
|
1239
1243
|
}
|
|
1240
|
-
}, 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.
|
|
1244
|
+
}, 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.za = function (e) {
|
|
1241
1245
|
if (e < 0)
|
|
1242
1246
|
return null;
|
|
1243
1247
|
for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
@@ -1245,11 +1249,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1245
1249
|
return a;
|
|
1246
1250
|
}
|
|
1247
1251
|
return null;
|
|
1248
|
-
}, this.
|
|
1252
|
+
}, this.Aa = {}, this.Aa.getCellCoords = function () {
|
|
1249
1253
|
var e = {};
|
|
1250
1254
|
if (e.x = 0, e.y = 0, !n.coords)
|
|
1251
1255
|
return null;
|
|
1252
|
-
e.x = n.
|
|
1256
|
+
e.x = n.za(n.coords.x);
|
|
1253
1257
|
var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
|
|
1254
1258
|
return e.y = i, e.x < 0 ? null : e;
|
|
1255
1259
|
}, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
|
|
@@ -1268,18 +1272,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1268
1272
|
var s = {};
|
|
1269
1273
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1270
1274
|
return;
|
|
1271
|
-
n.columns.list = i, n.
|
|
1275
|
+
n.columns.list = i, n.Ba && n.update();
|
|
1272
1276
|
}
|
|
1273
1277
|
};
|
|
1274
1278
|
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 });
|
|
1275
|
-
}, this.
|
|
1279
|
+
}, this.da = function () {
|
|
1276
1280
|
var e;
|
|
1277
|
-
e = "Resources" !== n.viewType ? this.
|
|
1281
|
+
e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = [];
|
|
1278
1282
|
for (var t = 0; t < e.length; t++) {
|
|
1279
|
-
var i = this.
|
|
1280
|
-
this.
|
|
1283
|
+
var i = this.Da(e[t]);
|
|
1284
|
+
this.va.push(i);
|
|
1281
1285
|
}
|
|
1282
|
-
}, this.
|
|
1286
|
+
}, this.Da = function (e) {
|
|
1283
1287
|
var t = {};
|
|
1284
1288
|
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) {
|
|
1285
1289
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
@@ -1320,7 +1324,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1320
1324
|
return !0;
|
|
1321
1325
|
}, i.push(e), this.lines.push(i), this.lines.length - 1;
|
|
1322
1326
|
}, t;
|
|
1323
|
-
}, this.
|
|
1327
|
+
}, this.Ca = function () {
|
|
1324
1328
|
var e = [], t = this.startDate.getDatePart(), i = this.days;
|
|
1325
1329
|
switch (this.viewType) {
|
|
1326
1330
|
case "Day":
|
|
@@ -1328,7 +1332,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1328
1332
|
break;
|
|
1329
1333
|
case "Week":
|
|
1330
1334
|
i = 7;
|
|
1331
|
-
var a = o.
|
|
1335
|
+
var a = o.ca();
|
|
1332
1336
|
t = t.firstDayOfWeek(a);
|
|
1333
1337
|
break;
|
|
1334
1338
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
@@ -1341,22 +1345,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1341
1345
|
return e;
|
|
1342
1346
|
}, this.visibleStart = function () {
|
|
1343
1347
|
if ("Resources" === n.viewType) {
|
|
1344
|
-
if (0 === n.
|
|
1348
|
+
if (0 === n.va.length)
|
|
1345
1349
|
return DayPilot.Date.today();
|
|
1346
|
-
var e = n.
|
|
1350
|
+
var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
1347
1351
|
return new DayPilot.Date(t);
|
|
1348
1352
|
}
|
|
1349
|
-
return this.
|
|
1353
|
+
return this.va[0].start;
|
|
1350
1354
|
}, this.visibleEnd = function () {
|
|
1351
1355
|
if ("Resources" === n.viewType) {
|
|
1352
|
-
if (0 === n.
|
|
1356
|
+
if (0 === n.va.length)
|
|
1353
1357
|
return DayPilot.Date.today().addDays(1);
|
|
1354
|
-
var e = n.
|
|
1358
|
+
var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
1355
1359
|
return new DayPilot.Date(t).addDays(1);
|
|
1356
1360
|
}
|
|
1357
|
-
var t = this.
|
|
1358
|
-
return this.
|
|
1359
|
-
}, this.
|
|
1361
|
+
var t = this.va.length - 1;
|
|
1362
|
+
return this.va[t].start.addDays(1);
|
|
1363
|
+
}, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
|
|
1360
1364
|
if (this.elements.events)
|
|
1361
1365
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
1362
1366
|
var t = this.elements.events[e], i = t.event;
|
|
@@ -1367,9 +1371,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1367
1371
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
1368
1372
|
}
|
|
1369
1373
|
this.elements.events = [];
|
|
1370
|
-
}, this.
|
|
1374
|
+
}, this.Ea = function (e) {
|
|
1371
1375
|
var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
|
|
1372
|
-
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.
|
|
1376
|
+
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.K("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.ra, DayPilot.re(o, "contextmenu", this.ta), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
|
|
1373
1377
|
var a = 5;
|
|
1374
1378
|
if ("undefined" != typeof t) {
|
|
1375
1379
|
var r = DayPilot.mo3(o, i);
|
|
@@ -1385,7 +1389,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1385
1389
|
if (1 === a && e.client.moveEnabled()) {
|
|
1386
1390
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
1387
1391
|
var o = t.moving.helper = {};
|
|
1388
|
-
o.oldColumn = n.
|
|
1392
|
+
o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
1389
1393
|
var r = DayPilot.mo3(this, i);
|
|
1390
1394
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
1391
1395
|
}
|
|
@@ -1395,35 +1399,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1395
1399
|
return !1;
|
|
1396
1400
|
};
|
|
1397
1401
|
var r = document.createElement("div");
|
|
1398
|
-
if (r.setAttribute("unselectable", "on"), r.className = n.
|
|
1402
|
+
if (r.setAttribute("unselectable", "on"), r.className = n.K("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
|
|
1399
1403
|
var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
|
|
1400
|
-
c.setAttribute("unselectable", "on"), c.className = this.
|
|
1404
|
+
c.setAttribute("unselectable", "on"), c.className = this.K("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
|
|
1401
1405
|
var u = document.createElement("div");
|
|
1402
|
-
u.setAttribute("unselectable", "on"), u.className = this.
|
|
1406
|
+
u.setAttribute("unselectable", "on"), u.className = this.K("_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);
|
|
1403
1407
|
}
|
|
1404
1408
|
if (e.client.deleteEnabled()) {
|
|
1405
1409
|
var h = document.createElement("div");
|
|
1406
|
-
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.
|
|
1410
|
+
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.K("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
|
|
1407
1411
|
}
|
|
1408
1412
|
var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1409
1413
|
if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
1410
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
1414
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Fa(o);
|
|
1411
1415
|
}
|
|
1412
1416
|
if ("function" == typeof n.onAfterEventRender) {
|
|
1413
1417
|
var m = {};
|
|
1414
1418
|
m.e = o.event, m.div = o, n.onAfterEventRender(m);
|
|
1415
1419
|
}
|
|
1416
1420
|
n.elements.events.push(o);
|
|
1417
|
-
}, this.
|
|
1421
|
+
}, this.Fa = function (e) {
|
|
1418
1422
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
1419
1423
|
try {
|
|
1420
1424
|
var a = e.childNodes[i];
|
|
1421
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
1425
|
+
1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
|
|
1422
1426
|
}
|
|
1423
1427
|
catch (e) { }
|
|
1424
|
-
}, this.
|
|
1425
|
-
for (var e = 0; e < this.
|
|
1426
|
-
var t = this.
|
|
1428
|
+
}, this.ka = function () {
|
|
1429
|
+
for (var e = 0; e < this.va.length; e++) {
|
|
1430
|
+
var t = this.va[e];
|
|
1427
1431
|
if (t.blocks)
|
|
1428
1432
|
for (var i = 0; i < t.blocks.length; i++)
|
|
1429
1433
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -1431,13 +1435,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1431
1435
|
var s = o[r];
|
|
1432
1436
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
1433
1437
|
var l = n === a.lines.length - 1;
|
|
1434
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
1438
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
|
|
1435
1439
|
}
|
|
1436
1440
|
}
|
|
1437
|
-
}, this.
|
|
1441
|
+
}, this.Ga = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_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.Ha() + "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.Ia(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ja(); 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.innerHTML = n.Ka(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.La(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ja = 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.La(), 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.Ma()), n.appendChild(this.Na()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ma = 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.Na = function () {
|
|
1438
1442
|
var e = document.createElement("table");
|
|
1439
1443
|
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;
|
|
1440
|
-
for (var t = this.
|
|
1444
|
+
for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
1441
1445
|
var r = a.insertCell(-1);
|
|
1442
1446
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
1443
1447
|
var s = document.createElement("div");
|
|
@@ -1446,49 +1450,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1446
1450
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
1447
1451
|
}
|
|
1448
1452
|
return e;
|
|
1449
|
-
}, this.
|
|
1453
|
+
}, this.La = function () {
|
|
1450
1454
|
var e = document.createElement("table");
|
|
1451
1455
|
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; };
|
|
1452
|
-
for (var t = n.
|
|
1453
|
-
this.
|
|
1456
|
+
for (var t = n.la(), i = 0; i < t; i++)
|
|
1457
|
+
this.Oa(e, i);
|
|
1454
1458
|
return e;
|
|
1455
|
-
}, this.
|
|
1459
|
+
}, this.Oa = 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.K("_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.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.pa()), 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.K("_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.Ha = function () {
|
|
1456
1460
|
switch (this.heightSpec) {
|
|
1457
1461
|
case "Full": return 48 * this.cellHeight;
|
|
1458
1462
|
case "BusinessHours":
|
|
1459
|
-
var e = this.
|
|
1463
|
+
var e = this.na();
|
|
1460
1464
|
return e * this.cellHeight * 2;
|
|
1461
1465
|
case "BusinessHoursNoScroll":
|
|
1462
|
-
var e = this.
|
|
1466
|
+
var e = this.na();
|
|
1463
1467
|
return e * this.cellHeight * 2;
|
|
1464
1468
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1465
1469
|
}
|
|
1466
|
-
}, this.
|
|
1470
|
+
}, this.Pa = function () {
|
|
1467
1471
|
var e = n.nav.corner ? n.nav.corner.parentNode : null;
|
|
1468
1472
|
if (e) {
|
|
1469
1473
|
e.innerHTML = "";
|
|
1470
|
-
var t = this.
|
|
1474
|
+
var t = this.Qa();
|
|
1471
1475
|
e.appendChild(t), n.nav.corner = t;
|
|
1472
1476
|
}
|
|
1473
|
-
}, this.
|
|
1477
|
+
}, this.Ia = function () {
|
|
1474
1478
|
var e = document.createElement("div");
|
|
1475
1479
|
e.style.overflow = "auto";
|
|
1476
1480
|
var t = document.createElement("table");
|
|
1477
1481
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1478
1482
|
var i = t.insertRow(-1), a = i.insertCell(-1);
|
|
1479
1483
|
a.style.padding = "0px", a.style.border = "0px none";
|
|
1480
|
-
var n = this.
|
|
1484
|
+
var n = this.Qa();
|
|
1481
1485
|
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; };
|
|
1482
1486
|
var o = "hidden" !== this.nav.scroll.style.overflow;
|
|
1483
1487
|
if (a.appendChild(this.nav.header), o) {
|
|
1484
1488
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
1485
1489
|
var r = document.createElement("div");
|
|
1486
|
-
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.
|
|
1490
|
+
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
|
|
1487
1491
|
var s = document.createElement("div");
|
|
1488
|
-
s.className = this.
|
|
1492
|
+
s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
1489
1493
|
}
|
|
1490
1494
|
return e.appendChild(t), e;
|
|
1491
|
-
}, this.
|
|
1495
|
+
}, this.Qa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_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.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
|
|
1492
1496
|
var e = this.nav.main;
|
|
1493
1497
|
e.root = null, e.onmouseup = null;
|
|
1494
1498
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1497,9 +1501,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1497
1501
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
1498
1502
|
}
|
|
1499
1503
|
this.fasterDispose || DayPilot.pu(e);
|
|
1500
|
-
}, this.
|
|
1501
|
-
var e = this.nav.main, i = 18e5, a = this.
|
|
1502
|
-
for (e && this.
|
|
1504
|
+
}, this.ha = function () {
|
|
1505
|
+
var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va;
|
|
1506
|
+
for (e && this.X(); e && e.rows && e.rows.length > 0;)
|
|
1503
1507
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1504
1508
|
this.tableCreated = !0;
|
|
1505
1509
|
for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
@@ -1516,19 +1520,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1516
1520
|
var l = e.insertRow(-1);
|
|
1517
1521
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
1518
1522
|
for (var d = 0; d < r; d++) {
|
|
1519
|
-
var m = this.
|
|
1520
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
1523
|
+
var m = this.va[d], c = l.insertCell(-1);
|
|
1524
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.wa, 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";
|
|
1521
1525
|
var u = document.createElement("div");
|
|
1522
|
-
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.
|
|
1523
|
-
var p = this.
|
|
1526
|
+
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
|
|
1527
|
+
var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
|
|
1524
1528
|
!function () {
|
|
1525
1529
|
if ("function" == typeof n.onBeforeCellRender) {
|
|
1526
1530
|
var e = {};
|
|
1527
1531
|
e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
|
|
1528
1532
|
}
|
|
1529
|
-
}(), v.business && DayPilot.Util.addClass(u, n.
|
|
1533
|
+
}(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
|
|
1530
1534
|
var y = document.createElement("div");
|
|
1531
|
-
y.setAttribute("unselectable", "on"), y.className = this.
|
|
1535
|
+
y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
|
|
1532
1536
|
var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
|
|
1533
1537
|
g && (y.innerHTML = g), v.backColor && (y.style.backgroundColor = v.backColor), v.backImage && (y.style.backgroundImage = "url(" + v.backImage + ")"), v.backRepeat && (y.style.backgroundRepeat = v.backRepeat), u.appendChild(y), c.appendChild(u), c.appendChild(u);
|
|
1534
1538
|
}
|
|
@@ -1538,7 +1542,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1538
1542
|
n.coords = DayPilot.mo3(i, e);
|
|
1539
1543
|
var a = DayPilot.mc(e);
|
|
1540
1544
|
if (t.resizing) {
|
|
1541
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
1545
|
+
t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
|
|
1542
1546
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
1543
1547
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1544
1548
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -1560,23 +1564,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1560
1564
|
var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
|
|
1561
1565
|
if (h <= u)
|
|
1562
1566
|
return;
|
|
1563
|
-
t.movingShadow = n.
|
|
1567
|
+
t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
|
|
1564
1568
|
}
|
|
1565
1569
|
var o = n.cellHeight, r = 1, f = t.moveOffsetY;
|
|
1566
1570
|
f || (f = o / 2);
|
|
1567
1571
|
var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
|
|
1568
1572
|
c < r && (c = r);
|
|
1569
1573
|
var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
|
|
1570
|
-
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.
|
|
1574
|
+
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
1571
1575
|
var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
|
|
1572
1576
|
y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
|
|
1573
1577
|
}
|
|
1574
1578
|
else if (t.selecting) {
|
|
1575
|
-
var a = DayPilot.mc(e), g = n.
|
|
1576
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1579
|
+
var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
|
|
1580
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa();
|
|
1577
1581
|
}
|
|
1578
1582
|
}, n.nav.scrollable.style.display = "";
|
|
1579
|
-
}, this.
|
|
1583
|
+
}, this.Ra = 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.Y = function () {
|
|
1580
1584
|
var e = this.nav.header;
|
|
1581
1585
|
if (e && e.rows)
|
|
1582
1586
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1585,14 +1589,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1585
1589
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1586
1590
|
}
|
|
1587
1591
|
this.fasterDispose || DayPilot.pu(e);
|
|
1588
|
-
}, this.
|
|
1592
|
+
}, this.Sa = function (e) {
|
|
1589
1593
|
function t(t) {
|
|
1590
1594
|
var o = a[t], r = e ? i.insertCell(-1) : i.cells[t];
|
|
1591
|
-
r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.
|
|
1595
|
+
r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Ta;
|
|
1592
1596
|
var s, l = e ? document.createElement("div") : r.firstChild;
|
|
1593
|
-
e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.
|
|
1597
|
+
e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.K("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
|
|
1594
1598
|
var d = {};
|
|
1595
|
-
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.
|
|
1599
|
+
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ua(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
|
|
1596
1600
|
var c = o.verticalAlignment;
|
|
1597
1601
|
if (c)
|
|
1598
1602
|
switch (s.style.display = "flex", c) {
|
|
@@ -1604,24 +1608,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1604
1608
|
break;
|
|
1605
1609
|
case "bottom": s.style.alignItems = "flex-end";
|
|
1606
1610
|
}
|
|
1607
|
-
l.firstChild.innerHTML = n.
|
|
1611
|
+
l.firstChild.innerHTML = n.Ka(o.name, o.html);
|
|
1608
1612
|
}
|
|
1609
|
-
for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.
|
|
1613
|
+
for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, o = a.length, r = 0; r < o; r++)
|
|
1610
1614
|
t(r);
|
|
1611
|
-
}, this.
|
|
1615
|
+
}, this.Ta = function (e) {
|
|
1612
1616
|
if ("Disabled" !== n.headerClickHandling) {
|
|
1613
|
-
var t = this.data, i = n.
|
|
1617
|
+
var t = this.data, i = n.Ua(t), a = {};
|
|
1614
1618
|
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);
|
|
1615
1619
|
}
|
|
1616
|
-
}, this.
|
|
1617
|
-
var e = this.nav.header, t = !0, i = this.
|
|
1620
|
+
}, this.Ua = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Va = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () {
|
|
1621
|
+
var e = this.nav.header, t = !0, i = this.va;
|
|
1618
1622
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1619
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]),
|
|
1623
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]),
|
|
1624
|
+
e.deleteRow(0);
|
|
1620
1625
|
this.headerCreated = !0;
|
|
1621
|
-
this.
|
|
1622
|
-
}, this.loadingStart = function () {
|
|
1623
|
-
this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
|
|
1624
|
-
}, 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.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.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.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = 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) {
|
|
1626
|
+
this.Sa(t);
|
|
1627
|
+
}, 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.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Wa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Xa(); }); var t = "undefined" != typeof this.Ya.scrollpos ? this.Ya.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.Za = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.$a = 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) {
|
|
1625
1628
|
var t = null;
|
|
1626
1629
|
if (e instanceof DayPilot.Event)
|
|
1627
1630
|
t = e.data;
|
|
@@ -1630,7 +1633,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1630
1633
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1631
1634
|
t = e;
|
|
1632
1635
|
}
|
|
1633
|
-
n.events.list || (n.events.list = []), n.events.list.push(t), n
|
|
1636
|
+
n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify();
|
|
1634
1637
|
}, this.events.find = function (e) {
|
|
1635
1638
|
if (!n.events.list)
|
|
1636
1639
|
return null;
|
|
@@ -1658,7 +1661,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1658
1661
|
n.events.list.splice(i, 1, e);
|
|
1659
1662
|
}
|
|
1660
1663
|
}
|
|
1661
|
-
n
|
|
1664
|
+
n._a({ "eventsOnly": !0 }), n.sa.notify();
|
|
1662
1665
|
}, this.events.remove = function (e) {
|
|
1663
1666
|
var t;
|
|
1664
1667
|
if (e instanceof DayPilot.Event)
|
|
@@ -1672,7 +1675,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1672
1675
|
i && (t = i.data);
|
|
1673
1676
|
}
|
|
1674
1677
|
var a = DayPilot.indexOf(n.events.list, t);
|
|
1675
|
-
n.events.list.splice(a, 1), n
|
|
1678
|
+
n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify();
|
|
1676
1679
|
}, this.events.load = function (e, t, i) {
|
|
1677
1680
|
var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
1678
1681
|
var i, o = e.request;
|
|
@@ -1687,7 +1690,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1687
1690
|
var s = {};
|
|
1688
1691
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1689
1692
|
return;
|
|
1690
|
-
n.events.list = i, n.
|
|
1693
|
+
n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
|
|
1691
1694
|
}
|
|
1692
1695
|
};
|
|
1693
1696
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
@@ -1696,27 +1699,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1696
1699
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1697
1700
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1698
1701
|
}
|
|
1699
|
-
}, this.
|
|
1700
|
-
if (n.nav.top.className !== n.
|
|
1701
|
-
n.nav.top.className = n.
|
|
1702
|
+
}, this.ab = function () {
|
|
1703
|
+
if (n.nav.top.className !== n.K("_main")) {
|
|
1704
|
+
n.nav.top.className = n.K("_main");
|
|
1702
1705
|
var e = n.nav.corner;
|
|
1703
|
-
e.className = n.
|
|
1706
|
+
e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
|
|
1704
1707
|
var t = n.nav.cornerRight;
|
|
1705
|
-
t && (t.className = n.
|
|
1708
|
+
t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
|
|
1706
1709
|
}
|
|
1707
1710
|
}, this.update = function (e) {
|
|
1708
|
-
if (n.
|
|
1711
|
+
if (n.O)
|
|
1709
1712
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
|
|
1710
|
-
n.
|
|
1711
|
-
}, this
|
|
1712
|
-
if (this.
|
|
1713
|
+
n.bb(e), n._a();
|
|
1714
|
+
}, this._a = function (e) {
|
|
1715
|
+
if (this.Ba) {
|
|
1713
1716
|
var e = e || {}, t = !e.eventsOnly;
|
|
1714
|
-
n.
|
|
1717
|
+
n.cb(), n.W(), n.nav.top.style.cursor = "auto", t && (n.da(), n.ga(), n.ha(), n.ia(), n.ja(), n.Pa(), n.Za(), n.ab(), n.db()), n.ea(), n.fa(), n.ka(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1715
1718
|
}
|
|
1716
|
-
}, this.
|
|
1719
|
+
}, this.eb = null, this.bb = function (e) {
|
|
1717
1720
|
if (e) {
|
|
1718
1721
|
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; } } };
|
|
1719
|
-
this.
|
|
1722
|
+
this.eb = t;
|
|
1720
1723
|
for (var i in e)
|
|
1721
1724
|
if (t[i]) {
|
|
1722
1725
|
var a = t[i];
|
|
@@ -1725,13 +1728,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1725
1728
|
else
|
|
1726
1729
|
n[i] = e[i];
|
|
1727
1730
|
}
|
|
1728
|
-
}, this.
|
|
1729
|
-
var e = this.
|
|
1731
|
+
}, this.fb = function () {
|
|
1732
|
+
var e = this.eb;
|
|
1730
1733
|
for (var t in e) {
|
|
1731
1734
|
var i = e[t];
|
|
1732
1735
|
i.postInit && i.postInit();
|
|
1733
1736
|
}
|
|
1734
|
-
}, this.
|
|
1737
|
+
}, this.gb = function () {
|
|
1735
1738
|
if (this.id && this.id.tagName)
|
|
1736
1739
|
this.nav.top = this.id;
|
|
1737
1740
|
else {
|
|
@@ -1740,8 +1743,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1740
1743
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1741
1744
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1742
1745
|
}
|
|
1743
|
-
}, this.
|
|
1744
|
-
var t = this.
|
|
1746
|
+
}, this.hb = {}, this.hb.events = [], this.ib = function (e) {
|
|
1747
|
+
var t = this.hb.events, i = this.events.list[e], a = {};
|
|
1745
1748
|
for (var o in i)
|
|
1746
1749
|
a[o] = i[o];
|
|
1747
1750
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1749,9 +1752,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1749
1752
|
r.control = n, r.data = a, this.onBeforeEventRender(r);
|
|
1750
1753
|
}
|
|
1751
1754
|
t[e] = a;
|
|
1752
|
-
}, this.
|
|
1755
|
+
}, this.ea = function () {
|
|
1753
1756
|
var e = this.events.list;
|
|
1754
|
-
if (n.
|
|
1757
|
+
if (n.hb.events = [], e) {
|
|
1755
1758
|
if (!DayPilot.isArray(e))
|
|
1756
1759
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1757
1760
|
var t = e.length, i = 864e5;
|
|
@@ -1772,11 +1775,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1772
1775
|
}
|
|
1773
1776
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1774
1777
|
for (var o = 0; o < t; o++)
|
|
1775
|
-
this.
|
|
1776
|
-
for (var o = 0; o < this.
|
|
1778
|
+
this.ib(o);
|
|
1779
|
+
for (var o = 0; o < this.va.length; o++) {
|
|
1777
1780
|
var l = {};
|
|
1778
1781
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1779
|
-
var d = this.
|
|
1782
|
+
var d = this.va[o];
|
|
1780
1783
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1781
1784
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1782
1785
|
if (!a[m]) {
|
|
@@ -1786,27 +1789,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1786
1789
|
if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
|
|
1787
1790
|
var D = new DayPilot.Event(r, n);
|
|
1788
1791
|
D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
|
|
1789
|
-
var
|
|
1790
|
-
if (C === P && (
|
|
1792
|
+
var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
|
|
1793
|
+
if (C === P && (x.cut || w.cut))
|
|
1791
1794
|
continue;
|
|
1792
|
-
var k =
|
|
1795
|
+
var k = w.boxBottom;
|
|
1793
1796
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / 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);
|
|
1794
1797
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1795
|
-
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.
|
|
1798
|
+
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.hb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1796
1799
|
}
|
|
1797
1800
|
}
|
|
1798
1801
|
}
|
|
1799
1802
|
}
|
|
1800
|
-
for (var o = 0; o < this.
|
|
1801
|
-
var d = this.
|
|
1802
|
-
d.events.sort(this.
|
|
1803
|
+
for (var o = 0; o < this.va.length; o++) {
|
|
1804
|
+
var d = this.va[o];
|
|
1805
|
+
d.events.sort(this.jb);
|
|
1803
1806
|
for (var m = 0; m < d.events.length; m++) {
|
|
1804
1807
|
var r = d.events[m];
|
|
1805
1808
|
d.putIntoBlock(r);
|
|
1806
1809
|
}
|
|
1807
1810
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1808
1811
|
var _ = d.blocks[m];
|
|
1809
|
-
_.events.sort(this.
|
|
1812
|
+
_.events.sort(this.jb);
|
|
1810
1813
|
for (var S = 0; S < _.events.length; S++) {
|
|
1811
1814
|
var r = _.events[S];
|
|
1812
1815
|
_.putIntoLine(r);
|
|
@@ -1814,7 +1817,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1814
1817
|
}
|
|
1815
1818
|
}
|
|
1816
1819
|
}
|
|
1817
|
-
}, this.
|
|
1820
|
+
}, this.jb = function (e, t) {
|
|
1818
1821
|
if (!(e && t && e.start && t.start))
|
|
1819
1822
|
return 0;
|
|
1820
1823
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1828,30 +1831,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1828
1831
|
var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
|
|
1829
1832
|
0 === s && (d = l);
|
|
1830
1833
|
var c = {};
|
|
1831
|
-
return c.cut = !1, c.top = this.
|
|
1832
|
-
}, this.
|
|
1834
|
+
return c.cut = !1, c.top = this.kb(r), c.boxTop = this.kb(l), c.boxBottom = this.kb(d), this.cache.pixels[a + "_" + i] = c, c;
|
|
1835
|
+
}, this.kb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.cb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Ha(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.Xa = function () {
|
|
1833
1836
|
if (n.nav.scroll) {
|
|
1834
1837
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1835
|
-
n.
|
|
1838
|
+
n.Ya.scrollHour = t;
|
|
1836
1839
|
}
|
|
1837
|
-
}, this.
|
|
1838
|
-
for (var e = this.
|
|
1840
|
+
}, this.db = function () { var e = 0; "number" == typeof n.Ya.scrollHour ? e = 2 * n.cellHeight * n.Ya.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return n.nav.scroll.scrollTop; }, this.setScrollY = function (e) { n.nav.scroll.scrollTop = e, n.Xa(); }, this.lb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = 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.Za(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.mb = function () { this.cb(), this.da(), this.Ga(), this.ga(), this.ha(), this.Za(), this.Wa(), this.$a(), t.register(this), this.nb(), this.S("Init"); }, this.Ya = {}, this.ob = function () { this.Ya.themes = [], this.Ya.themes.push(this.theme || this.cssClassPrefix); }, this.pb = function () {
|
|
1841
|
+
for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
|
|
1839
1842
|
var i = e[t];
|
|
1840
1843
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1841
1844
|
}
|
|
1842
|
-
this.
|
|
1843
|
-
}, this.
|
|
1845
|
+
this.Ya.themes = [];
|
|
1846
|
+
}, this.qb = function () {
|
|
1844
1847
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1845
1848
|
var e = {};
|
|
1846
1849
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1847
1850
|
}
|
|
1848
|
-
}, this.
|
|
1849
|
-
if ("function" == typeof this.onInit && !this.
|
|
1850
|
-
this.
|
|
1851
|
+
}, this.rb = function () {
|
|
1852
|
+
if ("function" == typeof this.onInit && !this.sb) {
|
|
1853
|
+
this.sb = !0;
|
|
1851
1854
|
var e = {};
|
|
1852
1855
|
this.onInit(e);
|
|
1853
1856
|
}
|
|
1854
|
-
}, this.
|
|
1857
|
+
}, this.tb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.nb = function () { var e = n.tb; e() || (n.V = setInterval(function () { e() && (n.Wa(), n.Za(), clearInterval(n.V)); }, 100)); }, this.Ka = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.bb, this.internal.xssTextHtml = n.Ka, this.init = function () { this.gb(); var e = this.lb(); return this.ob(), e ? void this.mb() : (this.cb(), this.da(), this.ea(), this.Ga(), this.ga(), this.ha(), this.t(), this.Za(), this.Wa(), this.$a(), t.register(this), this.events && (this.fa(), this.ka()), this.qb(), this.rb(), this.nb(), this.Ba = !0, this); }, this.Init = this.init, this.bb(i);
|
|
1855
1858
|
}, 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) {
|
|
1856
1859
|
e.fn.daypilotCalendar = function (e) {
|
|
1857
1860
|
var t = null, i = this.each(function () {
|
|
@@ -1870,7 +1873,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1870
1873
|
e && e.directive("daypilotCalendar", ["$parse", function (e) {
|
|
1871
1874
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
1872
1875
|
var n = new DayPilot.Calendar(i[0]);
|
|
1873
|
-
n.
|
|
1876
|
+
n.sa.scope = t, n.init();
|
|
1874
1877
|
var o = a["id"];
|
|
1875
1878
|
o && (t[o] = n);
|
|
1876
1879
|
var r = a["publishAs"];
|
|
@@ -1883,7 +1886,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1883
1886
|
l.call(t, d, function (e) {
|
|
1884
1887
|
for (var t in e)
|
|
1885
1888
|
n[t] = e[t];
|
|
1886
|
-
n.update(), n.
|
|
1889
|
+
n.update(), n.rb();
|
|
1887
1890
|
}, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
|
|
1888
1891
|
} };
|
|
1889
1892
|
}]);
|
|
@@ -1893,14 +1896,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1893
1896
|
var DayPilot = {};
|
|
1894
1897
|
if (function () {
|
|
1895
1898
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1896
|
-
this.v = "2024.
|
|
1899
|
+
this.v = "2024.4.566-lite";
|
|
1897
1900
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1898
1901
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1899
|
-
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.
|
|
1902
|
+
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1900
1903
|
for (var t in e)
|
|
1901
1904
|
this[t] = e[t];
|
|
1902
|
-
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1903
|
-
var e = this.
|
|
1905
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.ub(); this.resetTarget && !e ? this.vb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.ub(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !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.vb(this.date); }, this.ub = function () {
|
|
1906
|
+
var e = this.C();
|
|
1904
1907
|
if (!e)
|
|
1905
1908
|
return this.date;
|
|
1906
1909
|
var t = null;
|
|
@@ -1912,26 +1915,26 @@ if (function () {
|
|
|
1912
1915
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1913
1916
|
}
|
|
1914
1917
|
return a;
|
|
1915
|
-
}, this.
|
|
1916
|
-
var t = this.
|
|
1918
|
+
}, this.vb = function (e) {
|
|
1919
|
+
var t = this.C();
|
|
1917
1920
|
if (t) {
|
|
1918
1921
|
var a = e.toString(i.pattern, i.locale);
|
|
1919
1922
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1920
1923
|
}
|
|
1921
|
-
}, this.
|
|
1922
|
-
if (!this.
|
|
1923
|
-
var e = this.
|
|
1924
|
-
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.
|
|
1924
|
+
}, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.tb; } }), this.show = function () {
|
|
1925
|
+
if (!this.tb) {
|
|
1926
|
+
var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1927
|
+
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.wb), 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.vb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1925
1928
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1926
1929
|
s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
|
|
1927
1930
|
var l = document.createElement("div");
|
|
1928
1931
|
l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
|
|
1929
|
-
var d = i.
|
|
1930
|
-
if (a.startDate = d, a.
|
|
1932
|
+
var d = i.ub() || (new DayPilot.Date).getDatePart();
|
|
1933
|
+
if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1931
1934
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1932
1935
|
s.style.left = c + "px";
|
|
1933
1936
|
}
|
|
1934
|
-
this.
|
|
1937
|
+
this.tb = !0, this.onShow && this.onShow();
|
|
1935
1938
|
}
|
|
1936
1939
|
}, this.prepare(), this.init();
|
|
1937
1940
|
});
|
|
@@ -1943,10 +1946,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1943
1946
|
var e = function () { }, t = {};
|
|
1944
1947
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1945
1948
|
var a = this, n = null;
|
|
1946
|
-
this.v = "2024.
|
|
1949
|
+
this.v = "2024.4.566-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.xb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
1947
1950
|
o = o || {};
|
|
1948
1951
|
var r = null;
|
|
1949
|
-
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.
|
|
1952
|
+
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.xb.submenu = null, null !== t.mouse) {
|
|
1950
1953
|
a.cssOnly || (a.cssOnly = !0);
|
|
1951
1954
|
var s = null;
|
|
1952
1955
|
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) {
|
|
@@ -1955,15 +1958,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1955
1958
|
return;
|
|
1956
1959
|
}
|
|
1957
1960
|
var d = document.createElement("div");
|
|
1958
|
-
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.
|
|
1961
|
+
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.yb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1959
1962
|
throw "No menu items defined.";
|
|
1960
1963
|
if (this.showMenuTitle) {
|
|
1961
1964
|
var c = document.createElement("div");
|
|
1962
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1965
|
+
c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
|
|
1963
1966
|
}
|
|
1964
1967
|
for (var u = 0; u < this.items.length; u++) {
|
|
1965
1968
|
var h = this.items[u], f = document.createElement("div");
|
|
1966
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1969
|
+
if (DayPilot.Util.addClass(f, this.yb("item")), h.items && (DayPilot.Util.addClass(f, this.yb("item_haschildren")), DayPilot.Util.addClass(d, this.yb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1967
1970
|
if ("-" === h.text) {
|
|
1968
1971
|
var m = document.createElement("div");
|
|
1969
1972
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1971,7 +1974,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1971
1974
|
else {
|
|
1972
1975
|
var p = document.createElement("a");
|
|
1973
1976
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1974
|
-
DayPilot.Util.addClass(p, a.
|
|
1977
|
+
DayPilot.Util.addClass(p, a.yb("item_disabled"));
|
|
1975
1978
|
else {
|
|
1976
1979
|
if (h.onclick || h.onClick) {
|
|
1977
1980
|
p.item = h, p.onclick = function (e, t) {
|
|
@@ -1999,7 +2002,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1999
2002
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
2000
2003
|
}
|
|
2001
2004
|
if (h.items && !h.disabled) {
|
|
2002
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
2005
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
|
|
2003
2006
|
p.ontouchend = y(h, p);
|
|
2004
2007
|
}
|
|
2005
2008
|
if (h.onclick)
|
|
@@ -2035,23 +2038,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2035
2038
|
}
|
|
2036
2039
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
2037
2040
|
var g = document.createElement("span");
|
|
2038
|
-
if (g.className = a.
|
|
2041
|
+
if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
2039
2042
|
var b = document.createElement("img");
|
|
2040
2043
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
2041
2044
|
}
|
|
2042
2045
|
if (h.icon) {
|
|
2043
2046
|
var D = document.createElement("span");
|
|
2044
|
-
D.className = a.
|
|
2045
|
-
var
|
|
2046
|
-
|
|
2047
|
+
D.className = a.yb("item_icon");
|
|
2048
|
+
var x = document.createElement("i");
|
|
2049
|
+
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
2047
2050
|
}
|
|
2048
2051
|
if (h.symbol) {
|
|
2049
|
-
var
|
|
2052
|
+
var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
|
|
2050
2053
|
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
2051
|
-
var P = document.createElementNS(
|
|
2054
|
+
var P = document.createElementNS(w, "use");
|
|
2052
2055
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
2053
2056
|
var k = document.createElement("span");
|
|
2054
|
-
k.className = a.
|
|
2057
|
+
k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
|
|
2055
2058
|
}
|
|
2056
2059
|
var _ = function (e, i) {
|
|
2057
2060
|
return function () {
|
|
@@ -2061,7 +2064,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2061
2064
|
return;
|
|
2062
2065
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
2063
2066
|
}
|
|
2064
|
-
e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
2067
|
+
e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300));
|
|
2065
2068
|
};
|
|
2066
2069
|
};
|
|
2067
2070
|
p.onmouseover = _(h, p), f.appendChild(p);
|
|
@@ -2070,7 +2073,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2070
2073
|
}
|
|
2071
2074
|
}
|
|
2072
2075
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
2073
|
-
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.
|
|
2076
|
+
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.xb.visible = !0, a.xb.source = i, d.style.display = "";
|
|
2074
2077
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
2075
2078
|
d.style.display = "none";
|
|
2076
2079
|
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
@@ -2098,23 +2101,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2098
2101
|
else
|
|
2099
2102
|
d.style.left = e + "px";
|
|
2100
2103
|
}(), o.parentLink) {
|
|
2101
|
-
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")),
|
|
2102
|
-
|
|
2103
|
-
var
|
|
2104
|
-
|
|
2104
|
+
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), U = O.x + N.offsetWidth, z = O.y - I;
|
|
2105
|
+
U + T > H && (U = Math.max(0, O.x - T));
|
|
2106
|
+
var R = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2107
|
+
z + M - R > A && (z = Math.max(0, A - M + R)), d.style.left = U + "px", d.style.top = z + "px";
|
|
2105
2108
|
}
|
|
2106
|
-
d.style.display = "", this.addShadow(d), this.
|
|
2109
|
+
d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
2107
2110
|
}
|
|
2108
|
-
}, this.
|
|
2111
|
+
}, this.zb = function (e, t) {
|
|
2109
2112
|
var i = e, n = t.source;
|
|
2110
|
-
if ((!a.
|
|
2113
|
+
if ((!a.xb.submenu || a.xb.submenu.item !== e) && (a.xb.submenu && a.xb.submenu.item !== e && (DayPilot.Util.removeClass(a.xb.submenu.link.parentNode, a.yb("item_haschildren_active")), a.xb.submenu.menu.hide(), a.xb.submenu = null), e.items)) {
|
|
2111
2114
|
var o = a.cloneOptions();
|
|
2112
|
-
o.items = e.items, a.
|
|
2115
|
+
o.items = e.items, a.xb.submenu = {}, a.xb.submenu.menu = new DayPilot.Menu(o), a.xb.submenu.menu.Ab = a, a.xb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.xb.submenu.item = e, a.xb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.yb("item_haschildren_active"));
|
|
2113
2116
|
}
|
|
2114
|
-
}, this.
|
|
2115
|
-
e = e || {}, this.
|
|
2117
|
+
}, this.yb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
|
|
2118
|
+
e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide();
|
|
2116
2119
|
var i = t.waitingSubmenu;
|
|
2117
|
-
if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.
|
|
2120
|
+
if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.xb.div && this.xb.div.parentNode === document.body && document.body.removeChild(this.xb.div), n && (DayPilot.de(n), n = null), a.xb.visible = !1, a.xb.source = null, a.Ab && e.hideParent && a.Ab.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
2118
2121
|
var o = {};
|
|
2119
2122
|
this.onHide(o);
|
|
2120
2123
|
}
|
|
@@ -2125,31 +2128,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2125
2128
|
this[r] = o[r];
|
|
2126
2129
|
}, DayPilot.MenuBar = function (e, t) {
|
|
2127
2130
|
var i = this;
|
|
2128
|
-
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
2131
|
+
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ba = !1;
|
|
2129
2132
|
for (var a in t)
|
|
2130
2133
|
this[a] = t[a];
|
|
2131
|
-
this.
|
|
2134
|
+
this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () {
|
|
2132
2135
|
this.nav.top = document.getElementById(e);
|
|
2133
2136
|
var t = this.nav.top;
|
|
2134
|
-
t.className = this.
|
|
2137
|
+
t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) {
|
|
2135
2138
|
var a = document.createElement("span");
|
|
2136
|
-
a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.
|
|
2139
|
+
a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Bb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
|
|
2137
2140
|
if (i.active && i.active.item === e)
|
|
2138
|
-
i.
|
|
2141
|
+
i.Cb();
|
|
2139
2142
|
else if (e.children)
|
|
2140
|
-
return void i.
|
|
2143
|
+
return void i.Db(a);
|
|
2141
2144
|
if ("function" == typeof e.onClick) {
|
|
2142
2145
|
var n = {};
|
|
2143
2146
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
2144
2147
|
}
|
|
2145
|
-
}, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
2148
|
+
}, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Db(a); }, t.appendChild(a), i.elements.items.push(a);
|
|
2146
2149
|
});
|
|
2147
|
-
}, this.
|
|
2148
|
-
if (!i.
|
|
2149
|
-
i.
|
|
2150
|
+
}, this.Cb = function () { var e = i.Bb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Eb = function (e) { return !!i.active && i.active.item === e.data; }, this.Db = function (e) {
|
|
2151
|
+
if (!i.Eb(e)) {
|
|
2152
|
+
i.Cb();
|
|
2150
2153
|
var t = e.data, a = i.active = {};
|
|
2151
2154
|
a.item = t, a.div = e;
|
|
2152
|
-
var n = i.
|
|
2155
|
+
var n = i.Bb("item_active");
|
|
2153
2156
|
DayPilot.Util.addClass(e, n);
|
|
2154
2157
|
var o = DayPilot.abs(e);
|
|
2155
2158
|
if (t.children) {
|
|
@@ -2159,8 +2162,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2159
2162
|
}
|
|
2160
2163
|
DayPilot.MenuBar.active = i;
|
|
2161
2164
|
}
|
|
2162
|
-
}, this.init = function () { return this.
|
|
2163
|
-
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.
|
|
2165
|
+
}, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); };
|
|
2166
|
+
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Cb(), 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.wheel = 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) {
|
|
2164
2167
|
if (!e || !e.touches)
|
|
2165
2168
|
return null;
|
|
2166
2169
|
var t = e.touches[0], i = {};
|
|
@@ -2169,13 +2172,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2169
2172
|
if (e = e || {}, e.calendar) {
|
|
2170
2173
|
var i = DayPilot.Menu.active;
|
|
2171
2174
|
if (i) {
|
|
2172
|
-
var a = i.
|
|
2175
|
+
var a = i.xb.source;
|
|
2173
2176
|
a && a.calendar === e.calendar && t.menuClean();
|
|
2174
2177
|
}
|
|
2175
2178
|
}
|
|
2176
2179
|
else
|
|
2177
2180
|
t.menuClean();
|
|
2178
|
-
}, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
2181
|
+
}, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "wheel", t.wheel), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
2179
2182
|
}
|
|
2180
2183
|
}(DayPilot), "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
2181
2184
|
"use strict";
|
|
@@ -2247,32 +2250,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2247
2250
|
"undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
|
|
2248
2251
|
this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
|
|
2249
2252
|
var t = this;
|
|
2250
|
-
this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.
|
|
2253
|
+
this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) {
|
|
2251
2254
|
if (DayPilot.ModalStatic.displayed(this))
|
|
2252
2255
|
throw "This modal dialog is already displayed.";
|
|
2253
|
-
if (this.div || this.
|
|
2256
|
+
if (this.div || this.Ib(), this._a(), this.useIframe) {
|
|
2254
2257
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
2255
2258
|
window.setTimeout(t(this, e), 0);
|
|
2256
2259
|
}
|
|
2257
2260
|
else
|
|
2258
2261
|
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
|
|
2259
|
-
this
|
|
2262
|
+
this._a(), this.Jb(), this.Kb();
|
|
2260
2263
|
}, this.showUrl = function (e) {
|
|
2261
2264
|
if (DayPilot.ModalStatic.displayed(this))
|
|
2262
2265
|
throw "This modal dialog is already displayed.";
|
|
2263
2266
|
if (this.useIframe) {
|
|
2264
|
-
this.div || this.
|
|
2267
|
+
this.div || this.Ib();
|
|
2265
2268
|
var i = this.loadingHtml;
|
|
2266
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.
|
|
2269
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Lb), this.iframe.src = e, this._a(), this.Jb(), this.Kb();
|
|
2267
2270
|
}
|
|
2268
2271
|
else
|
|
2269
|
-
t.
|
|
2270
|
-
}, this.
|
|
2272
|
+
t.Mb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
|
|
2273
|
+
}, this.Kb = function () {
|
|
2271
2274
|
if ("function" == typeof t.onShow) {
|
|
2272
2275
|
var e = {};
|
|
2273
|
-
e.root = t.
|
|
2276
|
+
e.root = t.Nb(), e.modal = t, t.onShow(e);
|
|
2274
2277
|
}
|
|
2275
|
-
}, this.
|
|
2278
|
+
}, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) {
|
|
2276
2279
|
var t = new XMLHttpRequest;
|
|
2277
2280
|
if (t) {
|
|
2278
2281
|
var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
|
|
@@ -2290,30 +2293,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2290
2293
|
window.console && console.log("HTTP error " + t.status);
|
|
2291
2294
|
}, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
2292
2295
|
}
|
|
2293
|
-
}, this
|
|
2294
|
-
var e = function () { return t.
|
|
2296
|
+
}, this._a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Pb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Lb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
|
|
2297
|
+
var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; };
|
|
2295
2298
|
if (this.useIframe) {
|
|
2296
|
-
for (var a = i() - 40, n = this.width; n < a && this.
|
|
2299
|
+
for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
|
|
2297
2300
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
2298
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
2301
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
|
|
2299
2302
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
2300
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
2303
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
|
|
2301
2304
|
}
|
|
2302
2305
|
else
|
|
2303
2306
|
this.div.style.height = "";
|
|
2304
|
-
}, this.
|
|
2307
|
+
}, this.Qb = function () {
|
|
2305
2308
|
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
|
|
2306
2309
|
var o = a[n].offsetLeft + a[n].offsetWidth;
|
|
2307
2310
|
i = Math.max(i, o);
|
|
2308
2311
|
}
|
|
2309
2312
|
return i > t.clientWidth;
|
|
2310
|
-
}, this.
|
|
2313
|
+
}, this.Rb = function () {
|
|
2311
2314
|
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
|
|
2312
2315
|
var o = a[n].offsetTop + a[n].offsetHeight;
|
|
2313
2316
|
i = Math.max(i, o);
|
|
2314
2317
|
}
|
|
2315
2318
|
return i > t.clientHeight;
|
|
2316
|
-
}, this.
|
|
2319
|
+
}, this.Ob = function () {
|
|
2317
2320
|
var e = document;
|
|
2318
2321
|
if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
2319
2322
|
var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
|
|
@@ -2321,32 +2324,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2321
2324
|
}
|
|
2322
2325
|
var t = e.body.clientWidth, i = e.body.clientHeight;
|
|
2323
2326
|
return { x: t, y: i };
|
|
2324
|
-
}, this.
|
|
2325
|
-
if (t.
|
|
2326
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
2327
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
2327
|
+
}, this.Jb = function () { this.Fb || (this.re(window, "resize", this.Sb), this.re(window, "scroll", this.Tb), this.dragDrop && (this.re(document, "mousemove", this.Ub), this.re(document, "mouseup", this.Vb)), this.Fb = !0); }, this.Wb = function () { this.ue(window, "resize", this.Sb), this.ue(window, "scroll", this.Tb), this.dragDrop && (this.ue(document, "mousemove", this.Ub), this.ue(document, "mouseup", this.Vb)), this.Fb = !1; }, this.Xb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Yb(), t.Hb = t.mc(e || window.event), t.Gb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Ub = function (e) {
|
|
2328
|
+
if (t.Hb) {
|
|
2329
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
|
|
2330
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
|
|
2328
2331
|
}
|
|
2329
|
-
}, this.
|
|
2332
|
+
}, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () {
|
|
2330
2333
|
if (this.useIframe) {
|
|
2331
2334
|
var e = document.createElement("div");
|
|
2332
2335
|
e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
|
|
2333
2336
|
}
|
|
2334
|
-
}, this.
|
|
2337
|
+
}, this.Zb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Sb = function () { t.$b(), t.Pb(); }, this.Tb = function () { t.$b(); }, this.Pb = function () {
|
|
2335
2338
|
if (!t.left && t.div) {
|
|
2336
2339
|
var e = t.div.offsetWidth;
|
|
2337
2340
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
2338
2341
|
}
|
|
2339
|
-
}, this
|
|
2342
|
+
}, this.$b = function () {
|
|
2340
2343
|
if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
2341
|
-
var e = t
|
|
2344
|
+
var e = t._b.scrollY();
|
|
2342
2345
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
2343
2346
|
}
|
|
2344
|
-
}, this
|
|
2347
|
+
}, this._b = {}, this._b.container = function () { return t.container || document.body; }, this._b.scrollY = function () { var e = t._b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
|
|
2345
2348
|
for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
2346
2349
|
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
|
|
2347
2350
|
return t;
|
|
2348
|
-
}, this.
|
|
2349
|
-
for (var e = t.
|
|
2351
|
+
}, this.Ib = function () { var e = t._b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Xb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.bc || (t.stretch(), t.bc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
|
|
2352
|
+
for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
2350
2353
|
var o = i[n], r = o.name;
|
|
2351
2354
|
if (r) {
|
|
2352
2355
|
var s = o.value;
|
|
@@ -2354,11 +2357,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2354
2357
|
}
|
|
2355
2358
|
}
|
|
2356
2359
|
t.close(a);
|
|
2357
|
-
}, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
2360
|
+
}, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Wb(), t.cc(t.div), t.cc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.cc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.dc = function () {
|
|
2358
2361
|
if (e)
|
|
2359
2362
|
for (var t in e)
|
|
2360
2363
|
this[t] = e[t];
|
|
2361
|
-
}, this.
|
|
2364
|
+
}, this.dc();
|
|
2362
2365
|
}, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) {
|
|
2363
2366
|
"object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
|
|
2364
2367
|
var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
|
|
@@ -2459,8 +2462,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2459
2462
|
g && g.focus();
|
|
2460
2463
|
}
|
|
2461
2464
|
else {
|
|
2462
|
-
var
|
|
2463
|
-
o.autoFocus &&
|
|
2465
|
+
var x = h.firstFocusable();
|
|
2466
|
+
o.autoFocus && x ? x.focus() : o.div.focus();
|
|
2464
2467
|
}
|
|
2465
2468
|
});
|
|
2466
2469
|
}, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
|
|
@@ -2470,11 +2473,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2470
2473
|
t.stretch();
|
|
2471
2474
|
}, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
2472
2475
|
var r = function (e) {
|
|
2473
|
-
this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.
|
|
2476
|
+
this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.ec = [], this.fc = null, this.canceling = !1, this.gc = [], this.f = [], this.hc = null, e = e || {};
|
|
2474
2477
|
for (var t in e)
|
|
2475
2478
|
this[t] = e[t];
|
|
2476
2479
|
};
|
|
2477
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
2480
|
+
r.prototype.create = function () { return this.load(), this.render(), this.hc; }, r.prototype.render = function () { var e = this; this.hc = document.createElement("div"), this.ec.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
|
|
2478
2481
|
var t = this.theme, i = this, a = document.createElement("div");
|
|
2479
2482
|
if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
|
|
2480
2483
|
var n = document.createElement("div");
|
|
@@ -2482,13 +2485,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2482
2485
|
}
|
|
2483
2486
|
var o = this.createInteractive(e);
|
|
2484
2487
|
o.onInput = function (e) {
|
|
2485
|
-
if (e = e || {}, i.
|
|
2488
|
+
if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
|
|
2486
2489
|
var t = {};
|
|
2487
2490
|
t.result = i.serialize(), i.onChange(t);
|
|
2488
2491
|
}
|
|
2489
|
-
}, o.onBlur = function () { i.canceling || i.
|
|
2490
|
-
}, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.
|
|
2491
|
-
function i() { e.
|
|
2492
|
+
}, o.onBlur = function () { i.canceling || i.ic(o); }, o.apply(e), o.hc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.hc.appendChild(a);
|
|
2493
|
+
}, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.ic(i); t = t && a; }), t; }, r.prototype.ic = function (e, t) {
|
|
2494
|
+
function i() { e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.jc = t, e.hc.appendChild(t); }
|
|
2492
2495
|
t = t || {};
|
|
2493
2496
|
var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
|
|
2494
2497
|
if (d) {
|
|
@@ -2496,11 +2499,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2496
2499
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
2497
2500
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
2498
2501
|
if (c.valid)
|
|
2499
|
-
clearTimeout(this.
|
|
2502
|
+
clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
|
|
2500
2503
|
else if (!n)
|
|
2501
2504
|
if (a) {
|
|
2502
2505
|
var f = 1e3;
|
|
2503
|
-
clearTimeout(this.
|
|
2506
|
+
clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
|
|
2504
2507
|
}
|
|
2505
2508
|
else
|
|
2506
2509
|
i();
|
|
@@ -2520,34 +2523,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2520
2523
|
}
|
|
2521
2524
|
for (var n in i)
|
|
2522
2525
|
this.setValue(n, i[n]);
|
|
2523
|
-
}, r.prototype.setValue = function (e, t) { this.
|
|
2526
|
+
}, r.prototype.setValue = function (e, t) { this.ec.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.fc ? this.fc : this.ec).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
|
|
2524
2527
|
var i = this, a = this.getFieldType(e), n = [];
|
|
2525
2528
|
if ("radio" === a) {
|
|
2526
2529
|
if (e.name) {
|
|
2527
2530
|
var o = new s;
|
|
2528
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.
|
|
2531
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
|
|
2529
2532
|
}
|
|
2530
|
-
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.
|
|
2533
|
+
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.ec.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
2531
2534
|
}
|
|
2532
2535
|
else if ("title" === a) {
|
|
2533
2536
|
var o = new s;
|
|
2534
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.
|
|
2537
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
|
|
2535
2538
|
}
|
|
2536
2539
|
else if ("image" === a) {
|
|
2537
2540
|
var o = new s;
|
|
2538
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
2541
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
2539
2542
|
}
|
|
2540
2543
|
else if ("html" === a) {
|
|
2541
2544
|
var o = new s;
|
|
2542
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
2545
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
2543
2546
|
}
|
|
2544
2547
|
else if ("scrollable" === a) {
|
|
2545
2548
|
var o = new s;
|
|
2546
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
2549
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
2547
2550
|
}
|
|
2548
2551
|
else {
|
|
2549
2552
|
var o = new s;
|
|
2550
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.
|
|
2553
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.ec.push(o), n.push(o);
|
|
2551
2554
|
}
|
|
2552
2555
|
return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n;
|
|
2553
2556
|
}, r.prototype.doOnKey = function (e) {
|
|
@@ -2612,21 +2615,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2612
2615
|
}
|
|
2613
2616
|
i || (e.preventDefault(), e.stopPropagation());
|
|
2614
2617
|
}, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i;
|
|
2615
|
-
}, "time": function () { return t.
|
|
2618
|
+
}, "time": function () { return t.kc(e); }, "datetime": function () { return t.lc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.nc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.nc && (t = a.nc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
|
|
2616
2619
|
var i = new l;
|
|
2617
2620
|
i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
|
|
2618
2621
|
var a = document.createElement("label"), n = document.createElement("input");
|
|
2619
|
-
n.type = "radio", n.name = e.field, n.
|
|
2622
|
+
n.type = "radio", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
|
|
2620
2623
|
var o = document.createTextNode(e.text);
|
|
2621
2624
|
return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
|
|
2622
2625
|
if (!n.checked)
|
|
2623
2626
|
return {};
|
|
2624
|
-
var t = n.
|
|
2627
|
+
var t = n.nc, i = {};
|
|
2625
2628
|
return i[e.field] = t, i;
|
|
2626
2629
|
}, i;
|
|
2627
|
-
}, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.
|
|
2630
|
+
}, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
|
|
2628
2631
|
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
|
|
2629
|
-
}, r.prototype.
|
|
2632
|
+
}, r.prototype.kc = function (e) {
|
|
2630
2633
|
var t = this, i = new l;
|
|
2631
2634
|
i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
|
|
2632
2635
|
var a = [], n = e.data.timeInterval || 15;
|
|
@@ -2637,7 +2640,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2637
2640
|
}
|
|
2638
2641
|
var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create();
|
|
2639
2642
|
return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i;
|
|
2640
|
-
}, r.prototype.
|
|
2643
|
+
}, r.prototype.lc = function (e) {
|
|
2641
2644
|
var t = this, i = new l;
|
|
2642
2645
|
i.apply = function (e) {
|
|
2643
2646
|
i.row = e;
|
|
@@ -2687,9 +2690,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2687
2690
|
return i.searchable = f, f.create();
|
|
2688
2691
|
}(), o = document.createElement("div");
|
|
2689
2692
|
return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i;
|
|
2690
|
-
}, r.prototype.findRowsByField = function (e) { return this.
|
|
2691
|
-
var i = this.
|
|
2692
|
-
return this.
|
|
2693
|
+
}, r.prototype.findRowsByField = function (e) { return this.ec.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
|
|
2694
|
+
var i = this.fc ? this.fc : this.ec, a = i.indexOf(e);
|
|
2695
|
+
return this.fc = i.map(function (i) {
|
|
2693
2696
|
if (i !== e)
|
|
2694
2697
|
return i;
|
|
2695
2698
|
if (e.propsEqual(t))
|
|
@@ -2698,11 +2701,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2698
2701
|
for (var n in t)
|
|
2699
2702
|
a[n] = t[n];
|
|
2700
2703
|
return a;
|
|
2701
|
-
}), this.
|
|
2702
|
-
}, r.prototype.updateInteractive = function (e) { var t = this.
|
|
2704
|
+
}), this.fc[a];
|
|
2705
|
+
}, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
|
|
2703
2706
|
var e = this;
|
|
2704
|
-
if (this.updateDependentState(), this.
|
|
2705
|
-
this.
|
|
2707
|
+
if (this.updateDependentState(), this.fc) {
|
|
2708
|
+
this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
|
|
2706
2709
|
}
|
|
2707
2710
|
}, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () {
|
|
2708
2711
|
var e = {};
|
|
@@ -2725,18 +2728,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2725
2728
|
return !0;
|
|
2726
2729
|
}, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
|
|
2727
2730
|
var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) {
|
|
2728
|
-
this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
2729
|
-
var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.
|
|
2730
|
-
Object.defineProperty(this, "selected", { get: function () { return this.
|
|
2731
|
+
this.data = [], this.name = null, this.theme = "searchable_default", this.oc = !1, this.listZIndex = 1e5, this.onSelect = null, this.pc = null, this.qc = null, this.rc = !1, this.sc = null, this.tc = null, this.p = [], this.uc = null, e = e || {};
|
|
2732
|
+
var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.pc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
|
|
2733
|
+
Object.defineProperty(this, "selected", { get: function () { return this.pc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.oc; }, set: function (e) { this.oc = e, this.sc && (this.sc.disabled = e, e && this.vc()); } });
|
|
2731
2734
|
for (var a in e)
|
|
2732
2735
|
i[a] || (this[a] = e[a]);
|
|
2733
2736
|
for (var a in e)
|
|
2734
2737
|
i[a] && i[a].post(e[a]);
|
|
2735
2738
|
};
|
|
2736
|
-
d.prototype.select = function (e) { return this.
|
|
2739
|
+
d.prototype.select = function (e) { return this.pc = this.data.find(function (t) { return t.id === e; }), this.wc(!1), this; }, d.prototype.create = function () {
|
|
2737
2740
|
function e(e) {
|
|
2738
2741
|
var i = l.strategy;
|
|
2739
|
-
"includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.
|
|
2742
|
+
"includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.qc = null, l.p = [];
|
|
2740
2743
|
var n = null;
|
|
2741
2744
|
l.data.forEach(function (i) {
|
|
2742
2745
|
var o = i.name || i.id;
|
|
@@ -2747,27 +2750,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2747
2750
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
|
|
2748
2751
|
return;
|
|
2749
2752
|
var r = document.createElement("div");
|
|
2750
|
-
r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.
|
|
2751
|
-
}), l.
|
|
2753
|
+
r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.pc && (l.qc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.qc !== r && (l.qc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
|
|
2754
|
+
}), l.qc || (l.qc = n), t();
|
|
2752
2755
|
}
|
|
2753
|
-
function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.
|
|
2756
|
+
function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.qc && (l.qc.className += " " + l.theme + "_list_item_highlight", t && !i(l.qc, h) && l.qc.scrollIntoView()); }
|
|
2754
2757
|
function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
|
|
2755
|
-
function a(e) { var t = e.item; l.
|
|
2756
|
-
function n() { l.
|
|
2757
|
-
function o() { l.
|
|
2758
|
-
function r() { l.
|
|
2759
|
-
function s() { l.
|
|
2758
|
+
function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); }
|
|
2759
|
+
function n() { l.vc(); }
|
|
2760
|
+
function o() { l.q(); }
|
|
2761
|
+
function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
|
|
2762
|
+
function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
|
|
2760
2763
|
var l = this, d = this, c = document.createElement("div");
|
|
2761
2764
|
c.className = this.theme + "_main", c.style.position = "relative";
|
|
2762
2765
|
var u = document.createElement("div");
|
|
2763
|
-
u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.
|
|
2766
|
+
u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.rc ? (l.focus(), s()) : (n(), r()); });
|
|
2764
2767
|
var h = document.createElement("div");
|
|
2765
2768
|
h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
|
|
2766
2769
|
var f = document.createElement("input");
|
|
2767
|
-
f.type = "hidden", f.name = this.name, f.searchable = d, this.
|
|
2770
|
+
f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f;
|
|
2768
2771
|
var m = document.createElement("input");
|
|
2769
|
-
return m.type = "text", m.className = this.theme + "_input", m.disabled = this.
|
|
2770
|
-
if (l.
|
|
2772
|
+
return m.type = "text", m.className = this.theme + "_input", m.disabled = this.oc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
|
|
2773
|
+
if (l.rc) {
|
|
2771
2774
|
if ("Enter" === e.key)
|
|
2772
2775
|
return;
|
|
2773
2776
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
@@ -2775,24 +2778,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2775
2778
|
s();
|
|
2776
2779
|
}
|
|
2777
2780
|
if ("ArrowDown" === e.key) {
|
|
2778
|
-
var i = d.
|
|
2779
|
-
i + 1 < d.
|
|
2781
|
+
var i = d.p.indexOf(d.qc);
|
|
2782
|
+
i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
|
|
2780
2783
|
}
|
|
2781
2784
|
else if ("ArrowUp" === e.key) {
|
|
2782
|
-
var i = d.
|
|
2783
|
-
i - 1 >= 0 && (d.
|
|
2785
|
+
var i = d.p.indexOf(d.qc);
|
|
2786
|
+
i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
|
|
2784
2787
|
}
|
|
2785
2788
|
else
|
|
2786
|
-
"Enter" === e.key ? l.
|
|
2787
|
-
}), this.
|
|
2788
|
-
}, d.prototype.
|
|
2789
|
-
if (this.
|
|
2789
|
+
"Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
|
|
2790
|
+
}), this.sc = m, this.tc = h, this.pc || (this.pc = this.data[0], this.pc && (m.value = this.pc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
|
|
2791
|
+
}, d.prototype.vc = function () { this.q(), this.pc ? this.sc.value = this.pc.name : (this.sc.value = "", this.wc(!0)); }, d.prototype.focus = function () { this.rc = !0, this.sc.setAttribute("readonly", "readonly"), this.sc.focus(), this.vc(); }, d.prototype.q = function () { this.tc.style.display = "none"; }, d.prototype.wc = function (e) {
|
|
2792
|
+
if (this.uc.value = this.selected ? this.selected.id : null, this.pc ? this.sc.value = this.pc.name : this.sc.value = "", "function" == typeof this.onSelect) {
|
|
2790
2793
|
var t = { control: this, ui: e };
|
|
2791
2794
|
this.onSelect(t);
|
|
2792
2795
|
}
|
|
2793
2796
|
};
|
|
2794
2797
|
var c = function (e) {
|
|
2795
|
-
this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
2798
|
+
this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.xc = null, this.ec = [], e = e || {};
|
|
2796
2799
|
for (var t in e)
|
|
2797
2800
|
this[t] = e[t];
|
|
2798
2801
|
};
|
|
@@ -2803,11 +2806,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2803
2806
|
i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
|
|
2804
2807
|
var a = document.createElement("div");
|
|
2805
2808
|
a.className = this.theme + "_table";
|
|
2806
|
-
var n = this.
|
|
2809
|
+
var n = this.yc();
|
|
2807
2810
|
a.appendChild(n);
|
|
2808
|
-
var o = e.
|
|
2811
|
+
var o = e.zc({});
|
|
2809
2812
|
o.spacer = !0;
|
|
2810
|
-
var r = this.
|
|
2813
|
+
var r = this.Ac(o);
|
|
2811
2814
|
r.classList.add(e.theme + "_spacer"), a.appendChild(r);
|
|
2812
2815
|
var s = document.createElement("div");
|
|
2813
2816
|
s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
|
|
@@ -2821,18 +2824,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2821
2824
|
var n = {};
|
|
2822
2825
|
n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
|
|
2823
2826
|
}
|
|
2824
|
-
var o = e.
|
|
2825
|
-
e.
|
|
2827
|
+
var o = e.zc(a);
|
|
2828
|
+
e.ec.push(o), e.Bc(), e.Cc();
|
|
2826
2829
|
}
|
|
2827
2830
|
}), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
|
|
2828
|
-
}, c.prototype.
|
|
2831
|
+
}, c.prototype.yc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Dc = function () { var e = this.item.max || 0; return !!(e && this.ec.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.ec.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
|
|
2829
2832
|
if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
2830
2833
|
throw new Error("Array expected");
|
|
2831
|
-
this.data = e, this.
|
|
2832
|
-
}, c.prototype.
|
|
2834
|
+
this.data = e, this.Ec(), this.Bc();
|
|
2835
|
+
}, c.prototype.Fc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Dc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Ec = function () { var e = this; this.ec = [], this.data.forEach(function (t) { var i = e.zc(t); e.ec.push(i); }); }, c.prototype.Gc = function (e) { var t = this, i = t.ec.indexOf(e); t.ec.splice(i, 1); }, c.prototype.zc = function (e) {
|
|
2833
2836
|
var t = this, i = {};
|
|
2834
2837
|
return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
|
|
2835
|
-
var n = a.id, o = e[n], r = t.
|
|
2838
|
+
var n = a.id, o = e[n], r = t.Hc(a);
|
|
2836
2839
|
if ("undefined" == typeof o)
|
|
2837
2840
|
if ("text" === r)
|
|
2838
2841
|
o = "";
|
|
@@ -2845,19 +2848,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2845
2848
|
var l = {};
|
|
2846
2849
|
l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
|
|
2847
2850
|
}), i;
|
|
2848
|
-
}, c.prototype.
|
|
2851
|
+
}, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () {
|
|
2849
2852
|
var e = this;
|
|
2850
|
-
if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.
|
|
2851
|
-
var t = e.
|
|
2853
|
+
if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.ec.forEach(function (t) { var i = e.Ac(t); e.nav.body.appendChild(i); }), 0 === this.ec.length) {
|
|
2854
|
+
var t = e.Ic();
|
|
2852
2855
|
e.nav.after.appendChild(t);
|
|
2853
2856
|
}
|
|
2854
|
-
this.
|
|
2855
|
-
}, c.prototype.
|
|
2857
|
+
this.Fc();
|
|
2858
|
+
}, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) {
|
|
2856
2859
|
var t = this, i = document.createElement("div");
|
|
2857
2860
|
i.className = t.theme + "_row", e.cells.forEach(function (a) {
|
|
2858
2861
|
var n = document.createElement("div");
|
|
2859
2862
|
n.className = t.theme + "_cell";
|
|
2860
|
-
var o = t.
|
|
2863
|
+
var o = t.Jc(a);
|
|
2861
2864
|
if (e.spacer) {
|
|
2862
2865
|
var r = document.createElement("div");
|
|
2863
2866
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
|
|
@@ -2869,22 +2872,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2869
2872
|
var a = document.createElement("div");
|
|
2870
2873
|
a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
|
|
2871
2874
|
var n = document.createElement("span");
|
|
2872
|
-
return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.
|
|
2873
|
-
}, c.prototype.
|
|
2875
|
+
return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Gc(e), t.Bc(), t.Cc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
|
|
2876
|
+
}, c.prototype.Cc = function () {
|
|
2874
2877
|
var e = this;
|
|
2875
2878
|
if ("function" == typeof e.onInput) {
|
|
2876
2879
|
var t = {};
|
|
2877
2880
|
e.onInput(t);
|
|
2878
2881
|
}
|
|
2879
|
-
}, c.prototype.
|
|
2882
|
+
}, c.prototype.Jc = function (e) {
|
|
2880
2883
|
var t = this, i = e.type;
|
|
2881
2884
|
if ("text" === i || "number" === i) {
|
|
2882
2885
|
var a = document.createElement("input");
|
|
2883
|
-
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.
|
|
2886
|
+
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Cc(); }), a;
|
|
2884
2887
|
}
|
|
2885
2888
|
if ("select" === i) {
|
|
2886
2889
|
var n = document.createElement("select");
|
|
2887
|
-
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.
|
|
2890
|
+
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.nc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.nc && (e.value = a.nc), t.Cc(); }), n;
|
|
2888
2891
|
}
|
|
2889
2892
|
throw new Error("Unsupported item type: " + i);
|
|
2890
2893
|
}, c.prototype.focus = function () { };
|
|
@@ -2895,9 +2898,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2895
2898
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2896
2899
|
var e = {};
|
|
2897
2900
|
e.Month = function (t, i) {
|
|
2898
|
-
this.v = "2024.
|
|
2901
|
+
this.v = "2024.4.566-lite", this.nav = {};
|
|
2899
2902
|
var a = this;
|
|
2900
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, 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 = "Auto", 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.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.
|
|
2903
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, 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 = "Auto", 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.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = 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.W(), a.Kc(), a.ea(), "Full" === e.UpdateType && (a.Lc(), a.Mc()), a.ja(), a.show(), a.ka(), 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) {
|
|
2901
2904
|
var t = null;
|
|
2902
2905
|
if (e instanceof DayPilot.Event)
|
|
2903
2906
|
t = e.data;
|
|
@@ -2906,7 +2909,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2906
2909
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
2907
2910
|
t = e;
|
|
2908
2911
|
}
|
|
2909
|
-
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
2912
|
+
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify();
|
|
2910
2913
|
}, this.events.find = function (e) {
|
|
2911
2914
|
if (!a.events.list)
|
|
2912
2915
|
return null;
|
|
@@ -2934,7 +2937,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2934
2937
|
a.events.list.splice(i, 1, e);
|
|
2935
2938
|
}
|
|
2936
2939
|
}
|
|
2937
|
-
a.update(), a.
|
|
2940
|
+
a.update(), a.sa.notify();
|
|
2938
2941
|
}, this.events.remove = function (e) {
|
|
2939
2942
|
var t;
|
|
2940
2943
|
if (e instanceof DayPilot.Event)
|
|
@@ -2948,7 +2951,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2948
2951
|
i && (t = i.data);
|
|
2949
2952
|
}
|
|
2950
2953
|
var n = DayPilot.indexOf(a.events.list, t);
|
|
2951
|
-
a.events.list.splice(n, 1), a.update(), a.
|
|
2954
|
+
a.events.list.splice(n, 1), a.update(), a.sa.notify();
|
|
2952
2955
|
}, this.events.load = function (e, t, i) {
|
|
2953
2956
|
var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
2954
2957
|
var i, o = e.request;
|
|
@@ -2963,7 +2966,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2963
2966
|
var s = {};
|
|
2964
2967
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
2965
2968
|
return;
|
|
2966
|
-
a.events.list = i, a.
|
|
2969
|
+
a.events.list = i, a.Ba && a.update();
|
|
2967
2970
|
}
|
|
2968
2971
|
};
|
|
2969
2972
|
if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
@@ -2972,18 +2975,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2972
2975
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
2973
2976
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
2974
2977
|
}
|
|
2975
|
-
}, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.
|
|
2976
|
-
if (a.
|
|
2977
|
-
if (a.
|
|
2978
|
+
}, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.jb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
|
|
2979
|
+
if (a.bb(e), this.Ba) {
|
|
2980
|
+
if (a.O)
|
|
2978
2981
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
2979
2982
|
if (this.cells) {
|
|
2980
|
-
a.
|
|
2983
|
+
a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
|
|
2981
2984
|
}
|
|
2982
2985
|
}
|
|
2983
|
-
}, this.
|
|
2986
|
+
}, this.eb = null, this.bb = function (e) {
|
|
2984
2987
|
if (e) {
|
|
2985
2988
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
2986
|
-
this.
|
|
2989
|
+
this.eb = t;
|
|
2987
2990
|
for (var i in e)
|
|
2988
2991
|
if (t[i]) {
|
|
2989
2992
|
var n = t[i];
|
|
@@ -2992,14 +2995,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2992
2995
|
else
|
|
2993
2996
|
a[i] = e[i];
|
|
2994
2997
|
}
|
|
2995
|
-
}, this.
|
|
2996
|
-
var e = this.
|
|
2998
|
+
}, this.fb = function () {
|
|
2999
|
+
var e = this.eb;
|
|
2997
3000
|
for (var t in e) {
|
|
2998
3001
|
var i = e[t];
|
|
2999
3002
|
i.postInit && i.postInit();
|
|
3000
3003
|
}
|
|
3001
|
-
}, this.
|
|
3002
|
-
var t = this.
|
|
3004
|
+
}, this.hb = {}, this.hb.events = [], this.ib = function (e) {
|
|
3005
|
+
var t = this.hb.events, i = this.events.list[e], n = {};
|
|
3003
3006
|
for (var o in i)
|
|
3004
3007
|
n[o] = i[o];
|
|
3005
3008
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -3007,14 +3010,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3007
3010
|
r.control = a, r.data = n, this.onBeforeEventRender(r);
|
|
3008
3011
|
}
|
|
3009
3012
|
t[e] = n;
|
|
3010
|
-
}, this.
|
|
3013
|
+
}, this.ea = function () {
|
|
3011
3014
|
var e = this.events.list;
|
|
3012
3015
|
if (e) {
|
|
3013
3016
|
if (!DayPilot.isArray(e))
|
|
3014
3017
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
3015
3018
|
if ("function" == typeof this.onBeforeEventRender)
|
|
3016
3019
|
for (var t = 0; t < e.length; t++)
|
|
3017
|
-
this.
|
|
3020
|
+
this.ib(t);
|
|
3018
3021
|
for (var i = 0; i < e.length; i++) {
|
|
3019
3022
|
var a = e[i];
|
|
3020
3023
|
if ("object" != typeof a)
|
|
@@ -3027,31 +3030,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3027
3030
|
if (!(n.getTime() > o.getTime()))
|
|
3028
3031
|
for (var t = 0; t < this.rows.length; t++) {
|
|
3029
3032
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
3030
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
3033
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
|
|
3031
3034
|
}
|
|
3032
3035
|
}
|
|
3033
3036
|
for (var l = 0; l < this.rows.length; l++) {
|
|
3034
3037
|
var r = this.rows[l];
|
|
3035
|
-
r.events.sort(this.
|
|
3038
|
+
r.events.sort(this.jb);
|
|
3036
3039
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
3037
3040
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
3038
3041
|
r.putIntoLine(c, u, h, l);
|
|
3039
3042
|
}
|
|
3040
3043
|
}
|
|
3041
3044
|
}
|
|
3042
|
-
}, this.
|
|
3045
|
+
}, this.W = function () {
|
|
3043
3046
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
3044
3047
|
var t = this.elements.events[e];
|
|
3045
3048
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
3046
3049
|
}
|
|
3047
3050
|
this.elements.events = [];
|
|
3048
|
-
}, this.
|
|
3051
|
+
}, this.ka = function () { this.Nc(); }, this.Nc = function () {
|
|
3049
3052
|
this.elements.events = [];
|
|
3050
3053
|
for (var e = 0; e < this.rows.length; e++)
|
|
3051
3054
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
3052
3055
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
3053
|
-
this.
|
|
3054
|
-
}, this.
|
|
3056
|
+
this.Ea(a[n]);
|
|
3057
|
+
}, this.jb = function (e, t) {
|
|
3055
3058
|
if (!(e && t && e.start && t.start))
|
|
3056
3059
|
return 0;
|
|
3057
3060
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -3073,9 +3076,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3073
3076
|
var u = null;
|
|
3074
3077
|
for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
|
|
3075
3078
|
var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
|
|
3076
|
-
v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.
|
|
3079
|
+
v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.K("_shadow"));
|
|
3077
3080
|
var y = document.createElement("div");
|
|
3078
|
-
y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.
|
|
3081
|
+
y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
|
|
3079
3082
|
}
|
|
3080
3083
|
}, this.clearShadow = function () {
|
|
3081
3084
|
if (this.shadow) {
|
|
@@ -3087,9 +3090,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3087
3090
|
for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
3088
3091
|
i += this.rows[a].getHeight();
|
|
3089
3092
|
return i += this.cellHeaderHeight, i += t * this.lineHeight();
|
|
3090
|
-
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
3093
|
+
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) {
|
|
3091
3094
|
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");
|
|
3092
|
-
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.
|
|
3095
|
+
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.K("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.K("_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.ra, u.oncontextmenu = a.Oc, u.onmousedown = function (i) {
|
|
3093
3096
|
i = i || window.event;
|
|
3094
3097
|
var l = i.which || i.button;
|
|
3095
3098
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
@@ -3118,15 +3121,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3118
3121
|
}
|
|
3119
3122
|
}, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
|
|
3120
3123
|
var h = document.createElement("div");
|
|
3121
|
-
if (h.setAttribute("unselectable", "on"), h.className = this.
|
|
3124
|
+
if (h.setAttribute("unselectable", "on"), h.className = this.K("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
|
|
3122
3125
|
var f = document.createElement("div");
|
|
3123
|
-
f.setAttribute("unselectable", "on"), f.className = this.
|
|
3126
|
+
f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
|
|
3124
3127
|
var m = document.createElement("div");
|
|
3125
|
-
m.setAttribute("unselectable", "on"), m.className = this.
|
|
3128
|
+
m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
|
|
3126
3129
|
}
|
|
3127
3130
|
if (t.client.deleteEnabled()) {
|
|
3128
3131
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
3129
|
-
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.
|
|
3132
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.K("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ua(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
3130
3133
|
}
|
|
3131
3134
|
var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
3132
3135
|
if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
|
|
@@ -3134,7 +3137,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3134
3137
|
g.e = u.event, g.div = u, a.onAfterEventRender(g);
|
|
3135
3138
|
}
|
|
3136
3139
|
this.elements.events.push(u), this.nav.events.appendChild(u);
|
|
3137
|
-
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
3140
|
+
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () {
|
|
3138
3141
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
3139
3142
|
var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
|
|
3140
3143
|
e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
|
|
@@ -3162,9 +3165,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3162
3165
|
for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
3163
3166
|
e += this.rows[t].getHeight();
|
|
3164
3167
|
return e;
|
|
3165
|
-
}, 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.
|
|
3168
|
+
}, 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.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ga = function () {
|
|
3166
3169
|
var t = this.nav.top;
|
|
3167
|
-
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.
|
|
3170
|
+
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.K("_main");
|
|
3168
3171
|
var i = document.createElement("div");
|
|
3169
3172
|
this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i);
|
|
3170
3173
|
var n = document.createElement("div");
|
|
@@ -3214,7 +3217,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3214
3217
|
e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
|
|
3215
3218
|
}
|
|
3216
3219
|
};
|
|
3217
|
-
}, this.
|
|
3220
|
+
}, this.ja = function () {
|
|
3218
3221
|
this.nav.top.style.height = this.getHeight() + "px";
|
|
3219
3222
|
for (var e = 0; e < this.cells.length; e++)
|
|
3220
3223
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
@@ -3234,7 +3237,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3234
3237
|
for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
|
|
3235
3238
|
i.y++, t -= 7;
|
|
3236
3239
|
return i.x = t, i;
|
|
3237
|
-
}, this.
|
|
3240
|
+
}, this.Mc = function () {
|
|
3238
3241
|
var e = document.createElement("div");
|
|
3239
3242
|
e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
|
|
3240
3243
|
for (var t = 0; t < this.getColCount(); t++) {
|
|
@@ -3242,35 +3245,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3242
3245
|
var i = document.createElement("div");
|
|
3243
3246
|
i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
|
|
3244
3247
|
var a = t + this.getWeekStart();
|
|
3245
|
-
a > 6 && (a -= 7), i.className = this.
|
|
3248
|
+
a > 6 && (a -= 7), i.className = this.K("_header");
|
|
3246
3249
|
var o = document.createElement("div");
|
|
3247
|
-
o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.
|
|
3250
|
+
o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.K("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
3248
3251
|
for (var r = 0; r < this.rows.length; r++)
|
|
3249
|
-
this.
|
|
3252
|
+
this.Pc(t, r, e);
|
|
3250
3253
|
}
|
|
3251
|
-
}, this.
|
|
3254
|
+
}, this.Lc = function () {
|
|
3252
3255
|
for (var e = 0; e < this.cells.length; e++)
|
|
3253
3256
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
3254
3257
|
this.cells[e][t].onclick = null;
|
|
3255
3258
|
this.nav.cells.innerHTML = "";
|
|
3256
|
-
}, this.
|
|
3259
|
+
}, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) {
|
|
3257
3260
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null;
|
|
3258
3261
|
d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l;
|
|
3259
3262
|
var c = !a.isWeekend(s), u = {};
|
|
3260
3263
|
u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u);
|
|
3261
3264
|
var h = u.cell.properties, f = document.createElement("div");
|
|
3262
|
-
if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.
|
|
3263
|
-
var c = this.
|
|
3265
|
+
if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.K("_cell"), h.business) {
|
|
3266
|
+
var c = this.K("_cell_business");
|
|
3264
3267
|
DayPilot.Util.addClass(f, c);
|
|
3265
3268
|
}
|
|
3266
3269
|
var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
|
|
3267
|
-
m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.
|
|
3268
|
-
var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.
|
|
3270
|
+
m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.K("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () {
|
|
3271
|
+
var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); };
|
|
3269
3272
|
if ("Disabled" !== a.timeRangeSelectedHandling)
|
|
3270
3273
|
return void e(s);
|
|
3271
3274
|
};
|
|
3272
3275
|
var p = document.createElement("div");
|
|
3273
|
-
if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.
|
|
3276
|
+
if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) {
|
|
3274
3277
|
if ("Enabled" === a.cellHeaderClickHandling) {
|
|
3275
3278
|
e.stopPropagation();
|
|
3276
3279
|
var t = {};
|
|
@@ -3291,12 +3294,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3291
3294
|
for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
3292
3295
|
t += this.rows[i].getHeight();
|
|
3293
3296
|
return t;
|
|
3294
|
-
}, this.
|
|
3297
|
+
}, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { a.U(e.responseText); }, this.R = 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.S("EventClick", t, e); }, this.ra = 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) {
|
|
3295
3298
|
var i = e.event;
|
|
3296
3299
|
if (i && i.client.clickEnabled())
|
|
3297
|
-
if (a.
|
|
3300
|
+
if (a.qa()) {
|
|
3298
3301
|
var n = {};
|
|
3299
|
-
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.
|
|
3302
|
+
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.sa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
3300
3303
|
return;
|
|
3301
3304
|
switch (a.eventClickHandling) {
|
|
3302
3305
|
case "CallBack":
|
|
@@ -3306,7 +3309,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3306
3309
|
var o = i.client.contextMenu();
|
|
3307
3310
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
3308
3311
|
}
|
|
3309
|
-
"function" == typeof a.onEventClicked && a.
|
|
3312
|
+
"function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
|
|
3310
3313
|
}
|
|
3311
3314
|
else
|
|
3312
3315
|
switch (a.eventClickHandling) {
|
|
@@ -3315,7 +3318,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3315
3318
|
break;
|
|
3316
3319
|
case "JavaScript": a.onEventClick(i);
|
|
3317
3320
|
}
|
|
3318
|
-
}, this.
|
|
3321
|
+
}, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) {
|
|
3319
3322
|
if (this.event = e, !e.client.rightClickEnabled())
|
|
3320
3323
|
return !1;
|
|
3321
3324
|
var t = {};
|
|
@@ -3327,10 +3330,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3327
3330
|
}
|
|
3328
3331
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
3329
3332
|
}
|
|
3330
|
-
}, this.
|
|
3331
|
-
if (a.
|
|
3333
|
+
}, this.ua = function (e) {
|
|
3334
|
+
if (a.qa()) {
|
|
3332
3335
|
var t = {};
|
|
3333
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
3336
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.sa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
3334
3337
|
return;
|
|
3335
3338
|
switch (a.eventDeleteHandling) {
|
|
3336
3339
|
case "CallBack":
|
|
@@ -3341,7 +3344,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3341
3344
|
break;
|
|
3342
3345
|
case "Update": a.events.remove(e);
|
|
3343
3346
|
}
|
|
3344
|
-
"function" == typeof a.onEventDeleted && a.
|
|
3347
|
+
"function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
|
|
3345
3348
|
}
|
|
3346
3349
|
else
|
|
3347
3350
|
switch (a.eventDeleteHandling) {
|
|
@@ -3353,22 +3356,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3353
3356
|
break;
|
|
3354
3357
|
case "JavaScript": a.onEventDelete(e);
|
|
3355
3358
|
}
|
|
3356
|
-
}, this.eventDeleteCallBack = function (e, t) { this.
|
|
3359
|
+
}, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
|
|
3357
3360
|
if (!t)
|
|
3358
3361
|
throw "newStart is null";
|
|
3359
3362
|
if (!i)
|
|
3360
3363
|
throw "newEnd is null";
|
|
3361
3364
|
var o = {};
|
|
3362
|
-
o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.
|
|
3363
|
-
}, this.
|
|
3365
|
+
o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o);
|
|
3366
|
+
}, this.L = function (e, t, i, n, o, r) {
|
|
3364
3367
|
var s = e.start().getTimePart(), l = e.end().getDatePart();
|
|
3365
3368
|
l.getTime() !== e.end().getTime() && (l = l.addDays(1));
|
|
3366
3369
|
var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
|
|
3367
3370
|
c = c.addDays(-n);
|
|
3368
3371
|
var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
|
|
3369
|
-
if (a.
|
|
3372
|
+
if (a.qa()) {
|
|
3370
3373
|
var p = {};
|
|
3371
|
-
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.
|
|
3374
|
+
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.sa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
3372
3375
|
return;
|
|
3373
3376
|
switch (a.eventMoveHandling) {
|
|
3374
3377
|
case "CallBack":
|
|
@@ -3376,7 +3379,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3376
3379
|
break;
|
|
3377
3380
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
3378
3381
|
}
|
|
3379
|
-
"function" == typeof a.onEventMoved && a.
|
|
3382
|
+
"function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
|
|
3380
3383
|
}
|
|
3381
3384
|
else
|
|
3382
3385
|
switch (a.eventMoveHandling) {
|
|
@@ -3391,14 +3394,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3391
3394
|
if (!i)
|
|
3392
3395
|
throw "newEnd is null";
|
|
3393
3396
|
var n = {};
|
|
3394
|
-
n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
3395
|
-
}, this.
|
|
3397
|
+
n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
|
|
3398
|
+
}, this.J = function (e, t, i) {
|
|
3396
3399
|
var n = e.start().getTimePart(), o = e.end().getDatePart();
|
|
3397
3400
|
o.getTime() !== e.end().getTime() && (o = o.addDays(1));
|
|
3398
3401
|
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);
|
|
3399
|
-
if (a.
|
|
3402
|
+
if (a.qa()) {
|
|
3400
3403
|
var u = {};
|
|
3401
|
-
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.
|
|
3404
|
+
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.sa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
3402
3405
|
return;
|
|
3403
3406
|
switch (a.eventResizeHandling) {
|
|
3404
3407
|
case "CallBack":
|
|
@@ -3406,7 +3409,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3406
3409
|
break;
|
|
3407
3410
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
3408
3411
|
}
|
|
3409
|
-
"function" == typeof a.onEventResized && a.
|
|
3412
|
+
"function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
|
|
3410
3413
|
}
|
|
3411
3414
|
else
|
|
3412
3415
|
switch (a.eventResizeHandling) {
|
|
@@ -3415,15 +3418,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3415
3418
|
break;
|
|
3416
3419
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
3417
3420
|
}
|
|
3418
|
-
}, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.
|
|
3419
|
-
if (this.
|
|
3421
|
+
}, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
|
|
3422
|
+
if (this.qa()) {
|
|
3420
3423
|
var i = {};
|
|
3421
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
3424
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.sa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
3422
3425
|
return;
|
|
3423
3426
|
switch (a.timeRangeSelectedHandling) {
|
|
3424
3427
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
3425
3428
|
}
|
|
3426
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
3429
|
+
"function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
|
|
3427
3430
|
}
|
|
3428
3431
|
else
|
|
3429
3432
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -3432,9 +3435,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3432
3435
|
break;
|
|
3433
3436
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
3434
3437
|
}
|
|
3435
|
-
}, this.
|
|
3436
|
-
var n = this.
|
|
3437
|
-
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.
|
|
3438
|
+
}, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== a.xssProtection; };
|
|
3439
|
+
var n = this.aa;
|
|
3440
|
+
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.O || (e.O = !0, e.W(), 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.disposed = function () { return this.O; }, this.$a = 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.t = 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.gb = function () {
|
|
3438
3441
|
if (this.id && this.id.tagName)
|
|
3439
3442
|
this.nav.top = this.id;
|
|
3440
3443
|
else {
|
|
@@ -3443,7 +3446,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3443
3446
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3444
3447
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3445
3448
|
}
|
|
3446
|
-
}, this.
|
|
3449
|
+
}, this.mb = function () { this.Kc(), this.Ga(), this.Mc(), this.$a(), this.S("Init"); }, this.Ka = function (e, t) { return a.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.bb, this.internal.xssTextHtml = a.Ka, this.init = function () { return this.gb(), this.loadFromServer() ? void this.mb() : (this.Kc(), this.ea(), this.Ga(), this.Mc(), this.t(), this.ka(), this.$a(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.bb(i);
|
|
3447
3450
|
}, e.gMouseUp = function (t) {
|
|
3448
3451
|
if (e.movingEvent) {
|
|
3449
3452
|
var i = e.movingEvent;
|
|
@@ -3458,7 +3461,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3458
3461
|
var a = e.movingEvent.event.calendar, n = e.movingEvent.event, o = a.shadow.start, r = a.shadow.position, s = e.movingEvent.offset;
|
|
3459
3462
|
a.clearShadow(), e.movingEvent = null;
|
|
3460
3463
|
var t = t || window.event;
|
|
3461
|
-
return a.
|
|
3464
|
+
return a.L(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
|
|
3462
3465
|
}
|
|
3463
3466
|
if (e.resizingEvent) {
|
|
3464
3467
|
var i = e.resizingEvent;
|
|
@@ -3471,12 +3474,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3471
3474
|
if (!i.event.calendar.shadow.start)
|
|
3472
3475
|
return;
|
|
3473
3476
|
var a = e.resizingEvent.event.calendar, n = e.resizingEvent.event, o = a.shadow.start, l = a.shadow.width;
|
|
3474
|
-
return a.clearShadow(), e.resizingEvent = null, a.
|
|
3477
|
+
return a.clearShadow(), e.resizingEvent = null, a.J(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
|
|
3475
3478
|
}
|
|
3476
3479
|
if (e.timeRangeSelecting) {
|
|
3477
3480
|
if (e.timeRangeSelecting.moved) {
|
|
3478
3481
|
var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
|
|
3479
|
-
a.
|
|
3482
|
+
a.M(o, c), a.clearShadow();
|
|
3480
3483
|
}
|
|
3481
3484
|
e.timeRangeSelecting = null;
|
|
3482
3485
|
}
|
|
@@ -3498,7 +3501,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3498
3501
|
e && e.directive("daypilotMonth", ["$parse", function (e) {
|
|
3499
3502
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
3500
3503
|
var n = new DayPilot.Month(i[0]);
|
|
3501
|
-
n.
|
|
3504
|
+
n.sa.scope = t, n.init();
|
|
3502
3505
|
var o = a["id"];
|
|
3503
3506
|
o && (t[o] = n);
|
|
3504
3507
|
var r = a["publishAs"];
|
|
@@ -3523,38 +3526,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3523
3526
|
"use strict";
|
|
3524
3527
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3525
3528
|
DayPilot.Navigator = function (e, t) {
|
|
3526
|
-
this.v = "2024.
|
|
3529
|
+
this.v = "2024.4.566-lite";
|
|
3527
3530
|
var i = this;
|
|
3528
|
-
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.
|
|
3529
|
-
if (!o.
|
|
3531
|
+
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.hb = {}, this.Qc = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (o.Rc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Sc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Rc() || (this.root.style.width = 7 * o.cellWidth() + this.Sc() + "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.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === i.api; }, this.Lc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Tc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.Uc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.Vc = function () {
|
|
3532
|
+
if (!o.Rc())
|
|
3530
3533
|
return null;
|
|
3531
3534
|
var e = 7;
|
|
3532
3535
|
return this.showWeekNumbers && e++, 100 / e;
|
|
3533
|
-
}, this.
|
|
3536
|
+
}, this.Wc = function () { return o.Rc() ? null : o.cellWidth(); }, this.Xc = function (e) { return "number" != typeof e && (e = 1), o.Rc() ? this.Vc() * e : this.Wc() * e; }, this.Yc = function (e) { var t = o.Rc() ? "%" : "px"; return this.Xc(e) + t; }, this.Mc = function (e, t) {
|
|
3534
3537
|
var a = {};
|
|
3535
3538
|
a.cells = [], a.days = [], a.weeks = [];
|
|
3536
3539
|
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;
|
|
3537
3540
|
a.rowCount = h;
|
|
3538
|
-
var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.
|
|
3541
|
+
var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc();
|
|
3539
3542
|
a.width = m;
|
|
3540
3543
|
var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
|
|
3541
3544
|
a.height = p;
|
|
3542
3545
|
var v = document.createElement("div");
|
|
3543
|
-
if (o.
|
|
3544
|
-
v.style.position = "absolute", o.
|
|
3546
|
+
if (o.Rc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
3547
|
+
v.style.position = "absolute", o.Rc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
3545
3548
|
else {
|
|
3546
3549
|
v.style.position = "relative";
|
|
3547
3550
|
var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
|
|
3548
3551
|
a.top = y, a.left = 0, a.leftPct = 0;
|
|
3549
3552
|
}
|
|
3550
|
-
v.className = this.
|
|
3553
|
+
v.className = this.K("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
|
|
3551
3554
|
var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
|
|
3552
|
-
b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.
|
|
3555
|
+
b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Yc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.K("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span><</span>", b.onclick = this.Zc), v.appendChild(b), this.tl = b;
|
|
3553
3556
|
var D = document.createElement("div");
|
|
3554
|
-
D.style.position = "absolute", D.style.left = i.
|
|
3555
|
-
var
|
|
3556
|
-
|
|
3557
|
-
var
|
|
3557
|
+
D.style.position = "absolute", D.style.left = i.Yc(), D.style.top = "0px", D.style.width = i.Yc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
|
|
3558
|
+
var x = document.createElement("div");
|
|
3559
|
+
x.style.position = "absolute", x.style.left = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.right = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.Yc(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.$c), v.appendChild(x), this.tr = x;
|
|
3560
|
+
var w = (this.Sc(), i.showWeekNumbers ? 1 : 0);
|
|
3558
3561
|
if (this.showWeekNumbers)
|
|
3559
3562
|
for (var C = 0; C < h; C++) {
|
|
3560
3563
|
var P = d.addDays(7 * C), k = null;
|
|
@@ -3571,53 +3574,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3571
3574
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
3572
3575
|
}
|
|
3573
3576
|
var _ = document.createElement("div");
|
|
3574
|
-
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.
|
|
3577
|
+
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Yc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
|
|
3575
3578
|
}
|
|
3576
3579
|
for (var S = 0; S < 7; S++) {
|
|
3577
3580
|
a.cells[S] = [];
|
|
3578
3581
|
var _ = document.createElement("div");
|
|
3579
|
-
_.style.position = "absolute", _.style.left = i.
|
|
3582
|
+
_.style.position = "absolute", _.style.left = i.Yc(S + w), _.style.right = i.Yc(S + w), _.style.top = this.titleHeight + "px", _.style.width = i.Yc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_dayheader"), _.innerHTML = "<span>" + this._c(S) + "</span>", v.appendChild(_), a.days.push(_);
|
|
3580
3583
|
for (var C = 0; C < h; C++) {
|
|
3581
|
-
var P = d.addDays(7 * C + S), M = this.
|
|
3582
|
-
if ("month" === this.
|
|
3584
|
+
var P = d.addDays(7 * C + S), M = this.ad(P) && "none" !== this.bd(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
3585
|
+
if ("month" === this.bd())
|
|
3583
3586
|
M = M && T;
|
|
3584
|
-
else if ("day" === this.
|
|
3587
|
+
else if ("day" === this.bd())
|
|
3585
3588
|
M = M && (T || r && A || s && H);
|
|
3586
|
-
else if ("week" === this.
|
|
3589
|
+
else if ("week" === this.bd()) {
|
|
3587
3590
|
var E = P.firstDayOfMonth() === n;
|
|
3588
3591
|
M = M && (E || r && A || s && H);
|
|
3589
3592
|
}
|
|
3590
3593
|
var N = document.createElement("div");
|
|
3591
3594
|
a.cells[S][C] = N;
|
|
3592
|
-
var I = i.
|
|
3593
|
-
N.day = P, N.x = S, N.y = C, N.left =
|
|
3594
|
-
var
|
|
3595
|
-
|
|
3596
|
-
var
|
|
3597
|
-
if (this.cells && this.cells[P.toStringSortable()] && (
|
|
3598
|
-
var
|
|
3599
|
-
|
|
3595
|
+
var I = i.cd(S, C), O = I.x, U = I.y, z = o.Rc() ? "%" : "px";
|
|
3596
|
+
N.day = P, N.x = S, N.y = C, N.left = O, N.top = U, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.K(T ? "_day" : "_dayother"), i.Tc(N, "cell"), P.getTime() === f.getTime() && T && this.Tc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Tc(N, "weekend"), N.style.position = "absolute", N.style.left = O + z, N.style.right = O + z, N.style.top = U + "px", N.style.width = i.Yc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
3597
|
+
var R = document.createElement("div");
|
|
3598
|
+
R.style.position = "absolute", R.className = P.getTime() === f.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), i.Tc(R, "cell_box"), R.style.left = "0px", R.style.top = "0px", R.style.right = "0px", R.style.bottom = "0px", N.appendChild(R);
|
|
3599
|
+
var B = null;
|
|
3600
|
+
if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
3601
|
+
var j = {};
|
|
3602
|
+
j.cell = B || {}, j.cell.day = P, j.cell.isCurrentMonth = T, j.cell.isToday = P.getTime() === f.getTime() && T, j.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), B ? (j.cell.html = B.html || P.getDay(), j.cell.cssClass = B.css) : (j.cell.html = P.getDay(), j.cell.cssClass = null), i.onBeforeCellRender(j), B = j.cell;
|
|
3600
3603
|
}
|
|
3601
|
-
if (
|
|
3602
|
-
var
|
|
3603
|
-
|
|
3604
|
+
if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
|
|
3605
|
+
var L = document.createElement("div");
|
|
3606
|
+
L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Tc(L, "cell_text"), N.isClickable = !0, B && B.html && (L.innerHTML = B.html), N.appendChild(L);
|
|
3604
3607
|
}
|
|
3605
|
-
N.setAttribute("unselectable", "on"), N.onclick = this.
|
|
3608
|
+
N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
|
|
3606
3609
|
}
|
|
3607
3610
|
}
|
|
3608
3611
|
var W = document.createElement("div");
|
|
3609
|
-
W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.
|
|
3610
|
-
}, this.
|
|
3612
|
+
W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Yc(7 + w), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.K("_line"), v.appendChild(W), this.months.push(a);
|
|
3613
|
+
}, this.cd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Sc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Xc(e + n), "y": t * this.cellHeight + a }; }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.fd = function (e, t, a) { var n = e.month.cells[t][a]; i.Uc(n, "select"); }, this.Sc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.gd = function () {
|
|
3611
3614
|
if (this.items)
|
|
3612
3615
|
for (var e = 0; e < this.showMonths; e++)
|
|
3613
3616
|
for (var t = 0; t < 7; t++)
|
|
3614
3617
|
for (var i = 0; i < 6; i++) {
|
|
3615
3618
|
var a = this.months[e].cells[t][i];
|
|
3616
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
3619
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
|
|
3617
3620
|
}
|
|
3618
|
-
}, this.
|
|
3621
|
+
}, this.hd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.bd = function () { return (this.selectMode || "").toLowerCase(); }, this.jd = function () {
|
|
3619
3622
|
var e = this.selectionDay || this.selectionStart;
|
|
3620
|
-
switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.
|
|
3623
|
+
switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
|
|
3621
3624
|
case "day":
|
|
3622
3625
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
3623
3626
|
break;
|
|
@@ -3632,10 +3635,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3632
3635
|
break;
|
|
3633
3636
|
default: throw "Unknown selectMode value.";
|
|
3634
3637
|
}
|
|
3635
|
-
}, this.
|
|
3638
|
+
}, this.kd = null, this.select = function (e, t, a) {
|
|
3636
3639
|
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;
|
|
3637
|
-
if (!this.
|
|
3638
|
-
return void (this.
|
|
3640
|
+
if (!this.Ba)
|
|
3641
|
+
return void (this.kd = { "date1": r, "date2": s, "options": l });
|
|
3639
3642
|
var d = !0, c = !0;
|
|
3640
3643
|
l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
|
|
3641
3644
|
var u = this.selectionStart, h = this.selectionEnd;
|
|
@@ -3643,21 +3646,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3643
3646
|
var f = !1;
|
|
3644
3647
|
if (d) {
|
|
3645
3648
|
var m = this.startDate;
|
|
3646
|
-
(this.selectionStart < this.
|
|
3649
|
+
(this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
3647
3650
|
}
|
|
3648
|
-
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
3651
|
+
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.jd(), this.Lc(), this.Qc(), this.nd(), this.gd(), this.hd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.od();
|
|
3649
3652
|
}, this.update = function (e) {
|
|
3650
|
-
if (i.
|
|
3651
|
-
if (i.
|
|
3653
|
+
if (i.bb(e), this.Ba) {
|
|
3654
|
+
if (i.O)
|
|
3652
3655
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
3653
|
-
i.
|
|
3656
|
+
i.pd();
|
|
3654
3657
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
3655
|
-
i
|
|
3658
|
+
i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
|
|
3656
3659
|
}
|
|
3657
|
-
}, this
|
|
3660
|
+
}, this._a = function () { this.Lc(), this.Qc(), this.jd(), this.nd(), this.ea(), this.gd(), this.hd(), this.visible ? this.show() : this.hide(); }, this.pd = function () { i.hb = {}; }, this.eb = null, this.bb = function (e) {
|
|
3658
3661
|
if (e) {
|
|
3659
3662
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
|
|
3660
|
-
this.
|
|
3663
|
+
this.eb = t;
|
|
3661
3664
|
for (var a in e)
|
|
3662
3665
|
if (t[a]) {
|
|
3663
3666
|
var n = t[a];
|
|
@@ -3666,20 +3669,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3666
3669
|
else
|
|
3667
3670
|
i[a] = e[a];
|
|
3668
3671
|
}
|
|
3669
|
-
}, this.
|
|
3670
|
-
var e = this.
|
|
3672
|
+
}, this.fb = function () {
|
|
3673
|
+
var e = this.eb;
|
|
3671
3674
|
for (var t in e) {
|
|
3672
3675
|
var i = e[t];
|
|
3673
3676
|
i.postInit && i.postInit();
|
|
3674
3677
|
}
|
|
3675
|
-
}, this.
|
|
3678
|
+
}, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.qd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.qd = function (e) {
|
|
3676
3679
|
if ("function" == typeof i.onAjaxError) {
|
|
3677
3680
|
var t = {};
|
|
3678
3681
|
t.request = e, i.onAjaxError(t);
|
|
3679
3682
|
}
|
|
3680
3683
|
else
|
|
3681
3684
|
"function" == typeof i.ajaxError && i.ajaxError(e);
|
|
3682
|
-
}, this.
|
|
3685
|
+
}, this.T = function (e) { i.U(e.responseText); }, this.Q = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.rd = function (e, t) { "refresh" === e && this.od(); }, this._c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.ad = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.sd = function (e) {
|
|
3683
3686
|
for (var t = 0; t < i.months.length; t++) {
|
|
3684
3687
|
var a = i.months[t];
|
|
3685
3688
|
if (!a)
|
|
@@ -3693,14 +3696,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3693
3696
|
}
|
|
3694
3697
|
}
|
|
3695
3698
|
return null;
|
|
3696
|
-
}, this.
|
|
3697
|
-
if (!o.
|
|
3698
|
-
return void (i.
|
|
3699
|
+
}, this.td = function (e) { }, this.ud = function () {
|
|
3700
|
+
if (!o.Rc())
|
|
3701
|
+
return void (i.vd = i.cellWidth);
|
|
3699
3702
|
var e = i.months[0].cells[0][0], t = e.clientWidth;
|
|
3700
|
-
i.
|
|
3701
|
-
}, this.
|
|
3702
|
-
i.
|
|
3703
|
-
var t = DayPilot.mo3(i.nav.top, e), a = i.
|
|
3703
|
+
i.vd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
|
|
3704
|
+
}, this.wd = function (e) {
|
|
3705
|
+
i.ud();
|
|
3706
|
+
var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t);
|
|
3704
3707
|
if (null === a)
|
|
3705
3708
|
return null;
|
|
3706
3709
|
var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
|
|
@@ -3709,18 +3712,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3709
3712
|
for (var r = 0; r < n.cells.length; r++)
|
|
3710
3713
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
3711
3714
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
3712
|
-
if (c <= t.x && t.x < c + i.
|
|
3715
|
+
if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
|
|
3713
3716
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
3714
3717
|
}
|
|
3715
3718
|
return null;
|
|
3716
|
-
}, this.
|
|
3719
|
+
}, this.xd = function (e) {
|
|
3717
3720
|
if (i.freeHandSelectionEnabled) {
|
|
3718
|
-
var t = i.
|
|
3721
|
+
var t = i.wd(e);
|
|
3719
3722
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
3720
3723
|
}
|
|
3721
|
-
}, this.
|
|
3724
|
+
}, this.yd = function (e) {
|
|
3722
3725
|
if (a.start) {
|
|
3723
|
-
var t = i.
|
|
3726
|
+
var t = i.wd(e);
|
|
3724
3727
|
if (a.end)
|
|
3725
3728
|
a.end = t;
|
|
3726
3729
|
else if (t) {
|
|
@@ -3729,13 +3732,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3729
3732
|
}
|
|
3730
3733
|
a.end && (a.clear(), a.draw());
|
|
3731
3734
|
}
|
|
3732
|
-
}, this.
|
|
3733
|
-
var a = this.
|
|
3735
|
+
}, this.zd = {};
|
|
3736
|
+
var a = this.zd;
|
|
3734
3737
|
a.start = null, a.drawCell = function (e) {
|
|
3735
|
-
var t = i.months[e.month], n = i.
|
|
3736
|
-
if (o.
|
|
3738
|
+
var t = i.months[e.month], n = i.cd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Yc();
|
|
3739
|
+
if (o.Rc()) {
|
|
3737
3740
|
var c = "Horizontal" === i.orientation ? i.showMonths : 1;
|
|
3738
|
-
s = t.leftPct + n.x / c, l = "%", d = i.
|
|
3741
|
+
s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
|
|
3739
3742
|
}
|
|
3740
3743
|
var u = document.createElement("div");
|
|
3741
3744
|
u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
|
|
@@ -3808,54 +3811,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3808
3811
|
return e;
|
|
3809
3812
|
}, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
|
|
3810
3813
|
};
|
|
3811
|
-
this.
|
|
3814
|
+
this.dd = function (e) {
|
|
3812
3815
|
var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
|
|
3813
3816
|
if (a.cells[n][o].isClickable) {
|
|
3814
3817
|
i.clearSelection(), i.selectionDay = r;
|
|
3815
3818
|
var r = i.selectionDay;
|
|
3816
|
-
switch (i.
|
|
3819
|
+
switch (i.bd()) {
|
|
3817
3820
|
case "none":
|
|
3818
3821
|
i.selectionStart = r, i.selectionEnd = r;
|
|
3819
3822
|
break;
|
|
3820
3823
|
case "day":
|
|
3821
3824
|
if (i.autoFocusOnClick) {
|
|
3822
3825
|
var s = r;
|
|
3823
|
-
if (r < i.
|
|
3826
|
+
if (r < i.ld() || r >= i.md())
|
|
3824
3827
|
return void i.select(r);
|
|
3825
3828
|
}
|
|
3826
3829
|
var l = a.cells[n][o];
|
|
3827
|
-
i.
|
|
3830
|
+
i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
3828
3831
|
break;
|
|
3829
3832
|
case "week":
|
|
3830
3833
|
if (i.autoFocusOnClick) {
|
|
3831
3834
|
var s = a.cells[0][o].day, d = a.cells[6][o].day;
|
|
3832
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
3835
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
|
|
3833
3836
|
return void i.select(r);
|
|
3834
3837
|
}
|
|
3835
3838
|
for (var c = 0; c < 7; c++)
|
|
3836
|
-
i.
|
|
3839
|
+
i.ed(t, c, o), i.selected.push(a.cells[c][o]);
|
|
3837
3840
|
i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
|
|
3838
3841
|
break;
|
|
3839
3842
|
case "month":
|
|
3840
3843
|
if (i.autoFocusOnClick) {
|
|
3841
3844
|
var s = r;
|
|
3842
|
-
if (r < i.
|
|
3845
|
+
if (r < i.ld() || r >= i.md())
|
|
3843
3846
|
return void i.select(r);
|
|
3844
3847
|
}
|
|
3845
3848
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
3846
3849
|
for (var n = 0; n < 7; n++) {
|
|
3847
3850
|
var l = a.cells[n][o];
|
|
3848
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.
|
|
3851
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.ed(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
3849
3852
|
}
|
|
3850
3853
|
i.selectionStart = s, i.selectionEnd = d;
|
|
3851
3854
|
break;
|
|
3852
3855
|
default: throw "unknown selectMode";
|
|
3853
3856
|
}
|
|
3854
|
-
i.
|
|
3857
|
+
i.hd(), i.M();
|
|
3855
3858
|
}
|
|
3856
|
-
}, this.
|
|
3859
|
+
}, this.M = function (e) {
|
|
3857
3860
|
var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
|
|
3858
|
-
if (e = e || {}, i.
|
|
3861
|
+
if (e = e || {}, i.qa()) {
|
|
3859
3862
|
var r = {};
|
|
3860
3863
|
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))
|
|
3861
3864
|
return;
|
|
@@ -3885,11 +3888,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3885
3888
|
case "None": break;
|
|
3886
3889
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
3887
3890
|
}
|
|
3888
|
-
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.
|
|
3891
|
+
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.$c = function (e) { i.Ad(i.skipMonths); }, this.Zc = function (e) { i.Ad(-i.skipMonths); }, this.Ad = function (e) { this.startDate = this.startDate.addMonths(e), this.Lc(), this.Qc(), this.nd(), this.hd(), this.od(), this.gd(); }, this.ld = function () { return i.startDate.firstDayOfMonth(); }, this.md = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
|
|
3889
3892
|
return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
|
|
3890
|
-
}, this.
|
|
3893
|
+
}, this.od = function () {
|
|
3891
3894
|
var e = this.visibleStart(), t = this.visibleEnd();
|
|
3892
|
-
if (i.
|
|
3895
|
+
if (i.qa()) {
|
|
3893
3896
|
var a = {};
|
|
3894
3897
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
3895
3898
|
return;
|
|
@@ -3917,13 +3920,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3917
3920
|
break;
|
|
3918
3921
|
case "Disabled":
|
|
3919
3922
|
}
|
|
3920
|
-
}, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.
|
|
3923
|
+
}, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.gd(); }, this.nd = function () {
|
|
3921
3924
|
for (var e = 0; e < this.showMonths; e++) {
|
|
3922
|
-
var t = this.
|
|
3923
|
-
this.
|
|
3925
|
+
var t = this.Bd(e);
|
|
3926
|
+
this.Mc(e, t);
|
|
3924
3927
|
}
|
|
3925
|
-
this.root.style.height = this.
|
|
3926
|
-
}, this.
|
|
3928
|
+
this.root.style.height = this.Cd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
|
|
3929
|
+
}, this.Cd = function () {
|
|
3927
3930
|
if ("Horizontal" === this.orientation) {
|
|
3928
3931
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
3929
3932
|
var i = this.months[t];
|
|
@@ -3936,13 +3939,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3936
3939
|
a += i.height;
|
|
3937
3940
|
}
|
|
3938
3941
|
return a;
|
|
3939
|
-
}, this.
|
|
3942
|
+
}, this.Bd = function (e) {
|
|
3940
3943
|
if (this.internal.showLinks)
|
|
3941
3944
|
return this.internal.showLinks;
|
|
3942
3945
|
var t = {};
|
|
3943
3946
|
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;
|
|
3944
|
-
}, this.
|
|
3945
|
-
var o = this.
|
|
3947
|
+
}, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { i.sa.scope && i.sa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.bb, this.internal.initialized = function () { return i.Ba; }, this.aa = {};
|
|
3948
|
+
var o = this.aa;
|
|
3946
3949
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
|
|
3947
3950
|
if ("Auto" === i.weekStarts) {
|
|
3948
3951
|
var e = o.locale();
|
|
@@ -3950,33 +3953,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3950
3953
|
}
|
|
3951
3954
|
return i.weekStarts;
|
|
3952
3955
|
}, o.cellWidth = function () {
|
|
3953
|
-
if (i.
|
|
3954
|
-
return i.
|
|
3955
|
-
var e = i.
|
|
3956
|
-
return e || (e = i.cellWidth), i.
|
|
3957
|
-
}, o.
|
|
3956
|
+
if (i.hb.cellWidth)
|
|
3957
|
+
return i.hb.cellWidth;
|
|
3958
|
+
var e = i.Dd("_cell_dimensions").width;
|
|
3959
|
+
return e || (e = i.cellWidth), i.hb.cellWidth = e, e;
|
|
3960
|
+
}, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () {
|
|
3958
3961
|
for (var e = 0; e < this.selected.length; e++) {
|
|
3959
3962
|
var t = this.selected[e];
|
|
3960
|
-
i.
|
|
3963
|
+
i.fd(t.parentNode, t.x, t.y);
|
|
3961
3964
|
}
|
|
3962
3965
|
this.selected = [];
|
|
3963
|
-
}, this.
|
|
3966
|
+
}, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () {
|
|
3964
3967
|
if (DayPilot.isArray(this.events.list)) {
|
|
3965
3968
|
this.items = {};
|
|
3966
3969
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
3967
3970
|
var t = this.events.list[e];
|
|
3968
3971
|
if (!t.hidden) {
|
|
3969
|
-
var i = this.
|
|
3972
|
+
var i = this.Fd(t);
|
|
3970
3973
|
for (var a in i)
|
|
3971
3974
|
this.items[a] = 1;
|
|
3972
3975
|
}
|
|
3973
3976
|
}
|
|
3974
3977
|
}
|
|
3975
|
-
}, this.
|
|
3978
|
+
}, this.Dd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(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.Fd = function (e) {
|
|
3976
3979
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
3977
3980
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3978
3981
|
return a;
|
|
3979
|
-
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
3982
|
+
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () {
|
|
3980
3983
|
if (this.id && this.id.tagName)
|
|
3981
3984
|
this.nav.top = this.id;
|
|
3982
3985
|
else {
|
|
@@ -3987,26 +3990,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3987
3990
|
}
|
|
3988
3991
|
this.root = this.nav.top;
|
|
3989
3992
|
}, this.init = function () {
|
|
3990
|
-
if (this.
|
|
3991
|
-
this.
|
|
3992
|
-
if (this.
|
|
3993
|
-
var e = this.
|
|
3994
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
3993
|
+
if (this.gb(), !this.root.dp) {
|
|
3994
|
+
this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
|
|
3995
|
+
if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
|
|
3996
|
+
var e = this.kd;
|
|
3997
|
+
this.select(e.date1, e.date2, e.options), this.kd = null;
|
|
3995
3998
|
}
|
|
3996
3999
|
return this;
|
|
3997
4000
|
}
|
|
3998
|
-
}, this.
|
|
4001
|
+
}, this.Gd = function () { i.nav.top.onmousedown = this.xd, i.nav.top.onmousemove = this.yd; }, this.$a = function () { DayPilot.re(document, "mouseup", i.Hd); }, this.Hd = function (e) {
|
|
3999
4002
|
if (a.start && a.end) {
|
|
4000
4003
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
4001
4004
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
4002
4005
|
return a.start = null, void a.clear();
|
|
4003
4006
|
a.clear();
|
|
4004
4007
|
var o = a.ordered();
|
|
4005
|
-
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.
|
|
4006
|
-
i.
|
|
4008
|
+
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.Lc(), i.Qc(), i.nd(), i.gd(), i.hd();
|
|
4009
|
+
i.M({ "mode": "FreeHand" });
|
|
4007
4010
|
}
|
|
4008
4011
|
a.start = null, a.end = null;
|
|
4009
|
-
}, 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.
|
|
4012
|
+
}, 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.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.bb(t);
|
|
4010
4013
|
}, "undefined" != typeof jQuery && !function (e) {
|
|
4011
4014
|
e.fn.daypilotNavigator = function (e) {
|
|
4012
4015
|
var t = null, i = this.each(function () {
|
|
@@ -4026,7 +4029,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4026
4029
|
return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
|
|
4027
4030
|
return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
|
|
4028
4031
|
var n = new DayPilot.Navigator(i[0]);
|
|
4029
|
-
n.
|
|
4032
|
+
n.sa.scope = t, n.init();
|
|
4030
4033
|
var o = a["id"];
|
|
4031
4034
|
o && (t[o] = n);
|
|
4032
4035
|
var r = a["publishAs"];
|
|
@@ -4043,7 +4046,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4043
4046
|
for (var i in e)
|
|
4044
4047
|
n[i] = e[i];
|
|
4045
4048
|
n.update();
|
|
4046
|
-
}, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
4049
|
+
}, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0);
|
|
4047
4050
|
};
|
|
4048
4051
|
} };
|
|
4049
4052
|
}]);
|