@daypilot/daypilot-lite-angular 3.12.1 → 3.13.1
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 +581 -527
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +614 -501
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +580 -526
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +51 -0
- package/package.json +1 -1
|
@@ -69,6 +69,15 @@ var DayPilot;
|
|
|
69
69
|
class MenuBar {
|
|
70
70
|
}
|
|
71
71
|
DayPilot.MenuBar = MenuBar;
|
|
72
|
+
class SwitcherPropsAndEvents {
|
|
73
|
+
}
|
|
74
|
+
DayPilot.SwitcherPropsAndEvents = SwitcherPropsAndEvents;
|
|
75
|
+
class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
76
|
+
}
|
|
77
|
+
DayPilot.SwitcherConfig = SwitcherConfig;
|
|
78
|
+
class Switcher extends SwitcherPropsAndEvents {
|
|
79
|
+
}
|
|
80
|
+
DayPilot.Switcher = Switcher;
|
|
72
81
|
class Date {
|
|
73
82
|
}
|
|
74
83
|
DayPilot.Date = Date;
|
|
@@ -121,7 +130,7 @@ DayPilot Lite
|
|
|
121
130
|
Copyright (c) 2005 - 2023 Annpoint s.r.o.
|
|
122
131
|
https://www.daypilot.org/
|
|
123
132
|
Licensed under Apache Software License 2.0
|
|
124
|
-
Version: 2023.
|
|
133
|
+
Version: 2023.2.463-lite
|
|
125
134
|
*/
|
|
126
135
|
if ("undefined" == typeof DayPilot)
|
|
127
136
|
var DayPilot = {};
|
|
@@ -370,7 +379,68 @@ if (function () {
|
|
|
370
379
|
DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e); }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) { if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
|
|
371
380
|
for (var i in t)
|
|
372
381
|
this[i] = t[i]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
|
|
373
|
-
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) { var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3; if (2 === arguments.length) {
|
|
382
|
+
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) {
|
|
383
|
+
function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.G; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.G = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.q(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
|
|
384
|
+
var i = this;
|
|
385
|
+
this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.k = null, this.l = DayPilot.Date.today(), this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) { var a; if ("string" == typeof e) {
|
|
386
|
+
if (a = document.getElementById(e), !a)
|
|
387
|
+
throw "Element not found: " + e;
|
|
388
|
+
}
|
|
389
|
+
else
|
|
390
|
+
a = e; var n = a, o = {}; return o.m = !0, o.n = n.id, o.control = n, o.o = t || {}, o.p = function () { n.hide ? n.hide() : n.nav && n.nav.top ? n.nav.top.style.display = "none" : n.style.display = "none"; }, o.q = 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.s = function () { i.t(), n.show ? n.show() : n.nav && n.nav.top ? n.nav.top.style.display = "" : n.style.display = ""; }, o.u = function () { if (o.o.navigatorSelectMode)
|
|
391
|
+
return o.o.navigatorSelectMode; if (n.isCalendar)
|
|
392
|
+
switch (n.viewType) {
|
|
393
|
+
case "Day": return "day";
|
|
394
|
+
case "Week": return "week";
|
|
395
|
+
case "WorkWeek": return "week";
|
|
396
|
+
default: return "day";
|
|
397
|
+
}
|
|
398
|
+
else if (n.isMonth)
|
|
399
|
+
switch (n.viewType) {
|
|
400
|
+
case "Month": return "month";
|
|
401
|
+
case "Weeks": return "week";
|
|
402
|
+
default: return "day";
|
|
403
|
+
} return "day"; }, this.f.push(o), o; }, this.addTrigger = function (e, t) { var a; if ("string" == typeof e) {
|
|
404
|
+
if (a = document.getElementById(e), !a)
|
|
405
|
+
throw "Element not found: " + e;
|
|
406
|
+
}
|
|
407
|
+
else
|
|
408
|
+
a = e; var n = this.z(t); n || (n = this.addView(t)); var o = {}; return o.A = !0, o.B = a, o.n = a.id, o.C = n, o.D = function (e) { i.show(o), i.E(o), e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1); }, DayPilot.re(a, "click", o.D), this.i.push(o), o; }, this.addButton = this.addTrigger, this.select = function (e) { var t = this.F(e); t ? t.D() : this.i.length > 0 && this.i[0].D(); }, this.F = function (e) { for (var t = 0; t < this.i.length; t++) {
|
|
409
|
+
var i = this.i[t];
|
|
410
|
+
if (i.n === e)
|
|
411
|
+
return i;
|
|
412
|
+
} return null; }, this.E = function (e) { if (this.selectedClass) {
|
|
413
|
+
for (var t = 0; t < this.i.length; t++) {
|
|
414
|
+
var i = this.i[t];
|
|
415
|
+
DayPilot.Util.removeClass(i.B, this.selectedClass);
|
|
416
|
+
}
|
|
417
|
+
DayPilot.Util.addClass(e.B, this.selectedClass);
|
|
418
|
+
} }, this.addNavigator = function (e) { i.j.control = e, e.timeRangeSelectedHandling = "JavaScript", e.onTimeRangeSelected = function () { var a, n, o; if (1 === e.api)
|
|
419
|
+
a = arguments[0], n = arguments[1], o = arguments[2];
|
|
420
|
+
else {
|
|
421
|
+
var r = arguments[0];
|
|
422
|
+
a = r.start, n = r.end, o = r.day;
|
|
423
|
+
} i.l = o, t(a, n, o); }; }, this.show = function (e) { var a, n; if (e.A)
|
|
424
|
+
n = e, a = n.C;
|
|
425
|
+
else if (a = e.m ? e : this.z(e), this.k === a)
|
|
426
|
+
return; if (i.onSelect) {
|
|
427
|
+
var o = {};
|
|
428
|
+
o.source = n ? n.B : null, o.target = a.control, i.onSelect(o);
|
|
429
|
+
} this.k = a, a.s(); var r = a.u(); i.j.updateMode(r), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay); }, this.z = function (e) { for (var t = 0; t < this.f.length; t++)
|
|
430
|
+
if (this.f[t].control === e)
|
|
431
|
+
return this.f[t]; return null; }, this.t = function () { for (var e = 0; e < this.f.length; e++)
|
|
432
|
+
this.f[e].p(); }, Object.defineProperty(this, "active", {
|
|
433
|
+
get: function () { return i.k; }
|
|
434
|
+
}), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
|
|
435
|
+
throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.G = null, this.H = function () { if (e)
|
|
436
|
+
for (var t in e)
|
|
437
|
+
if ("triggers" === t) {
|
|
438
|
+
var a = e.triggers || [];
|
|
439
|
+
a.forEach(function (e) { i.addTrigger(e.id, e.view); });
|
|
440
|
+
}
|
|
441
|
+
else
|
|
442
|
+
"navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t]; }, this.H();
|
|
443
|
+
}, DayPilot.Duration = function (e) { var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3; if (2 === arguments.length) {
|
|
374
444
|
var r = arguments[0], s = arguments[1];
|
|
375
445
|
if (!(r instanceof DayPilot.Date) && "string" != typeof r)
|
|
376
446
|
throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
|
|
@@ -396,8 +466,7 @@ if (function () {
|
|
|
396
466
|
if (!(t instanceof Date))
|
|
397
467
|
throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";
|
|
398
468
|
a = i ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
|
|
399
|
-
} var r = e(a); return n[r] ? n[r] : (n[r] = this, n[a] = this, o && r !== t && DayPilot.DateUtil.hasTzSpec(t) && (n[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return a; } }), Object.defineProperty(this, "value", { "value": r, "writable": !1, "enumerable": !0 })) : (this.ticks = a, this.value = r), DayPilot.Date.Config.legacyShowD && (this.d = new Date(a)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {},
|
|
400
|
-
DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) { if (!e)
|
|
469
|
+
} var r = e(a); return n[r] ? n[r] : (n[r] = this, n[a] = this, o && r !== t && DayPilot.DateUtil.hasTzSpec(t) && (n[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return a; } }), Object.defineProperty(this, "value", { "value": r, "writable": !1, "enumerable": !0 })) : (this.ticks = a, this.value = r), DayPilot.Date.Config.legacyShowD && (this.d = new Date(a)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) { if (!e)
|
|
401
470
|
return this; var t = new Date(this.ticks), i = t.getUTCFullYear(), a = t.getUTCMonth() + 1; if (e > 0) {
|
|
402
471
|
for (; e >= 12;)
|
|
403
472
|
e -= 12, i++;
|
|
@@ -550,42 +619,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
550
619
|
if (!t.resizingShadow)
|
|
551
620
|
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
552
621
|
var a = t.resizing.event, n = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
|
|
553
|
-
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.
|
|
622
|
+
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.I(a, n, o, r);
|
|
554
623
|
}
|
|
555
624
|
else if (t.moving) {
|
|
556
625
|
if (!t.movingShadow)
|
|
557
626
|
return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
|
|
558
627
|
var o = t.movingShadow.offsetTop, a = t.moving.event;
|
|
559
|
-
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.
|
|
628
|
+
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.J("_event_moving_source"));
|
|
560
629
|
var s = t.movingShadow.column;
|
|
561
|
-
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.
|
|
630
|
+
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.K(a, s, o, i);
|
|
562
631
|
}
|
|
563
632
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
564
633
|
var l = t.selecting.calendar;
|
|
565
634
|
t.selecting = !1;
|
|
566
635
|
var d = l.getSelection();
|
|
567
|
-
l.
|
|
636
|
+
l.L(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
|
|
568
637
|
}
|
|
569
638
|
else
|
|
570
639
|
t.selecting = !1; }, 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) {
|
|
571
640
|
var a = !1;
|
|
572
|
-
if (this instanceof t.Calendar && !this.
|
|
641
|
+
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
573
642
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
574
643
|
var n = this;
|
|
575
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.
|
|
576
|
-
i = i.parentNode; var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.
|
|
577
|
-
var o = this.
|
|
578
|
-
this.
|
|
579
|
-
if (
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
644
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.463-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
645
|
+
i = i.parentNode; var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
646
|
+
var o = this._;
|
|
647
|
+
this.T = function (e, t) {
|
|
648
|
+
if (e && 0 === e.indexOf("$$$")) {
|
|
649
|
+
if (!window.console)
|
|
650
|
+
throw "Error received from the server side: " + e;
|
|
651
|
+
return void console.log("Error received from the server side: " + e);
|
|
652
|
+
}
|
|
653
|
+
var e = JSON.parse(e);
|
|
654
|
+
if (e.CallBackRedirect)
|
|
655
|
+
return void (document.location.href = e.CallBackRedirect);
|
|
656
|
+
if ("None" === e.UpdateType)
|
|
657
|
+
return n.loadingStop(), void n.s();
|
|
658
|
+
if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ba()), e.Hashes)
|
|
659
|
+
for (var i in e.Hashes)
|
|
660
|
+
n.hashes[i] = e.Hashes[i];
|
|
661
|
+
n.events.list = e.Events, n.ca(), n.da(), "Full" === e.UpdateType && (n.ea(), n.fa(), n.ga(), n.ha()), n.s(), n.ia(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
662
|
+
}, this.ja = function () { return this.ka() / 36e5; }, this.la = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.ma = function () { return this.ka() / 18e5; }, this.ka = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.la() : 24, 60 * e * 60 * 1e3; }, this.na = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.oa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.pa = function (e) { var t = this, i = t.event; if (n.oa()) {
|
|
587
663
|
var a = {};
|
|
588
|
-
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.
|
|
664
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.qa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
589
665
|
return;
|
|
590
666
|
switch (n.eventClickHandling) {
|
|
591
667
|
case "CallBack":
|
|
@@ -598,7 +674,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
598
674
|
var o = i.client.contextMenu();
|
|
599
675
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
600
676
|
}
|
|
601
|
-
"function" == typeof n.onEventClicked && n.
|
|
677
|
+
"function" == typeof n.onEventClicked && n.qa.apply(function () { n.onEventClicked(a); });
|
|
602
678
|
}
|
|
603
679
|
else
|
|
604
680
|
switch (n.eventClickHandling) {
|
|
@@ -609,15 +685,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
609
685
|
n.eventClickCallBack(i);
|
|
610
686
|
break;
|
|
611
687
|
case "JavaScript": n.onEventClick(i);
|
|
612
|
-
} }, this.
|
|
688
|
+
} }, this.ra = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
613
689
|
return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
|
|
614
690
|
return !1; switch (n.eventRightClickHandling) {
|
|
615
691
|
case "ContextMenu":
|
|
616
692
|
var a = t.client.contextMenu();
|
|
617
693
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
618
|
-
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.
|
|
694
|
+
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.sa = function (e) { if (n.oa()) {
|
|
619
695
|
var t = {};
|
|
620
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
696
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.qa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
621
697
|
return;
|
|
622
698
|
switch (n.eventDeleteHandling) {
|
|
623
699
|
case "CallBack":
|
|
@@ -628,7 +704,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
628
704
|
break;
|
|
629
705
|
case "Update": n.events.remove(e);
|
|
630
706
|
}
|
|
631
|
-
"function" == typeof n.onEventDeleted && n.
|
|
707
|
+
"function" == typeof n.onEventDeleted && n.qa.apply(function () { n.onEventDeleted(t); });
|
|
632
708
|
}
|
|
633
709
|
else
|
|
634
710
|
switch (n.eventDeleteHandling) {
|
|
@@ -639,25 +715,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
639
715
|
n.eventDeleteCallBack(e);
|
|
640
716
|
break;
|
|
641
717
|
case "JavaScript": n.onEventDelete(e);
|
|
642
|
-
} }, this.eventResizeCallBack = function (e, t, i, a) {
|
|
643
|
-
if (!
|
|
644
|
-
|
|
645
|
-
if (!i)
|
|
646
|
-
throw "newEnd is null";
|
|
647
|
-
var n = {};
|
|
648
|
-
n.e = e, n.newStart = t, n.newEnd = i, this.q("EventResize", a, n);
|
|
649
|
-
}, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
718
|
+
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
719
|
+
throw "newStart is null"; if (!i)
|
|
720
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
650
721
|
throw "newStart is null"; if (!i)
|
|
651
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
652
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
722
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.P("EventResize", a, n); }, this.I = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
|
|
723
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
653
724
|
r = c.addTime(f + m), s = e.end();
|
|
654
725
|
}
|
|
655
726
|
else if ("bottom" === a) {
|
|
656
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
727
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
657
728
|
r = l, s = c.addTime(f + m);
|
|
658
|
-
} if (n.
|
|
729
|
+
} if (n.oa()) {
|
|
659
730
|
var p = {};
|
|
660
|
-
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.
|
|
731
|
+
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.qa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
661
732
|
return;
|
|
662
733
|
switch (n.eventResizeHandling) {
|
|
663
734
|
case "PostBack":
|
|
@@ -668,7 +739,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
668
739
|
break;
|
|
669
740
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
670
741
|
}
|
|
671
|
-
"function" == typeof n.onEventResized && n.
|
|
742
|
+
"function" == typeof n.onEventResized && n.qa.apply(function () { n.onEventResized(p); });
|
|
672
743
|
}
|
|
673
744
|
else
|
|
674
745
|
switch (n.eventResizeHandling) {
|
|
@@ -681,11 +752,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
681
752
|
case "JavaScript": n.onEventResize(e, r, s);
|
|
682
753
|
} }, this.eventMovePostBack = function (e, t, i, a, n) { if (!t)
|
|
683
754
|
throw "newStart is null"; if (!i)
|
|
684
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
755
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.P("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
685
756
|
throw "newStart is null"; if (!i)
|
|
686
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
757
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ta[t], m = f.id, p = f.start.getTime(), v = new Date; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.oa()) {
|
|
687
758
|
var b = {};
|
|
688
|
-
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.
|
|
759
|
+
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.qa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
689
760
|
return;
|
|
690
761
|
switch (n.eventMoveHandling) {
|
|
691
762
|
case "PostBack":
|
|
@@ -696,7 +767,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
696
767
|
break;
|
|
697
768
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
698
769
|
}
|
|
699
|
-
"function" == typeof n.onEventMoved && n.
|
|
770
|
+
"function" == typeof n.onEventMoved && n.qa.apply(function () { n.onEventMoved(b); });
|
|
700
771
|
}
|
|
701
772
|
else
|
|
702
773
|
switch (n.eventMoveHandling) {
|
|
@@ -707,9 +778,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
707
778
|
n.eventMoveCallBack(e, y, g, f.id);
|
|
708
779
|
break;
|
|
709
780
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
710
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.
|
|
781
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.oa()) {
|
|
711
782
|
var a = {};
|
|
712
|
-
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.
|
|
783
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.qa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
713
784
|
return;
|
|
714
785
|
switch (n.timeRangeSelectedHandling) {
|
|
715
786
|
case "PostBack":
|
|
@@ -717,7 +788,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
717
788
|
break;
|
|
718
789
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
719
790
|
}
|
|
720
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
791
|
+
"function" == typeof n.onTimeRangeSelected && n.qa.apply(function () { n.onTimeRangeSelected(a); });
|
|
721
792
|
}
|
|
722
793
|
else
|
|
723
794
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -728,26 +799,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
728
799
|
n.timeRangeSelectedCallBack(e, t);
|
|
729
800
|
break;
|
|
730
801
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
731
|
-
} }, this.
|
|
802
|
+
} }, this.ua = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
732
803
|
var i = e.which;
|
|
733
804
|
if (1 === i || 0 === i)
|
|
734
|
-
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.
|
|
735
|
-
} }, this.
|
|
805
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.va(), !1;
|
|
806
|
+
} }, this.va = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
|
|
736
807
|
return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
|
|
737
808
|
if (t[i] === e)
|
|
738
|
-
return i; return -1; }(), o = n.
|
|
809
|
+
return i; return -1; }(), o = n.ta[a]; if (o) {
|
|
739
810
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () { if (n.nav.activeSelection)
|
|
740
|
-
return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = n.
|
|
741
|
-
c.className = n.
|
|
742
|
-
} }(); }, this.
|
|
811
|
+
return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = n.J("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e; }();
|
|
812
|
+
c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
813
|
+
} }(); }, this.wa = function (e) { if ("undefined" != typeof t && t.selecting) {
|
|
743
814
|
var i = DayPilot.mc(e);
|
|
744
|
-
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.
|
|
745
|
-
} }, 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.
|
|
815
|
+
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va());
|
|
816
|
+
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.xa = function (e) { if (e < 0)
|
|
746
817
|
return null; for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
747
818
|
if (t += i[a].offsetWidth, e < t)
|
|
748
819
|
return a;
|
|
749
|
-
} return null; }, this.
|
|
750
|
-
return null; e.x = n.
|
|
820
|
+
} return null; }, this.ya = {}, this.ya.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
|
|
821
|
+
return null; e.x = n.xa(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
|
|
751
822
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
752
823
|
i = JSON.parse(o.responseText);
|
|
753
824
|
}
|
|
@@ -758,11 +829,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
758
829
|
var s = {};
|
|
759
830
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
760
831
|
return;
|
|
761
|
-
n.columns.list = i, n.
|
|
762
|
-
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.
|
|
763
|
-
var i = this.
|
|
764
|
-
this.
|
|
765
|
-
} }, this.
|
|
832
|
+
n.columns.list = i, n.za && n.update();
|
|
833
|
+
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.ba = function () { var e; e = "Resources" !== n.viewType ? this.Aa() : n.columns.list, this.ta = []; for (var t = 0; t < e.length; t++) {
|
|
834
|
+
var i = this.Ba(e[t]);
|
|
835
|
+
this.ta.push(i);
|
|
836
|
+
} }, this.Ba = function (e) { var t = {}; return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
|
|
766
837
|
var i = this.blocks[t];
|
|
767
838
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
768
839
|
return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
|
|
@@ -782,7 +853,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
782
853
|
var o = this[n];
|
|
783
854
|
if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
|
|
784
855
|
return !1;
|
|
785
|
-
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.
|
|
856
|
+
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Aa = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
|
|
786
857
|
case "Day":
|
|
787
858
|
i = 1;
|
|
788
859
|
break;
|
|
@@ -794,16 +865,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
794
865
|
var r = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, s = {};
|
|
795
866
|
s.start = t.addDays(a), s.name = s.start.toString(r, o.locale()), e.push(s);
|
|
796
867
|
} return e; }, this.visibleStart = function () { if ("Resources" === n.viewType) {
|
|
797
|
-
if (0 === n.
|
|
868
|
+
if (0 === n.ta.length)
|
|
798
869
|
return DayPilot.Date.today();
|
|
799
|
-
var e = n.
|
|
870
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
800
871
|
return new DayPilot.Date(t);
|
|
801
|
-
} return this.
|
|
802
|
-
if (0 === n.
|
|
872
|
+
} return this.ta[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
|
|
873
|
+
if (0 === n.ta.length)
|
|
803
874
|
return DayPilot.Date.today().addDays(1);
|
|
804
|
-
var e = n.
|
|
875
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
805
876
|
return new DayPilot.Date(t).addDays(1);
|
|
806
|
-
} var t = this.
|
|
877
|
+
} var t = this.ta.length - 1; return this.ta[t].start.addDays(1); }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () { if (this.elements.events)
|
|
807
878
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
808
879
|
var t = this.elements.events[e], i = t.event;
|
|
809
880
|
if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
|
|
@@ -811,7 +882,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
811
882
|
a.onmousedown = null, a.onmousemove = null, a.onclick = null;
|
|
812
883
|
}
|
|
813
884
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
814
|
-
} this.elements.events = []; }, this.
|
|
885
|
+
} this.elements.events = []; }, this.Ca = function (e) { var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div"); o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.pa, DayPilot.re(o, "contextmenu", this.ra), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) { var a = 5; if ("undefined" != typeof t) {
|
|
815
886
|
var r = DayPilot.mo3(o, i);
|
|
816
887
|
if (r && !t.resizing && !t.moving) {
|
|
817
888
|
o.deleteIcon && (o.deleteIcon.style.display = "");
|
|
@@ -822,29 +893,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
822
893
|
if (1 === a && e.client.moveEnabled()) {
|
|
823
894
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
824
895
|
var o = t.moving.helper = {};
|
|
825
|
-
o.oldColumn = n.
|
|
896
|
+
o.oldColumn = n.ta[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
826
897
|
var r = DayPilot.mo3(this, i);
|
|
827
898
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
828
899
|
}
|
|
829
900
|
}
|
|
830
901
|
else
|
|
831
|
-
t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var r = document.createElement("div"); if (r.setAttribute("unselectable", "on"), r.className = n.
|
|
902
|
+
t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var r = document.createElement("div"); if (r.setAttribute("unselectable", "on"), r.className = n.J("_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, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (r.style.filter = "")), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
|
|
832
903
|
var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
|
|
833
|
-
c.setAttribute("unselectable", "on"), c.className = this.
|
|
904
|
+
c.setAttribute("unselectable", "on"), c.className = this.J("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
|
|
834
905
|
var u = document.createElement("div");
|
|
835
|
-
u.setAttribute("unselectable", "on"), u.className = this.
|
|
906
|
+
u.setAttribute("unselectable", "on"), u.className = this.J("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
|
|
836
907
|
} if (e.client.deleteEnabled()) {
|
|
837
908
|
var h = document.createElement("div");
|
|
838
|
-
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.
|
|
909
|
+
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.sa(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
|
|
839
910
|
} var f = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
840
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
841
|
-
} n.elements.events.push(o); }, this.
|
|
911
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
|
|
912
|
+
} n.elements.events.push(o); }, this.Da = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
842
913
|
try {
|
|
843
914
|
var a = e.childNodes[i];
|
|
844
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
915
|
+
1 === a.nodeType && (a.unselectable = "on", this.Da(a));
|
|
845
916
|
}
|
|
846
|
-
catch (e) { } }, this.
|
|
847
|
-
var t = this.
|
|
917
|
+
catch (e) { } }, this.ia = function () { for (var e = 0; e < this.ta.length; e++) {
|
|
918
|
+
var t = this.ta[e];
|
|
848
919
|
if (t.blocks)
|
|
849
920
|
for (var i = 0; i < t.blocks.length; i++)
|
|
850
921
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -852,40 +923,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
852
923
|
var s = o[r];
|
|
853
924
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
854
925
|
var l = n === a.lines.length - 1;
|
|
855
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
926
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
|
|
856
927
|
}
|
|
857
|
-
} }, this.
|
|
928
|
+
} }, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ia(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ia(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ja()), n.appendChild(this.Ka()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ja = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ka = function () { var e = document.createElement("table"); e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e; for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
858
929
|
var r = a.insertCell(-1);
|
|
859
930
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
860
931
|
var s = document.createElement("div");
|
|
861
932
|
s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
862
933
|
var l = document.createElement("div");
|
|
863
934
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
864
|
-
} return e; }, this.
|
|
865
|
-
this.
|
|
935
|
+
} return e; }, this.Ia = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = n.ja(), i = 0; i < t; i++)
|
|
936
|
+
this.La(e, i); return e; }, this.La = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () { switch (this.heightSpec) {
|
|
866
937
|
case "Full": return 48 * this.cellHeight;
|
|
867
938
|
case "BusinessHours":
|
|
868
|
-
var e = this.
|
|
939
|
+
var e = this.la();
|
|
869
940
|
return e * this.cellHeight * 2;
|
|
870
941
|
case "BusinessHoursNoScroll":
|
|
871
|
-
var e = this.
|
|
942
|
+
var e = this.la();
|
|
872
943
|
return e * this.cellHeight * 2;
|
|
873
944
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
874
|
-
} }, this.
|
|
945
|
+
} }, this.Ma = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
|
|
875
946
|
e.innerHTML = "";
|
|
876
|
-
var t = this.
|
|
947
|
+
var t = this.Na();
|
|
877
948
|
e.appendChild(t), n.nav.corner = t;
|
|
878
|
-
} }, this.
|
|
949
|
+
} }, this.Ga = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Na(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
|
|
879
950
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
880
951
|
var r = document.createElement("div");
|
|
881
|
-
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.
|
|
952
|
+
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
|
|
882
953
|
var s = document.createElement("div");
|
|
883
|
-
s.className = this.
|
|
884
|
-
} return e.appendChild(t), e; }, this.
|
|
954
|
+
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
955
|
+
} return e.appendChild(t), e; }, this.Na = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
885
956
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
886
957
|
var n = i.cells[a];
|
|
887
958
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
888
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
959
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.fa = function () { var e = this.nav.main, i = 18e5, a = this.ma(), o = n.ta; for (e && this.W(); e && e.rows && e.rows.length > 0;)
|
|
889
960
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
890
961
|
this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0); for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
|
|
891
962
|
var c = l.insertCell(-1);
|
|
@@ -898,16 +969,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
898
969
|
var l = e.insertRow(-1);
|
|
899
970
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
900
971
|
for (var d = 0; d < r; d++) {
|
|
901
|
-
var m = this.
|
|
902
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
972
|
+
var m = this.ta[d], c = l.insertCell(-1);
|
|
973
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
903
974
|
var u = document.createElement("div");
|
|
904
|
-
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.
|
|
905
|
-
this.
|
|
975
|
+
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
976
|
+
this.Oa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
|
|
906
977
|
var p = document.createElement("div");
|
|
907
|
-
p.setAttribute("unselectable", "on"), p.className = this.
|
|
978
|
+
p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
|
|
908
979
|
}
|
|
909
980
|
} e.root = this, n.nav.scrollable.onmousemove = function (e) { var i = n.nav.scrollable; n.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
|
|
910
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
981
|
+
t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
|
|
911
982
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
912
983
|
if ("bottom" === t.resizing.dpBorder) {
|
|
913
984
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -923,48 +994,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
923
994
|
}
|
|
924
995
|
}
|
|
925
996
|
else if (t.moving) {
|
|
926
|
-
if (t.movingShadow || (t.movingShadow = n.
|
|
997
|
+
if (t.movingShadow || (t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !n.coords)
|
|
927
998
|
return;
|
|
928
999
|
var o = n.cellHeight, r = 1, u = t.moveOffsetY;
|
|
929
1000
|
u || (u = o / 2);
|
|
930
1001
|
var c = Math.floor((n.coords.y - u - r + o / 2) / o) * o + r;
|
|
931
1002
|
c < r && (c = r);
|
|
932
1003
|
var h = n.nav.events, d = n.nav.main.clientHeight, f = parseInt(t.movingShadow.style.height);
|
|
933
|
-
c + f > d && (c = d - f), DayPilot.Util.addClass(t.moving, n.
|
|
1004
|
+
c + f > d && (c = d - f), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
934
1005
|
var m = h.clientWidth / h.rows[0].cells.length, p = Math.floor((n.coords.x - 45) / m);
|
|
935
1006
|
p < 0 && (p = 0), p < h.rows[0].cells.length && p >= 0 && t.movingShadow.column !== p && (t.movingShadow.column = p, t.moveShadow(h.rows[0].cells[p]));
|
|
936
1007
|
}
|
|
937
1008
|
else if (t.selecting) {
|
|
938
|
-
var a = DayPilot.mc(e), v = n.
|
|
939
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
940
|
-
} }, n.nav.scrollable.style.display = ""; }, this.
|
|
1009
|
+
var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
|
|
1010
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
|
|
1011
|
+
} }, n.nav.scrollable.style.display = ""; }, this.Oa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () { var e = this.nav.header; if (e && e.rows)
|
|
941
1012
|
for (var t = 0; t < e.rows.length; t++)
|
|
942
1013
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
943
1014
|
var n = i.cells[a];
|
|
944
1015
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
945
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1016
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.Pa = function (e) { for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
|
|
946
1017
|
var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
|
|
947
|
-
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.
|
|
1018
|
+
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Qa;
|
|
948
1019
|
var l = e ? document.createElement("div") : s.firstChild;
|
|
949
1020
|
if (e) {
|
|
950
|
-
l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.
|
|
1021
|
+
l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = this.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap");
|
|
951
1022
|
var d = document.createElement("div");
|
|
952
|
-
d.className = n.
|
|
1023
|
+
d.className = n.J("_colheader_inner"), d.unselectable = "on", l.appendChild(d), s.appendChild(l);
|
|
953
1024
|
}
|
|
954
1025
|
r.toolTip && (d.title = r.toolTip);
|
|
955
1026
|
var d = l.firstChild;
|
|
956
|
-
d.innerHTML = n.
|
|
957
|
-
} }, this.
|
|
958
|
-
var t = this.data, i = n.
|
|
1027
|
+
d.innerHTML = n.Ra(r.name, r.html);
|
|
1028
|
+
} }, this.Qa = function (e) { if ("Disabled" !== n.headerClickHandling) {
|
|
1029
|
+
var t = this.data, i = n.Sa(t), a = {};
|
|
959
1030
|
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);
|
|
960
|
-
} }, this.
|
|
961
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.
|
|
1031
|
+
} }, this.Sa = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ta = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ea = function () { var e = this.nav.header, t = !0, i = this.ta; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1032
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Pa(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
962
1033
|
t = e.data;
|
|
963
1034
|
else {
|
|
964
1035
|
if ("object" != typeof e)
|
|
965
1036
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
966
1037
|
t = e;
|
|
967
|
-
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.
|
|
1038
|
+
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.qa.notify(); }, this.events.find = function (e) { if (!n.events.list)
|
|
968
1039
|
return null; for (var t = 0; t < n.events.list.length; t++) {
|
|
969
1040
|
var i = n.events.list[t];
|
|
970
1041
|
if (i.id === e)
|
|
@@ -977,16 +1048,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
977
1048
|
var i = DayPilot.indexOf(n.events.list, t.data);
|
|
978
1049
|
n.events.list.splice(i, 1, e);
|
|
979
1050
|
}
|
|
980
|
-
} n.update(), n.
|
|
981
|
-
t
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1051
|
+
} n.update(), n.qa.notify(); }, this.events.remove = function (e) {
|
|
1052
|
+
var t;
|
|
1053
|
+
if (e instanceof DayPilot.Event)
|
|
1054
|
+
t = e.data;
|
|
1055
|
+
else if ("object" == typeof e) {
|
|
1056
|
+
var i = n.events.find(e.id);
|
|
1057
|
+
i && (t = i.data);
|
|
1058
|
+
}
|
|
1059
|
+
else if ("string" == typeof e || "number" == typeof e) {
|
|
1060
|
+
var i = n.events.find(e);
|
|
1061
|
+
i && (t = i.data);
|
|
1062
|
+
}
|
|
1063
|
+
var a = DayPilot.indexOf(n.events.list, t);
|
|
1064
|
+
n.events.list.splice(a, 1), n.update(), n.qa.notify();
|
|
1065
|
+
}, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
990
1066
|
i = JSON.parse(o.responseText);
|
|
991
1067
|
}
|
|
992
1068
|
catch (e) {
|
|
@@ -996,24 +1072,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
996
1072
|
var s = {};
|
|
997
1073
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
998
1074
|
return;
|
|
999
|
-
n.events.list = i, n.
|
|
1075
|
+
n.events.list = i, n.za && n.update();
|
|
1000
1076
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1001
1077
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
|
|
1002
1078
|
else {
|
|
1003
1079
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1004
1080
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1005
|
-
} }, this.
|
|
1006
|
-
n.nav.top.className = n.
|
|
1081
|
+
} }, this.Za = function () { if (n.nav.top.className !== n.J("_main")) {
|
|
1082
|
+
n.nav.top.className = n.J("_main");
|
|
1007
1083
|
var e = n.nav.corner;
|
|
1008
|
-
e.className = n.
|
|
1084
|
+
e.className = n.J("_corner"), e.firstChild.className = n.J("_corner_inner");
|
|
1009
1085
|
var t = n.nav.cornerRight;
|
|
1010
|
-
t && (t.className = n.
|
|
1011
|
-
} }, this.update = function (e) { if (n
|
|
1012
|
-
n.
|
|
1013
|
-
n.
|
|
1014
|
-
} }, this.
|
|
1086
|
+
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1087
|
+
} }, this.update = function (e) { if (n.$a(e), this.za) {
|
|
1088
|
+
n._a(), n.V(), n.nav.top.style.cursor = "auto";
|
|
1089
|
+
n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Ma(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1090
|
+
} }, this.bb = null, this.$a = function (e) { if (e) {
|
|
1015
1091
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1016
|
-
this.
|
|
1092
|
+
this.bb = t;
|
|
1017
1093
|
for (var i in e)
|
|
1018
1094
|
if (t[i]) {
|
|
1019
1095
|
var a = t[i];
|
|
@@ -1021,147 +1097,143 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1021
1097
|
}
|
|
1022
1098
|
else
|
|
1023
1099
|
n[i] = e[i];
|
|
1024
|
-
} }, this.
|
|
1100
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
1025
1101
|
var i = e[t];
|
|
1026
1102
|
i.postInit && i.postInit();
|
|
1027
|
-
} }, this.
|
|
1103
|
+
} }, this.db = function () { if (this.id && this.id.tagName)
|
|
1028
1104
|
this.nav.top = this.id;
|
|
1029
1105
|
else {
|
|
1030
1106
|
if ("string" != typeof this.id)
|
|
1031
1107
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1032
1108
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1033
1109
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1034
|
-
} }, this.
|
|
1110
|
+
} }, this.eb = {}, this.eb.events = [], this.fb = function (e) { var t = this.eb.events, i = this.events.list[e], a = {}; for (var n in i)
|
|
1035
1111
|
a[n] = i[n]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1036
1112
|
var o = {};
|
|
1037
1113
|
o.data = a, this.onBeforeEventRender(o);
|
|
1038
|
-
} t[e] = a; }, this.
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
if (!
|
|
1069
|
-
var
|
|
1070
|
-
if (
|
|
1071
|
-
var
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1081
|
-
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1082
|
-
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.Ka.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1083
|
-
}
|
|
1114
|
+
} t[e] = a; }, this.ca = function () { var e = this.events.list; if (n.eb.events = [], e) {
|
|
1115
|
+
if (!DayPilot.isArray(e))
|
|
1116
|
+
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1117
|
+
var t = e.length, i = 864e5;
|
|
1118
|
+
this.cache.pixels = {};
|
|
1119
|
+
var a = [];
|
|
1120
|
+
this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
|
|
1121
|
+
for (var o = 0; o < t; o++) {
|
|
1122
|
+
var r = e[o], s = r;
|
|
1123
|
+
if ("object" != typeof s)
|
|
1124
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
1125
|
+
if (!s.start)
|
|
1126
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
1127
|
+
if (!s.end)
|
|
1128
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
1129
|
+
if (s instanceof DayPilot.Event)
|
|
1130
|
+
throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
|
|
1131
|
+
r.start = new DayPilot.Date(r.start), r.end = new DayPilot.Date(r.end);
|
|
1132
|
+
}
|
|
1133
|
+
if ("function" == typeof this.onBeforeEventRender)
|
|
1134
|
+
for (var o = 0; o < t; o++)
|
|
1135
|
+
this.fb(o);
|
|
1136
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1137
|
+
var l = {};
|
|
1138
|
+
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1139
|
+
var d = this.ta[o];
|
|
1140
|
+
d.events = [], d.lines = [], d.blocks = [];
|
|
1141
|
+
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1142
|
+
if (!a[m]) {
|
|
1143
|
+
var r = e[m], p = r.start, v = r.end, y = p.getTime(), g = v.getTime();
|
|
1144
|
+
if (!(g < y)) {
|
|
1145
|
+
var b = !(g <= u || y >= f);
|
|
1146
|
+
if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
|
|
1147
|
+
var D = new DayPilot.Event(r, n);
|
|
1148
|
+
D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
|
|
1149
|
+
var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
|
|
1150
|
+
if (C === P && (x.cut || w.cut))
|
|
1151
|
+
continue;
|
|
1152
|
+
var _ = w.boxBottom;
|
|
1153
|
+
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1154
|
+
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1155
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.eb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1084
1156
|
}
|
|
1085
1157
|
}
|
|
1086
|
-
}
|
|
1087
|
-
for (var o = 0; o < this.Y.length; o++) {
|
|
1088
|
-
var d = this.Y[o];
|
|
1089
|
-
d.events.sort(this.Ma);
|
|
1090
|
-
for (var m = 0; m < d.events.length; m++) {
|
|
1091
|
-
var r = d.events[m];
|
|
1092
|
-
d.putIntoBlock(r);
|
|
1093
1158
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1159
|
+
}
|
|
1160
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1161
|
+
var d = this.ta[o];
|
|
1162
|
+
d.events.sort(this.gb);
|
|
1163
|
+
for (var m = 0; m < d.events.length; m++) {
|
|
1164
|
+
var r = d.events[m];
|
|
1165
|
+
d.putIntoBlock(r);
|
|
1166
|
+
}
|
|
1167
|
+
for (var m = 0; m < d.blocks.length; m++) {
|
|
1168
|
+
var k = d.blocks[m];
|
|
1169
|
+
k.events.sort(this.gb);
|
|
1170
|
+
for (var S = 0; S < k.events.length; S++) {
|
|
1171
|
+
var r = k.events[S];
|
|
1172
|
+
k.putIntoLine(r);
|
|
1101
1173
|
}
|
|
1102
1174
|
}
|
|
1103
1175
|
}
|
|
1104
|
-
}, this.
|
|
1176
|
+
} }, this.gb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1105
1177
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
|
|
1106
|
-
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.
|
|
1178
|
+
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.hb(r), c.boxTop = this.hb(l), c.boxBottom = this.hb(d), this.cache.pixels[a + "_" + i] = c, c; }, this.hb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this._a = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.da = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ha = function () { var e = this.Fa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { n.qa.scope && n.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.Va = function () { if (n.nav.scroll) {
|
|
1107
1179
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1108
|
-
n.
|
|
1109
|
-
} }, this.
|
|
1180
|
+
n.Wa.scrollHour = t;
|
|
1181
|
+
} }, this.ab = function () { var e = 0; n.Wa.scrollHour ? e = 2 * n.cellHeight * n.Wa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.ib = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.jb = function () { this._a(), this.ba(), this.Ea(), this.ea(), this.fa(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.kb(), this.R("Init"); }, this.Wa = {}, this.lb = function () { this.Wa.themes = [], this.Wa.themes.push(this.theme || this.cssClassPrefix); }, this.mb = function () { for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
|
|
1110
1182
|
var i = e[t];
|
|
1111
1183
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1112
|
-
} this.
|
|
1184
|
+
} this.Wa.themes = []; }, this.nb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1113
1185
|
var e = {};
|
|
1114
1186
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1115
|
-
} }, this.
|
|
1116
|
-
this.
|
|
1187
|
+
} }, this.ob = function () { if ("function" == typeof this.onInit && !this.pb) {
|
|
1188
|
+
this.pb = !0;
|
|
1117
1189
|
var e = {};
|
|
1118
1190
|
this.onInit(e);
|
|
1119
|
-
} }, this.
|
|
1191
|
+
} }, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ra = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ra, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
|
|
1120
1192
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
1121
1193
|
var i = new DayPilot.Calendar(this.id);
|
|
1122
1194
|
this.daypilot = i;
|
|
1123
1195
|
for (name in e)
|
|
1124
1196
|
i[name] = e[name];
|
|
1125
1197
|
i.init(), t || (t = i);
|
|
1126
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.
|
|
1198
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
1127
1199
|
(0, e(r).assign)(t, n);
|
|
1128
1200
|
} for (var s in a)
|
|
1129
1201
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1130
|
-
n[t] = e[t]; n.update(), n.
|
|
1202
|
+
n[t] = e[t]; n.update(), n.ob(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
|
|
1131
1203
|
}
|
|
1132
1204
|
}(), "undefined" == typeof DayPilot)
|
|
1133
1205
|
var DayPilot = {};
|
|
1134
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.
|
|
1206
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.2.463-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1135
1207
|
for (var t in e)
|
|
1136
|
-
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1208
|
+
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.qb && (this.qb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.sb(this.date); }, this.rb = function () { var e = this.B(); if (!e)
|
|
1137
1209
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1138
1210
|
return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
|
|
1139
1211
|
if (a)
|
|
1140
1212
|
return a;
|
|
1141
1213
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1142
|
-
} return a; }, this.
|
|
1214
|
+
} return a; }, this.sb = function (e) { var t = this.B(); if (t) {
|
|
1143
1215
|
var a = e.toString(i.pattern, i.locale);
|
|
1144
1216
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1145
|
-
} }, this.
|
|
1146
|
-
var e = this
|
|
1147
|
-
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.
|
|
1217
|
+
} }, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.qb; } }), this.show = function () { if (!this.qb) {
|
|
1218
|
+
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1219
|
+
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.tb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.sb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1148
1220
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1149
1221
|
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);
|
|
1150
1222
|
var l = document.createElement("div");
|
|
1151
1223
|
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;
|
|
1152
|
-
var d = i.
|
|
1153
|
-
if (a.startDate = d, a.
|
|
1224
|
+
var d = i.rb() || (new DayPilot.Date).getDatePart();
|
|
1225
|
+
if (a.startDate = d, a.tb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1154
1226
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1155
1227
|
s.style.left = c + "px";
|
|
1156
1228
|
}
|
|
1157
|
-
this.
|
|
1229
|
+
this.qb = !0, this.onShow && this.onShow();
|
|
1158
1230
|
} }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
|
|
1159
1231
|
var DayPilot = {};
|
|
1160
1232
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1161
1233
|
"use strict";
|
|
1162
1234
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1163
1235
|
var e = function () { }, t = {};
|
|
1164
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2023.
|
|
1236
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2023.2.463-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.ub.submenu = null, null !== t.mouse) {
|
|
1165
1237
|
a.cssOnly || (a.cssOnly = !0);
|
|
1166
1238
|
var s = null;
|
|
1167
1239
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1170,15 +1242,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1170
1242
|
return;
|
|
1171
1243
|
}
|
|
1172
1244
|
var d = document.createElement("div");
|
|
1173
|
-
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.
|
|
1245
|
+
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.vb("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)
|
|
1174
1246
|
throw "No menu items defined.";
|
|
1175
1247
|
if (this.showMenuTitle) {
|
|
1176
1248
|
var c = document.createElement("div");
|
|
1177
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1249
|
+
c.innerHTML = this.menuTitle, c.className = this.vb("title"), d.appendChild(c);
|
|
1178
1250
|
}
|
|
1179
1251
|
for (var u = 0; u < this.items.length; u++) {
|
|
1180
1252
|
var h = this.items[u], f = document.createElement("div");
|
|
1181
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1253
|
+
if (DayPilot.Util.addClass(f, this.vb("item")), h.items && (DayPilot.Util.addClass(f, this.vb("item_haschildren")), DayPilot.Util.addClass(d, this.vb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1182
1254
|
if ("-" === h.text) {
|
|
1183
1255
|
var m = document.createElement("div");
|
|
1184
1256
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1186,7 +1258,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1186
1258
|
else {
|
|
1187
1259
|
var p = document.createElement("a");
|
|
1188
1260
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1189
|
-
DayPilot.Util.addClass(p, a.
|
|
1261
|
+
DayPilot.Util.addClass(p, a.vb("item_disabled"));
|
|
1190
1262
|
else {
|
|
1191
1263
|
if (h.onclick || h.onClick) {
|
|
1192
1264
|
p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
|
|
@@ -1202,7 +1274,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1202
1274
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
1203
1275
|
}
|
|
1204
1276
|
if (h.items && !h.disabled) {
|
|
1205
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
1277
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.wb(e, t); }; };
|
|
1206
1278
|
p.ontouchend = y(h, p);
|
|
1207
1279
|
}
|
|
1208
1280
|
if (h.onclick)
|
|
@@ -1225,13 +1297,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1225
1297
|
}
|
|
1226
1298
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
1227
1299
|
var g = document.createElement("span");
|
|
1228
|
-
if (g.className = a.
|
|
1300
|
+
if (g.className = a.vb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
1229
1301
|
var b = document.createElement("img");
|
|
1230
1302
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
1231
1303
|
}
|
|
1232
1304
|
if (h.icon) {
|
|
1233
1305
|
var D = document.createElement("span");
|
|
1234
|
-
D.className = a.
|
|
1306
|
+
D.className = a.vb("item_icon");
|
|
1235
1307
|
var x = document.createElement("i");
|
|
1236
1308
|
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
1237
1309
|
}
|
|
@@ -1241,20 +1313,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1241
1313
|
var P = document.createElementNS(w, "use");
|
|
1242
1314
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
1243
1315
|
var _ = document.createElement("span");
|
|
1244
|
-
_.className = a.
|
|
1316
|
+
_.className = a.vb("item_symbol"), _.style.position = "absolute", _.style.top = "0px", _.style.left = "0px", _.appendChild(C), p.appendChild(_);
|
|
1245
1317
|
}
|
|
1246
1318
|
var k = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
|
|
1247
1319
|
if (o.parent === n)
|
|
1248
1320
|
return;
|
|
1249
1321
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
1250
|
-
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
1322
|
+
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.wb(n, i); }, 300)); }; };
|
|
1251
1323
|
p.onmouseover = k(h, p), f.appendChild(p);
|
|
1252
1324
|
}
|
|
1253
1325
|
d.appendChild(f);
|
|
1254
1326
|
}
|
|
1255
1327
|
}
|
|
1256
1328
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1257
|
-
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.
|
|
1329
|
+
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.ub.visible = !0, a.ub.source = i, d.style.display = "";
|
|
1258
1330
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
1259
1331
|
d.style.display = "none";
|
|
1260
1332
|
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
@@ -1277,30 +1349,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1277
1349
|
d.style.left = e + "px"; }(), o.parentLink) {
|
|
1278
1350
|
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), O = z.x + N.offsetWidth, U = z.y - I;
|
|
1279
1351
|
O + T > H && (O = Math.max(0, z.x - T));
|
|
1280
|
-
var
|
|
1281
|
-
U + M -
|
|
1352
|
+
var R = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1353
|
+
U + M - R > A && (U = Math.max(0, A - M + R)), d.style.left = O + "px", d.style.top = U + "px";
|
|
1282
1354
|
}
|
|
1283
|
-
d.style.display = "", this.addShadow(d), this.
|
|
1284
|
-
} }, this.
|
|
1355
|
+
d.style.display = "", this.addShadow(d), this.ub.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
1356
|
+
} }, this.wb = function (e, t) { var i = e, n = t.source; if ((!a.ub.submenu || a.ub.submenu.item !== e) && (a.ub.submenu && a.ub.submenu.item !== e && (DayPilot.Util.removeClass(a.ub.submenu.link.parentNode, a.vb("item_haschildren_active")), a.ub.submenu.menu.hide(), a.ub.submenu = null), e.items)) {
|
|
1285
1357
|
var o = a.cloneOptions();
|
|
1286
|
-
o.items = e.items, a.
|
|
1287
|
-
} }, this.
|
|
1358
|
+
o.items = e.items, a.ub.submenu = {}, a.ub.submenu.menu = new DayPilot.Menu(o), a.ub.submenu.menu.xb = a, a.ub.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.ub.submenu.item = e, a.ub.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.vb("item_haschildren_active"));
|
|
1359
|
+
} }, this.vb = 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) { e = e || {}, this.ub.submenu && this.ub.submenu.menu.hide(); var i = t.waitingSubmenu; if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.ub.div && this.ub.div.parentNode === document.body && document.body.removeChild(this.ub.div), n && (DayPilot.de(n), n = null), a.ub.visible = !1, a.ub.source = null, a.xb && e.hideParent && a.xb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1288
1360
|
var o = {};
|
|
1289
1361
|
this.onHide(o);
|
|
1290
1362
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
|
|
1291
1363
|
for (var r in o)
|
|
1292
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.
|
|
1293
|
-
this[a] = t[a]; this.
|
|
1294
|
-
i.
|
|
1364
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.za = !1; for (var a in t)
|
|
1365
|
+
this[a] = t[a]; this.yb = function (e) { return this.theme + "_" + e; }, this.s = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.yb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.yb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
|
|
1366
|
+
i.zb();
|
|
1295
1367
|
else if (e.children)
|
|
1296
|
-
return void i.
|
|
1368
|
+
return void i.Ab(a); if ("function" == typeof e.onClick) {
|
|
1297
1369
|
var n = {};
|
|
1298
1370
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
1299
|
-
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
1300
|
-
i.
|
|
1371
|
+
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Ab(a); }, t.appendChild(a), i.elements.items.push(a); }); }, this.zb = function () { var e = i.yb("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.Bb = function (e) { return !!i.active && i.active.item === e.data; }, this.Ab = function (e) { if (!i.Bb(e)) {
|
|
1372
|
+
i.zb();
|
|
1301
1373
|
var t = e.data, a = i.active = {};
|
|
1302
1374
|
a.item = t, a.div = e;
|
|
1303
|
-
var n = i.
|
|
1375
|
+
var n = i.yb("item_active");
|
|
1304
1376
|
DayPilot.Util.addClass(e, n);
|
|
1305
1377
|
var o = DayPilot.abs(e);
|
|
1306
1378
|
if (t.children) {
|
|
@@ -1309,11 +1381,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1309
1381
|
"right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
|
|
1310
1382
|
}
|
|
1311
1383
|
DayPilot.MenuBar.active = i;
|
|
1312
|
-
} }, this.init = function () { return this.
|
|
1384
|
+
} }, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.zb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
|
|
1313
1385
|
return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1314
1386
|
var i = DayPilot.Menu.active;
|
|
1315
1387
|
if (i) {
|
|
1316
|
-
var a = i.
|
|
1388
|
+
var a = i.ub.source;
|
|
1317
1389
|
a && a.calendar === e.calendar && t.menuClean();
|
|
1318
1390
|
}
|
|
1319
1391
|
}
|
|
@@ -1354,24 +1426,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1354
1426
|
throw "No CSS registration method found";
|
|
1355
1427
|
e.sheet.addRule(i, a, n);
|
|
1356
1428
|
} }, i; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
|
|
1357
|
-
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
|
|
1358
|
-
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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.
|
|
1359
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1429
|
+
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
|
|
1430
|
+
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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Cb = !1, this.Db = null, this.Eb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1431
|
+
throw "This modal dialog is already displayed."; if (this.div || this.Fb(), this.Gb(), this.useIframe) {
|
|
1360
1432
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1361
1433
|
window.setTimeout(t(this, e), 0);
|
|
1362
1434
|
}
|
|
1363
1435
|
else
|
|
1364
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.
|
|
1436
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.Gb(), this.Hb(), this.Ib(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1365
1437
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1366
|
-
this.div || this.
|
|
1438
|
+
this.div || this.Fb();
|
|
1367
1439
|
var i = this.loadingHtml;
|
|
1368
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.
|
|
1440
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Jb), this.iframe.src = e, this.Gb(), this.Hb(), this.Ib();
|
|
1369
1441
|
}
|
|
1370
1442
|
else
|
|
1371
|
-
t.
|
|
1443
|
+
t.Kb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.Ib = function () { if ("function" == typeof t.onShow) {
|
|
1372
1444
|
var e = {};
|
|
1373
|
-
e.root = t.
|
|
1374
|
-
} }, this.
|
|
1445
|
+
e.root = t.Lb(), e.modal = t, t.onShow(e);
|
|
1446
|
+
} }, this.Lb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Kb = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1375
1447
|
var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
|
|
1376
1448
|
t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1377
1449
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1384,45 +1456,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1384
1456
|
}
|
|
1385
1457
|
else
|
|
1386
1458
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1387
|
-
} }, this.
|
|
1388
|
-
for (var a = i() - 40, n = this.width; n < a && this.
|
|
1459
|
+
} }, this.Gb = 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.Nb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Jb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.Mb().y; }, i = function () { return t.Mb().x; }; if (this.useIframe) {
|
|
1460
|
+
for (var a = i() - 40, n = this.width; n < a && this.Ob(); n += 10)
|
|
1389
1461
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
1390
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
1462
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Pb(); r += 10)
|
|
1391
1463
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
1392
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1464
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Jb);
|
|
1393
1465
|
}
|
|
1394
1466
|
else
|
|
1395
|
-
this.div.style.height = ""; }, this.
|
|
1467
|
+
this.div.style.height = ""; }, this.Ob = function () { 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++) {
|
|
1396
1468
|
var o = a[n].offsetLeft + a[n].offsetWidth;
|
|
1397
1469
|
i = Math.max(i, o);
|
|
1398
|
-
} return i > t.clientWidth; }, this.
|
|
1470
|
+
} return i > t.clientWidth; }, this.Pb = function () { 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++) {
|
|
1399
1471
|
var o = a[n].offsetTop + a[n].offsetHeight;
|
|
1400
1472
|
i = Math.max(i, o);
|
|
1401
|
-
} return i > t.clientHeight; }, this.
|
|
1473
|
+
} return i > t.clientHeight; }, this.Mb = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1402
1474
|
var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
|
|
1403
1475
|
return { x: t, y: i };
|
|
1404
|
-
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.
|
|
1405
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
1406
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
1407
|
-
} }, this.
|
|
1476
|
+
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.Hb = function () { this.Cb || (this.re(window, "resize", this.Qb), this.re(window, "scroll", this.Rb), this.dragDrop && (this.re(document, "mousemove", this.Sb), this.re(document, "mouseup", this.Tb)), this.Cb = !0); }, this.Ub = function () { this.ue(window, "resize", this.Qb), this.ue(window, "scroll", this.Rb), this.dragDrop && (this.ue(document, "mousemove", this.Sb), this.ue(document, "mouseup", this.Tb)), this.Cb = !1; }, this.Vb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Wb(), t.Eb = t.mc(e || window.event), t.Db = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Sb = function (e) { if (t.Eb) {
|
|
1477
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Eb.x, n = i.y - t.Eb.y;
|
|
1478
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Db.y + n + "px", t.div.style.left = t.Db.x + a + "px";
|
|
1479
|
+
} }, this.Tb = function (e) { t.Eb && (t.Xb(), t.div.style.cursor = null, t.Eb = null); }, this.Wb = function () { if (this.useIframe) {
|
|
1408
1480
|
var e = document.createElement("div");
|
|
1409
1481
|
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;
|
|
1410
|
-
} }, this.
|
|
1482
|
+
} }, this.Xb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Qb = function () { t.Yb(), t.Nb(); }, this.Rb = function () { t.Yb(); }, this.Nb = function () { if (!t.left && t.div) {
|
|
1411
1483
|
var e = t.div.offsetWidth;
|
|
1412
1484
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1413
|
-
} }, this.
|
|
1414
|
-
var e = t.
|
|
1485
|
+
} }, this.Yb = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1486
|
+
var e = t.Zb.scrollY();
|
|
1415
1487
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1416
|
-
} }, this.
|
|
1417
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1488
|
+
} }, this.Zb = {}, this.Zb.container = function () { return t.container || document.body; }, this.Zb.scrollY = function () { var e = t.Zb.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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1489
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.Fb = function () { var e = t.Zb.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.Vb), 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.$b || (t.stretch(), t.$b = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.Lb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
1418
1490
|
var o = i[n], r = o.name;
|
|
1419
1491
|
if (r) {
|
|
1420
1492
|
var s = o.value;
|
|
1421
1493
|
a[r] = s;
|
|
1422
1494
|
}
|
|
1423
|
-
} t.close(a); }, 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.
|
|
1495
|
+
} t.close(a); }, 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.Ub(), t._b(t.div), t._b(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this._b = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.bc = function () { if (e)
|
|
1424
1496
|
for (var t in e)
|
|
1425
|
-
this[t] = e[t]; }, this.
|
|
1497
|
+
this[t] = e[t]; }, this.bc(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
|
|
1426
1498
|
case 13:
|
|
1427
1499
|
s.close(this.value);
|
|
1428
1500
|
break;
|
|
@@ -1476,24 +1548,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1476
1548
|
o.autoFocus && x ? x.focus() : o.div.focus();
|
|
1477
1549
|
} }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
|
|
1478
1550
|
throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, 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)); });
|
|
1479
|
-
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.
|
|
1551
|
+
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.cc = [], this.dc = null, this.canceling = !1, this.ec = [], this.f = [], this.fc = null, e = e || {}; for (var t in e)
|
|
1480
1552
|
this[t] = e[t]; };
|
|
1481
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
1553
|
+
r.prototype.create = function () { return this.load(), this.render(), this.fc; }, r.prototype.render = function () { var e = this; this.fc = document.createElement("div"), this.cc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, i = this, a = document.createElement("div"); 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) {
|
|
1482
1554
|
var n = document.createElement("div");
|
|
1483
1555
|
n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
|
|
1484
|
-
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.
|
|
1556
|
+
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.gc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
|
|
1485
1557
|
var t = {};
|
|
1486
1558
|
t.result = i.serialize(), i.onChange(t);
|
|
1487
|
-
} }, o.onBlur = function () { i.canceling || i.
|
|
1559
|
+
} }, o.onBlur = function () { i.canceling || i.gc(o); }, o.apply(e), o.fc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.fc.appendChild(a); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.gc(i); t = t && a; }), t; }, r.prototype.gc = function (e, t) { function i() { e.hc && (e.hc.remove(), e.hc = null), e.fc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.hc = t, e.fc.appendChild(t); } t = t || {}; 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; if (d) {
|
|
1488
1560
|
var c = {};
|
|
1489
1561
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1490
1562
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1491
1563
|
if (c.valid)
|
|
1492
|
-
clearTimeout(this.
|
|
1564
|
+
clearTimeout(this.ec[o.field]), e.hc && (e.hc.remove(), e.hc = null), e.fc.classList.remove(u);
|
|
1493
1565
|
else if (!n)
|
|
1494
1566
|
if (a) {
|
|
1495
1567
|
var f = 1e3;
|
|
1496
|
-
clearTimeout(this.
|
|
1568
|
+
clearTimeout(this.ec[o.field]), this.ec[o.field] = setTimeout(function () { i(); }, f);
|
|
1497
1569
|
}
|
|
1498
1570
|
else
|
|
1499
1571
|
i();
|
|
@@ -1505,153 +1577,137 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1505
1577
|
catch (e) {
|
|
1506
1578
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1507
1579
|
} for (var n in i)
|
|
1508
|
-
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.
|
|
1580
|
+
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.cc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.dc ? this.dc : this.cc).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) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
|
|
1509
1581
|
if (e.name) {
|
|
1510
1582
|
var o = new s;
|
|
1511
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.
|
|
1583
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.cc.push(o), n.push(o);
|
|
1512
1584
|
}
|
|
1513
|
-
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.
|
|
1585
|
+
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.cc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
1514
1586
|
}
|
|
1515
1587
|
else if ("title" === a) {
|
|
1516
1588
|
var o = new s;
|
|
1517
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.
|
|
1589
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.cc.push(o), n.push(o);
|
|
1518
1590
|
}
|
|
1519
1591
|
else if ("image" === a) {
|
|
1520
1592
|
var o = new s;
|
|
1521
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1593
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
|
|
1522
1594
|
}
|
|
1523
1595
|
else if ("html" === a) {
|
|
1524
1596
|
var o = new s;
|
|
1525
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1597
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
|
|
1526
1598
|
}
|
|
1527
1599
|
else if ("scrollable" === a) {
|
|
1528
1600
|
var o = new s;
|
|
1529
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1601
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
|
|
1530
1602
|
}
|
|
1531
1603
|
else {
|
|
1532
1604
|
var o = new s;
|
|
1533
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.
|
|
1605
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.cc.push(o), n.push(o);
|
|
1534
1606
|
} 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; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
1535
1607
|
var t = { key: e };
|
|
1536
1608
|
this.onKey(t);
|
|
1537
|
-
} }, r.prototype.createInteractive = function (e) {
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1609
|
+
} }, r.prototype.createInteractive = function (e) {
|
|
1610
|
+
var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () { var i = new l, a = document.createElement("div"); a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px"); var n = document.createElement("div"); return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i; }, "text": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("input"); return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1611
|
+
case 13:
|
|
1612
|
+
t.doOnKey("Enter");
|
|
1613
|
+
break;
|
|
1614
|
+
case 27:
|
|
1615
|
+
t.doOnKey("Escape");
|
|
1616
|
+
break;
|
|
1617
|
+
default: i = !0;
|
|
1618
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(), i.element.setSelectionRange(0, i.element.value.length); }, i.save = function () { var t = {}; return t[e.field] = a.value, t; }, i; }, "textarea": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("textarea"); return a.name = e.field, e.data.height && (a.style.height = e.data.height + "px"), a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1619
|
+
case 13:
|
|
1620
|
+
(e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), i = !1;
|
|
1621
|
+
break;
|
|
1622
|
+
case 27:
|
|
1623
|
+
t.doOnKey("Escape");
|
|
1624
|
+
break;
|
|
1625
|
+
default: i = !0;
|
|
1626
|
+
} i || e.stopPropagation(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(), i.element.setSelectionRange(0, 0); }, i.save = function () { var t = {}; return t[e.field] = a.value, t; }, i; }, "date": function () { var i = new l; i.apply = function (e) { i.row = e; var a = i.element, n = i.picker; e.data.dateFormat && (n.pattern = e.data.dateFormat); var o = e.data.locale || t.locale; o && (n.locale = o), a.disabled = !e.enabled, n.date = new DayPilot.Date(e.value); var r = new DayPilot.Date(e.value).toString(e.data.dateFormat || n.pattern, n.locale); a.value = r; }; var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1627
|
+
case 13:
|
|
1628
|
+
n.visible ? n.close() : t.doOnKey("Enter");
|
|
1629
|
+
break;
|
|
1630
|
+
case 27:
|
|
1631
|
+
n.visible ? n.close() : t.doOnKey("Escape");
|
|
1632
|
+
break;
|
|
1633
|
+
case 9:
|
|
1634
|
+
n.close(), i = !0;
|
|
1635
|
+
break;
|
|
1636
|
+
default: i = !0;
|
|
1637
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "time": function () { return t.ic(e); }, "datetime": function () { return t.jc(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.kc = 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.kc && (t = a.kc); 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 () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.kc = 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); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
|
|
1638
|
+
return {}; var t = n.kc, i = {}; return i[e.field] = t, i; }, i; }, "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.kc = 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; } };
|
|
1639
|
+
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
|
|
1640
|
+
}, r.prototype.ic = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1566
1641
|
var h = c.addMinutes(n * u), f = {};
|
|
1567
1642
|
f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
|
|
1568
|
-
} 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(); 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; }, r.prototype.
|
|
1569
|
-
var
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
o.value = d;
|
|
1587
|
-
};
|
|
1588
|
-
var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1589
|
-
case 13:
|
|
1590
|
-
n.visible ? n.close() : t.doOnKey("Enter");
|
|
1591
|
-
break;
|
|
1592
|
-
case 27:
|
|
1593
|
-
n.visible ? n.close() : t.doOnKey("Escape");
|
|
1594
|
-
break;
|
|
1595
|
-
case 9:
|
|
1596
|
-
n.close(), i = !0;
|
|
1597
|
-
break;
|
|
1598
|
-
default: i = !0;
|
|
1599
|
-
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1600
|
-
var u = l.addMinutes(n * c), h = {};
|
|
1601
|
-
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
|
|
1602
|
-
} var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div");
|
|
1603
|
-
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;
|
|
1604
|
-
}, r.prototype.findRowsByField = function (e) { return this.Kb.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.Nb.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.Nb.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var i = this.Lb ? this.Lb : this.Kb, a = i.indexOf(e); return this.Lb = i.map(function (i) { if (i !== e)
|
|
1643
|
+
} 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(); 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; }, r.prototype.jc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
1644
|
+
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
1645
|
+
r.locale = s, r.pattern = l.datePattern;
|
|
1646
|
+
} o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1647
|
+
case 13:
|
|
1648
|
+
n.visible ? n.close() : t.doOnKey("Enter");
|
|
1649
|
+
break;
|
|
1650
|
+
case 27:
|
|
1651
|
+
n.visible ? n.close() : t.doOnKey("Escape");
|
|
1652
|
+
break;
|
|
1653
|
+
case 9:
|
|
1654
|
+
n.close(), i = !0;
|
|
1655
|
+
break;
|
|
1656
|
+
default: i = !0;
|
|
1657
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1658
|
+
var u = l.addMinutes(n * c), h = {};
|
|
1659
|
+
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
|
|
1660
|
+
} var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); 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; }, r.prototype.findRowsByField = function (e) { return this.cc.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) { var i = this.dc ? this.dc : this.cc, a = i.indexOf(e); return this.dc = i.map(function (i) { if (i !== e)
|
|
1605
1661
|
return i; if (e.propsEqual(t))
|
|
1606
1662
|
return e; var a = e.clone(); for (var n in t)
|
|
1607
|
-
a[n] = t[n]; return a; }), this.
|
|
1608
|
-
this.
|
|
1609
|
-
} }, 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 () { var e = {}; return this.
|
|
1663
|
+
a[n] = t[n]; return a; }), this.dc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.dc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.dc) {
|
|
1664
|
+
this.dc.filter(function (t, i) { return e.cc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.cc = this.dc, this.dc = null;
|
|
1665
|
+
} }, 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 () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
|
|
1610
1666
|
e[a] = i[a]; }), e; };
|
|
1611
1667
|
var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
|
|
1612
1668
|
s.prototype.clone = function () { var e = new s; for (var t in this)
|
|
1613
1669
|
"id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
|
|
1614
1670
|
if (this[t] !== e[t])
|
|
1615
1671
|
return !1; return !0; }, 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)); };
|
|
1616
|
-
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) { this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
1672
|
+
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) { this.data = [], this.name = null, this.theme = "searchable_default", this.lc = !1, this.listZIndex = 1e5, this.onSelect = null, this.nc = null, this.oc = null, this.pc = !1, this.qc = null, this.rc = null, this.o = [], this.sc = null, e = e || {}; var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.nc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.nc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.lc; }, set: function (e) { this.lc = e, this.qc && (this.qc.disabled = e, e && this.tc()); } }); for (var a in e)
|
|
1617
1673
|
i[a] || (this[a] = e[a]); for (var a in e)
|
|
1618
1674
|
i[a] && i[a].post(e[a]); };
|
|
1619
|
-
d.prototype.select = function (e) { return this.
|
|
1675
|
+
d.prototype.select = function (e) { return this.nc = this.data.find(function (t) { return t.id === e; }), this.uc(!1), this; }, d.prototype.create = function () { function e(e) { var i = l.strategy; "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.oc = null, l.o = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
|
|
1620
1676
|
if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
|
|
1621
1677
|
return;
|
|
1622
1678
|
}
|
|
1623
1679
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
|
|
1624
|
-
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.
|
|
1680
|
+
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.nc && (l.oc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.oc !== r && (l.oc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.o.push(r); }), l.oc || (l.oc = n), t(); } 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.oc && (l.oc.className += " " + l.theme + "_list_item_highlight", t && !i(l.oc, h) && l.oc.scrollIntoView()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.nc = t, l.uc(!0), o(), r(); } function n() { l.tc(); } function o() { l.p(); } function r() { l.pc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.pc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); 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.pc ? (l.focus(), s()) : (n(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.sc = f; var m = document.createElement("input"); return m.type = "text", m.className = this.theme + "_input", m.disabled = this.lc, 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) { if (l.pc) {
|
|
1625
1681
|
if ("Enter" === e.key)
|
|
1626
1682
|
return;
|
|
1627
1683
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
1628
1684
|
return;
|
|
1629
1685
|
s();
|
|
1630
1686
|
} if ("ArrowDown" === e.key) {
|
|
1631
|
-
var i = d
|
|
1632
|
-
i + 1 < d
|
|
1687
|
+
var i = d.o.indexOf(d.oc);
|
|
1688
|
+
i + 1 < d.o.length && (d.oc = d.o[i + 1]), t();
|
|
1633
1689
|
}
|
|
1634
1690
|
else if ("ArrowUp" === e.key) {
|
|
1635
|
-
var i = d
|
|
1636
|
-
i - 1 >= 0 && (d.
|
|
1691
|
+
var i = d.o.indexOf(d.oc);
|
|
1692
|
+
i - 1 >= 0 && (d.oc = d.o[i - 1]), t();
|
|
1637
1693
|
}
|
|
1638
1694
|
else
|
|
1639
|
-
"Enter" === e.key ? l.
|
|
1695
|
+
"Enter" === e.key ? l.oc ? (e.stopPropagation(), a(l.oc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), this.qc = m, this.rc = h, this.nc || (this.nc = this.data[0], this.nc && (m.value = this.nc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.tc = function () { this.p(), this.nc ? this.qc.value = this.nc.name : (this.qc.value = "", this.uc(!0)); }, d.prototype.focus = function () { this.pc = !0, this.qc.setAttribute("readonly", "readonly"), this.qc.focus(), this.tc(); }, d.prototype.p = function () { this.rc.style.display = "none"; }, d.prototype.uc = function (e) { if (this.sc.value = this.selected ? this.selected.id : null, this.nc ? this.qc.value = this.nc.name : this.qc.value = "", "function" == typeof this.onSelect) {
|
|
1640
1696
|
var t = { control: this, ui: e };
|
|
1641
1697
|
this.onSelect(t);
|
|
1642
1698
|
} };
|
|
1643
|
-
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
1699
|
+
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.vc = null, this.cc = [], e = e || {}; for (var t in e)
|
|
1644
1700
|
this[t] = e[t]; };
|
|
1645
|
-
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.
|
|
1701
|
+
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.wc(); a.appendChild(n); var o = e.xc({}); o.spacer = !0; var r = this.yc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
|
|
1646
1702
|
var i = e.item.onNewRow, a = {};
|
|
1647
1703
|
if ("function" == typeof i) {
|
|
1648
1704
|
var n = {};
|
|
1649
1705
|
n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
|
|
1650
1706
|
}
|
|
1651
|
-
var o = e.
|
|
1652
|
-
e.
|
|
1653
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.
|
|
1654
|
-
throw new Error("Array expected"); this.data = e, this.
|
|
1707
|
+
var o = e.xc(a);
|
|
1708
|
+
e.cc.push(o), e.zc(), e.Ac();
|
|
1709
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.wc = 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.Bc = function () { var e = this.item.max || 0; return !!(e && this.cc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.cc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
1710
|
+
throw new Error("Array expected"); this.data = e, this.Cc(), this.zc(); }, c.prototype.Dc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Bc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Cc = function () { var e = this; this.cc = [], this.data.forEach(function (t) { var i = e.xc(t); e.cc.push(i); }); }, c.prototype.Ec = function (e) { var t = this, i = t.cc.indexOf(e); t.cc.splice(i, 1); }, c.prototype.xc = function (e) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Fc(a); if ("undefined" == typeof o)
|
|
1655
1711
|
if ("text" === r)
|
|
1656
1712
|
o = "";
|
|
1657
1713
|
else if ("number" === r)
|
|
@@ -1659,23 +1715,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1659
1715
|
else if ("select" === r) {
|
|
1660
1716
|
var s = a.options;
|
|
1661
1717
|
o = s && s[0].id;
|
|
1662
|
-
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.
|
|
1663
|
-
var t = e.
|
|
1718
|
+
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Fc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.zc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.cc.forEach(function (t) { var i = e.yc(t); e.nav.body.appendChild(i); }), 0 === this.cc.length) {
|
|
1719
|
+
var t = e.Gc();
|
|
1664
1720
|
e.nav.after.appendChild(t);
|
|
1665
|
-
} this.
|
|
1721
|
+
} this.Dc(); }, c.prototype.Gc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.yc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Hc(a); if (e.spacer) {
|
|
1666
1722
|
var r = document.createElement("div");
|
|
1667
1723
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
|
|
1668
1724
|
}
|
|
1669
1725
|
else
|
|
1670
|
-
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.
|
|
1726
|
+
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Ec(e), t.zc(), t.Ac()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, c.prototype.Ac = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
1671
1727
|
var t = {};
|
|
1672
1728
|
e.onInput(t);
|
|
1673
|
-
} }, c.prototype.
|
|
1729
|
+
} }, c.prototype.Hc = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
|
|
1674
1730
|
var a = document.createElement("input");
|
|
1675
|
-
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.
|
|
1731
|
+
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.Ac(); }), a;
|
|
1676
1732
|
} if ("select" === i) {
|
|
1677
1733
|
var n = document.createElement("select");
|
|
1678
|
-
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.
|
|
1734
|
+
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.kc = 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.kc && (e.value = a.kc), t.Ac(); }), n;
|
|
1679
1735
|
} throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
|
|
1680
1736
|
}
|
|
1681
1737
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
@@ -1684,15 +1740,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1684
1740
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1685
1741
|
var e = {};
|
|
1686
1742
|
e.Month = function (t, i) {
|
|
1687
|
-
this.v = "2023.
|
|
1743
|
+
this.v = "2023.2.463-lite", this.nav = {};
|
|
1688
1744
|
var a = this;
|
|
1689
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.
|
|
1745
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1690
1746
|
t = e.data;
|
|
1691
1747
|
else {
|
|
1692
1748
|
if ("object" != typeof e)
|
|
1693
1749
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
1694
1750
|
t = e;
|
|
1695
|
-
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
1751
|
+
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify(); }, this.events.find = function (e) { if (!a.events.list)
|
|
1696
1752
|
return null; for (var t = 0; t < a.events.list.length; t++) {
|
|
1697
1753
|
var i = a.events.list[t];
|
|
1698
1754
|
if (i.id === e)
|
|
@@ -1705,7 +1761,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1705
1761
|
var i = DayPilot.indexOf(a.events.list, t.data);
|
|
1706
1762
|
a.events.list.splice(i, 1, e);
|
|
1707
1763
|
}
|
|
1708
|
-
} a.update(), a.
|
|
1764
|
+
} a.update(), a.qa.notify(); }, this.events.remove = function (e) { var t = DayPilot.indexOf(a.events.list, e.data); a.events.list.splice(t, 1), a.update(), a.qa.notify(); }, this.events.load = function (e, t, i) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1709
1765
|
i = JSON.parse(o.responseText);
|
|
1710
1766
|
}
|
|
1711
1767
|
catch (e) {
|
|
@@ -1715,17 +1771,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1715
1771
|
var s = {};
|
|
1716
1772
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1717
1773
|
return;
|
|
1718
|
-
a.events.list = i, a.
|
|
1774
|
+
a.events.list = i, a.za && a.update();
|
|
1719
1775
|
} }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
1720
1776
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
|
|
1721
1777
|
else {
|
|
1722
1778
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
1723
1779
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
1724
|
-
} }, this.update = function (e) { if (a
|
|
1725
|
-
a.
|
|
1726
|
-
} }, this.
|
|
1780
|
+
} }, this.update = function (e) { if (a.$a(e), this.za && this.cells) {
|
|
1781
|
+
a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
|
|
1782
|
+
} }, this.bb = null, this.$a = function (e) { if (e) {
|
|
1727
1783
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
1728
|
-
this.
|
|
1784
|
+
this.bb = t;
|
|
1729
1785
|
for (var i in e)
|
|
1730
1786
|
if (t[i]) {
|
|
1731
1787
|
var n = t[i];
|
|
@@ -1733,19 +1789,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1733
1789
|
}
|
|
1734
1790
|
else
|
|
1735
1791
|
a[i] = e[i];
|
|
1736
|
-
} }, this.
|
|
1792
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
1737
1793
|
var i = e[t];
|
|
1738
1794
|
i.postInit && i.postInit();
|
|
1739
|
-
} }, this.
|
|
1795
|
+
} }, this.eb = {}, this.eb.events = [], this.fb = function (e) { var t = this.eb.events, i = this.events.list[e], a = {}; for (var n in i)
|
|
1740
1796
|
a[n] = i[n]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1741
1797
|
var o = {};
|
|
1742
1798
|
o.data = a, this.onBeforeEventRender(o);
|
|
1743
|
-
} t[e] = a; }, this.
|
|
1799
|
+
} t[e] = a; }, this.ca = function () { var e = this.events.list; if (e) {
|
|
1744
1800
|
if (!DayPilot.isArray(e))
|
|
1745
1801
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1746
1802
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1747
1803
|
for (var t = 0; t < e.length; t++)
|
|
1748
|
-
this.
|
|
1804
|
+
this.fb(t);
|
|
1749
1805
|
for (var i = 0; i < e.length; i++) {
|
|
1750
1806
|
var a = e[i];
|
|
1751
1807
|
if ("object" != typeof a)
|
|
@@ -1758,24 +1814,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1758
1814
|
if (!(n.getTime() > o.getTime()))
|
|
1759
1815
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1760
1816
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
1761
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1817
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.eb.events[i]));
|
|
1762
1818
|
}
|
|
1763
1819
|
}
|
|
1764
1820
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1765
1821
|
var r = this.rows[l];
|
|
1766
|
-
r.events.sort(this.
|
|
1822
|
+
r.events.sort(this.gb);
|
|
1767
1823
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1768
1824
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1769
1825
|
r.putIntoLine(c, u, h, l);
|
|
1770
1826
|
}
|
|
1771
1827
|
}
|
|
1772
|
-
} }, this.
|
|
1828
|
+
} }, this.V = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1773
1829
|
var t = this.elements.events[e];
|
|
1774
1830
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
1775
|
-
} this.elements.events = []; }, this.
|
|
1831
|
+
} this.elements.events = []; }, this.ia = function () { this.Lc(); }, this.Lc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1776
1832
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
1777
1833
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
1778
|
-
this.
|
|
1834
|
+
this.Ca(a[n]); }, this.gb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1779
1835
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, a, n, o, r) { o || (o = 0); var s = n; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = n; var l = 7 * i + t - o; l < 0 && (s += l, t = 0, i = 0); for (var d = o; d >= 7;)
|
|
1780
1836
|
i--, d -= 7; if (d > t) {
|
|
1781
1837
|
d > t + (7 - this.getColCount()) ? (i--, t = t + 7 - d) : (s = s - d + t, t = 0);
|
|
@@ -1791,7 +1847,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1791
1847
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1792
1848
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1793
1849
|
} }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
1794
|
-
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
1850
|
+
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ca = function (t) { var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div"); u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.pa, u.oncontextmenu = a.Mc, u.onmousedown = function (i) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
1795
1851
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1796
1852
|
var d = {};
|
|
1797
1853
|
d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
|
|
@@ -1812,15 +1868,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1812
1868
|
var n = 6;
|
|
1813
1869
|
a.x <= n && t.client.resizeEnabled() ? t.part.startsHere ? (u.style.cursor = "w-resize", u.dpBorder = "left") : u.style.cursor = "not-allowed" : u.clientWidth - a.x <= n && t.client.resizeEnabled() ? t.part.endsHere ? (u.style.cursor = "e-resize", u.dpBorder = "right") : u.style.cursor = "not-allowed" : t.client.clickEnabled() ? u.style.cursor = "pointer" : u.style.cursor = "default";
|
|
1814
1870
|
}
|
|
1815
|
-
} }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); }; var h = document.createElement("div"); if (h.setAttribute("unselectable", "on"), h.className = this.
|
|
1871
|
+
} }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); }; var h = document.createElement("div"); if (h.setAttribute("unselectable", "on"), h.className = this.J("_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, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (h.style.filter = "")), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
|
|
1816
1872
|
var f = document.createElement("div");
|
|
1817
|
-
f.setAttribute("unselectable", "on"), f.className = this.
|
|
1873
|
+
f.setAttribute("unselectable", "on"), f.className = this.J("_event_bar"), f.style.position = "absolute";
|
|
1818
1874
|
var m = document.createElement("div");
|
|
1819
|
-
m.setAttribute("unselectable", "on"), m.className = this.
|
|
1875
|
+
m.setAttribute("unselectable", "on"), m.className = this.J("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
|
|
1820
1876
|
} if (t.client.deleteEnabled()) {
|
|
1821
1877
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
1822
|
-
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.
|
|
1823
|
-
} var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
1878
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
1879
|
+
} var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
|
|
1824
1880
|
var o = {};
|
|
1825
1881
|
o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
|
|
1826
1882
|
var r = this.lines[o];
|
|
@@ -1830,7 +1886,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1830
1886
|
e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
|
|
1831
1887
|
e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(o);
|
|
1832
1888
|
} this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
1833
|
-
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.
|
|
1889
|
+
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ea = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
1834
1890
|
var i = DayPilot.mo2(a.nav.top, t);
|
|
1835
1891
|
if (!i)
|
|
1836
1892
|
return;
|
|
@@ -1870,7 +1926,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1870
1926
|
o < 1 && (o = 1);
|
|
1871
1927
|
var m = h < f ? r : n;
|
|
1872
1928
|
e.timeRangeSelecting.from = { x: m.x, y: m.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(m.x, m.y, 0, o, 0, null);
|
|
1873
|
-
} }; }, this.
|
|
1929
|
+
} }; }, this.ha = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
|
|
1874
1930
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1875
1931
|
this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
|
|
1876
1932
|
var l = o;
|
|
@@ -1879,42 +1935,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1879
1935
|
break;
|
|
1880
1936
|
}
|
|
1881
1937
|
} null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
|
|
1882
|
-
i.y++, t -= 7; return i.x = t, i; }, this.
|
|
1938
|
+
i.y++, t -= 7; return i.x = t, i; }, this.Kc = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
|
|
1883
1939
|
this.cells[t] = [];
|
|
1884
1940
|
var i = document.createElement("div");
|
|
1885
1941
|
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";
|
|
1886
1942
|
var a = t + this.getWeekStart();
|
|
1887
|
-
a > 6 && (a -= 7), i.className = this.
|
|
1943
|
+
a > 6 && (a -= 7), i.className = this.J("_header");
|
|
1888
1944
|
var o = document.createElement("div");
|
|
1889
|
-
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.
|
|
1945
|
+
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.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
1890
1946
|
for (var r = 0; r < this.rows.length; r++)
|
|
1891
|
-
this.
|
|
1892
|
-
} }, this.
|
|
1947
|
+
this.Nc(t, r, e);
|
|
1948
|
+
} }, this.Jc = function () { for (var e = 0; e < this.cells.length; e++)
|
|
1893
1949
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1894
|
-
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.
|
|
1950
|
+
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
|
|
1895
1951
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
1896
|
-
if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px",
|
|
1897
|
-
|
|
1952
|
+
if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px",
|
|
1953
|
+
l.className = this.J("_cell"), !this.isWeekend(s)) {
|
|
1954
|
+
var d = this.J("_cell_business");
|
|
1898
1955
|
DayPilot.Util.addClass(l, d);
|
|
1899
1956
|
}
|
|
1900
1957
|
var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
|
|
1901
|
-
c.setAttribute("unselectable", "on"), l.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.
|
|
1958
|
+
c.setAttribute("unselectable", "on"), l.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.J("_cell_inner"), l.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, l.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
|
|
1902
1959
|
return void e(s); };
|
|
1903
1960
|
var u = document.createElement("div");
|
|
1904
|
-
u.setAttribute("unselectable", "on"), u.style.height = this.cellHeaderHeight + "px", u.className = this.
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1961
|
+
u.setAttribute("unselectable", "on"), u.style.height = this.cellHeaderHeight + "px", u.className = this.J("_cell_header"), u.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
|
|
1962
|
+
e.stopPropagation();
|
|
1963
|
+
var t = {};
|
|
1964
|
+
t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
|
|
1965
|
+
} };
|
|
1911
1966
|
var h = s.getDay();
|
|
1912
1967
|
1 === h ? u.innerHTML = n.locale().monthNames[s.getMonth()] + " " + h : u.innerHTML = h, c.appendChild(u), this.cells[t][i] = l, o.appendChild(l);
|
|
1913
1968
|
}, this.getWeekStart = function () { return n.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
1914
|
-
t += this.rows[i].getHeight(); return t; }, this.
|
|
1915
|
-
if (a.
|
|
1969
|
+
t += this.rows[i].getHeight(); return t; }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i.client.clickEnabled())
|
|
1970
|
+
if (a.oa()) {
|
|
1916
1971
|
var n = {};
|
|
1917
|
-
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.
|
|
1972
|
+
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
1918
1973
|
return;
|
|
1919
1974
|
switch (a.eventClickHandling) {
|
|
1920
1975
|
case "CallBack":
|
|
@@ -1924,7 +1979,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1924
1979
|
var o = i.client.contextMenu();
|
|
1925
1980
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
1926
1981
|
}
|
|
1927
|
-
"function" == typeof a.onEventClicked && a.
|
|
1982
|
+
"function" == typeof a.onEventClicked && a.qa.apply(function () { a.onEventClicked(n); });
|
|
1928
1983
|
}
|
|
1929
1984
|
else
|
|
1930
1985
|
switch (a.eventClickHandling) {
|
|
@@ -1932,7 +1987,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1932
1987
|
a.eventClickCallBack(i);
|
|
1933
1988
|
break;
|
|
1934
1989
|
case "JavaScript": a.onEventClick(i);
|
|
1935
|
-
} }, this.
|
|
1990
|
+
} }, this.Mc = function () { var e = this; return a.ra(e.event), !1; }, this.ra = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
1936
1991
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
|
|
1937
1992
|
switch (a.eventRightClickHandling) {
|
|
1938
1993
|
case "ContextMenu":
|
|
@@ -1940,9 +1995,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1940
1995
|
i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
|
|
1941
1996
|
}
|
|
1942
1997
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
1943
|
-
} }, this.
|
|
1998
|
+
} }, this.sa = function (e) { if (a.oa()) {
|
|
1944
1999
|
var t = {};
|
|
1945
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
2000
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.qa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
1946
2001
|
return;
|
|
1947
2002
|
switch (a.eventDeleteHandling) {
|
|
1948
2003
|
case "CallBack":
|
|
@@ -1953,7 +2008,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1953
2008
|
break;
|
|
1954
2009
|
case "Update": a.events.remove(e);
|
|
1955
2010
|
}
|
|
1956
|
-
"function" == typeof a.onEventDeleted && a.
|
|
2011
|
+
"function" == typeof a.onEventDeleted && a.qa.apply(function () { a.onEventDeleted(t); });
|
|
1957
2012
|
}
|
|
1958
2013
|
else
|
|
1959
2014
|
switch (a.eventDeleteHandling) {
|
|
@@ -1964,11 +2019,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1964
2019
|
a.eventDeleteCallBack(e);
|
|
1965
2020
|
break;
|
|
1966
2021
|
case "JavaScript": a.onEventDelete(e);
|
|
1967
|
-
} }, this.eventDeleteCallBack = function (e, t) { this.
|
|
2022
|
+
} }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
1968
2023
|
throw "newStart is null"; if (!i)
|
|
1969
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.
|
|
2024
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l !== e.end() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.oa()) {
|
|
1970
2025
|
var p = {};
|
|
1971
|
-
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.
|
|
2026
|
+
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.qa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
1972
2027
|
return;
|
|
1973
2028
|
switch (a.eventMoveHandling) {
|
|
1974
2029
|
case "CallBack":
|
|
@@ -1976,7 +2031,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1976
2031
|
break;
|
|
1977
2032
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
1978
2033
|
}
|
|
1979
|
-
"function" == typeof a.onEventMoved && a.
|
|
2034
|
+
"function" == typeof a.onEventMoved && a.qa.apply(function () { a.onEventMoved(p); });
|
|
1980
2035
|
}
|
|
1981
2036
|
else
|
|
1982
2037
|
switch (a.eventMoveHandling) {
|
|
@@ -1986,9 +2041,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1986
2041
|
case "JavaScript": a.onEventMove(e, f, m);
|
|
1987
2042
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
1988
2043
|
throw "newStart is null"; if (!i)
|
|
1989
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
2044
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o !== e.end() && (o = o.addDays(1)); var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r); if (a.oa()) {
|
|
1990
2045
|
var u = {};
|
|
1991
|
-
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.
|
|
2046
|
+
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.qa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
1992
2047
|
return;
|
|
1993
2048
|
switch (a.eventResizeHandling) {
|
|
1994
2049
|
case "CallBack":
|
|
@@ -1996,7 +2051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1996
2051
|
break;
|
|
1997
2052
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
1998
2053
|
}
|
|
1999
|
-
"function" == typeof a.onEventResized && a.
|
|
2054
|
+
"function" == typeof a.onEventResized && a.qa.apply(function () { a.onEventResized(u); });
|
|
2000
2055
|
}
|
|
2001
2056
|
else
|
|
2002
2057
|
switch (a.eventResizeHandling) {
|
|
@@ -2004,14 +2059,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2004
2059
|
a.eventResizeCallBack(e, d, c);
|
|
2005
2060
|
break;
|
|
2006
2061
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
2007
|
-
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.
|
|
2062
|
+
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.oa()) {
|
|
2008
2063
|
var i = {};
|
|
2009
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
2064
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.qa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2010
2065
|
return;
|
|
2011
2066
|
switch (a.timeRangeSelectedHandling) {
|
|
2012
2067
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
2013
2068
|
}
|
|
2014
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
2069
|
+
"function" == typeof a.onTimeRangeSelected && a.qa.apply(function () { a.onTimeRangeSelected(i); });
|
|
2015
2070
|
}
|
|
2016
2071
|
else
|
|
2017
2072
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -2019,16 +2074,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2019
2074
|
a.timeRangeSelectedCallBack(e, t);
|
|
2020
2075
|
break;
|
|
2021
2076
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
2022
|
-
} }, this.
|
|
2023
|
-
var n = this.
|
|
2024
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.
|
|
2077
|
+
} }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { a.qa.scope && a.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
|
|
2078
|
+
var n = this._;
|
|
2079
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.Ya = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.db = function () { if (this.id && this.id.tagName)
|
|
2025
2080
|
this.nav.top = this.id;
|
|
2026
2081
|
else {
|
|
2027
2082
|
if ("string" != typeof this.id)
|
|
2028
2083
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2029
2084
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2030
2085
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2031
|
-
} }, this.
|
|
2086
|
+
} }, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ra = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ra, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
|
|
2032
2087
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2033
2088
|
var i = e.movingEvent;
|
|
2034
2089
|
if (!i.event)
|
|
@@ -2042,7 +2097,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2042
2097
|
var a = e.movingEvent.event.calendar, n = e.movingEvent.event, o = a.shadow.start, r = a.shadow.position, s = e.movingEvent.offset;
|
|
2043
2098
|
a.clearShadow(), e.movingEvent = null;
|
|
2044
2099
|
var t = t || window.event;
|
|
2045
|
-
return a.
|
|
2100
|
+
return a.K(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
|
|
2046
2101
|
} if (e.resizingEvent) {
|
|
2047
2102
|
var i = e.resizingEvent;
|
|
2048
2103
|
if (!i.event)
|
|
@@ -2054,11 +2109,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2054
2109
|
if (!i.event.calendar.shadow.start)
|
|
2055
2110
|
return;
|
|
2056
2111
|
var a = e.resizingEvent.event.calendar, n = e.resizingEvent.event, o = a.shadow.start, l = a.shadow.width;
|
|
2057
|
-
return a.clearShadow(), e.resizingEvent = null, a.
|
|
2112
|
+
return a.clearShadow(), e.resizingEvent = null, a.I(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
|
|
2058
2113
|
} if (e.timeRangeSelecting) {
|
|
2059
2114
|
if (e.timeRangeSelecting.moved) {
|
|
2060
2115
|
var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
|
|
2061
|
-
a.
|
|
2116
|
+
a.L(o, c), a.clearShadow();
|
|
2062
2117
|
}
|
|
2063
2118
|
e.timeRangeSelecting = null;
|
|
2064
2119
|
} }, DayPilot.Month = e.Month, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotMonth = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
@@ -2067,7 +2122,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2067
2122
|
for (name in e)
|
|
2068
2123
|
i[name] = e[name];
|
|
2069
2124
|
i.Init(), t || (t = i);
|
|
2070
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.
|
|
2125
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2071
2126
|
(0, e(r).assign)(t, n);
|
|
2072
2127
|
} for (var s in a)
|
|
2073
2128
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
@@ -2078,15 +2133,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2078
2133
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2079
2134
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2080
2135
|
DayPilot.Navigator = function (e, t) {
|
|
2081
|
-
this.v = "2023.
|
|
2136
|
+
this.v = "2023.2.463-lite";
|
|
2082
2137
|
var i = this;
|
|
2083
|
-
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
2138
|
+
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.eb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Pc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
2084
2139
|
v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
2085
2140
|
else {
|
|
2086
2141
|
v.style.position = "relative";
|
|
2087
2142
|
var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
|
|
2088
2143
|
a.top = y, a.left = 0;
|
|
2089
|
-
} v.className = this.
|
|
2144
|
+
} v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, this.root.appendChild(v); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span><</span>", b.onclick = this.Sc), v.appendChild(b), this.tl = b; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Pc() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Pc() + "px", x.style.right = 6 * o.cellWidth() + this.Pc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.Tc), v.appendChild(x), this.tr = x; var w = this.Pc(); if (this.showWeekNumbers)
|
|
2090
2145
|
for (var C = 0; C < h; C++) {
|
|
2091
2146
|
var P = d.addDays(7 * C), _ = null;
|
|
2092
2147
|
switch (this.weekNumberAlgorithm) {
|
|
@@ -2102,45 +2157,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2102
2157
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2103
2158
|
}
|
|
2104
2159
|
var k = document.createElement("div");
|
|
2105
|
-
k.style.position = "absolute", k.style.left = "0px", k.style.right = "0px", k.style.top = C * this.cellHeight + g + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.cellHeight + "px", k.style.lineHeight = this.cellHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.
|
|
2160
|
+
k.style.position = "absolute", k.style.left = "0px", k.style.right = "0px", k.style.top = C * this.cellHeight + g + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.cellHeight + "px", k.style.lineHeight = this.cellHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_weeknumber"), k.innerHTML = "<span>" + _ + "</span>", v.appendChild(k), a.weeks.push(k);
|
|
2106
2161
|
} for (var S = 0; S < 7; S++) {
|
|
2107
2162
|
a.cells[S] = [];
|
|
2108
2163
|
var k = document.createElement("div");
|
|
2109
|
-
k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.
|
|
2164
|
+
k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_dayheader"), k.innerHTML = "<span>" + this.Uc(S) + "</span>", v.appendChild(k), a.days.push(k);
|
|
2110
2165
|
for (var C = 0; C < h; C++) {
|
|
2111
|
-
var P = d.addDays(7 * C + S), M = this.
|
|
2112
|
-
if ("month" === this.
|
|
2166
|
+
var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
2167
|
+
if ("month" === this.Wc())
|
|
2113
2168
|
M = M && T;
|
|
2114
|
-
else if ("day" === this.
|
|
2169
|
+
else if ("day" === this.Wc())
|
|
2115
2170
|
M = M && (T || r && A || s && H);
|
|
2116
|
-
else if ("week" === this.
|
|
2171
|
+
else if ("week" === this.Wc()) {
|
|
2117
2172
|
var E = P.firstDayOfMonth() === n;
|
|
2118
2173
|
M = M && (E || r && A || s && H);
|
|
2119
2174
|
}
|
|
2120
2175
|
var N = document.createElement("div");
|
|
2121
2176
|
a.cells[S][C] = N;
|
|
2122
|
-
var I = i.
|
|
2123
|
-
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.
|
|
2177
|
+
var I = i.Xc(S, C), z = I.x, O = I.y;
|
|
2178
|
+
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
2124
2179
|
var U = document.createElement("div");
|
|
2125
|
-
U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.
|
|
2126
|
-
var
|
|
2127
|
-
if (this.cells && this.cells[P.toStringSortable()] && (
|
|
2128
|
-
var
|
|
2129
|
-
|
|
2180
|
+
U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Qc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
|
|
2181
|
+
var R = null;
|
|
2182
|
+
if (this.cells && this.cells[P.toStringSortable()] && (R = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
2183
|
+
var L = {};
|
|
2184
|
+
L.cell = R || {}, L.cell.day = P, L.cell.isCurrentMonth = T, L.cell.isToday = P.getTime() === f.getTime() && T, L.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), R ? (L.cell.html = R.html || P.getDay(), L.cell.cssClass = R.css) : (L.cell.html = P.getDay(), L.cell.cssClass = null), i.onBeforeCellRender(L), R = L.cell;
|
|
2130
2185
|
}
|
|
2131
|
-
if (
|
|
2132
|
-
var
|
|
2133
|
-
|
|
2186
|
+
if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s && H) {
|
|
2187
|
+
var j = document.createElement("div");
|
|
2188
|
+
j.innerHTML = P.getDay(), j.style.position = "absolute", j.style.left = "0px", j.style.top = "0px", j.style.right = "0px", j.style.bottom = "0px", i.Qc(j, "cell_text"), N.isClickable = !0, R && R.html && (j.innerHTML = R.html), N.appendChild(j);
|
|
2134
2189
|
}
|
|
2135
|
-
N.setAttribute("unselectable", "on"), N.onclick = this.
|
|
2190
|
+
N.setAttribute("unselectable", "on"), N.onclick = this.Yc, v.appendChild(N), M && (i.Zc(v, S, C), this.selected.push(N));
|
|
2136
2191
|
}
|
|
2137
|
-
} var B = document.createElement("div"); B.style.position = "absolute", B.style.left = "0px", B.style.top = g - 2 + "px", B.style.width = 7 * o.cellWidth() + this.
|
|
2192
|
+
} var B = document.createElement("div"); B.style.position = "absolute", B.style.left = "0px", B.style.top = g - 2 + "px", B.style.width = 7 * o.cellWidth() + this.Pc() + "px", B.style.height = "1px", B.style.fontSize = "1px", B.style.lineHeight = "1px", B.className = this.J("_line"), v.appendChild(B), this.months.push(a); }, this.Xc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Pc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.Zc = function (e, t, a) { var n = e.month.cells[t][a]; i.Qc(n, "select"); }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this.Pc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this._c = function () { if (this.items)
|
|
2138
2193
|
for (var e = 0; e < this.showMonths; e++)
|
|
2139
2194
|
for (var t = 0; t < 7; t++)
|
|
2140
2195
|
for (var i = 0; i < 6; i++) {
|
|
2141
2196
|
var a = this.months[e].cells[t][i];
|
|
2142
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
2143
|
-
} }, this.
|
|
2197
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.Qc(a, "busy"), this.Rc(a, "free")) : (this.Rc(a, "busy"), this.Qc(a, "free")));
|
|
2198
|
+
} }, this.ad = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Wc = function () { return (this.selectMode || "").toLowerCase(); }, this.bd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Wc()) {
|
|
2144
2199
|
case "day":
|
|
2145
2200
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2146
2201
|
break;
|
|
@@ -2154,19 +2209,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2154
2209
|
this.selectionEnd = e;
|
|
2155
2210
|
break;
|
|
2156
2211
|
default: throw "Unknown selectMode value.";
|
|
2157
|
-
} }, this.
|
|
2158
|
-
return void (this.
|
|
2212
|
+
} }, this.cd = null, this.select = function (e, t, a) { var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a; if (!this.za)
|
|
2213
|
+
return void (this.cd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2159
2214
|
var m = this.startDate;
|
|
2160
|
-
(this.selectionStart < this.
|
|
2161
|
-
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
2162
|
-
if (i.
|
|
2215
|
+
(this.selectionStart < this.dd() || this.selectionStart >= this.ed()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2216
|
+
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.bd(), this.Jc(), this.Oc(), this.fd(), this._c(), this.ad(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.gd(); }, this.update = function (e) { if (i.$a(e), this.za) {
|
|
2217
|
+
if (i.hd)
|
|
2163
2218
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2164
|
-
i.
|
|
2219
|
+
i.jd();
|
|
2165
2220
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2166
|
-
i.
|
|
2167
|
-
} }, this.
|
|
2221
|
+
i.Gb(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
2222
|
+
} }, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.ca(), this._c(), this.ad(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.eb = {}; }, this.bb = null, this.$a = function (e) { if (e) {
|
|
2168
2223
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
2169
|
-
this.
|
|
2224
|
+
this.bb = t;
|
|
2170
2225
|
for (var a in e)
|
|
2171
2226
|
if (t[a]) {
|
|
2172
2227
|
var n = t[a];
|
|
@@ -2174,15 +2229,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2174
2229
|
}
|
|
2175
2230
|
else
|
|
2176
2231
|
i[a] = e[a];
|
|
2177
|
-
} }, this.
|
|
2232
|
+
} }, this.cb = function () { var e = this.bb; for (var t in e) {
|
|
2178
2233
|
var i = e[t];
|
|
2179
2234
|
i.postInit && i.postInit();
|
|
2180
|
-
} }, this.
|
|
2235
|
+
} }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) { if ("function" == typeof i.onAjaxError) {
|
|
2181
2236
|
var t = {};
|
|
2182
2237
|
t.request = e, i.onAjaxError(t);
|
|
2183
2238
|
}
|
|
2184
2239
|
else
|
|
2185
|
-
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.
|
|
2240
|
+
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ld = function (e, t) { "refresh" === e && this.gd(); }, this.Uc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Vc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.md = function (e) { for (var t = 0; t < i.months.length; t++) {
|
|
2186
2241
|
var a = i.months[t];
|
|
2187
2242
|
if (!a)
|
|
2188
2243
|
return null;
|
|
@@ -2191,18 +2246,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2191
2246
|
i.months[t].height;
|
|
2192
2247
|
if (a.top <= e.y && e.y < a.top + a.height)
|
|
2193
2248
|
return t;
|
|
2194
|
-
} return null; }, this.
|
|
2249
|
+
} return null; }, this.nd = function (e) { var t = DayPilot.mo3(i.nav.top, e), a = i.md(t); if (null === a)
|
|
2195
2250
|
return null; var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
|
|
2196
2251
|
return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
|
|
2197
2252
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
2198
2253
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
2199
2254
|
if (c <= t.x && t.x < c + i.cellWidth && d <= t.y && t.y < d + i.cellHeight)
|
|
2200
2255
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
2201
|
-
} return null; }, this.
|
|
2202
|
-
var t = i.
|
|
2256
|
+
} return null; }, this.od = function (e) { if (i.freeHandSelectionEnabled) {
|
|
2257
|
+
var t = i.nd(e);
|
|
2203
2258
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2204
|
-
} }, this
|
|
2205
|
-
var t = i.
|
|
2259
|
+
} }, this.pd = function (e) { if (a.start) {
|
|
2260
|
+
var t = i.nd(e);
|
|
2206
2261
|
if (a.end)
|
|
2207
2262
|
a.end = t;
|
|
2208
2263
|
else if (t) {
|
|
@@ -2210,9 +2265,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2210
2265
|
o > n && (a.end = t);
|
|
2211
2266
|
}
|
|
2212
2267
|
a.end && (a.clear(), a.draw());
|
|
2213
|
-
} }, this.
|
|
2214
|
-
var a = this.
|
|
2215
|
-
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.
|
|
2268
|
+
} }, this.qd = {};
|
|
2269
|
+
var a = this.qd;
|
|
2270
|
+
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Xc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () { if (a.cells) {
|
|
2216
2271
|
for (var e = 0; e < a.cells.length; e++)
|
|
2217
2272
|
i.nav.preselection.removeChild(a.cells[e]);
|
|
2218
2273
|
a.cells = [];
|
|
@@ -2254,49 +2309,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2254
2309
|
return null;
|
|
2255
2310
|
e = new n(t);
|
|
2256
2311
|
} return e; }, 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(); }; };
|
|
2257
|
-
this.
|
|
2312
|
+
this.Yc = function (e) { var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day; if (a.cells[n][o].isClickable) {
|
|
2258
2313
|
i.clearSelection(), i.selectionDay = r;
|
|
2259
2314
|
var r = i.selectionDay;
|
|
2260
|
-
switch (i.
|
|
2315
|
+
switch (i.Wc()) {
|
|
2261
2316
|
case "none":
|
|
2262
2317
|
i.selectionStart = r, i.selectionEnd = r;
|
|
2263
2318
|
break;
|
|
2264
2319
|
case "day":
|
|
2265
2320
|
if (i.autoFocusOnClick) {
|
|
2266
2321
|
var s = r;
|
|
2267
|
-
if (r < i.
|
|
2322
|
+
if (r < i.dd() || r >= i.ed())
|
|
2268
2323
|
return void i.select(r);
|
|
2269
2324
|
}
|
|
2270
2325
|
var l = a.cells[n][o];
|
|
2271
|
-
i.
|
|
2326
|
+
i.Zc(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
2272
2327
|
break;
|
|
2273
2328
|
case "week":
|
|
2274
2329
|
if (i.autoFocusOnClick) {
|
|
2275
2330
|
var s = a.cells[0][o].day, d = a.cells[6][o].day;
|
|
2276
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
2331
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.dd() || d >= i.ed()))
|
|
2277
2332
|
return void i.select(r);
|
|
2278
2333
|
}
|
|
2279
2334
|
for (var c = 0; c < 7; c++)
|
|
2280
|
-
i.
|
|
2335
|
+
i.Zc(t, c, o), i.selected.push(a.cells[c][o]);
|
|
2281
2336
|
i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
|
|
2282
2337
|
break;
|
|
2283
2338
|
case "month":
|
|
2284
2339
|
if (i.autoFocusOnClick) {
|
|
2285
2340
|
var s = r;
|
|
2286
|
-
if (r < i.
|
|
2341
|
+
if (r < i.dd() || r >= i.ed())
|
|
2287
2342
|
return void i.select(r);
|
|
2288
2343
|
}
|
|
2289
2344
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
2290
2345
|
for (var n = 0; n < 7; n++) {
|
|
2291
2346
|
var l = a.cells[n][o];
|
|
2292
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.
|
|
2347
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.Zc(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
2293
2348
|
}
|
|
2294
2349
|
i.selectionStart = s, i.selectionEnd = d;
|
|
2295
2350
|
break;
|
|
2296
2351
|
default: throw "unknown selectMode";
|
|
2297
2352
|
}
|
|
2298
|
-
i.
|
|
2299
|
-
} }, this.
|
|
2353
|
+
i.ad(), i.L();
|
|
2354
|
+
} }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.oa()) {
|
|
2300
2355
|
var r = {};
|
|
2301
2356
|
if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
2302
2357
|
return;
|
|
@@ -2325,7 +2380,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2325
2380
|
break;
|
|
2326
2381
|
case "None": break;
|
|
2327
2382
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
2328
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.
|
|
2383
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.rd(i.skipMonths); }, this.Sc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Jc(), this.Oc(), this.fd(), this.ad(), this.gd(), this._c(); }, this.dd = function () { return i.startDate.firstDayOfMonth(); }, this.ed = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.gd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.oa()) {
|
|
2329
2384
|
var a = {};
|
|
2330
2385
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
2331
2386
|
return;
|
|
@@ -2352,10 +2407,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2352
2407
|
this.onVisibleRangeChanged(e, t);
|
|
2353
2408
|
break;
|
|
2354
2409
|
case "Disabled":
|
|
2355
|
-
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.
|
|
2356
|
-
var t = this.
|
|
2357
|
-
this.
|
|
2358
|
-
} this.root.style.height = this.
|
|
2410
|
+
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i._c(); }, this.fd = function () { for (var e = 0; e < this.showMonths; e++) {
|
|
2411
|
+
var t = this.sd(e);
|
|
2412
|
+
this.Kc(e, t);
|
|
2413
|
+
} this.root.style.height = this.td() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.td = function () { if ("Horizontal" === this.orientation) {
|
|
2359
2414
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2360
2415
|
var i = this.months[t];
|
|
2361
2416
|
i.height > e && (e = i.height);
|
|
@@ -2364,67 +2419,66 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2364
2419
|
} for (var a = 0, t = 0; t < this.months.length; t++) {
|
|
2365
2420
|
var i = this.months[t];
|
|
2366
2421
|
a += i.height;
|
|
2367
|
-
} return a; }, this.
|
|
2368
|
-
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.
|
|
2369
|
-
var o = this.
|
|
2422
|
+
} return a; }, this.sd = function (e) { if (this.internal.showLinks)
|
|
2423
|
+
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.$a, this.internal.initialized = function () { return i.za; }, this._ = {};
|
|
2424
|
+
var o = this._;
|
|
2370
2425
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
|
|
2371
2426
|
var e = o.locale();
|
|
2372
2427
|
return e ? e.weekStarts : 0;
|
|
2373
|
-
} return i.weekStarts; }, o.cellWidth = function () { if (i.
|
|
2374
|
-
return i.
|
|
2428
|
+
} return i.weekStarts; }, o.cellWidth = function () { if (i.eb.cellWidth)
|
|
2429
|
+
return i.eb.cellWidth; var e = i.ud("_cell_dimensions").width; return e || (e = i.cellWidth), i.eb.cellWidth = e, e; }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2375
2430
|
var t = this.selected[e];
|
|
2376
|
-
i
|
|
2377
|
-
} this.selected = []; }, this.
|
|
2431
|
+
i.$c(t.parentNode, t.x, t.y);
|
|
2432
|
+
} this.selected = []; }, this.vd = function () {
|
|
2433
|
+
return !!this.backendUrl && ("undefined" == typeof i.items || !i.items);
|
|
2434
|
+
}, this.events = {}, this.ca = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2378
2435
|
this.items = {};
|
|
2379
2436
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2380
2437
|
var t = this.events.list[e];
|
|
2381
2438
|
if (!t.hidden) {
|
|
2382
|
-
var i = this.
|
|
2439
|
+
var i = this.wd(t);
|
|
2383
2440
|
for (var a in i)
|
|
2384
2441
|
this.items[a] = 1;
|
|
2385
2442
|
}
|
|
2386
2443
|
}
|
|
2387
|
-
} }, this.
|
|
2388
|
-
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
2444
|
+
} }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
|
|
2445
|
+
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () { if (this.id && this.id.tagName)
|
|
2389
2446
|
this.nav.top = this.id;
|
|
2390
2447
|
else {
|
|
2391
2448
|
if ("string" != typeof this.id)
|
|
2392
2449
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2393
2450
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2394
2451
|
throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
|
|
2395
|
-
} this.root = this.nav.top; }, this.init = function () {
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
var e = this.Oc;
|
|
2401
|
-
this.select(e.date1, e.date2, e.options), this.Oc = null;
|
|
2402
|
-
}
|
|
2403
|
-
return this;
|
|
2452
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.db(), !this.root.dp) {
|
|
2453
|
+
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.xd(), this.Ya();
|
|
2454
|
+
if (this.vd() && this.gd(), this.za = !0, this.cb(), this.cd) {
|
|
2455
|
+
var e = this.cd;
|
|
2456
|
+
this.select(e.date1, e.date2, e.options), this.cd = null;
|
|
2404
2457
|
}
|
|
2405
|
-
|
|
2458
|
+
return this;
|
|
2459
|
+
} }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Ya = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) { if (a.start && a.end) {
|
|
2406
2460
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
2407
2461
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
2408
2462
|
return a.start = null, void a.clear();
|
|
2409
2463
|
a.clear();
|
|
2410
2464
|
var o = a.ordered();
|
|
2411
|
-
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.
|
|
2412
|
-
i.
|
|
2413
|
-
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.
|
|
2465
|
+
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Jc(), i.Oc(), i.fd(), i._c(), i.ad();
|
|
2466
|
+
i.L({ "mode": "FreeHand" });
|
|
2467
|
+
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.hd = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.$a(t);
|
|
2414
2468
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
2415
2469
|
var i = new DayPilot.Navigator(this.id);
|
|
2416
2470
|
this.daypilot = i;
|
|
2417
2471
|
for (var a in e)
|
|
2418
2472
|
i[a] = e[a];
|
|
2419
2473
|
i.Init(), t || (t = i);
|
|
2420
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.
|
|
2474
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.qa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2421
2475
|
(0, e(r).assign)(t, n);
|
|
2422
2476
|
} for (var s in a)
|
|
2423
2477
|
if (0 === s.indexOf("on")) {
|
|
2424
2478
|
var l = DayPilot.Util.shouldApply(s);
|
|
2425
2479
|
l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
|
|
2426
2480
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
|
|
2427
|
-
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
2481
|
+
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ca(), n._c(); }, !0); }; } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2428
2482
|
}
|
|
2429
2483
|
}();
|
|
2430
2484
|
|