@daypilot/daypilot-lite-angular 3.5.0 → 3.7.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 +269 -228
- package/esm2020/lib/daypilot-calendar.component.mjs +2 -4
- package/esm2020/lib/daypilot-month.component.mjs +2 -4
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +444 -361
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +270 -233
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +1 -1
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ DayPilot Lite
|
|
|
103
103
|
Copyright (c) 2005 - 2022 Annpoint s.r.o.
|
|
104
104
|
http://www.daypilot.org/
|
|
105
105
|
Licensed under Apache Software License 2.0
|
|
106
|
-
Version: 2022.
|
|
106
|
+
Version: 2022.3.393-lite
|
|
107
107
|
*/
|
|
108
108
|
if ("undefined" == typeof DayPilot)
|
|
109
109
|
var DayPilot = {};
|
|
@@ -131,7 +131,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
131
131
|
var c = u + "-" + s + "-" + l + "T" + d + ":" + i + ":" + n + a;
|
|
132
132
|
return t[e] = c, c;
|
|
133
133
|
}
|
|
134
|
-
function t(e) {
|
|
134
|
+
function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
|
|
135
|
+
function a(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
|
|
135
136
|
if ("undefined" == typeof DayPilot.$) {
|
|
136
137
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot.isKhtml = navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1, DayPilot.isIE = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, DayPilot.mo2 = function (e, t) {
|
|
137
138
|
if (t = t || window.event, "undefined" != typeof t.offsetX) {
|
|
@@ -272,8 +273,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
272
273
|
return null;
|
|
273
274
|
var t = e.toLowerCase();
|
|
274
275
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
275
|
-
}, 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", ""],
|
|
276
|
-
"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) {
|
|
276
|
+
}, 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", ""],
|
|
277
|
+
"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) {
|
|
277
278
|
var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
|
|
278
279
|
if (2 === arguments.length) {
|
|
279
280
|
var i = arguments[0], d = arguments[1];
|
|
@@ -356,7 +357,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
356
357
|
for (var r = t.dayOfWeek(); r !== e;)
|
|
357
358
|
t = t.addDays(-1), r = t.dayOfWeek();
|
|
358
359
|
return new DayPilot.Date(t);
|
|
359
|
-
}, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new
|
|
360
|
+
}, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new r(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new r(t, a).parse(e); };
|
|
360
361
|
DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, DayPilot.Date.now = function () { return new DayPilot.Date; }, DayPilot.Date.fromYearMonthDay = function (e, t, a) { t = t || 1, a = a || 1; var r = new Date(0); return r.setUTCFullYear(e), r.setUTCMonth(t - 1), r.setUTCDate(a), new DayPilot.Date(r); }, DayPilot.DateUtil = {}, DayPilot.DateUtil.fromStringSortable = function (e, t) {
|
|
361
362
|
if (!e)
|
|
362
363
|
throw "Can't create DayPilot.Date from an empty string";
|
|
@@ -417,35 +418,35 @@ if ("undefined" == typeof DayPilot)
|
|
|
417
418
|
}
|
|
418
419
|
return r + ":" + a;
|
|
419
420
|
}, DayPilot.DateUtil.max = function (e, t) { return e.getTime() > t.getTime() ? e : t; }, DayPilot.DateUtil.min = function (e, t) { return e.getTime() < t.getTime() ? e : t; };
|
|
420
|
-
var
|
|
421
|
-
"string" == typeof
|
|
422
|
-
var
|
|
421
|
+
var r = function (e, a) {
|
|
422
|
+
"string" == typeof a && (a = DayPilot.Locale.find(a));
|
|
423
|
+
var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNamesShort[e.getDayOfWeek()]; } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
|
|
423
424
|
this.init = function () { this.year = this.findSequence("yyyy"), this.month = this.findSequence("MMMM") || this.findSequence("MMM") || this.findSequence("MM") || this.findSequence("M"), this.day = this.findSequence("dd") || this.findSequence("d"), this.hours = this.findSequence("HH") || this.findSequence("H"), this.minutes = this.findSequence("mm") || this.findSequence("m"), this.seconds = this.findSequence("ss") || this.findSequence("s"), this.ampm = this.findSequence("tt"), this.hours12 = this.findSequence("hh") || this.findSequence("h"); }, this.findSequence = function (t) {
|
|
424
|
-
function
|
|
425
|
+
function a(e) { return parseInt(e); }
|
|
425
426
|
return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
|
|
426
|
-
for (var i =
|
|
427
|
-
var s = (
|
|
428
|
-
s && (u = "(" + u + ")", d =
|
|
427
|
+
for (var i = o(e), d = null, l = 0; l < r.length; l++) {
|
|
428
|
+
var s = (r[l].length, t === r[l].seq), u = r[l].expr;
|
|
429
|
+
s && (u = "(" + u + ")", d = r[l].transform), i = i.replace(r[l].seq, u);
|
|
429
430
|
}
|
|
430
431
|
i = "^" + i + "$";
|
|
431
432
|
try {
|
|
432
433
|
var c = new RegExp(i), f = c.exec(n);
|
|
433
|
-
return f ? (d = d ||
|
|
434
|
+
return f ? (d = d || a)(f[1]) : null;
|
|
434
435
|
}
|
|
435
436
|
catch (e) {
|
|
436
437
|
throw "unable to create regex from: " + i;
|
|
437
438
|
}
|
|
438
439
|
} };
|
|
439
440
|
}, this.print = function (t) {
|
|
440
|
-
for (var
|
|
441
|
-
for (var t = 0; t <
|
|
442
|
-
if (
|
|
443
|
-
return
|
|
441
|
+
for (var a = function (e) {
|
|
442
|
+
for (var t = 0; t < r.length; t++)
|
|
443
|
+
if (r[t] && r[t].seq === e)
|
|
444
|
+
return r[t];
|
|
444
445
|
return null;
|
|
445
446
|
}, o = e.length <= 0, n = 0, i = []; !o;) {
|
|
446
447
|
var d = e.substring(n), l = /%?(.)\1*/.exec(d);
|
|
447
448
|
if (l && l.length > 0) {
|
|
448
|
-
var s = l[0], u =
|
|
449
|
+
var s = l[0], u = a(s);
|
|
449
450
|
u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
|
|
450
451
|
}
|
|
451
452
|
else
|
|
@@ -489,7 +490,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
489
490
|
if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
490
491
|
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
|
|
491
492
|
return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) };
|
|
492
|
-
}, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" +
|
|
493
|
+
}, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) {
|
|
493
494
|
var r = this;
|
|
494
495
|
this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
|
|
495
496
|
var o = {}, n = ["id", "text", "start", "end", "resource"];
|
|
@@ -644,7 +645,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
644
645
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
645
646
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
646
647
|
var s = this;
|
|
647
|
-
this.uniqueID = null, this.v = "2022.
|
|
648
|
+
this.uniqueID = null, this.v = "2022.3.393-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.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
|
|
648
649
|
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
649
650
|
return new Number(RegExp.$1) >= 10.5;
|
|
650
651
|
}
|
|
@@ -654,7 +655,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
654
655
|
return new Number(RegExp.$1) >= 522;
|
|
655
656
|
}
|
|
656
657
|
return !1;
|
|
657
|
-
}(), this.cleanSelection = this.clearSelection, this.k = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.m = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.n, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.o, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.p(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.q(), e.r(), 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 = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.s = function () { this.nav.top.dispose = this.dispose; }, this.n = function (e) { s.o(e.responseText); }, this.l = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.t = function (e, t) {
|
|
658
|
+
}(), this.cleanSelection = this.clearSelection, this.k = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.m = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.n, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.o, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.p(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.q(), e.r(), 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.s = function () { this.nav.top.dispose = this.dispose; }, this.n = function (e) { s.o(e.responseText); }, this.l = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.t = function (e, t) {
|
|
658
659
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
659
660
|
i = i.parentNode;
|
|
660
661
|
var n = document.createElement("div");
|
|
@@ -1149,8 +1150,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1149
1150
|
}
|
|
1150
1151
|
for (var v = 0; v < n; v++) {
|
|
1151
1152
|
var r = e.insertRow(-1);
|
|
1152
|
-
r.style.MozUserSelect = "none",
|
|
1153
|
-
r.style.KhtmlUserSelect = "none";
|
|
1153
|
+
r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
|
|
1154
1154
|
for (var h = 0; h < l; h++) {
|
|
1155
1155
|
var p = this.S[h], c = r.insertCell(-1);
|
|
1156
1156
|
c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.T, 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 = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
@@ -1294,7 +1294,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
1294
1294
|
var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
|
|
1295
1295
|
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
|
|
1296
1296
|
}
|
|
1297
|
-
}, this.update = function (e) {
|
|
1297
|
+
}, this.update = function (e) {
|
|
1298
|
+
if (s.ua(e), this.Y) {
|
|
1299
|
+
s.va(), s.p(), s.nav.top.style.cursor = "auto";
|
|
1300
|
+
s.B(), s.E(), s.F(), s.G(), s.H(), s.ja(), s.wa(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1301
|
+
}
|
|
1302
|
+
}, this.xa = null, this.ua = function (e) {
|
|
1298
1303
|
if (e) {
|
|
1299
1304
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
|
|
1300
1305
|
this.xa = t;
|
|
@@ -1400,7 +1405,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
1400
1405
|
0 === o && (h = r);
|
|
1401
1406
|
var c = {};
|
|
1402
1407
|
return c.cut = !1, c.top = this.Da(l), c.boxTop = this.Da(r), c.boxBottom = this.Da(h), this.cache.pixels[n + "_" + i] = c, c;
|
|
1403
|
-
}, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ca(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.qa = function () {
|
|
1408
|
+
}, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ca(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.qa = function () {
|
|
1409
|
+
if (s.nav.scroll) {
|
|
1410
|
+
var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight);
|
|
1411
|
+
s.ra.scrollHour = t;
|
|
1412
|
+
}
|
|
1413
|
+
}, this.wa = function () { var e = 0; s.ra.scrollHour ? e = 2 * s.cellHeight * s.ra.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ea = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Fa = function () { this.va(), this.B(), this.ba(), this.E(), this.F(), this.sa(), this.pa(), this.ta(), t.register(this), this.Ga(), this.m("Init"); }, this.ra = {}, this.Ha = function () { this.ra.themes = [], this.ra.themes.push(this.theme || this.cssClassPrefix); }, this.Ia = function () {
|
|
1404
1414
|
for (var e = this.ra.themes, t = 0; t < e.length; t++) {
|
|
1405
1415
|
var i = e[t];
|
|
1406
1416
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
@@ -1417,7 +1427,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1417
1427
|
var e = {};
|
|
1418
1428
|
this.onInit(e);
|
|
1419
1429
|
}
|
|
1420
|
-
}, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.pa(), s.sa(), clearInterval(s.Na)); }, 100)); }, this.na = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.xssTextHtml = s.na, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.ba(), this.E(), this.F(), this.A(), this.sa(), this.pa(), this.ta(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.Y = !0, this); }, this.Init = this.init, this.ua(i);
|
|
1430
|
+
}, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.pa(), s.sa(), clearInterval(s.Na)); }, 100)); }, this.na = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.ua, this.internal.xssTextHtml = s.na, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.ba(), this.E(), this.F(), this.A(), this.sa(), this.pa(), this.ta(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.Y = !0, this); }, this.Init = this.init, this.ua(i);
|
|
1421
1431
|
}, t.Cell = function (e, t, i) { this.start = e, this.end = t, this.column = function () { }; }, t.Column = function (e, t, i) { this.value = e, this.name = t, this.date = new DayPilot.Date(i); }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1422
1432
|
e.fn.daypilotCalendar = function (e) {
|
|
1423
1433
|
var t = null, i = this.each(function () {
|
|
@@ -1460,54 +1470,68 @@ if ("undefined" == typeof DayPilot)
|
|
|
1460
1470
|
var DayPilot = {};
|
|
1461
1471
|
!function () {
|
|
1462
1472
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1463
|
-
this.v = "2022.
|
|
1473
|
+
this.v = "2022.3.393-lite";
|
|
1464
1474
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1465
|
-
this.prepare = function () {
|
|
1466
|
-
if (this.locale = "en-us", this.target = null, this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.
|
|
1475
|
+
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1476
|
+
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
|
|
1467
1477
|
for (var e in t)
|
|
1468
1478
|
this[e] = t[e];
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
var t = this.e();
|
|
1479
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () {
|
|
1480
|
+
var t = this.d();
|
|
1472
1481
|
if (!t)
|
|
1473
1482
|
return this.date;
|
|
1474
1483
|
var e = null;
|
|
1475
1484
|
if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
|
|
1476
1485
|
return null;
|
|
1477
|
-
for (var
|
|
1478
|
-
if (
|
|
1479
|
-
return
|
|
1480
|
-
|
|
1486
|
+
for (var n = DayPilot.Date.parse(e, i.pattern), a = 0; a < i.patterns.length; a++) {
|
|
1487
|
+
if (n)
|
|
1488
|
+
return n;
|
|
1489
|
+
n = DayPilot.Date.parse(e, i.patterns[a]);
|
|
1481
1490
|
}
|
|
1482
|
-
return
|
|
1491
|
+
return n;
|
|
1483
1492
|
}, this.c = function (t) {
|
|
1484
|
-
var e = this.
|
|
1493
|
+
var e = this.d();
|
|
1485
1494
|
if (e) {
|
|
1486
|
-
var
|
|
1487
|
-
"INPUT" === e.tagName ? e.value =
|
|
1495
|
+
var n = t.toString(i.pattern, i.locale);
|
|
1496
|
+
"INPUT" === e.tagName ? e.value = n : e.innerHTML = n;
|
|
1488
1497
|
}
|
|
1489
|
-
}, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.
|
|
1498
|
+
}, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.d = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, Object.defineProperty(this, "visible", { get: function () { return i.e; } }), this.show = function () {
|
|
1499
|
+
if (!this.e) {
|
|
1500
|
+
var t = this.d(), n = this.navigator, n = new DayPilot.Navigator(e);
|
|
1501
|
+
n.api = 2, n.cssOnly = !0, n.theme = i.theme, n.weekStarts = "Auto", n.locale = i.locale, n.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start.addTime(n.f), a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = n;
|
|
1502
|
+
var a = DayPilot.abs(t), o = t.offsetHeight, s = i.targetAlignment, r = document.createElement("div");
|
|
1503
|
+
r.style.position = "absolute", "left" === s && (r.style.left = a.x + "px"), r.style.top = a.y + o + "px", i.zIndex && (r.style.zIndex = i.zIndex);
|
|
1504
|
+
var l = document.createElement("div");
|
|
1505
|
+
l.id = e, r.appendChild(l), r.addEventListener("mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r;
|
|
1506
|
+
var h = i.b() || (new DayPilot.Date).getDatePart();
|
|
1507
|
+
if (n.startDate = h, n.f = h.getTimePart(), n.selectionDay = h.getDatePart(), n.init(), "right" === s) {
|
|
1508
|
+
var d = a.x + t.offsetWidth - n.nav.top.offsetWidth;
|
|
1509
|
+
r.style.left = d + "px";
|
|
1510
|
+
}
|
|
1511
|
+
this.e = !0, this.onShow && this.onShow();
|
|
1512
|
+
}
|
|
1513
|
+
}, this.prepare(), this.init();
|
|
1490
1514
|
});
|
|
1491
1515
|
}();
|
|
1492
1516
|
"undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
1493
1517
|
"use strict";
|
|
1494
|
-
function e(t,
|
|
1495
|
-
var n =
|
|
1518
|
+
function e(t, a, i) {
|
|
1519
|
+
var n = a.indexOf(".");
|
|
1496
1520
|
if (n === -1)
|
|
1497
|
-
return void ("__proto__" !==
|
|
1498
|
-
var o =
|
|
1521
|
+
return void ("__proto__" !== a && "constructor" !== a && (t[a] = i));
|
|
1522
|
+
var o = a.substring(0, n);
|
|
1499
1523
|
if ("__proto__" !== o && "constructor" !== o) {
|
|
1500
|
-
var l =
|
|
1501
|
-
"object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l,
|
|
1524
|
+
var l = a.substring(n + 1), d = t[o];
|
|
1525
|
+
"object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, i);
|
|
1502
1526
|
}
|
|
1503
1527
|
}
|
|
1504
|
-
function t(e,
|
|
1505
|
-
|
|
1528
|
+
function t(e, a, i) {
|
|
1529
|
+
a = a || {}, i = i || "";
|
|
1506
1530
|
for (var n in e) {
|
|
1507
1531
|
var o = e[n];
|
|
1508
|
-
"object" == typeof o ? "[object Array]" === Object.prototype.toString.call(o) ? i
|
|
1532
|
+
"object" == typeof o ? "[object Array]" === Object.prototype.toString.call(o) ? a[i + n] = o : o && o.toJSON ? a[i + n] = o.toJSON() : t(o, a, i + n + ".") : a[i + n] = o;
|
|
1509
1533
|
}
|
|
1510
|
-
return
|
|
1534
|
+
return a;
|
|
1511
1535
|
}
|
|
1512
1536
|
if (!DayPilot.ModalStatic) {
|
|
1513
1537
|
DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () {
|
|
@@ -1516,12 +1540,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
1516
1540
|
e && e.hide();
|
|
1517
1541
|
}
|
|
1518
1542
|
}, DayPilot.ModalStatic.remove = function (e) {
|
|
1519
|
-
for (var t = DayPilot.ModalStatic.list,
|
|
1520
|
-
if (t[
|
|
1521
|
-
return void t.splice(
|
|
1543
|
+
for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
|
|
1544
|
+
if (t[a] === e)
|
|
1545
|
+
return void t.splice(a, 1);
|
|
1522
1546
|
}, DayPilot.ModalStatic.close = function (e) { DayPilot.ModalStatic.result(e), DayPilot.ModalStatic.hide(); }, DayPilot.ModalStatic.result = function (e) { var t = DayPilot.ModalStatic.list; t.length > 0 && (t[t.length - 1].result = e); }, DayPilot.ModalStatic.displayed = function (e) {
|
|
1523
|
-
for (var t = DayPilot.ModalStatic.list,
|
|
1524
|
-
if (t[
|
|
1547
|
+
for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
|
|
1548
|
+
if (t[a] === e)
|
|
1525
1549
|
return !0;
|
|
1526
1550
|
return !1;
|
|
1527
1551
|
}, DayPilot.ModalStatic.stretch = function () {
|
|
@@ -1530,28 +1554,28 @@ if ("undefined" == typeof DayPilot)
|
|
|
1530
1554
|
e && e.stretch();
|
|
1531
1555
|
}
|
|
1532
1556
|
}, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
|
|
1533
|
-
var
|
|
1557
|
+
var a = function () {
|
|
1534
1558
|
var e = document.createElement("style");
|
|
1535
1559
|
e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
1536
|
-
var t = !!e.styleSheet,
|
|
1537
|
-
return
|
|
1560
|
+
var t = !!e.styleSheet, a = {};
|
|
1561
|
+
return a.rules = [], a.commit = function () {
|
|
1538
1562
|
try {
|
|
1539
1563
|
t && (e.styleSheet.cssText = this.rules.join("\n"));
|
|
1540
1564
|
}
|
|
1541
1565
|
catch (e) { }
|
|
1542
|
-
},
|
|
1566
|
+
}, a.add = function (a, i, n) {
|
|
1543
1567
|
if (t)
|
|
1544
|
-
return void this.rules.push(
|
|
1568
|
+
return void this.rules.push(a + "{" + i + "}");
|
|
1545
1569
|
if (e.sheet.insertRule)
|
|
1546
|
-
"undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(
|
|
1570
|
+
"undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + i + "}", n);
|
|
1547
1571
|
else {
|
|
1548
1572
|
if (!e.sheet.addRule)
|
|
1549
1573
|
throw "No CSS registration method found";
|
|
1550
|
-
e.sheet.addRule(
|
|
1574
|
+
e.sheet.addRule(a, i, n);
|
|
1551
1575
|
}
|
|
1552
|
-
},
|
|
1553
|
-
},
|
|
1554
|
-
a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"), a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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==" + ")"), navigator.userAgent.indexOf("Edge") !== -1 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K" + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.commit(), DayPilot.Modal = function (e) {
|
|
1576
|
+
}, a;
|
|
1577
|
+
}, i = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new a;
|
|
1578
|
+
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==" + ")"), 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(" + i + ");"), 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(" + i + ");"), 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) {
|
|
1555
1579
|
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;
|
|
1556
1580
|
var t = this;
|
|
1557
1581
|
this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.a = !1, this.b = null, this.c = null, this.showHtml = function (e) {
|
|
@@ -1569,11 +1593,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
1569
1593
|
throw "This modal dialog is already displayed.";
|
|
1570
1594
|
if (this.useIframe) {
|
|
1571
1595
|
this.div || this.d();
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1596
|
+
var a = this.loadingHtml;
|
|
1597
|
+
a && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", a)), this.re(this.iframe, "load", this.h), this.iframe.src = e, this.e(), this.f(), this.g();
|
|
1574
1598
|
}
|
|
1575
1599
|
else
|
|
1576
|
-
t.i({ "url": e, "success": function (e) { var
|
|
1600
|
+
t.i({ "url": e, "success": function (e) { var a = e.request.responseText; t.showHtml(a); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
|
|
1577
1601
|
}, this.g = function () {
|
|
1578
1602
|
if ("function" == typeof t.onShow) {
|
|
1579
1603
|
var e = {};
|
|
@@ -1582,12 +1606,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
1582
1606
|
}, this.j = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.i = function (e) {
|
|
1583
1607
|
var t = new XMLHttpRequest;
|
|
1584
1608
|
if (t) {
|
|
1585
|
-
var
|
|
1586
|
-
t.open(
|
|
1609
|
+
var a = e.method || "GET", i = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
|
|
1610
|
+
t.open(a, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () {
|
|
1587
1611
|
if (4 === t.readyState)
|
|
1588
1612
|
if (200 === t.status || 304 === t.status) {
|
|
1589
1613
|
var e = {};
|
|
1590
|
-
e.request = t,
|
|
1614
|
+
e.request = t, i(e);
|
|
1591
1615
|
}
|
|
1592
1616
|
else if (n) {
|
|
1593
1617
|
var e = {};
|
|
@@ -1597,10 +1621,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
1597
1621
|
window.console && console.log("HTTP error " + t.status);
|
|
1598
1622
|
}, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1599
1623
|
}
|
|
1600
|
-
}, this.e = function () { delete this.result; var e = window,
|
|
1601
|
-
var e = function () { return t.k().y; },
|
|
1624
|
+
}, this.e = function () { delete this.result; var e = window, a = document, i = e.pageYOffset ? e.pageYOffset : a.documentElement && a.documentElement.scrollTop ? a.documentElement.scrollTop : a.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 = i + 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.l(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.h = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
|
|
1625
|
+
var e = function () { return t.k().y; }, a = function () { return t.k().x; };
|
|
1602
1626
|
if (this.useIframe) {
|
|
1603
|
-
for (var
|
|
1627
|
+
for (var i = a() - 40, n = this.width; n < i && this.m(); n += 10)
|
|
1604
1628
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
1605
1629
|
for (var o = this.maxHeight || e() - 2 * this.top, l = this.height; l < o && this.n(); l += 10)
|
|
1606
1630
|
this.iframe.style.height = l + "px", this.div.style.height = l + "px";
|
|
@@ -1609,29 +1633,29 @@ if ("undefined" == typeof DayPilot)
|
|
|
1609
1633
|
else
|
|
1610
1634
|
this.div.style.height = "";
|
|
1611
1635
|
}, this.m = function () {
|
|
1612
|
-
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement,
|
|
1613
|
-
var o =
|
|
1614
|
-
|
|
1636
|
+
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, a = t.scrollWidth, i = e.body.children, n = 0; n < i.length; n++) {
|
|
1637
|
+
var o = i[n].offsetLeft + i[n].offsetWidth;
|
|
1638
|
+
a = Math.max(a, o);
|
|
1615
1639
|
}
|
|
1616
|
-
return
|
|
1640
|
+
return a > t.clientWidth;
|
|
1617
1641
|
}, this.n = function () {
|
|
1618
|
-
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement,
|
|
1619
|
-
var o =
|
|
1620
|
-
|
|
1642
|
+
for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, a = t.scrollHeight, i = e.body.children, n = 0; n < i.length; n++) {
|
|
1643
|
+
var o = i[n].offsetTop + i[n].offsetHeight;
|
|
1644
|
+
a = Math.max(a, o);
|
|
1621
1645
|
}
|
|
1622
|
-
return
|
|
1646
|
+
return a > t.clientHeight;
|
|
1623
1647
|
}, this.k = function () {
|
|
1624
1648
|
var e = document;
|
|
1625
1649
|
if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1626
|
-
var t = e.documentElement.clientWidth,
|
|
1627
|
-
return { x: t, y:
|
|
1650
|
+
var t = e.documentElement.clientWidth, a = e.documentElement.clientHeight;
|
|
1651
|
+
return { x: t, y: a };
|
|
1628
1652
|
}
|
|
1629
|
-
var t = e.body.clientWidth,
|
|
1630
|
-
return { x: t, y:
|
|
1653
|
+
var t = e.body.clientWidth, a = e.body.clientHeight;
|
|
1654
|
+
return { x: t, y: a };
|
|
1631
1655
|
}, this.f = function () { this.a || (this.re(window, "resize", this.o), this.re(window, "scroll", this.p), this.dragDrop && (this.re(document, "mousemove", this.q), this.re(document, "mouseup", this.r)), this.a = !0); }, this.s = function () { this.ue(window, "resize", this.o), this.ue(window, "scroll", this.p), this.dragDrop && (this.ue(document, "mousemove", this.q), this.ue(document, "mouseup", this.r)), this.a = !1; }, this.t = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.u(), t.c = t.mc(e || window.event), t.b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.q = function (e) {
|
|
1632
1656
|
if (t.c) {
|
|
1633
|
-
var e = e || window.event,
|
|
1634
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x +
|
|
1657
|
+
var e = e || window.event, a = t.mc(e), i = a.x - t.c.x, n = a.y - t.c.y;
|
|
1658
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + i + "px";
|
|
1635
1659
|
}
|
|
1636
1660
|
}, this.r = function (e) { t.c && (t.v(), t.div.style.cursor = null, t.c = null); }, this.u = function () {
|
|
1637
1661
|
if (this.useIframe) {
|
|
@@ -1648,30 +1672,30 @@ if ("undefined" == typeof DayPilot)
|
|
|
1648
1672
|
var e = t.z.scrollY();
|
|
1649
1673
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1650
1674
|
}
|
|
1651
|
-
}, this.z = {}, this.z.container = function () { return t.container || document.body; }, this.z.scrollY = function () { var e = t.z.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,
|
|
1675
|
+
}, this.z = {}, this.z.container = function () { return t.container || document.body; }, this.z.scrollY = function () { var e = t.z.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, a) { e.addEventListener ? e.addEventListener(t, a, !1) : e.attachEvent && e.attachEvent("on" + t, a); }, this.ue = function (e, t, a) { e.removeEventListener ? e.removeEventListener(t, a, !1) : e.detachEvent && e.detachEvent("on" + t, a); }, 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) {
|
|
1652
1676
|
for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1653
1677
|
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
|
|
1654
1678
|
return t;
|
|
1655
|
-
}, this.d = function () { var e = t.z.container(),
|
|
1656
|
-
for (var e = t.j(),
|
|
1657
|
-
var o =
|
|
1679
|
+
}, this.d = function () { var e = t.z.container(), a = e === document.body, i = a ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = i, 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 = i, 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.t), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var l = null; this.useIframe && (l = document.createElement("iframe"), l.id = this.id + "iframe", l.name = this.id + "iframe", l.frameBorder = "0", l.style.width = "100%", l.style.height = "50px", o.appendChild(l)), e.appendChild(o), this.div = o, this.iframe = l, this.hideDiv = n; }, this.setInnerHTML = function (e, a) { var i = window.frames[e], n = i.contentWindow || i.document || i.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), a.nodeType ? n.body.appendChild(a) : n.body.innerHTML = a, t.autoStretch && (t.autoStretchFirstLoadOnly && t.A || (t.stretch(), t.A = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
|
|
1680
|
+
for (var e = t.j(), a = e.querySelectorAll("input, textarea, select"), i = {}, n = 0; n < a.length; n++) {
|
|
1681
|
+
var o = a[n], l = o.name;
|
|
1658
1682
|
if (l) {
|
|
1659
1683
|
var d = o.value;
|
|
1660
|
-
|
|
1684
|
+
i[l] = d;
|
|
1661
1685
|
}
|
|
1662
1686
|
}
|
|
1663
|
-
t.close(
|
|
1664
|
-
}, this.hide = function (e) { e = e || {}; var
|
|
1687
|
+
t.close(i);
|
|
1688
|
+
}, this.hide = function (e) { e = e || {}; var a = {}; a.backgroundClick = !!e.backgroundClick, a.result = this.result, a.canceled = "undefined" == typeof this.result, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(a), a.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(a) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.s(), 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.C = function () {
|
|
1665
1689
|
if (e)
|
|
1666
1690
|
for (var t in e)
|
|
1667
1691
|
this[t] = e[t];
|
|
1668
1692
|
}, this.C();
|
|
1669
|
-
}, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var
|
|
1670
|
-
"object" == typeof t && (
|
|
1671
|
-
var
|
|
1693
|
+
}, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var a = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (i, n) { t.onClosed = function (e) { i(e); }; var o = new DayPilot.Modal(t), l = document.createElement("div"); l.className = o.theme + "_inner"; var d = document.createElement("div"); d.className = o.theme + "_content", d.innerHTML = e; var r = document.createElement("div"); r.className = o.theme + "_buttons"; var s = document.createElement("button"); s.innerText = a, s.className = o.theme + "_ok", s.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, r.appendChild(s), l.appendChild(d), l.appendChild(r), o.showHtml(l), o.autoFocus && s.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var a = t.okText || "OK", i = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var l = new DayPilot.Modal(t), d = document.createElement("div"); d.className = l.theme + "_inner"; var r = document.createElement("div"); r.className = l.theme + "_content", r.innerHTML = e; var s = document.createElement("div"); s.className = l.theme + "_buttons"; var c = document.createElement("button"); c.innerText = a, c.className = l.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), m = document.createElement("button"); m.innerText = i, m.className = l.theme + "_cancel", m.onclick = function (e) { DayPilot.ModalStatic.close(); }, s.appendChild(c), s.appendChild(u), s.appendChild(m), d.appendChild(r), d.appendChild(s), l.showHtml(d), l.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, a) {
|
|
1694
|
+
"object" == typeof t && (a = t, t = ""), a = a || {}, a.height = a.height || 40, a.useIframe = !1;
|
|
1695
|
+
var i = a.okText || "OK", n = a.cancelText || "Cancel", o = t || "";
|
|
1672
1696
|
return DayPilot.getPromise(function (t, l) {
|
|
1673
|
-
|
|
1674
|
-
var d = new DayPilot.Modal(
|
|
1697
|
+
a.onClosed = function (e) { t(e); };
|
|
1698
|
+
var d = new DayPilot.Modal(a), r = document.createElement("div");
|
|
1675
1699
|
r.className = d.theme + "_inner";
|
|
1676
1700
|
var s = document.createElement("div");
|
|
1677
1701
|
s.className = d.theme + "_content", s.innerHTML = e;
|
|
@@ -1694,80 +1718,80 @@ if ("undefined" == typeof DayPilot)
|
|
|
1694
1718
|
var m = document.createElement("div");
|
|
1695
1719
|
m.className = d.theme + "_buttons";
|
|
1696
1720
|
var h = document.createElement("button");
|
|
1697
|
-
h.innerText =
|
|
1721
|
+
h.innerText = i, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); };
|
|
1698
1722
|
var p = document.createTextNode(" "), f = document.createElement("button");
|
|
1699
1723
|
f.innerText = n, f.className = d.theme + "_cancel", f.onclick = function (e) { d.close(); }, m.appendChild(h), m.appendChild(p), m.appendChild(f), r.appendChild(s), r.appendChild(c), r.appendChild(m), d.showHtml(r), d.autoFocus && u.focus();
|
|
1700
1724
|
});
|
|
1701
1725
|
};
|
|
1702
|
-
var
|
|
1703
|
-
DayPilot.Modal.form = function (t,
|
|
1726
|
+
var o = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
|
|
1727
|
+
DayPilot.Modal.form = function (t, a, i) {
|
|
1704
1728
|
if (1 === arguments.length) {
|
|
1705
|
-
var
|
|
1706
|
-
if (n
|
|
1707
|
-
|
|
1729
|
+
var n = t;
|
|
1730
|
+
if (o(n))
|
|
1731
|
+
a = {};
|
|
1708
1732
|
else {
|
|
1709
|
-
if ("object" != typeof
|
|
1733
|
+
if ("object" != typeof n)
|
|
1710
1734
|
throw "Invalid DayPilot.Modal.form() parameter";
|
|
1711
|
-
|
|
1712
|
-
for (var d in
|
|
1735
|
+
a = t, t = [];
|
|
1736
|
+
for (var d in a) {
|
|
1713
1737
|
var r = {};
|
|
1714
1738
|
r.name = d, r.id = d, t.push(r);
|
|
1715
1739
|
}
|
|
1716
1740
|
}
|
|
1717
1741
|
}
|
|
1718
1742
|
var s = {};
|
|
1719
|
-
for (var d in
|
|
1720
|
-
s[d] =
|
|
1743
|
+
for (var d in i)
|
|
1744
|
+
s[d] = i[d];
|
|
1721
1745
|
s.height = s.height || 40, s.useIframe = !1;
|
|
1722
1746
|
var c = s.okText || "OK", u = s.cancelText || "Cancel";
|
|
1723
|
-
return DayPilot.getPromise(function (
|
|
1747
|
+
return DayPilot.getPromise(function (i, n) {
|
|
1724
1748
|
s.onClosed = function (t) {
|
|
1725
1749
|
if (t.result) {
|
|
1726
|
-
var n = JSON.parse(JSON.stringify(
|
|
1750
|
+
var n = JSON.parse(JSON.stringify(a));
|
|
1727
1751
|
for (var o in t.result)
|
|
1728
1752
|
e(n, o, t.result[o]);
|
|
1729
1753
|
t.result = n;
|
|
1730
1754
|
}
|
|
1731
|
-
|
|
1755
|
+
i(t);
|
|
1732
1756
|
};
|
|
1733
|
-
var
|
|
1734
|
-
d.className =
|
|
1757
|
+
var o = new DayPilot.Modal(s), d = document.createElement("div");
|
|
1758
|
+
d.className = o.theme + "_inner";
|
|
1735
1759
|
var r = document.createElement("div");
|
|
1736
|
-
r.className =
|
|
1737
|
-
var m = new
|
|
1760
|
+
r.className = o.theme + "_input";
|
|
1761
|
+
var m = new l({ theme: o.theme, form: t, data: a, zIndex: o.zIndex, locale: o.locale, plugins: o.plugins, onKey: function (e) {
|
|
1738
1762
|
switch (e.key) {
|
|
1739
1763
|
case "Enter":
|
|
1740
|
-
m.validate() &&
|
|
1764
|
+
m.validate() && o.close(m.serialize());
|
|
1741
1765
|
break;
|
|
1742
|
-
case "Escape":
|
|
1766
|
+
case "Escape": o.close();
|
|
1743
1767
|
}
|
|
1744
|
-
}, onChange: function (e) { "function" == typeof
|
|
1768
|
+
}, onChange: function (e) { "function" == typeof o.onChange && o.onChange(e); } }), h = m.create();
|
|
1745
1769
|
r.append(h);
|
|
1746
1770
|
var p = document.createElement("div");
|
|
1747
|
-
p.className =
|
|
1771
|
+
p.className = o.theme + "_buttons";
|
|
1748
1772
|
var f = document.createElement("button");
|
|
1749
|
-
f.innerText = c, f.className =
|
|
1773
|
+
f.innerText = c, f.className = o.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && o.close(m.serialize()); };
|
|
1750
1774
|
var v = document.createTextNode(" "), g = document.createElement("button");
|
|
1751
|
-
if (g.innerText = u, g.className =
|
|
1775
|
+
if (g.innerText = u, g.className = o.theme + "_cancel", g.onclick = function (e) { o.close(); }, g.onmousedown = function (e) { m.canceling = !0; }, p.appendChild(f), p.appendChild(v), p.appendChild(g), d.appendChild(r), d.appendChild(p), o.showHtml(d), o.div.setAttribute("tabindex", "-1"), o.div.addEventListener("keydown", function (e) {
|
|
1752
1776
|
switch (e.keyCode) {
|
|
1753
1777
|
case 27:
|
|
1754
|
-
|
|
1778
|
+
o.close();
|
|
1755
1779
|
break;
|
|
1756
|
-
case 13: m.validate() &&
|
|
1780
|
+
case 13: m.validate() && o.close(m.serialize());
|
|
1757
1781
|
}
|
|
1758
|
-
}),
|
|
1782
|
+
}), o.focus) {
|
|
1759
1783
|
var b = null;
|
|
1760
|
-
if ("object" == typeof
|
|
1761
|
-
var y =
|
|
1762
|
-
b = m.findViewById(y,
|
|
1784
|
+
if ("object" == typeof o.focus) {
|
|
1785
|
+
var y = o.focus.id, _ = o.focus.value;
|
|
1786
|
+
b = m.findViewById(y, _);
|
|
1763
1787
|
}
|
|
1764
1788
|
else
|
|
1765
|
-
"string" == typeof
|
|
1789
|
+
"string" == typeof o.focus && (b = m.findViewById(o.focus));
|
|
1766
1790
|
b && b.focus();
|
|
1767
1791
|
}
|
|
1768
1792
|
else {
|
|
1769
|
-
var
|
|
1770
|
-
|
|
1793
|
+
var I = m.firstFocusable();
|
|
1794
|
+
o.autoFocus && I ? I.focus() : o.div.focus();
|
|
1771
1795
|
}
|
|
1772
1796
|
});
|
|
1773
1797
|
}, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
|
|
@@ -1775,33 +1799,30 @@ if ("undefined" == typeof DayPilot)
|
|
|
1775
1799
|
if (!t)
|
|
1776
1800
|
throw "Unable to find the opener DayPilot.Modal instance.";
|
|
1777
1801
|
t.stretch();
|
|
1778
|
-
}, 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 =
|
|
1779
|
-
var
|
|
1802
|
+
}, 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 = l, "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, a) { return t = t || function () { }, a = a || function () { }, e(t, a), DayPilot.getPromise(e); }, this["catch"] = function (a) { return t.then(null, a), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
1803
|
+
var l = function (e) {
|
|
1780
1804
|
this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.D = [], this.E = null, this.canceling = !1, this.F = [], this.G = [], this.H = null, e = e || {};
|
|
1781
1805
|
for (var t in e)
|
|
1782
1806
|
this[t] = e[t];
|
|
1783
1807
|
};
|
|
1784
|
-
|
|
1785
|
-
var t = this.theme,
|
|
1786
|
-
if (
|
|
1808
|
+
l.prototype.create = function () { return this.load(), this.render(), this.H; }, l.prototype.render = function () { var e = this; this.H = document.createElement("div"), this.D.forEach(function (t) { e.createView(t); }), this.applyState(); }, l.prototype.createView = function (e) {
|
|
1809
|
+
var t = this.theme, a = this, i = document.createElement("div");
|
|
1810
|
+
if (i.className = t + "_form_item " + t + "_form_item_level" + e.level,
|
|
1811
|
+
e.interactive || "title" !== e.type ? i.className += " " + t + "_form_item_" + e.type : i.className += " " + t + "_form_title", e.data.cssClass && (i.className += " " + e.data.cssClass), !e.isValue) {
|
|
1787
1812
|
var n = document.createElement("div");
|
|
1788
|
-
n.className = t + "_form_item_label", n.innerText = e.text,
|
|
1813
|
+
n.className = t + "_form_item_label", n.innerText = e.text, i.appendChild(n);
|
|
1789
1814
|
}
|
|
1790
1815
|
var o = this.createInteractive(e);
|
|
1791
1816
|
o.onInput = function (e) {
|
|
1792
|
-
if (e = e || {},
|
|
1817
|
+
if (e = e || {}, a.I(o, { "debounce": !e.immediate }), "function" == typeof a.onChange) {
|
|
1793
1818
|
var t = {};
|
|
1794
|
-
t.result =
|
|
1819
|
+
t.result = a.serialize(), a.onChange(t);
|
|
1795
1820
|
}
|
|
1796
|
-
}, o.onBlur = function () {
|
|
1797
|
-
},
|
|
1798
|
-
function
|
|
1799
|
-
e.J && (e.J.remove(), e.J = null), e.H.classList.add(u);
|
|
1800
|
-
var t = document.createElement("div");
|
|
1801
|
-
t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t);
|
|
1802
|
-
}
|
|
1821
|
+
}, o.onBlur = function () { a.canceling || a.I(o); }, o.apply(e), o.H = i, o.row = e, o.element && i.appendChild(o.element), this.G.push(o), this.H.appendChild(i);
|
|
1822
|
+
}, l.prototype.validate = function () { var e = this, t = !0; return this.G.forEach(function (a) { var i = e.I(a); t = t && i; }), t; }, l.prototype.I = function (e, t) {
|
|
1823
|
+
function a() { e.J && (e.J.remove(), e.J = null), e.H.classList.add(u); var t = document.createElement("div"); t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t); }
|
|
1803
1824
|
t = t || {};
|
|
1804
|
-
var
|
|
1825
|
+
var i = t.debounce, n = t.silent, o = e.row, l = !0, d = "function" == typeof o.data.onValidate ? o.data.onValidate : null, r = "function" == typeof o.data.validate ? o.data.validate : null, s = d || r;
|
|
1805
1826
|
if (s) {
|
|
1806
1827
|
var c = {};
|
|
1807
1828
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), s(c);
|
|
@@ -1809,70 +1830,70 @@ if ("undefined" == typeof DayPilot)
|
|
|
1809
1830
|
if (c.valid)
|
|
1810
1831
|
clearTimeout(this.F[o.field]), e.J && (e.J.remove(), e.J = null), e.H.classList.remove(u);
|
|
1811
1832
|
else if (!n)
|
|
1812
|
-
if (
|
|
1833
|
+
if (i) {
|
|
1813
1834
|
var h = 1e3;
|
|
1814
|
-
clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () {
|
|
1835
|
+
clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { a(); }, h);
|
|
1815
1836
|
}
|
|
1816
1837
|
else
|
|
1817
|
-
|
|
1838
|
+
a();
|
|
1818
1839
|
l = c.valid;
|
|
1819
1840
|
}
|
|
1820
1841
|
return l;
|
|
1821
|
-
},
|
|
1842
|
+
}, l.prototype.load = function () {
|
|
1822
1843
|
var e = this;
|
|
1823
1844
|
this.form.forEach(function (t) { e.processFormItem(t, 0); });
|
|
1824
|
-
var
|
|
1845
|
+
var a;
|
|
1825
1846
|
try {
|
|
1826
|
-
var
|
|
1827
|
-
|
|
1847
|
+
var i = JSON.stringify(this.data);
|
|
1848
|
+
a = t(JSON.parse(i));
|
|
1828
1849
|
}
|
|
1829
1850
|
catch (e) {
|
|
1830
1851
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1831
1852
|
}
|
|
1832
|
-
for (var n in
|
|
1833
|
-
this.setValue(n,
|
|
1834
|
-
},
|
|
1835
|
-
var
|
|
1836
|
-
if ("radio" ===
|
|
1853
|
+
for (var n in a)
|
|
1854
|
+
this.setValue(n, a[n]);
|
|
1855
|
+
}, l.prototype.setValue = function (e, t) { this.D.forEach(function (a) { a.applyValue(e, t); }); }, l.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.E ? this.E : this.D).forEach(function (a) { var i = e.updateState(a, { enabled: t[a.level] && !a.data.disabled }); i.isValue && (t[i.level + 1] = i.enabled && i.checked); }); }, l.prototype.processFormItem = function (e, t) {
|
|
1856
|
+
var a = this, i = this.getFieldType(e), n = [];
|
|
1857
|
+
if ("radio" === i) {
|
|
1837
1858
|
if (e.name) {
|
|
1838
|
-
var o = new
|
|
1839
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name,
|
|
1859
|
+
var o = new d;
|
|
1860
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.D.push(o), n.push(o);
|
|
1840
1861
|
}
|
|
1841
|
-
e.options.forEach(function (o) { var
|
|
1862
|
+
e.options.forEach(function (o) { var l = new d; l.field = e.id, l.data = o, l.level = t, l.type = i, l.isValue = !0, l.text = o.name, l.resolved = o.id, a.D.push(l), n.push(l), o.children && o.children.forEach(function (e) { var i = a.processFormItem(e, t + 1); n = n.concat(i); }); });
|
|
1842
1863
|
}
|
|
1843
|
-
else if ("title" ===
|
|
1844
|
-
var o = new
|
|
1845
|
-
o.field = e.id, o.data = e, o.level = t, o.type =
|
|
1864
|
+
else if ("title" === i) {
|
|
1865
|
+
var o = new d;
|
|
1866
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.D.push(o), n.push(o);
|
|
1846
1867
|
}
|
|
1847
|
-
else if ("image" ===
|
|
1848
|
-
var o = new
|
|
1849
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type =
|
|
1868
|
+
else if ("image" === i) {
|
|
1869
|
+
var o = new d;
|
|
1870
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
|
|
1850
1871
|
}
|
|
1851
|
-
else if ("html" ===
|
|
1852
|
-
var o = new
|
|
1853
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type =
|
|
1872
|
+
else if ("html" === i) {
|
|
1873
|
+
var o = new d;
|
|
1874
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
|
|
1854
1875
|
}
|
|
1855
|
-
else if ("scrollable" ===
|
|
1856
|
-
var o = new
|
|
1857
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type =
|
|
1876
|
+
else if ("scrollable" === i) {
|
|
1877
|
+
var o = new d;
|
|
1878
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
|
|
1858
1879
|
}
|
|
1859
1880
|
else {
|
|
1860
|
-
var o = new
|
|
1861
|
-
o.field = e.id, o.data = e, o.level = t, o.type =
|
|
1881
|
+
var o = new d;
|
|
1882
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.D.push(o), n.push(o);
|
|
1862
1883
|
}
|
|
1863
|
-
return "checkbox" ===
|
|
1864
|
-
},
|
|
1884
|
+
return "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var i = a.processFormItem(e, t + 1); n = n.concat(i); })), n;
|
|
1885
|
+
}, l.prototype.doOnKey = function (e) {
|
|
1865
1886
|
if ("function" == typeof this.onKey) {
|
|
1866
1887
|
var t = { key: e };
|
|
1867
1888
|
this.onKey(t);
|
|
1868
1889
|
}
|
|
1869
|
-
},
|
|
1870
|
-
var t = this,
|
|
1871
|
-
var
|
|
1872
|
-
|
|
1873
|
-
var
|
|
1874
|
-
return
|
|
1875
|
-
var
|
|
1890
|
+
}, l.prototype.createInteractive = function (e) {
|
|
1891
|
+
var t = this, a = { "label": function () { return new r; }, "title": function () { return new r; }, "image": function () { var t = new r, a = document.createElement("img"); return a.src = e.data.image, t.element = a, t; }, "html": function () { var t = new r, a = document.createElement("div"); return "string" == typeof e.data.text ? a.innerText = e.data.text : "string" == typeof e.data.html && (a.innerHTML = e.data.html), t.element = a, t; }, "scrollable": function () { var a = new r, i = document.createElement("div"); i.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (i.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), i.appendChild(n), a.element = i, a; }, "text": function () {
|
|
1892
|
+
var a = new r;
|
|
1893
|
+
a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; };
|
|
1894
|
+
var i = document.createElement("input");
|
|
1895
|
+
return i.name = e.field, i.type = "text", i.autocomplete = "off", i.onkeydown = function (e) {
|
|
1896
|
+
var a = !1;
|
|
1876
1897
|
switch (e.keyCode) {
|
|
1877
1898
|
case 13:
|
|
1878
1899
|
t.doOnKey("Enter");
|
|
@@ -1880,35 +1901,35 @@ if ("undefined" == typeof DayPilot)
|
|
|
1880
1901
|
case 27:
|
|
1881
1902
|
t.doOnKey("Escape");
|
|
1882
1903
|
break;
|
|
1883
|
-
default:
|
|
1904
|
+
default: a = !0;
|
|
1884
1905
|
}
|
|
1885
|
-
|
|
1886
|
-
},
|
|
1906
|
+
a || (e.preventDefault(), e.stopPropagation());
|
|
1907
|
+
}, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(), a.element.setSelectionRange(0, a.element.value.length); }, a.save = function () { var t = {}; return t[e.field] = i.value, t; }, a;
|
|
1887
1908
|
}, "textarea": function () {
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1890
|
-
var
|
|
1891
|
-
return
|
|
1892
|
-
var
|
|
1909
|
+
var a = new r;
|
|
1910
|
+
a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; };
|
|
1911
|
+
var i = document.createElement("textarea");
|
|
1912
|
+
return i.name = e.field, e.data.height && (i.style.height = e.data.height + "px"), i.onkeydown = function (e) {
|
|
1913
|
+
var a = !1;
|
|
1893
1914
|
switch (e.keyCode) {
|
|
1894
1915
|
case 13:
|
|
1895
|
-
(e.ctrlKey || e.metaKey) && t.doOnKey("Enter"),
|
|
1916
|
+
(e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), a = !1;
|
|
1896
1917
|
break;
|
|
1897
1918
|
case 27:
|
|
1898
1919
|
t.doOnKey("Escape");
|
|
1899
1920
|
break;
|
|
1900
|
-
default:
|
|
1921
|
+
default: a = !0;
|
|
1901
1922
|
}
|
|
1902
|
-
|
|
1903
|
-
},
|
|
1923
|
+
a || e.stopPropagation();
|
|
1924
|
+
}, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(), a.element.setSelectionRange(0, 0); }, a.save = function () { var t = {}; return t[e.field] = i.value, t; }, a;
|
|
1904
1925
|
}, "date": function () {
|
|
1905
|
-
var
|
|
1906
|
-
|
|
1907
|
-
var
|
|
1908
|
-
|
|
1909
|
-
var n = new DayPilot.DatePicker({ target:
|
|
1910
|
-
return
|
|
1911
|
-
var
|
|
1926
|
+
var a = new r;
|
|
1927
|
+
a.apply = function (e) { a.row = e; var i = a.element, n = a.picker; e.data.dateFormat && (n.pattern = e.data.dateFormat); var o = e.data.locale || t.locale; o && (n.locale = o), i.disabled = !e.enabled, n.date = new DayPilot.Date(e.value); var l = new DayPilot.Date(e.value).toString(e.data.dateFormat || n.pattern, n.locale); i.value = l; };
|
|
1928
|
+
var i = document.createElement("input");
|
|
1929
|
+
i.name = e.field;
|
|
1930
|
+
var n = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { a.onInput({ "immediate": !0 }); } });
|
|
1931
|
+
return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) {
|
|
1932
|
+
var a = !1;
|
|
1912
1933
|
switch (e.keyCode) {
|
|
1913
1934
|
case 13:
|
|
1914
1935
|
n.visible ? n.close() : t.doOnKey("Enter");
|
|
@@ -1917,102 +1938,168 @@ if ("undefined" == typeof DayPilot)
|
|
|
1917
1938
|
n.visible ? n.close() : t.doOnKey("Escape");
|
|
1918
1939
|
break;
|
|
1919
1940
|
case 9:
|
|
1920
|
-
n.close(),
|
|
1941
|
+
n.close(), a = !0;
|
|
1921
1942
|
break;
|
|
1922
|
-
default:
|
|
1943
|
+
default: a = !0;
|
|
1923
1944
|
}
|
|
1924
|
-
|
|
1925
|
-
},
|
|
1926
|
-
}, "select": function () { var t = new
|
|
1927
|
-
var
|
|
1928
|
-
|
|
1929
|
-
var
|
|
1930
|
-
n.type = "radio", n.name = e.field, n.
|
|
1945
|
+
a || (e.preventDefault(), e.stopPropagation());
|
|
1946
|
+
}, i.onfocus = function () { n.show(); }, i.onclick = function () { n.show(); }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.picker = n, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(); }, a.save = function () { var t = n.date ? n.date.toString() : null, a = {}; return a[e.field] = t, a; }, a;
|
|
1947
|
+
}, "time": function () { return t.K(e); }, "datetime": function () { return t.L(e); }, "select": function () { var t = new r; t.apply = function (e) { t.row = e; var a = t.element; a.value = e.value, a.disabled = !e.enabled; }; var a = document.createElement("select"); return a.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.M = e.id, a.appendChild(t); }), a.onchange = function (e) { t.onInput({ "immediate": !0 }); }, a.onblur = function (e) { t.onBlur(); }, t.element = a, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, i = a.options[a.selectedIndex]; i && "undefined" != typeof i.M && (t = i.M); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new s({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } }), n = i.create(); return a.element = n, a.searchable = i, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.searchable.focus(); }, a.save = function () { var t = i.selected && i.selected.id, a = {}; return a[e.field] = t, a; }, a; }, "radio": function () {
|
|
1948
|
+
var a = new r;
|
|
1949
|
+
a.apply = function (e) { a.row = e; var t = a.radio; t.checked = e.checked, t.disabled = !e.enabled; };
|
|
1950
|
+
var i = document.createElement("label"), n = document.createElement("input");
|
|
1951
|
+
n.type = "radio", n.name = e.field, n.M = e.resolved, n.onchange = function (e) { var i = a.row; t.findRowsByField(i.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(i, { checked: !0 }), t.applyState(), a.onInput({ "immediate": !0 }); }, n.onblur = function (e) { a.onBlur(); }, i.appendChild(n);
|
|
1931
1952
|
var o = document.createTextNode(e.text);
|
|
1932
|
-
return
|
|
1953
|
+
return i.append(o), a.element = i, a.radio = n, a.canFocus = function () { return !1; }, a.focus = function () { a.radio.focus(); }, a.save = function () {
|
|
1933
1954
|
if (!n.checked)
|
|
1934
1955
|
return {};
|
|
1935
|
-
var t = n.
|
|
1936
|
-
return
|
|
1937
|
-
},
|
|
1938
|
-
}, "checkbox": function () { var
|
|
1939
|
-
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) :
|
|
1940
|
-
},
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1956
|
+
var t = n.M, a = {};
|
|
1957
|
+
return a[e.field] = t, a;
|
|
1958
|
+
}, a;
|
|
1959
|
+
}, "checkbox": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.M = e.resolved, n.onchange = function (e) { var i = a.row; t.updateState(i, { checked: this.checked }), t.applyState(), a.onInput({ "immediate": !0 }); }, n.onblur = function (e) { a.onBlur(); }, i.appendChild(n); var o = document.createTextNode(e.text); return i.append(o), a.element = i, a.checkbox = n, a.canFocus = function () { return !1; }, a.focus = function () { a.checkbox.focus(); }, a.save = function () { var t = n.checked, a = {}; return a[e.field] = t, a; }, a; }, "table": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { a.onInput(); } }), n = i.create(); return a.element = n, a.table = i, a.canFocus = function () { return !1; }, a.focus = function () { a.table.focus(); }, a.save = function () { var t = i.save(), a = {}; return a[e.field] = t, a; }, a; } };
|
|
1960
|
+
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : a[e.type]();
|
|
1961
|
+
}, l.prototype.K = function (e) {
|
|
1962
|
+
var t = this, a = new r;
|
|
1963
|
+
a.apply = function (e) { a.row = e; var t = a.searchable; t.disabled = !e.enabled, t.select(e.value); };
|
|
1964
|
+
var i = [], n = e.data.timeInterval || 15;
|
|
1965
|
+
[1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15);
|
|
1966
|
+
for (var o = 60 / n, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1967
|
+
var m = c.addMinutes(n * u), h = {};
|
|
1968
|
+
h.name = m.toString(e.data.timeFormat || d.timePattern, d), h.id = m.toString("HH:mm"), i.push(h);
|
|
1969
|
+
}
|
|
1970
|
+
var p = new s({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } }), f = p.create();
|
|
1971
|
+
return a.element = f, a.searchable = p, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.searchable.focus(); }, a.save = function () { var t = p.selected && p.selected.id, a = {}; return a[e.field] = t, a; }, a;
|
|
1972
|
+
}, l.prototype.L = function (e) {
|
|
1973
|
+
var t = this, a = new r;
|
|
1974
|
+
a.apply = function (e) {
|
|
1975
|
+
a.row = e;
|
|
1976
|
+
var i = a.searchable;
|
|
1977
|
+
i.disabled = !e.enabled;
|
|
1978
|
+
var n = new DayPilot.Date(e.value).toString("HH:mm");
|
|
1979
|
+
i.select(n);
|
|
1980
|
+
var o = a.dateInput, l = a.picker;
|
|
1981
|
+
e.data.dateFormat && (l.pattern = e.data.dateFormat);
|
|
1982
|
+
var d = e.data.locale || t.locale;
|
|
1983
|
+
if (d) {
|
|
1984
|
+
var r = DayPilot.Locale.find(d) || DayPilot.Locale.US;
|
|
1985
|
+
l.locale = d, l.pattern = r.datePattern;
|
|
1986
|
+
}
|
|
1987
|
+
o.disabled = !e.enabled, l.date = new DayPilot.Date(e.value);
|
|
1988
|
+
var s = new DayPilot.Date(e.value).toString(e.data.dateFormat || l.pattern, l.locale);
|
|
1989
|
+
o.value = s;
|
|
1990
|
+
};
|
|
1991
|
+
var i = function () {
|
|
1992
|
+
var i = document.createElement("input");
|
|
1993
|
+
i.name = e.field;
|
|
1994
|
+
var n = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { a.onInput({ "immediate": !0 }); } });
|
|
1995
|
+
return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) {
|
|
1996
|
+
var a = !1;
|
|
1997
|
+
switch (e.keyCode) {
|
|
1998
|
+
case 13:
|
|
1999
|
+
n.visible ? n.close() : t.doOnKey("Enter");
|
|
2000
|
+
break;
|
|
2001
|
+
case 27:
|
|
2002
|
+
n.visible ? n.close() : t.doOnKey("Escape");
|
|
2003
|
+
break;
|
|
2004
|
+
case 9:
|
|
2005
|
+
n.close(), a = !0;
|
|
2006
|
+
break;
|
|
2007
|
+
default: a = !0;
|
|
2008
|
+
}
|
|
2009
|
+
a || (e.preventDefault(), e.stopPropagation());
|
|
2010
|
+
}, i.onfocus = function () { n.show(); }, i.onclick = function () { n.show(); }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.dateInput = i, a.picker = n, i;
|
|
2011
|
+
}(), n = function () {
|
|
2012
|
+
var i = [], n = e.data.timeInterval || 15;
|
|
2013
|
+
[1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15);
|
|
2014
|
+
for (var o = 60 / n, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, r = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
2015
|
+
var u = r.addMinutes(n * c), m = {};
|
|
2016
|
+
m.name = u.toString(e.data.timeFormat || d.timePattern, d), m.id = u.toString("HH:mm"), i.push(m);
|
|
2017
|
+
}
|
|
2018
|
+
var h = new s({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } });
|
|
2019
|
+
return a.searchable = h, h.create();
|
|
2020
|
+
}(), o = document.createElement("div");
|
|
2021
|
+
return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(n), a.element = o, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.dateInput.focus(); }, a.save = function () { var t = a.searchable.selected && a.searchable.selected.id, i = a.picker.date ? a.picker.date.toString() : null, n = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), l = {}; return l[e.field] = o, l; }, a;
|
|
2022
|
+
}, l.prototype.findRowsByField = function (e) { return this.D.filter(function (t) { return t.field === e; }); }, l.prototype.findViewById = function (e, t) { return this.G.find(function (a) { return a.row.field === e && ("radio" !== a.row.type || a.row.resolved === t); }); }, l.prototype.firstFocusable = function () { return this.G.find(function (e) { return e.canFocus && e.canFocus(); }); }, l.prototype.updateState = function (e, t) {
|
|
2023
|
+
var a = this.E ? this.E : this.D, i = a.indexOf(e);
|
|
2024
|
+
return this.E = a.map(function (a) {
|
|
2025
|
+
if (a !== e)
|
|
2026
|
+
return a;
|
|
1945
2027
|
if (e.propsEqual(t))
|
|
1946
2028
|
return e;
|
|
1947
|
-
var
|
|
2029
|
+
var i = e.clone();
|
|
1948
2030
|
for (var n in t)
|
|
1949
|
-
|
|
1950
|
-
return
|
|
1951
|
-
}), this.E[
|
|
1952
|
-
},
|
|
2031
|
+
i[n] = t[n];
|
|
2032
|
+
return i;
|
|
2033
|
+
}), this.E[i];
|
|
2034
|
+
}, l.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, l.prototype.applyState = function () {
|
|
1953
2035
|
var e = this;
|
|
1954
2036
|
if (this.updateDependentState(), this.E) {
|
|
1955
|
-
this.E.filter(function (t,
|
|
2037
|
+
this.E.filter(function (t, a) { return e.D[a] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
|
|
1956
2038
|
}
|
|
1957
|
-
},
|
|
2039
|
+
}, l.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"; }, l.prototype.serialize = function () {
|
|
1958
2040
|
var e = {};
|
|
1959
2041
|
return this.G.forEach(function (t) {
|
|
1960
|
-
var
|
|
1961
|
-
for (var
|
|
1962
|
-
e[
|
|
2042
|
+
var a = t.save();
|
|
2043
|
+
for (var i in a)
|
|
2044
|
+
e[i] = a[i];
|
|
1963
2045
|
}), e;
|
|
1964
2046
|
};
|
|
1965
|
-
var
|
|
1966
|
-
|
|
1967
|
-
var e = new
|
|
2047
|
+
var d = 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; };
|
|
2048
|
+
d.prototype.clone = function () {
|
|
2049
|
+
var e = new d;
|
|
1968
2050
|
for (var t in this)
|
|
1969
2051
|
"id" !== t && (e[t] = this[t]);
|
|
1970
2052
|
return e;
|
|
1971
|
-
},
|
|
2053
|
+
}, d.prototype.propsEqual = function (e) {
|
|
1972
2054
|
for (var t in e)
|
|
1973
2055
|
if (this[t] !== e[t])
|
|
1974
2056
|
return !1;
|
|
1975
2057
|
return !0;
|
|
1976
|
-
},
|
|
1977
|
-
var
|
|
1978
|
-
this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
1979
|
-
var t = this,
|
|
1980
|
-
Object.defineProperty(this, "selected", { get: function () { return this.
|
|
1981
|
-
for (var
|
|
1982
|
-
i
|
|
1983
|
-
for (var
|
|
1984
|
-
i
|
|
2058
|
+
}, d.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(); }, d.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
|
|
2059
|
+
var r = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, s = function (e) {
|
|
2060
|
+
this.data = [], this.name = null, this.theme = "searchable_default", this.N = !1, this.listZIndex = 1e5, this.onSelect = null, this.O = null, this.P = null, this.Q = !1, this.R = null, this.S = null, this.T = [], this.U = null, e = e || {};
|
|
2061
|
+
var t = this, a = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.O = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
|
|
2062
|
+
Object.defineProperty(this, "selected", { get: function () { return this.O; } }), Object.defineProperty(this, "disabled", { get: function () { return this.N; }, set: function (e) { this.N = e, this.R && (this.R.disabled = e, e && this.V()); } });
|
|
2063
|
+
for (var i in e)
|
|
2064
|
+
a[i] || (this[i] = e[i]);
|
|
2065
|
+
for (var i in e)
|
|
2066
|
+
a[i] && a[i].post(e[i]);
|
|
1985
2067
|
};
|
|
1986
|
-
|
|
1987
|
-
function e() {
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2068
|
+
s.prototype.select = function (e) { return this.O = this.data.find(function (t) { return t.id === e; }), this.W(!1), this; }, s.prototype.create = function () {
|
|
2069
|
+
function e(e) {
|
|
2070
|
+
var a = r.strategy;
|
|
2071
|
+
"includes" !== r.strategy && "startsWith" !== r.strategy && (a = "includes"), e = e || a || "includes", m.style.display = "", m.style.top = p.offsetHeight + "px", m.style.left = "0px", m.style.width = p.offsetWidth + "px", m.innerHTML = "", m.addEventListener("mousedown", function (e) { e.preventDefault(); }), r.P = null, r.T = [];
|
|
2072
|
+
var n = null;
|
|
2073
|
+
r.data.forEach(function (a) {
|
|
2074
|
+
var o = a.name || a.id;
|
|
2075
|
+
if ("includes" === e) {
|
|
2076
|
+
if (o.toLowerCase().indexOf(p.value.toLowerCase()) === -1)
|
|
2077
|
+
return;
|
|
1995
2078
|
}
|
|
1996
|
-
|
|
2079
|
+
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(p.value.toLowerCase()))
|
|
2080
|
+
return;
|
|
2081
|
+
var l = document.createElement("div");
|
|
2082
|
+
l.className = r.theme + "_list_item", l.innerText = o, l.item = a, a === r.O && (r.P = l), n || (n = l), l.addEventListener("mousedown", function (e) { i(l), e.preventDefault(); }), l.addEventListener("mousemove", function (e) { r.P !== l && (r.P = l, t({ dontScroll: !0 })); }), m.appendChild(l), r.T.push(l);
|
|
2083
|
+
}), r.P || (r.P = n), t();
|
|
1997
2084
|
}
|
|
1998
|
-
function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + r.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(r.theme + "_list_item_highlight", ""); }), r.
|
|
1999
|
-
function
|
|
2000
|
-
function
|
|
2001
|
-
function n() { r.
|
|
2002
|
-
function o() { r.
|
|
2003
|
-
function l() { r.
|
|
2004
|
-
function d() { r.
|
|
2085
|
+
function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + r.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(r.theme + "_list_item_highlight", ""); }), r.P && (r.P.className += " " + r.theme + "_list_item_highlight", t && !a(r.P, m) && r.P.scrollIntoView()); }
|
|
2086
|
+
function a(e, t) { var a = e.getBoundingClientRect(), i = t.getBoundingClientRect(); return a.top >= i.top && a.bottom <= i.bottom; }
|
|
2087
|
+
function i(e) { var t = e.item; r.O = t, r.W(!0), o(), l(); }
|
|
2088
|
+
function n() { r.V(); }
|
|
2089
|
+
function o() { r.X(); }
|
|
2090
|
+
function l() { r.Q = !0, p.setAttribute("readonly", "readonly"), p.focus(); }
|
|
2091
|
+
function d() { r.Q = !1, p.removeAttribute("readonly"), p.select(), e("all"); }
|
|
2005
2092
|
var r = this, s = this, c = document.createElement("div");
|
|
2006
2093
|
c.className = this.theme + "_main", c.style.position = "relative";
|
|
2007
2094
|
var u = document.createElement("div");
|
|
2008
|
-
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(), r.
|
|
2095
|
+
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(), r.Q ? (r.focus(), d()) : (n(), l()); });
|
|
2009
2096
|
var m = document.createElement("div");
|
|
2010
2097
|
m.className = this.theme + "_list", m.style.display = "none", m.style.position = "absolute", m.style.zIndex = this.listZIndex;
|
|
2011
2098
|
var h = document.createElement("input");
|
|
2012
|
-
h.type = "hidden", h.name = this.name, h.searchable = s, this.
|
|
2099
|
+
h.type = "hidden", h.name = this.name, h.searchable = s, this.U = h;
|
|
2013
2100
|
var p = document.createElement("input");
|
|
2014
|
-
return p.type = "text", p.className = this.theme + "_input", p.disabled = this.
|
|
2015
|
-
if (r.
|
|
2101
|
+
return p.type = "text", p.className = this.theme + "_input", p.disabled = this.N, p.addEventListener("click", function (e) { d(); }), p.addEventListener("focus", function (t) { e("all"); }), p.addEventListener("input", function (t) { e(); }), p.addEventListener("blur", function (e) { p.removeAttribute("readonly"), n(); }), p.addEventListener("keydown", function (e) {
|
|
2102
|
+
if (r.Q) {
|
|
2016
2103
|
if ("Enter" === e.key)
|
|
2017
2104
|
return;
|
|
2018
2105
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
@@ -2020,119 +2107,119 @@ if ("undefined" == typeof DayPilot)
|
|
|
2020
2107
|
d();
|
|
2021
2108
|
}
|
|
2022
2109
|
if ("ArrowDown" === e.key) {
|
|
2023
|
-
var
|
|
2024
|
-
|
|
2110
|
+
var a = s.T.indexOf(s.P);
|
|
2111
|
+
a + 1 < s.T.length && (s.P = s.T[a + 1]), t();
|
|
2025
2112
|
}
|
|
2026
2113
|
else if ("ArrowUp" === e.key) {
|
|
2027
|
-
var
|
|
2028
|
-
|
|
2114
|
+
var a = s.T.indexOf(s.P);
|
|
2115
|
+
a - 1 >= 0 && (s.P = s.T[a - 1]), t();
|
|
2029
2116
|
}
|
|
2030
2117
|
else
|
|
2031
|
-
"Enter" === e.key ? r.
|
|
2032
|
-
}), this.
|
|
2033
|
-
},
|
|
2034
|
-
if (this.
|
|
2118
|
+
"Enter" === e.key ? r.P ? (e.stopPropagation(), i(r.P)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l());
|
|
2119
|
+
}), this.R = p, this.S = m, this.O || (this.O = this.data[0], this.O && (p.value = this.O.name)), c.appendChild(p), c.appendChild(u), c.appendChild(h), c.appendChild(m), c;
|
|
2120
|
+
}, s.prototype.V = function () { this.X(), this.O ? this.R.value = this.O.name : (this.R.value = "", this.W(!0)); }, s.prototype.focus = function () { this.Q = !0, this.R.setAttribute("readonly", "readonly"), this.R.focus(), this.V(); }, s.prototype.X = function () { this.S.style.display = "none"; }, s.prototype.W = function (e) {
|
|
2121
|
+
if (this.U.value = this.selected ? this.selected.id : null, this.O ? this.R.value = this.O.name : this.R.value = "", "function" == typeof this.onSelect) {
|
|
2035
2122
|
var t = { control: this, ui: e };
|
|
2036
2123
|
this.onSelect(t);
|
|
2037
2124
|
}
|
|
2038
2125
|
};
|
|
2039
|
-
var
|
|
2040
|
-
this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
2126
|
+
var c = function (e) {
|
|
2127
|
+
this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Y = null, this.D = [], e = e || {};
|
|
2041
2128
|
for (var t in e)
|
|
2042
2129
|
this[t] = e[t];
|
|
2043
2130
|
};
|
|
2044
|
-
|
|
2131
|
+
c.prototype.create = function () {
|
|
2045
2132
|
var e = this, t = document.createElement("div");
|
|
2046
2133
|
t.className = this.theme + "_main", t.style.position = "relative";
|
|
2047
|
-
var
|
|
2048
|
-
|
|
2049
|
-
var
|
|
2050
|
-
|
|
2051
|
-
var n = this.
|
|
2052
|
-
|
|
2053
|
-
var o = e
|
|
2134
|
+
var a = document.createElement("input");
|
|
2135
|
+
a.type = "hidden", a.name = e.name, a.table = this, t.appendChild(a);
|
|
2136
|
+
var i = document.createElement("div");
|
|
2137
|
+
i.className = this.theme + "_table";
|
|
2138
|
+
var n = this.Z();
|
|
2139
|
+
i.appendChild(n);
|
|
2140
|
+
var o = e.$({});
|
|
2054
2141
|
o.spacer = !0;
|
|
2055
|
-
var l = this.
|
|
2056
|
-
l.classList.add(e.theme + "_spacer"),
|
|
2142
|
+
var l = this._(o);
|
|
2143
|
+
l.classList.add(e.theme + "_spacer"), i.appendChild(l);
|
|
2057
2144
|
var d = document.createElement("div");
|
|
2058
|
-
d.className = e.theme + "_tbody",
|
|
2145
|
+
d.className = e.theme + "_tbody", i.appendChild(d), t.appendChild(i);
|
|
2059
2146
|
var r = document.createElement("div");
|
|
2060
|
-
t.appendChild(r), this.nav.body = d, this.nav.table =
|
|
2147
|
+
t.appendChild(r), this.nav.body = d, this.nav.table = i, this.nav.main = t, this.nav.after = r;
|
|
2061
2148
|
var s = document.createElement("div"), c = document.createElement("span");
|
|
2062
2149
|
return c.className = this.theme + "_plus", c.addEventListener("click", function (t) {
|
|
2063
2150
|
if (!e.disabled) {
|
|
2064
|
-
var
|
|
2065
|
-
if ("function" == typeof
|
|
2151
|
+
var a = e.item.onNewRow, i = {};
|
|
2152
|
+
if ("function" == typeof a) {
|
|
2066
2153
|
var n = {};
|
|
2067
|
-
n.result = e.form.serialize(), n.value = {},
|
|
2154
|
+
n.result = e.form.serialize(), n.value = {}, a(n), i = n.value;
|
|
2068
2155
|
}
|
|
2069
|
-
var o = e
|
|
2070
|
-
e.D.push(o), e
|
|
2156
|
+
var o = e.$(i);
|
|
2157
|
+
e.D.push(o), e.aa(), e.ba();
|
|
2071
2158
|
}
|
|
2072
2159
|
}), this.nav.plus = c, s.appendChild(c), t.appendChild(s), t;
|
|
2073
|
-
},
|
|
2160
|
+
}, c.prototype.Z = 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 (a) { var i = document.createElement("div"); i.classList.add(e.theme + "_cell"), i.innerText = a.name, t.appendChild(i); }), t; }, c.prototype.ca = function () { var e = this.item.max || 0; return !!(e && this.D.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.D.forEach(function (e) { var a = {}; e.cells.forEach(function (e) { a[e.id] = e.value; }), t.push(a); }), t; }, c.prototype.load = function (e) {
|
|
2074
2161
|
if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
2075
2162
|
throw new Error("Array expected");
|
|
2076
|
-
this.data = e, this.
|
|
2077
|
-
},
|
|
2078
|
-
var t = this,
|
|
2079
|
-
return
|
|
2080
|
-
var n =
|
|
2163
|
+
this.data = e, this.da(), this.aa();
|
|
2164
|
+
}, c.prototype.ea = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.ca() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.da = function () { var e = this; this.D = [], this.data.forEach(function (t) { var a = e.$(t); e.D.push(a); }); }, c.prototype.fa = function (e) { var t = this, a = t.D.indexOf(e); t.D.splice(a, 1); }, c.prototype.$ = function (e) {
|
|
2165
|
+
var t = this, a = {};
|
|
2166
|
+
return a.data = e, a.cells = [], t.item.columns.forEach(function (i) {
|
|
2167
|
+
var n = i.id, o = e[n], l = t.ga(i);
|
|
2081
2168
|
if ("undefined" == typeof o)
|
|
2082
2169
|
if ("text" === l)
|
|
2083
2170
|
o = "";
|
|
2084
2171
|
else if ("number" === l)
|
|
2085
2172
|
o = 0;
|
|
2086
2173
|
else if ("select" === l) {
|
|
2087
|
-
var d =
|
|
2174
|
+
var d = i.options;
|
|
2088
2175
|
o = d && d[0].id;
|
|
2089
2176
|
}
|
|
2090
2177
|
var r = {};
|
|
2091
|
-
r.id = n, r.value = o, r.type = l, r.data =
|
|
2092
|
-
}),
|
|
2093
|
-
},
|
|
2178
|
+
r.id = n, r.value = o, r.type = l, r.data = i, a.cells.push(r);
|
|
2179
|
+
}), a;
|
|
2180
|
+
}, c.prototype.ga = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.aa = function () {
|
|
2094
2181
|
var e = this;
|
|
2095
|
-
if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.D.forEach(function (t) { var
|
|
2096
|
-
var t = e.
|
|
2182
|
+
if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.D.forEach(function (t) { var a = e._(t); e.nav.body.appendChild(a); }), 0 === this.D.length) {
|
|
2183
|
+
var t = e.ha();
|
|
2097
2184
|
e.nav.after.appendChild(t);
|
|
2098
2185
|
}
|
|
2099
|
-
this.
|
|
2100
|
-
},
|
|
2101
|
-
var t = this,
|
|
2102
|
-
|
|
2186
|
+
this.ea();
|
|
2187
|
+
}, c.prototype.ha = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype._ = function (e) {
|
|
2188
|
+
var t = this, a = document.createElement("div");
|
|
2189
|
+
a.className = t.theme + "_row", e.cells.forEach(function (i) {
|
|
2103
2190
|
var n = document.createElement("div");
|
|
2104
2191
|
n.className = t.theme + "_cell";
|
|
2105
|
-
var o = t.
|
|
2192
|
+
var o = t.ia(i);
|
|
2106
2193
|
if (e.spacer) {
|
|
2107
2194
|
var l = document.createElement("div");
|
|
2108
2195
|
l.style.height = "0px", l.style.overflow = "hidden", l.appendChild(o), n.appendChild(l);
|
|
2109
2196
|
}
|
|
2110
2197
|
else
|
|
2111
2198
|
n.appendChild(o);
|
|
2112
|
-
|
|
2199
|
+
a.appendChild(n);
|
|
2113
2200
|
});
|
|
2114
|
-
var
|
|
2115
|
-
|
|
2201
|
+
var i = document.createElement("div");
|
|
2202
|
+
i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction");
|
|
2116
2203
|
var n = document.createElement("span");
|
|
2117
|
-
return n.className = this.theme + "_delete", n.addEventListener("click", function (
|
|
2118
|
-
},
|
|
2204
|
+
return n.className = this.theme + "_delete", n.addEventListener("click", function (a) { t.disabled || (t.fa(e), t.aa(), t.ba()); }), e.spacer || i.appendChild(n), a.appendChild(i), a;
|
|
2205
|
+
}, c.prototype.ba = function () {
|
|
2119
2206
|
var e = this;
|
|
2120
2207
|
if ("function" == typeof e.onInput) {
|
|
2121
2208
|
var t = {};
|
|
2122
2209
|
e.onInput(t);
|
|
2123
2210
|
}
|
|
2124
|
-
},
|
|
2125
|
-
var t = this,
|
|
2126
|
-
if ("text" ===
|
|
2127
|
-
var
|
|
2128
|
-
return
|
|
2211
|
+
}, c.prototype.ia = function (e) {
|
|
2212
|
+
var t = this, a = e.type;
|
|
2213
|
+
if ("text" === a || "number" === a) {
|
|
2214
|
+
var i = document.createElement("input");
|
|
2215
|
+
return i.type = a, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === a ? e.value = Number(this.value) : e.value = this.value, t.ba(); }), i;
|
|
2129
2216
|
}
|
|
2130
|
-
if ("select" ===
|
|
2217
|
+
if ("select" === a) {
|
|
2131
2218
|
var n = document.createElement("select");
|
|
2132
|
-
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var
|
|
2219
|
+
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var a = document.createElement("option"); a.innerText = t.name, a.value = t.id, a.M = t.id, n.appendChild(a), e.value === t.id && a.setAttribute("selected", !0); }), n.addEventListener("change", function (a) { var i = n.options[n.selectedIndex]; i && "undefined" != typeof i.M && (e.value = i.M), t.ba(); }), n;
|
|
2133
2220
|
}
|
|
2134
|
-
throw new Error("Unsupported item type: " +
|
|
2135
|
-
},
|
|
2221
|
+
throw new Error("Unsupported item type: " + a);
|
|
2222
|
+
}, c.prototype.focus = function () { };
|
|
2136
2223
|
}
|
|
2137
2224
|
}(DayPilot);
|
|
2138
2225
|
if ("undefined" == typeof DayPilot)
|
|
@@ -2141,7 +2228,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2141
2228
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2142
2229
|
var t = {};
|
|
2143
2230
|
t.Month = function (e, i) {
|
|
2144
|
-
this.v = "2022.
|
|
2231
|
+
this.v = "2022.3.393-lite", this.nav = {};
|
|
2145
2232
|
var n = this;
|
|
2146
2233
|
this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, 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.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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
|
|
2147
2234
|
var e = null;
|
|
@@ -2197,8 +2284,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2197
2284
|
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
|
|
2198
2285
|
}
|
|
2199
2286
|
}, this.update = function (t) {
|
|
2200
|
-
if (this.cells) {
|
|
2201
|
-
n.
|
|
2287
|
+
if (n.l(t), this.k && this.cells) {
|
|
2288
|
+
n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
|
|
2202
2289
|
}
|
|
2203
2290
|
}, this.n = null, this.l = function (t) {
|
|
2204
2291
|
if (t) {
|
|
@@ -2617,7 +2704,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2617
2704
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2618
2705
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2619
2706
|
}
|
|
2620
|
-
}, this.O = function () { this.c(), this.A(), this.g(), this.M(), this.E("Init"); }, this.P = function (t, e) { return n.K.L() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.xssTextHtml = n.P, this.init = function () { return this.N(), this.loadFromServer() ? void this.O() : (this.c(), this.d(), this.A(), this.g(), this.m(), this.i(), this.M(), this.messageHTML && this.message(this.messageHTML),
|
|
2707
|
+
}, this.O = function () { this.c(), this.A(), this.g(), this.M(), this.E("Init"); }, this.P = function (t, e) { return n.K.L() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.loadOptions = this.l, this.internal.xssTextHtml = n.P, this.init = function () { return this.N(), this.loadFromServer() ? void this.O() : (this.c(), this.d(), this.A(), this.g(), this.m(), this.i(), this.M(), this.messageHTML && this.message(this.messageHTML), this.fireAfterRenderDetached(null, !1), void (this.k = !0)); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.l(i);
|
|
2621
2708
|
}, t.gMouseUp = function (e) {
|
|
2622
2709
|
if (t.movingEvent) {
|
|
2623
2710
|
var i = t.movingEvent;
|
|
@@ -2697,7 +2784,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2697
2784
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2698
2785
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2699
2786
|
DayPilot.Navigator = function (t, e) {
|
|
2700
|
-
this.v = "2022.
|
|
2787
|
+
this.v = "2022.3.393-lite";
|
|
2701
2788
|
var i = this;
|
|
2702
2789
|
this.id = t, 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.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, 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.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
|
|
2703
2790
|
var s = {};
|
|
@@ -2742,24 +2829,24 @@ if ("undefined" == typeof DayPilot)
|
|
|
2742
2829
|
var H = document.createElement("div");
|
|
2743
2830
|
H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = k * this.cellHeight + m + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.cellHeight + "px", H.style.lineHeight = this.cellHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_weeknumber"), H.innerHTML = "<span>" + C + "</span>", v.appendChild(H), s.weeks.push(H);
|
|
2744
2831
|
}
|
|
2745
|
-
for (var
|
|
2746
|
-
s.cells[
|
|
2832
|
+
for (var M = 0; M < 7; M++) {
|
|
2833
|
+
s.cells[M] = [];
|
|
2747
2834
|
var H = document.createElement("div");
|
|
2748
|
-
H.style.position = "absolute", H.style.left =
|
|
2835
|
+
H.style.position = "absolute", H.style.left = M * a.cellWidth() + w + "px", H.style.right = M * a.cellWidth() + w + "px", H.style.top = this.titleHeight + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_dayheader"), H.innerHTML = "<span>" + this.l(M) + "</span>", v.appendChild(H), s.days.push(H);
|
|
2749
2836
|
for (var k = 0; k < u; k++) {
|
|
2750
|
-
var S = r.addDays(7 * k +
|
|
2837
|
+
var S = r.addDays(7 * k + M), P = this.m(S) && "none" !== this.n(), E = S.firstDayOfMonth() === n, N = S < n, W = S >= n.addMonths(1);
|
|
2751
2838
|
if ("month" === this.n())
|
|
2752
|
-
|
|
2839
|
+
P = P && E;
|
|
2753
2840
|
else if ("day" === this.n())
|
|
2754
|
-
|
|
2841
|
+
P = P && (E || l && N || o && W);
|
|
2755
2842
|
else if ("week" === this.n()) {
|
|
2756
2843
|
var O = S.firstDayOfMonth() === n;
|
|
2757
|
-
|
|
2844
|
+
P = P && (O || l && N || o && W);
|
|
2758
2845
|
}
|
|
2759
2846
|
var R = document.createElement("div");
|
|
2760
|
-
s.cells[
|
|
2761
|
-
var T = i.o(
|
|
2762
|
-
R.day = S, R.x =
|
|
2847
|
+
s.cells[M][k] = R;
|
|
2848
|
+
var T = i.o(M, k), A = T.x, B = T.y;
|
|
2849
|
+
R.day = S, R.x = M, R.y = k, R.left = A, R.top = B, R.isCurrentMonth = E, R.isNextMonth = W, R.isPrevMonth = N, R.showBefore = l, R.showAfter = o, R.className = this.c(E ? "_day" : "_dayother"), i.g(R, "cell"), S.getTime() === f.getTime() && E && this.g(R, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(R, "weekend"), R.style.position = "absolute", R.style.left = A + "px", R.style.right = A + "px", R.style.top = B + "px", R.style.width = a.cellWidth() + "px", R.style.height = this.cellHeight + "px", R.style.lineHeight = this.cellHeight + "px";
|
|
2763
2850
|
var _ = document.createElement("div");
|
|
2764
2851
|
_.style.position = "absolute", _.className = S.getTime() === f.getTime() && E ? this.c("_todaybox") : this.c("_daybox"), i.g(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", R.appendChild(_);
|
|
2765
2852
|
var U = null;
|
|
@@ -2771,7 +2858,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2771
2858
|
var L = document.createElement("div");
|
|
2772
2859
|
L.innerHTML = S.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.g(L, "cell_text"), R.isClickable = !0, U && U.html && (L.innerHTML = U.html), R.appendChild(L);
|
|
2773
2860
|
}
|
|
2774
|
-
R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R),
|
|
2861
|
+
R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), P && (i.q(v, M, k), this.selected.push(R));
|
|
2775
2862
|
}
|
|
2776
2863
|
}
|
|
2777
2864
|
var V = document.createElement("div");
|
|
@@ -2816,14 +2903,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
2816
2903
|
}
|
|
2817
2904
|
o && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(o) : this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !c || d.equals(this.selectionStart) && u.equals(this.selectionEnd) || this.D(), f && this.E();
|
|
2818
2905
|
}, this.update = function (t) {
|
|
2819
|
-
if (
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
}, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.
|
|
2906
|
+
if (i.F(t), this.z) {
|
|
2907
|
+
if (i.G)
|
|
2908
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2909
|
+
i.H();
|
|
2910
|
+
var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2911
|
+
i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
|
|
2912
|
+
}
|
|
2913
|
+
}, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.H = function () { i.a = {}; }, this.K = null, this.F = function (t) {
|
|
2827
2914
|
if (t) {
|
|
2828
2915
|
var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
|
|
2829
2916
|
this.K = e;
|
|
@@ -3092,7 +3179,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3092
3179
|
return this.internal.showLinks;
|
|
3093
3180
|
var e = {};
|
|
3094
3181
|
return e.left = 0 === t, e.right = 0 === t, e.before = 0 === t, e.after = t === this.showMonths - 1, "Horizontal" === this.orientation && (e.right = t === this.showMonths - 1), e;
|
|
3095
|
-
}, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.initialized = function () { return i.z; }, this.aa = {};
|
|
3182
|
+
}, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.F, this.internal.initialized = function () { return i.z; }, this.aa = {};
|
|
3096
3183
|
var a = this.aa;
|
|
3097
3184
|
a.locale = function () { return DayPilot.Locale.find(i.locale); }, a.weekStarts = function () {
|
|
3098
3185
|
if ("Auto" === i.weekStarts) {
|
|
@@ -3157,7 +3244,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3157
3244
|
i.D({ "mode": "FreeHand" });
|
|
3158
3245
|
}
|
|
3159
3246
|
s.start = null, s.end = null;
|
|
3160
|
-
}, this.dispose = function () { var t = i; t.root && (t.root.removeAttribute("style"), t.root.removeAttribute("class"), t.root.dp = null, t.root.innerHTML = null, t.root = null); }, this.fa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.
|
|
3247
|
+
}, this.dispose = function () { var t = i; t.root && (t.root.removeAttribute("style"), t.root.removeAttribute("class"), t.root.dp = null, t.root.innerHTML = null, t.root = null, t.G = !0); }, this.fa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.F(e);
|
|
3161
3248
|
}, "undefined" != typeof jQuery && !function (t) {
|
|
3162
3249
|
t.fn.daypilotNavigator = function (t) {
|
|
3163
3250
|
var e = null, i = this.each(function () {
|
|
@@ -3312,9 +3399,7 @@ class DayPilotCalendarComponent {
|
|
|
3312
3399
|
let hash = optHash(this.config);
|
|
3313
3400
|
if (hash !== this._hashOptions) {
|
|
3314
3401
|
let dp = this.control;
|
|
3315
|
-
|
|
3316
|
-
dp[name] = this.config[name];
|
|
3317
|
-
}
|
|
3402
|
+
dp.internal.loadOptions(this.config);
|
|
3318
3403
|
this._requestUpdateFull = true;
|
|
3319
3404
|
this._requestViewChange = true;
|
|
3320
3405
|
}
|
|
@@ -3397,9 +3482,7 @@ class DayPilotMonthComponent {
|
|
|
3397
3482
|
let hash = optHash(this.config);
|
|
3398
3483
|
if (hash !== this._hashOptions) {
|
|
3399
3484
|
let dp = this.control;
|
|
3400
|
-
|
|
3401
|
-
dp[name] = this.config[name];
|
|
3402
|
-
}
|
|
3485
|
+
dp.internal.loadOptions(this.config);
|
|
3403
3486
|
this._requestUpdate = true;
|
|
3404
3487
|
}
|
|
3405
3488
|
this._hashOptions = hash;
|