@daypilot/daypilot-lite-angular 3.26.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/daypilot-core.mjs +531 -501
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +618 -603
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +531 -501
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +4 -0
- package/package.json +3 -2
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2024.
|
|
133
|
+
Version: 2024.4.575-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -182,7 +182,7 @@ if (function () {
|
|
|
182
182
|
return e.add = function () { }, e.commit = function () { }, e;
|
|
183
183
|
} var t = document.createElement("style"); t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t); var i = !!t.styleSheet, e = {}; return e.rules = [], e.commit = function () { i && (t.styleSheet.cssText = this.rules.join("\n")); }, e.add = function (e, a, n) { return i ? void this.rules.push(e + "{" + a + "}") : void (t.sheet.insertRule ? ("undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n)) : t.sheet.addRule && t.sheet.addRule(e, a, n)); }, e; }, DayPilot.gs = function (e, t) { return window.getComputedStyle(e, null).getPropertyValue(t) || ""; }, DayPilot.StyleReader = function (e) { this.get = function (t) { return e ? DayPilot.gs(e, t) : null; }, this.getPx = function (e) { var t = this.get(e); return t.indexOf("px") === -1 ? void 0 : parseInt(t, 10); }; }, function () { if (!DayPilot.Global.defaultCss) {
|
|
184
184
|
var e = DayPilot.sheet();
|
|
185
|
-
e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_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;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
185
|
+
e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_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;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 1px;bottom: 1px;left: 2px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
186
186
|
} }(), DayPilot.doc = function () { var e = document.documentElement; return e && e.clientHeight ? e : document.body; }, DayPilot.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, DayPilot.pageOffset = function () { if ("undefined" != typeof pageXOffset)
|
|
187
187
|
return { x: pageXOffset, y: pageYOffset }; var e = DayPilot.doc(); return { x: e.scrollLeft, y: e.scrollTop }; }, DayPilot.indexOf = function (e, t) { if (!e || !e.length)
|
|
188
188
|
return -1; for (var i = 0; i < e.length; i++)
|
|
@@ -271,7 +271,7 @@ if (function () {
|
|
|
271
271
|
var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
|
|
272
272
|
d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
|
|
273
273
|
var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
|
|
274
|
-
if ("undefined" != typeof i.style && d.setAttribute("style", i.style), d.style.position = "absolute", d.style.width = s(c), d.style.height = s(u), d.style.right = s(i.right), d.style.top = s(i.top), d.style.left = s(i.left), d.style.bottom = s(i.bottom), "undefined" != typeof i.html || "undefined" != typeof i.text)
|
|
274
|
+
if ("undefined" != typeof i.style && d.setAttribute("style", i.style), d.style.position = "absolute", d.style.width = s(c), d.style.height = s(u), d.style.right = s(i.right), d.style.top = s(i.top), d.style.left = s(i.left), d.style.bottom = s(i.bottom), d.style.borderRadius = s(i.borderRadius), "undefined" != typeof i.html || "undefined" != typeof i.text)
|
|
275
275
|
d.innerHTML = DayPilot.Util.escapeTextHtml(i.text, i.html);
|
|
276
276
|
else if (i.icon) {
|
|
277
277
|
var f = document.createElement("i");
|
|
@@ -384,15 +384,15 @@ if (function () {
|
|
|
384
384
|
for (var i in t)
|
|
385
385
|
this[i] = t[i]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
|
|
386
386
|
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-tw", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "timePattern": "tt hh:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d tt hh:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) {
|
|
387
|
-
function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.
|
|
387
|
+
function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.H; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.H = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.s(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
|
|
388
388
|
var i = this;
|
|
389
|
-
this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.k = null, this.l = DayPilot.Date.today(), this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) { var a; if ("string" == typeof e) {
|
|
389
|
+
this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.syncScrollbar = !0, this.k = null, this.l = DayPilot.Date.today(), this.m = null, this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) { var a; if ("string" == typeof e) {
|
|
390
390
|
if (a = document.getElementById(e), !a)
|
|
391
391
|
throw "Element not found: " + e;
|
|
392
392
|
}
|
|
393
393
|
else
|
|
394
|
-
a = e; var n = a, o = {}; return o.
|
|
395
|
-
return o.
|
|
394
|
+
a = e; var n = a, o = {}; return o.n = !0, o.o = n.id, o.control = n, o.p = t || {}, o.q = function () { n.hide ? n.hide() : n.nav && n.nav.top ? n.nav.top.style.display = "none" : n.style.display = "none"; }, o.s = function (e) { (function () { return !!n.backendUrl || !("function" != typeof WebForm_DoCallback || !n.uniqueID); })() ? n.commandCallBack && n.commandCallBack("navigate", { "day": e }) : (n.startDate = e, n.update()); }, o.t = function () { i.u(), n.show ? n.show() : n.nav && n.nav.top ? n.nav.top.style.display = "" : n.style.display = ""; }, o.z = function () { if (o.p.navigatorSelectMode)
|
|
395
|
+
return o.p.navigatorSelectMode; if (n.isCalendar)
|
|
396
396
|
switch (n.viewType) {
|
|
397
397
|
case "Day": return "day";
|
|
398
398
|
case "Week": return "week";
|
|
@@ -409,16 +409,16 @@ if (function () {
|
|
|
409
409
|
throw "Element not found: " + e;
|
|
410
410
|
}
|
|
411
411
|
else
|
|
412
|
-
a = e; var n = this.
|
|
412
|
+
a = e; var n = this.A(t); n || (n = this.addView(t)); var o = {}; return o.B = !0, o.C = a, o.o = a.id, o.D = n, o.E = function (e) { i.show(o), i.F(o), e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1); }, DayPilot.re(a, "click", o.E), this.i.push(o), o; }, this.addButton = this.addTrigger, this.select = function (e) { var t = this.G(e); t ? t.E() : this.i.length > 0 && this.i[0].E(); }, this.G = function (e) { for (var t = 0; t < this.i.length; t++) {
|
|
413
413
|
var i = this.i[t];
|
|
414
|
-
if (i.
|
|
414
|
+
if (i.o === e)
|
|
415
415
|
return i;
|
|
416
|
-
} return null; }, this.
|
|
416
|
+
} return null; }, this.F = function (e) { if (this.selectedClass) {
|
|
417
417
|
for (var t = 0; t < this.i.length; t++) {
|
|
418
418
|
var i = this.i[t];
|
|
419
|
-
DayPilot.Util.removeClass(i.
|
|
419
|
+
DayPilot.Util.removeClass(i.C, this.selectedClass);
|
|
420
420
|
}
|
|
421
|
-
DayPilot.Util.addClass(e.
|
|
421
|
+
DayPilot.Util.addClass(e.C, this.selectedClass);
|
|
422
422
|
} }, this.addNavigator = function (e) { i.j.control = e, e.timeRangeSelectedHandling = "JavaScript", e.onTimeRangeSelected = function () { var a, n, o; if (1 === e.api)
|
|
423
423
|
a = arguments[0], n = arguments[1], o = arguments[2];
|
|
424
424
|
else {
|
|
@@ -426,29 +426,33 @@ if (function () {
|
|
|
426
426
|
a = r.start, n = r.end, o = r.day;
|
|
427
427
|
} i.l = o, t(a, n, o); }; }, this.show = function (e) {
|
|
428
428
|
var a, n;
|
|
429
|
-
if (e.
|
|
430
|
-
n = e, a = n.
|
|
431
|
-
else if (a = e.
|
|
429
|
+
if (e.B)
|
|
430
|
+
n = e, a = n.D;
|
|
431
|
+
else if (a = e.n ? e : this.A(e), this.k === a)
|
|
432
432
|
return;
|
|
433
433
|
if (i.onSelect) {
|
|
434
434
|
var o = {};
|
|
435
|
-
o.source = n ? n.
|
|
435
|
+
o.source = n ? n.C : null, o.target = a.control, i.onSelect(o);
|
|
436
436
|
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
437
|
+
if (i.syncScrollbar) {
|
|
438
|
+
var r = this.k && this.k.control;
|
|
439
|
+
r && r.isCalendar && (i.m = r.getScrollY());
|
|
440
|
+
}
|
|
441
|
+
this.k = a, a.t(), null !== i.m && a.control.isCalendar && a.control.setScrollY(i.m);
|
|
442
|
+
var s = a.z();
|
|
443
|
+
i.j.updateMode(s), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
|
|
444
|
+
}, this.A = function (e) { for (var t = 0; t < this.f.length; t++)
|
|
441
445
|
if (this.f[t].control === e)
|
|
442
|
-
return this.f[t]; return null; }, this.
|
|
443
|
-
this.f[e].
|
|
444
|
-
throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.
|
|
446
|
+
return this.f[t]; return null; }, this.u = function () { for (var e = 0; e < this.f.length; e++)
|
|
447
|
+
this.f[e].q(); }, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
|
|
448
|
+
throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.H = null, this.I = function () { if (e)
|
|
445
449
|
for (var t in e)
|
|
446
450
|
if ("triggers" === t) {
|
|
447
451
|
var a = e.triggers || [];
|
|
448
452
|
a.forEach(function (e) { i.addTrigger(e.id, e.view); });
|
|
449
453
|
}
|
|
450
454
|
else
|
|
451
|
-
"navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t]; }, this.
|
|
455
|
+
"navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t]; }, this.I();
|
|
452
456
|
}, DayPilot.Duration = function (e) { var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3; if (2 === arguments.length) {
|
|
453
457
|
var r = arguments[0], s = arguments[1];
|
|
454
458
|
if (!(r instanceof DayPilot.Date) && "string" != typeof r)
|
|
@@ -555,7 +559,7 @@ if (function () {
|
|
|
555
559
|
return null; if (s < 0 || s > 59)
|
|
556
560
|
return null; var c = new Date; return c.setUTCFullYear(t, i - 1, a), c.setUTCHours(o), c.setUTCMinutes(r), c.setUTCSeconds(s), c.setUTCMilliseconds(0), new DayPilot.Date(c); }, this.init(); };
|
|
557
561
|
DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) { if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
558
|
-
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = DayPilot.ColorUtil.hexToRgb(e); t
|
|
562
|
+
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = ""; 9 === e.length && (i = e.slice(7, 9), e = e.slice(0, 7)); var a = DayPilot.ColorUtil.hexToRgb(e); "number" != typeof t && (t = 1); var n = 17, o = Math.round(t * n), r = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(r) + i; }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), i = t.r / 255, a = t.g / 255, n = t.b / 255; return Math.sqrt(.299 * i * i + .587 * a * a + .114 * n * n); }, DayPilot.ColorUtil.contrasting = function (e, t, i) { var a = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", i = i || "#000000", a > .5 ? i : t; }, DayPilot.Event = function (e, t, i) { var a = this; this.calendar = t, this.data = e ? e : {}, this.part = i ? i : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var n = {}, o = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (n.dirty)
|
|
559
563
|
return n; for (var e = 0; e < o.length; e++)
|
|
560
564
|
n[o[e]] = a.data[o[e]]; return n.dirty = !0, n; }, this.copy = function () { for (var e = {}, t = 0; t < o.length; t++)
|
|
561
565
|
e[o[t]] = a.data[o[t]]; return e; }, this.commit = function () { if (n.dirty) {
|
|
@@ -628,79 +632,87 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
628
632
|
if (!t.resizingShadow)
|
|
629
633
|
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
630
634
|
var a = t.resizing.event, n = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
|
|
631
|
-
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.
|
|
635
|
+
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.J(a, n, o, r);
|
|
632
636
|
}
|
|
633
637
|
else if (t.moving) {
|
|
634
638
|
if (!t.movingShadow)
|
|
635
639
|
return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
|
|
636
640
|
var o = t.movingShadow.offsetTop, a = t.moving.event;
|
|
637
|
-
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.
|
|
641
|
+
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.K("_event_moving_source"));
|
|
638
642
|
var s = t.movingShadow.column;
|
|
639
|
-
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.
|
|
643
|
+
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
|
|
640
644
|
}
|
|
641
645
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
642
646
|
var l = t.selecting.calendar;
|
|
643
647
|
t.selecting = !1;
|
|
644
648
|
var d = l.getSelection();
|
|
645
|
-
l.
|
|
649
|
+
l.M(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
|
|
646
650
|
}
|
|
647
651
|
else
|
|
648
652
|
t.selecting = !1; }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
|
|
649
653
|
var a = !1;
|
|
650
|
-
if (this instanceof t.Calendar && !this.
|
|
654
|
+
if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
|
|
651
655
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
652
656
|
var n = this;
|
|
653
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.575-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this._ = function (e, t) {
|
|
658
|
+
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
659
|
+
i = i.parentNode;
|
|
660
|
+
var a = n.eventBorderRadius;
|
|
661
|
+
"number" == typeof a && (a += "px");
|
|
662
|
+
var o = document.createElement("div");
|
|
663
|
+
o.setAttribute("unselectable", "on"), o.style.position = "absolute", o.style.width = e.offsetWidth + "px", o.style.height = e.offsetHeight + "px", o.style.left = e.offsetLeft + "px", o.style.top = e.offsetTop + "px", o.style.boxSizing = "border-box",
|
|
664
|
+
o.style.zIndex = 101, o.className = n.K("_shadow");
|
|
665
|
+
var r = document.createElement("div");
|
|
666
|
+
return r.className = n.K("_shadow_inner"), a && (r.style.borderRadius = a, o.style.borderRadius = a), o.appendChild(r), i.firstChild.appendChild(o), o;
|
|
667
|
+
}, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; }, this.aa.ca = function () { if ("Auto" === n.weekStarts) {
|
|
657
668
|
var e = o.locale();
|
|
658
669
|
return e ? e.weekStarts : 0;
|
|
659
670
|
} return n.weekStarts || 0; };
|
|
660
|
-
var o = this.
|
|
661
|
-
this.
|
|
671
|
+
var o = this.aa;
|
|
672
|
+
this.U = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
662
673
|
if (!window.console)
|
|
663
674
|
throw "Error received from the server side: " + e;
|
|
664
675
|
return void console.log("Error received from the server side: " + e);
|
|
665
676
|
} var e = JSON.parse(e); if (e.CallBackRedirect)
|
|
666
677
|
return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
|
|
667
|
-
return n.loadingStop(), void n.
|
|
678
|
+
return n.loadingStop(), void n.t(); if (n.W(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.da()), e.Hashes)
|
|
668
679
|
for (var i in e.Hashes)
|
|
669
|
-
n.hashes[i] = e.Hashes[i]; n.events.list = e.Events, n.
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
n.hashes[i] = e.Hashes[i]; n.events.list = e.Events, n.ea(), n.fa(), "Full" === e.UpdateType && (n.ga(), n.ha(), n.ia(), n.ja()), n.t(), n.ka(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop(); }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) { var t = this, i = t.event; if (i.client.clickEnabled())
|
|
681
|
+
if (n.qa()) {
|
|
682
|
+
var a = {};
|
|
683
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
684
|
+
return;
|
|
685
|
+
switch (n.eventClickHandling) {
|
|
686
|
+
case "CallBack":
|
|
687
|
+
n.eventClickCallBack(i);
|
|
688
|
+
break;
|
|
689
|
+
case "PostBack":
|
|
690
|
+
n.eventClickPostBack(i);
|
|
691
|
+
break;
|
|
692
|
+
case "ContextMenu":
|
|
693
|
+
var o = i.client.contextMenu();
|
|
694
|
+
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
695
|
+
}
|
|
696
|
+
"function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
|
|
683
697
|
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
n.
|
|
693
|
-
|
|
694
|
-
case "JavaScript": n.onEventClick(i);
|
|
695
|
-
} }, this.sa = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
698
|
+
else
|
|
699
|
+
switch (n.eventClickHandling) {
|
|
700
|
+
case "PostBack":
|
|
701
|
+
n.eventClickPostBack(i);
|
|
702
|
+
break;
|
|
703
|
+
case "CallBack":
|
|
704
|
+
n.eventClickCallBack(i);
|
|
705
|
+
break;
|
|
706
|
+
case "JavaScript": n.onEventClick(i);
|
|
707
|
+
} }, this.ta = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
696
708
|
return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
|
|
697
709
|
return !1; switch (n.eventRightClickHandling) {
|
|
698
710
|
case "ContextMenu":
|
|
699
711
|
var a = t.client.contextMenu();
|
|
700
712
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
701
|
-
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.
|
|
713
|
+
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) { if (n.qa()) {
|
|
702
714
|
var t = {};
|
|
703
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
715
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
704
716
|
return;
|
|
705
717
|
switch (n.eventDeleteHandling) {
|
|
706
718
|
case "CallBack":
|
|
@@ -711,7 +723,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
711
723
|
break;
|
|
712
724
|
case "Update": n.events.remove(e);
|
|
713
725
|
}
|
|
714
|
-
"function" == typeof n.onEventDeleted && n.
|
|
726
|
+
"function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
|
|
715
727
|
}
|
|
716
728
|
else
|
|
717
729
|
switch (n.eventDeleteHandling) {
|
|
@@ -724,18 +736,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
724
736
|
case "JavaScript": n.onEventDelete(e);
|
|
725
737
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
726
738
|
throw "newStart is null"; if (!i)
|
|
727
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
739
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
728
740
|
throw "newStart is null"; if (!i)
|
|
729
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
730
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
741
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n); }, this.J = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
|
|
742
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
|
|
731
743
|
r = c.addTime(f + m), s = e.end();
|
|
732
744
|
}
|
|
733
745
|
else if ("bottom" === a) {
|
|
734
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
746
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
|
|
735
747
|
r = l, s = c.addTime(f + m);
|
|
736
|
-
} if (n.
|
|
748
|
+
} if (n.qa()) {
|
|
737
749
|
var p = {};
|
|
738
|
-
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.
|
|
750
|
+
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.sa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
739
751
|
return;
|
|
740
752
|
switch (n.eventResizeHandling) {
|
|
741
753
|
case "PostBack":
|
|
@@ -746,7 +758,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
746
758
|
break;
|
|
747
759
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
748
760
|
}
|
|
749
|
-
"function" == typeof n.onEventResized && n.
|
|
761
|
+
"function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
|
|
750
762
|
}
|
|
751
763
|
else
|
|
752
764
|
switch (n.eventResizeHandling) {
|
|
@@ -759,11 +771,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
759
771
|
case "JavaScript": n.onEventResize(e, r, s);
|
|
760
772
|
} }, this.eventMovePostBack = function (e, t, i, a, n) { if (!t)
|
|
761
773
|
throw "newStart is null"; if (!i)
|
|
762
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
774
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
763
775
|
throw "newStart is null"; if (!i)
|
|
764
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
776
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o); }, this.L = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.va[t], m = f.id, p = f.start.getTime(), v = new Date; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.qa()) {
|
|
765
777
|
var b = {};
|
|
766
|
-
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
778
|
+
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.sa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
767
779
|
return;
|
|
768
780
|
switch (n.eventMoveHandling) {
|
|
769
781
|
case "PostBack":
|
|
@@ -774,7 +786,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
774
786
|
break;
|
|
775
787
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
776
788
|
}
|
|
777
|
-
"function" == typeof n.onEventMoved && n.
|
|
789
|
+
"function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
|
|
778
790
|
}
|
|
779
791
|
else
|
|
780
792
|
switch (n.eventMoveHandling) {
|
|
@@ -785,9 +797,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
785
797
|
n.eventMoveCallBack(e, y, g, f.id);
|
|
786
798
|
break;
|
|
787
799
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
788
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.
|
|
800
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.Q("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.S("TimeRangeSelected", a, n); }, this.M = function (e, t, i) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
|
|
789
801
|
var a = {};
|
|
790
|
-
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
802
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.sa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
791
803
|
return;
|
|
792
804
|
switch (n.timeRangeSelectedHandling) {
|
|
793
805
|
case "PostBack":
|
|
@@ -795,7 +807,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
795
807
|
break;
|
|
796
808
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
797
809
|
}
|
|
798
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
810
|
+
"function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
|
|
799
811
|
}
|
|
800
812
|
else
|
|
801
813
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -806,26 +818,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
806
818
|
n.timeRangeSelectedCallBack(e, t);
|
|
807
819
|
break;
|
|
808
820
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
809
|
-
} }, this.
|
|
821
|
+
} }, this.wa = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
810
822
|
var i = e.which;
|
|
811
823
|
if (1 === i || 0 === i)
|
|
812
|
-
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.
|
|
813
|
-
} }, this.
|
|
824
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.xa(), !1;
|
|
825
|
+
} }, this.xa = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
|
|
814
826
|
return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
|
|
815
827
|
if (t[i] === e)
|
|
816
|
-
return i; return -1; }(), o = n.
|
|
817
|
-
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c =
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
828
|
+
return i; return -1; }(), o = n.va[a]; if (o) {
|
|
829
|
+
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = n.eventBorderRadius;
|
|
830
|
+
"number" == typeof c && (c += "px");
|
|
831
|
+
var u = function () { if (n.nav.activeSelection)
|
|
832
|
+
return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = n.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e; }();
|
|
833
|
+
u.className = n.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
|
|
834
|
+
} }(); }, this.ya = function (e) { if ("undefined" != typeof t && t.selecting) {
|
|
821
835
|
var i = DayPilot.mc(e);
|
|
822
|
-
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
823
|
-
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.
|
|
836
|
+
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa());
|
|
837
|
+
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.za = function (e) { if (e < 0)
|
|
824
838
|
return null; for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
825
839
|
if (t += i[a].offsetWidth, e < t)
|
|
826
840
|
return a;
|
|
827
|
-
} return null; }, this.
|
|
828
|
-
return null; e.x = n.
|
|
841
|
+
} return null; }, this.Aa = {}, this.Aa.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
|
|
842
|
+
return null; e.x = n.za(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
|
|
829
843
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
830
844
|
i = JSON.parse(o.responseText);
|
|
831
845
|
}
|
|
@@ -836,11 +850,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
836
850
|
var s = {};
|
|
837
851
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
838
852
|
return;
|
|
839
|
-
n.columns.list = i, n.
|
|
840
|
-
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.
|
|
841
|
-
var i = this.
|
|
842
|
-
this.
|
|
843
|
-
} }, this.
|
|
853
|
+
n.columns.list = i, n.Ba && n.update();
|
|
854
|
+
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.da = function () { var e; e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = []; for (var t = 0; t < e.length; t++) {
|
|
855
|
+
var i = this.Da(e[t]);
|
|
856
|
+
this.va.push(i);
|
|
857
|
+
} }, this.Da = function (e) { var t = {}; return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
|
|
844
858
|
var i = this.blocks[t];
|
|
845
859
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
846
860
|
return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
|
|
@@ -860,13 +874,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
860
874
|
var o = this[n];
|
|
861
875
|
if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
|
|
862
876
|
return !1;
|
|
863
|
-
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.
|
|
877
|
+
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ca = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
|
|
864
878
|
case "Day":
|
|
865
879
|
i = 1;
|
|
866
880
|
break;
|
|
867
881
|
case "Week":
|
|
868
882
|
i = 7;
|
|
869
|
-
var a = o.
|
|
883
|
+
var a = o.ca();
|
|
870
884
|
t = t.firstDayOfWeek(a);
|
|
871
885
|
break;
|
|
872
886
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
@@ -874,16 +888,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
874
888
|
var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
|
|
875
889
|
l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
|
|
876
890
|
} return e; }, this.visibleStart = function () { if ("Resources" === n.viewType) {
|
|
877
|
-
if (0 === n.
|
|
891
|
+
if (0 === n.va.length)
|
|
878
892
|
return DayPilot.Date.today();
|
|
879
|
-
var e = n.
|
|
893
|
+
var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
880
894
|
return new DayPilot.Date(t);
|
|
881
|
-
} return this.
|
|
882
|
-
if (0 === n.
|
|
895
|
+
} return this.va[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
|
|
896
|
+
if (0 === n.va.length)
|
|
883
897
|
return DayPilot.Date.today().addDays(1);
|
|
884
|
-
var e = n.
|
|
898
|
+
var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
885
899
|
return new DayPilot.Date(t).addDays(1);
|
|
886
|
-
} var t = this.
|
|
900
|
+
} var t = this.va.length - 1; return this.va[t].start.addDays(1); }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () { if (this.elements.events)
|
|
887
901
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
888
902
|
var t = this.elements.events[e], i = t.event;
|
|
889
903
|
if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
|
|
@@ -891,43 +905,43 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
891
905
|
a.onmousedown = null, a.onmousemove = null, a.onclick = null;
|
|
892
906
|
}
|
|
893
907
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
894
|
-
} this.elements.events = []; }, this.
|
|
895
|
-
var
|
|
896
|
-
if (
|
|
897
|
-
|
|
908
|
+
} this.elements.events = []; }, this.Ea = function (e) { var i = e.cache || e.data, a = this.nav.events, o = i.borderRadius || n.eventBorderRadius; "number" == typeof o && (o += "px"); var r = document.createElement("div"); r.style.position = "absolute", r.style.left = e.part.left + "%", r.style.top = e.part.top + "px", r.style.width = e.part.width + "%", r.style.height = Math.max(e.part.height, 2) + "px", r.style.overflow = "hidden", r.data = e, r.event = e, r.unselectable = "on", r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none", r.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(r, i.cssClass), n.showToolTip && e.client.toolTip() && (r.title = e.client.toolTip()), r.isFirst = e.part.start.getTime() === e.start().getTime(), r.isLast = e.part.end.getTime() === e.end().getTime(), r.onclick = this.ra, DayPilot.re(r, "contextmenu", this.ta), r.onmouseout = function (e) { r.deleteIcon && (r.deleteIcon.style.display = "none"); }, r.onmousemove = function (i) { var a = 5; if ("undefined" != typeof t) {
|
|
909
|
+
var o = DayPilot.mo3(r, i);
|
|
910
|
+
if (o && !t.resizing && !t.moving) {
|
|
911
|
+
r.deleteIcon && (r.deleteIcon.style.display = "");
|
|
898
912
|
var s = this.isLast;
|
|
899
|
-
|
|
913
|
+
o.y <= a && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - o.y <= a && e.client.resizeEnabled() ? s ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== n.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
|
|
900
914
|
}
|
|
901
|
-
} },
|
|
915
|
+
} }, r.onmousedown = function (i) { var a = i.which || i.button; if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== a) {
|
|
902
916
|
if (1 === a && e.client.moveEnabled()) {
|
|
903
917
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
904
918
|
var o = t.moving.helper = {};
|
|
905
|
-
o.oldColumn = n.
|
|
919
|
+
o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
906
920
|
var r = DayPilot.mo3(this, i);
|
|
907
921
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
908
922
|
}
|
|
909
923
|
}
|
|
910
924
|
else
|
|
911
|
-
t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var
|
|
912
|
-
var
|
|
913
|
-
|
|
914
|
-
var u = document.createElement("div");
|
|
915
|
-
u.setAttribute("unselectable", "on"), u.className = this.J("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
|
|
916
|
-
} if (e.client.deleteEnabled()) {
|
|
925
|
+
t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var s = document.createElement("div"); if (s.setAttribute("unselectable", "on"), s.className = n.K("_event_inner"), s.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? s.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : s.style.borderColor = i.borderColor, i.backColor && (s.style.background = i.backColor), i.fontColor && (s.style.color = i.fontColor), o && (r.style.borderRadius = o, s.style.borderRadius = o), r.appendChild(s), e.client.barVisible()) {
|
|
926
|
+
var l = e.part.height - 2, d = 100 * e.part.barTop / l, c = Math.ceil(100 * e.part.barHeight / l), u = document.createElement("div");
|
|
927
|
+
u.setAttribute("unselectable", "on"), u.className = this.K("_event_bar"), u.style.position = "absolute", i.barBackColor && (u.style.backgroundColor = i.barBackColor);
|
|
917
928
|
var h = document.createElement("div");
|
|
918
|
-
h.
|
|
919
|
-
}
|
|
920
|
-
|
|
929
|
+
h.setAttribute("unselectable", "on"), h.className = this.K("_event_bar_inner"), h.style.top = d + "%", 0 < c && c <= 1 ? h.style.height = "1px" : h.style.height = c + "%", i.barColor && (h.style.backgroundColor = i.barColor), u.appendChild(h), r.appendChild(u);
|
|
930
|
+
} if (e.client.deleteEnabled()) {
|
|
931
|
+
var f = document.createElement("div");
|
|
932
|
+
f.style.position = "absolute", f.style.right = "2px", f.style.top = "2px", f.style.width = "17px", f.style.height = "17px", f.className = n.K("_event_delete"), f.onmousedown = function (e) { e.stopPropagation(); }, f.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, f.style.display = "none", r.deleteIcon = f, r.appendChild(f);
|
|
933
|
+
} var m = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(r, e, { "areas": m }), a.rows[0].cells[e.part.dayIndex]) {
|
|
934
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(r), n.Fa(r);
|
|
921
935
|
} if ("function" == typeof n.onAfterEventRender) {
|
|
922
|
-
var
|
|
923
|
-
|
|
924
|
-
} n.elements.events.push(
|
|
936
|
+
var p = {};
|
|
937
|
+
p.e = r.event, p.div = r, n.onAfterEventRender(p);
|
|
938
|
+
} n.elements.events.push(r); }, this.Fa = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
925
939
|
try {
|
|
926
940
|
var a = e.childNodes[i];
|
|
927
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
941
|
+
1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
|
|
928
942
|
}
|
|
929
|
-
catch (e) { } }, this.
|
|
930
|
-
var t = this.
|
|
943
|
+
catch (e) { } }, this.ka = function () { for (var e = 0; e < this.va.length; e++) {
|
|
944
|
+
var t = this.va[e];
|
|
931
945
|
if (t.blocks)
|
|
932
946
|
for (var i = 0; i < t.blocks.length; i++)
|
|
933
947
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -935,40 +949,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
935
949
|
var s = o[r];
|
|
936
950
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
937
951
|
var l = n === a.lines.length - 1;
|
|
938
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
952
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
|
|
939
953
|
}
|
|
940
|
-
} }, this.
|
|
954
|
+
} }, this.Ga = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ha() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ia(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ja(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ka(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.La(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ja = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.La(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ma()), n.appendChild(this.Na()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ma = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Na = function () { var e = document.createElement("table"); e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e; for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
941
955
|
var r = a.insertCell(-1);
|
|
942
956
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
943
957
|
var s = document.createElement("div");
|
|
944
958
|
s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
945
959
|
var l = document.createElement("div");
|
|
946
960
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
947
|
-
} return e; }, this.
|
|
948
|
-
this.
|
|
961
|
+
} return e; }, this.La = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = n.la(), i = 0; i < t; i++)
|
|
962
|
+
this.Oa(e, i); return e; }, this.Oa = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.K("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.pa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ha = function () { switch (this.heightSpec) {
|
|
949
963
|
case "Full": return 48 * this.cellHeight;
|
|
950
964
|
case "BusinessHours":
|
|
951
|
-
var e = this.
|
|
965
|
+
var e = this.na();
|
|
952
966
|
return e * this.cellHeight * 2;
|
|
953
967
|
case "BusinessHoursNoScroll":
|
|
954
|
-
var e = this.
|
|
968
|
+
var e = this.na();
|
|
955
969
|
return e * this.cellHeight * 2;
|
|
956
970
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
957
|
-
} }, this.
|
|
971
|
+
} }, this.Pa = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
|
|
958
972
|
e.innerHTML = "";
|
|
959
|
-
var t = this.
|
|
973
|
+
var t = this.Qa();
|
|
960
974
|
e.appendChild(t), n.nav.corner = t;
|
|
961
|
-
} }, this.
|
|
975
|
+
} }, this.Ia = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Qa(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
|
|
962
976
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
963
977
|
var r = document.createElement("div");
|
|
964
|
-
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.
|
|
978
|
+
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
|
|
965
979
|
var s = document.createElement("div");
|
|
966
|
-
s.className = this.
|
|
967
|
-
} return e.appendChild(t), e; }, this.
|
|
980
|
+
s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
981
|
+
} return e.appendChild(t), e; }, this.Qa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
968
982
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
969
983
|
var n = i.cells[a];
|
|
970
984
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
971
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
985
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.ha = function () { var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va; for (e && this.X(); e && e.rows && e.rows.length > 0;)
|
|
972
986
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
973
987
|
this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0); for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
|
|
974
988
|
var c = l.insertCell(-1);
|
|
@@ -981,22 +995,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
981
995
|
var l = e.insertRow(-1);
|
|
982
996
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
983
997
|
for (var d = 0; d < r; d++) {
|
|
984
|
-
var m = this.
|
|
985
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
998
|
+
var m = this.va[d], c = l.insertCell(-1);
|
|
999
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.wa, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
986
1000
|
var u = document.createElement("div");
|
|
987
|
-
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.
|
|
988
|
-
var p = this.
|
|
1001
|
+
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
|
|
1002
|
+
var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
|
|
989
1003
|
!function () { if ("function" == typeof n.onBeforeCellRender) {
|
|
990
1004
|
var e = {};
|
|
991
1005
|
e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
|
|
992
|
-
} }(), v.business && DayPilot.Util.addClass(u, n.
|
|
1006
|
+
} }(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
|
|
993
1007
|
var y = document.createElement("div");
|
|
994
|
-
y.setAttribute("unselectable", "on"), y.className = this.
|
|
1008
|
+
y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
|
|
995
1009
|
var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
|
|
996
1010
|
g && (y.innerHTML = g), v.backColor && (y.style.backgroundColor = v.backColor), v.backImage && (y.style.backgroundImage = "url(" + v.backImage + ")"), v.backRepeat && (y.style.backgroundRepeat = v.backRepeat), u.appendChild(y), c.appendChild(u), c.appendChild(u);
|
|
997
1011
|
}
|
|
998
1012
|
} e.root = this, n.nav.scrollable.onmousemove = function (e) { var i = n.nav.scrollable; n.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
|
|
999
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
1013
|
+
t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
|
|
1000
1014
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
1001
1015
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1002
1016
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -1018,26 +1032,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1018
1032
|
var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
|
|
1019
1033
|
if (h <= u)
|
|
1020
1034
|
return;
|
|
1021
|
-
t.movingShadow = n.
|
|
1035
|
+
t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
|
|
1022
1036
|
}
|
|
1023
1037
|
var o = n.cellHeight, r = 1, f = t.moveOffsetY;
|
|
1024
1038
|
f || (f = o / 2);
|
|
1025
1039
|
var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
|
|
1026
1040
|
c < r && (c = r);
|
|
1027
1041
|
var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
|
|
1028
|
-
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.
|
|
1042
|
+
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
1029
1043
|
var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
|
|
1030
1044
|
y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
|
|
1031
1045
|
}
|
|
1032
1046
|
else if (t.selecting) {
|
|
1033
|
-
var a = DayPilot.mc(e), g = n.
|
|
1034
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1035
|
-
} }, n.nav.scrollable.style.display = ""; }, this.
|
|
1047
|
+
var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
|
|
1048
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa();
|
|
1049
|
+
} }, n.nav.scrollable.style.display = ""; }, this.Ra = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () { var e = this.nav.header; if (e && e.rows)
|
|
1036
1050
|
for (var t = 0; t < e.rows.length; t++)
|
|
1037
1051
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1038
1052
|
var n = i.cells[a];
|
|
1039
1053
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1040
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1054
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.Sa = function (e) { function t(t) { var o = a[t], r = e ? i.insertCell(-1) : i.cells[t]; r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Ta; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.K("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ua(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o); var c = o.verticalAlignment; if (c)
|
|
1041
1055
|
switch (s.style.display = "flex", c) {
|
|
1042
1056
|
case "center":
|
|
1043
1057
|
s.style.alignItems = "center";
|
|
@@ -1046,20 +1060,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1046
1060
|
s.style.alignItems = "flex-start";
|
|
1047
1061
|
break;
|
|
1048
1062
|
case "bottom": s.style.alignItems = "flex-end";
|
|
1049
|
-
} l.firstChild.innerHTML = n.
|
|
1050
|
-
t(r); }, this.
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1063
|
+
} l.firstChild.innerHTML = n.Ka(o.name, o.html); } for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, o = a.length, r = 0; r < o; r++)
|
|
1064
|
+
t(r); }, this.Ta = function (e) {
|
|
1065
|
+
if ("Disabled" !== n.headerClickHandling) {
|
|
1066
|
+
var t = this.data, i = n.Ua(t), a = {};
|
|
1067
|
+
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () {
|
|
1068
|
+
this.preventDefault.value = !0;
|
|
1069
|
+
}, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
|
|
1070
|
+
}
|
|
1071
|
+
}, this.Ua = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Va = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () { var e = this.nav.header, t = !0, i = this.va; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1072
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Sa(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Wa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Xa(); }); var t = "undefined" != typeof this.Ya.scrollpos ? this.Ya.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Za = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.$a = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1057
1073
|
t = e.data;
|
|
1058
1074
|
else {
|
|
1059
1075
|
if ("object" != typeof e)
|
|
1060
1076
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1061
1077
|
t = e;
|
|
1062
|
-
} n.events.list || (n.events.list = []), n.events.list.push(t), n
|
|
1078
|
+
} n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.find = function (e) { if (!n.events.list)
|
|
1063
1079
|
return null; if ("function" == typeof e) {
|
|
1064
1080
|
for (var t = e, i = 0; i < n.events.list.length; i++) {
|
|
1065
1081
|
var a = new DayPilot.Event(n.events.list[i], n);
|
|
@@ -1079,7 +1095,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1079
1095
|
var i = DayPilot.indexOf(n.events.list, t.data);
|
|
1080
1096
|
n.events.list.splice(i, 1, e);
|
|
1081
1097
|
}
|
|
1082
|
-
} n
|
|
1098
|
+
} n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1083
1099
|
t = e.data;
|
|
1084
1100
|
else if ("object" == typeof e) {
|
|
1085
1101
|
var i = n.events.find(e.id);
|
|
@@ -1088,7 +1104,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1088
1104
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1089
1105
|
var i = n.events.find(e);
|
|
1090
1106
|
i && (t = i.data);
|
|
1091
|
-
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n
|
|
1107
|
+
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1092
1108
|
i = JSON.parse(o.responseText);
|
|
1093
1109
|
}
|
|
1094
1110
|
catch (e) {
|
|
@@ -1098,25 +1114,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1098
1114
|
var s = {};
|
|
1099
1115
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1100
1116
|
return;
|
|
1101
|
-
n.events.list = i, n.
|
|
1117
|
+
n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
|
|
1102
1118
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1103
1119
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
|
|
1104
1120
|
else {
|
|
1105
1121
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1106
1122
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1107
|
-
} }, this.
|
|
1108
|
-
n.nav.top.className = n.
|
|
1123
|
+
} }, this.ab = function () { if (n.nav.top.className !== n.K("_main")) {
|
|
1124
|
+
n.nav.top.className = n.K("_main");
|
|
1109
1125
|
var e = n.nav.corner;
|
|
1110
|
-
e.className = n.
|
|
1126
|
+
e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
|
|
1111
1127
|
var t = n.nav.cornerRight;
|
|
1112
|
-
t && (t.className = n.
|
|
1113
|
-
} }, this.update = function (e) { if (n.
|
|
1114
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.
|
|
1128
|
+
t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
|
|
1129
|
+
} }, this.update = function (e) { if (n.O)
|
|
1130
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.bb(e), n._a(); }, this._a = function (e) { if (this.Ba) {
|
|
1115
1131
|
var e = e || {}, t = !e.eventsOnly;
|
|
1116
|
-
n.
|
|
1117
|
-
} }, this.
|
|
1132
|
+
n.cb(), n.W(), n.nav.top.style.cursor = "auto", t && (n.da(), n.ga(), n.ha(), n.ia(), n.ja(), n.Pa(), n.Za(), n.ab(), n.db()), n.ea(), n.fa(), n.ka(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1133
|
+
} }, this.eb = null, this.bb = function (e) { if (e) {
|
|
1118
1134
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1119
|
-
this.
|
|
1135
|
+
this.eb = t;
|
|
1120
1136
|
for (var i in e)
|
|
1121
1137
|
if (t[i]) {
|
|
1122
1138
|
var a = t[i];
|
|
@@ -1124,21 +1140,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1124
1140
|
}
|
|
1125
1141
|
else
|
|
1126
1142
|
n[i] = e[i];
|
|
1127
|
-
} }, this.
|
|
1143
|
+
} }, this.fb = function () { var e = this.eb; for (var t in e) {
|
|
1128
1144
|
var i = e[t];
|
|
1129
1145
|
i.postInit && i.postInit();
|
|
1130
|
-
} }, this.
|
|
1146
|
+
} }, this.gb = function () { if (this.id && this.id.tagName)
|
|
1131
1147
|
this.nav.top = this.id;
|
|
1132
1148
|
else {
|
|
1133
1149
|
if ("string" != typeof this.id)
|
|
1134
1150
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1135
1151
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1136
1152
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1137
|
-
} }, this.
|
|
1153
|
+
} }, this.hb = {}, this.hb.events = [], this.ib = function (e) { var t = this.hb.events, i = this.events.list[e], a = {}; for (var o in i)
|
|
1138
1154
|
a[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1139
1155
|
var r = {};
|
|
1140
1156
|
r.control = n, r.data = a, this.onBeforeEventRender(r);
|
|
1141
|
-
} t[e] = a; }, this.
|
|
1157
|
+
} t[e] = a; }, this.ea = function () { var e = this.events.list; if (n.hb.events = [], e) {
|
|
1142
1158
|
if (!DayPilot.isArray(e))
|
|
1143
1159
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1144
1160
|
var t = e.length, i = 864e5;
|
|
@@ -1159,11 +1175,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1159
1175
|
}
|
|
1160
1176
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1161
1177
|
for (var o = 0; o < t; o++)
|
|
1162
|
-
this.
|
|
1163
|
-
for (var o = 0; o < this.
|
|
1178
|
+
this.ib(o);
|
|
1179
|
+
for (var o = 0; o < this.va.length; o++) {
|
|
1164
1180
|
var l = {};
|
|
1165
1181
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1166
|
-
var d = this.
|
|
1182
|
+
var d = this.va[o];
|
|
1167
1183
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1168
1184
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1169
1185
|
if (!a[m]) {
|
|
@@ -1173,94 +1189,94 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1173
1189
|
if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
|
|
1174
1190
|
var D = new DayPilot.Event(r, n);
|
|
1175
1191
|
D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
|
|
1176
|
-
var
|
|
1177
|
-
if (C === P && (
|
|
1192
|
+
var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
|
|
1193
|
+
if (C === P && (x.cut || w.cut))
|
|
1178
1194
|
continue;
|
|
1179
|
-
var k =
|
|
1195
|
+
var k = w.boxBottom;
|
|
1180
1196
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1181
1197
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1182
|
-
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.
|
|
1198
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.hb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1183
1199
|
}
|
|
1184
1200
|
}
|
|
1185
1201
|
}
|
|
1186
1202
|
}
|
|
1187
|
-
for (var o = 0; o < this.
|
|
1188
|
-
var d = this.
|
|
1189
|
-
d.events.sort(this.
|
|
1203
|
+
for (var o = 0; o < this.va.length; o++) {
|
|
1204
|
+
var d = this.va[o];
|
|
1205
|
+
d.events.sort(this.jb);
|
|
1190
1206
|
for (var m = 0; m < d.events.length; m++) {
|
|
1191
1207
|
var r = d.events[m];
|
|
1192
1208
|
d.putIntoBlock(r);
|
|
1193
1209
|
}
|
|
1194
1210
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1195
1211
|
var _ = d.blocks[m];
|
|
1196
|
-
_.events.sort(this.
|
|
1212
|
+
_.events.sort(this.jb);
|
|
1197
1213
|
for (var S = 0; S < _.events.length; S++) {
|
|
1198
1214
|
var r = _.events[S];
|
|
1199
1215
|
_.putIntoLine(r);
|
|
1200
1216
|
}
|
|
1201
1217
|
}
|
|
1202
1218
|
}
|
|
1203
|
-
} }, this.
|
|
1219
|
+
} }, this.jb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1204
1220
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
|
|
1205
|
-
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.
|
|
1221
|
+
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.kb(r), c.boxTop = this.kb(l), c.boxBottom = this.kb(d), this.cache.pixels[a + "_" + i] = c, c; }, this.kb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.cb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Ha(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.Xa = function () { if (n.nav.scroll) {
|
|
1206
1222
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1207
|
-
n.
|
|
1208
|
-
} }, this.
|
|
1223
|
+
n.Ya.scrollHour = t;
|
|
1224
|
+
} }, this.db = function () { var e = 0; "number" == typeof n.Ya.scrollHour ? e = 2 * n.cellHeight * n.Ya.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return n.nav.scroll.scrollTop; }, this.setScrollY = function (e) { n.nav.scroll.scrollTop = e, n.Xa(); }, this.lb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Za(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.mb = function () { this.cb(), this.da(), this.Ga(), this.ga(), this.ha(), this.Za(), this.Wa(), this.$a(), t.register(this), this.nb(), this.S("Init"); }, this.Ya = {}, this.ob = function () { this.Ya.themes = [], this.Ya.themes.push(this.theme || this.cssClassPrefix); }, this.pb = function () { for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
|
|
1209
1225
|
var i = e[t];
|
|
1210
1226
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1211
|
-
} this.
|
|
1227
|
+
} this.Ya.themes = []; }, this.qb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1212
1228
|
var e = {};
|
|
1213
1229
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1214
|
-
} }, this.
|
|
1215
|
-
this.
|
|
1230
|
+
} }, this.rb = function () { if ("function" == typeof this.onInit && !this.sb) {
|
|
1231
|
+
this.sb = !0;
|
|
1216
1232
|
var e = {};
|
|
1217
1233
|
this.onInit(e);
|
|
1218
|
-
} }, this.
|
|
1234
|
+
} }, this.tb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.nb = function () { var e = n.tb; e() || (n.V = setInterval(function () { e() && (n.Wa(), n.Za(), clearInterval(n.V)); }, 100)); }, this.Ka = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.bb, this.internal.xssTextHtml = n.Ka, this.init = function () { this.gb(); var e = this.lb(); return this.ob(), e ? void this.mb() : (this.cb(), this.da(), this.ea(), this.Ga(), this.ga(), this.ha(), this.t(), this.Za(), this.Wa(), this.$a(), t.register(this), this.events && (this.fa(), this.ka()), this.qb(), this.rb(), this.nb(), this.Ba = !0, this); }, this.Init = this.init, this.bb(i);
|
|
1219
1235
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
1220
1236
|
var i = new DayPilot.Calendar(this.id);
|
|
1221
1237
|
this.daypilot = i;
|
|
1222
1238
|
for (name in e)
|
|
1223
1239
|
i[name] = e[name];
|
|
1224
1240
|
i.init(), t || (t = i);
|
|
1225
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.
|
|
1241
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
1226
1242
|
(0, e(r).assign)(t, n);
|
|
1227
1243
|
} for (var s in a)
|
|
1228
1244
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1229
|
-
n[t] = e[t]; n.update(), n.
|
|
1245
|
+
n[t] = e[t]; n.update(), n.rb(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
|
|
1230
1246
|
}
|
|
1231
1247
|
}(), "undefined" == typeof DayPilot)
|
|
1232
1248
|
var DayPilot = {};
|
|
1233
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.
|
|
1249
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.4.575-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1234
1250
|
for (var t in e)
|
|
1235
|
-
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1251
|
+
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.ub(); this.resetTarget && !e ? this.vb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.ub(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.vb(this.date); }, this.ub = function () { var e = this.C(); if (!e)
|
|
1236
1252
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1237
1253
|
return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
|
|
1238
1254
|
if (a)
|
|
1239
1255
|
return a;
|
|
1240
1256
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1241
|
-
} return a; }, this.
|
|
1257
|
+
} return a; }, this.vb = function (e) { var t = this.C(); if (t) {
|
|
1242
1258
|
var a = e.toString(i.pattern, i.locale);
|
|
1243
1259
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1244
|
-
} }, this.
|
|
1245
|
-
var e = this.
|
|
1246
|
-
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.
|
|
1260
|
+
} }, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.tb; } }), this.show = function () { if (!this.tb) {
|
|
1261
|
+
var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1262
|
+
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.wb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.vb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1247
1263
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1248
1264
|
s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
|
|
1249
1265
|
var l = document.createElement("div");
|
|
1250
1266
|
l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
|
|
1251
|
-
var d = i.
|
|
1252
|
-
if (a.startDate = d, a.
|
|
1267
|
+
var d = i.ub() || (new DayPilot.Date).getDatePart();
|
|
1268
|
+
if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1253
1269
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1254
1270
|
s.style.left = c + "px";
|
|
1255
1271
|
}
|
|
1256
|
-
this.
|
|
1272
|
+
this.tb = !0, this.onShow && this.onShow();
|
|
1257
1273
|
} }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
|
|
1258
1274
|
var DayPilot = {};
|
|
1259
1275
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1260
1276
|
"use strict";
|
|
1261
1277
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1262
1278
|
var e = function () { }, t = {};
|
|
1263
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.
|
|
1279
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.4.575-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.xb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.xb.submenu = null, null !== t.mouse) {
|
|
1264
1280
|
a.cssOnly || (a.cssOnly = !0);
|
|
1265
1281
|
var s = null;
|
|
1266
1282
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1269,15 +1285,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1269
1285
|
return;
|
|
1270
1286
|
}
|
|
1271
1287
|
var d = document.createElement("div");
|
|
1272
|
-
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.
|
|
1288
|
+
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.yb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1273
1289
|
throw "No menu items defined.";
|
|
1274
1290
|
if (this.showMenuTitle) {
|
|
1275
1291
|
var c = document.createElement("div");
|
|
1276
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1292
|
+
c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
|
|
1277
1293
|
}
|
|
1278
1294
|
for (var u = 0; u < this.items.length; u++) {
|
|
1279
1295
|
var h = this.items[u], f = document.createElement("div");
|
|
1280
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1296
|
+
if (DayPilot.Util.addClass(f, this.yb("item")), h.items && (DayPilot.Util.addClass(f, this.yb("item_haschildren")), DayPilot.Util.addClass(d, this.yb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1281
1297
|
if ("-" === h.text) {
|
|
1282
1298
|
var m = document.createElement("div");
|
|
1283
1299
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1285,7 +1301,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1285
1301
|
else {
|
|
1286
1302
|
var p = document.createElement("a");
|
|
1287
1303
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1288
|
-
DayPilot.Util.addClass(p, a.
|
|
1304
|
+
DayPilot.Util.addClass(p, a.yb("item_disabled"));
|
|
1289
1305
|
else {
|
|
1290
1306
|
if (h.onclick || h.onClick) {
|
|
1291
1307
|
p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
|
|
@@ -1301,7 +1317,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1301
1317
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
1302
1318
|
}
|
|
1303
1319
|
if (h.items && !h.disabled) {
|
|
1304
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
1320
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
|
|
1305
1321
|
p.ontouchend = y(h, p);
|
|
1306
1322
|
}
|
|
1307
1323
|
if (h.onclick)
|
|
@@ -1324,36 +1340,36 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1324
1340
|
}
|
|
1325
1341
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
1326
1342
|
var g = document.createElement("span");
|
|
1327
|
-
if (g.className = a.
|
|
1343
|
+
if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
1328
1344
|
var b = document.createElement("img");
|
|
1329
1345
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
1330
1346
|
}
|
|
1331
1347
|
if (h.icon) {
|
|
1332
1348
|
var D = document.createElement("span");
|
|
1333
|
-
D.className = a.
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1349
|
+
D.className = a.yb("item_icon");
|
|
1350
|
+
var x = document.createElement("i");
|
|
1351
|
+
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
1336
1352
|
}
|
|
1337
1353
|
if (h.symbol) {
|
|
1338
|
-
var
|
|
1354
|
+
var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
|
|
1339
1355
|
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
1340
|
-
var P = document.createElementNS(
|
|
1356
|
+
var P = document.createElementNS(w, "use");
|
|
1341
1357
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
1342
1358
|
var k = document.createElement("span");
|
|
1343
|
-
k.className = a.
|
|
1359
|
+
k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
|
|
1344
1360
|
}
|
|
1345
1361
|
var _ = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
|
|
1346
1362
|
if (o.parent === n)
|
|
1347
1363
|
return;
|
|
1348
1364
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
1349
|
-
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
1365
|
+
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300)); }; };
|
|
1350
1366
|
p.onmouseover = _(h, p), f.appendChild(p);
|
|
1351
1367
|
}
|
|
1352
1368
|
d.appendChild(f);
|
|
1353
1369
|
}
|
|
1354
1370
|
}
|
|
1355
1371
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1356
|
-
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.
|
|
1372
|
+
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.xb.visible = !0, a.xb.source = i, d.style.display = "";
|
|
1357
1373
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
1358
1374
|
d.style.display = "none";
|
|
1359
1375
|
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
@@ -1374,32 +1390,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1374
1390
|
}
|
|
1375
1391
|
else
|
|
1376
1392
|
d.style.left = e + "px"; }(), o.parentLink) {
|
|
1377
|
-
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")),
|
|
1378
|
-
R + T > H && (R = Math.max(0,
|
|
1379
|
-
var
|
|
1380
|
-
|
|
1393
|
+
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), R = O.x + N.offsetWidth, U = O.y - I;
|
|
1394
|
+
R + T > H && (R = Math.max(0, O.x - T));
|
|
1395
|
+
var z = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1396
|
+
U + M - z > A && (U = Math.max(0, A - M + z)), d.style.left = R + "px", d.style.top = U + "px";
|
|
1381
1397
|
}
|
|
1382
|
-
d.style.display = "", this.addShadow(d), this.
|
|
1383
|
-
} }, this.
|
|
1398
|
+
d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
1399
|
+
} }, this.zb = function (e, t) { var i = e, n = t.source; if ((!a.xb.submenu || a.xb.submenu.item !== e) && (a.xb.submenu && a.xb.submenu.item !== e && (DayPilot.Util.removeClass(a.xb.submenu.link.parentNode, a.yb("item_haschildren_active")), a.xb.submenu.menu.hide(), a.xb.submenu = null), e.items)) {
|
|
1384
1400
|
var o = a.cloneOptions();
|
|
1385
|
-
o.items = e.items, a.
|
|
1386
|
-
} }, this.
|
|
1401
|
+
o.items = e.items, a.xb.submenu = {}, a.xb.submenu.menu = new DayPilot.Menu(o), a.xb.submenu.menu.Ab = a, a.xb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.xb.submenu.item = e, a.xb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.yb("item_haschildren_active"));
|
|
1402
|
+
} }, this.yb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide(); var i = t.waitingSubmenu; if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.xb.div && this.xb.div.parentNode === document.body && document.body.removeChild(this.xb.div), n && (DayPilot.de(n), n = null), a.xb.visible = !1, a.xb.source = null, a.Ab && e.hideParent && a.Ab.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1387
1403
|
var o = {};
|
|
1388
1404
|
this.onHide(o);
|
|
1389
1405
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
|
|
1390
1406
|
for (var r in o)
|
|
1391
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
1392
|
-
this[a] = t[a]; this.
|
|
1393
|
-
i.
|
|
1407
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ba = !1; for (var a in t)
|
|
1408
|
+
this[a] = t[a]; this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Bb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
|
|
1409
|
+
i.Cb();
|
|
1394
1410
|
else if (e.children)
|
|
1395
|
-
return void i.
|
|
1411
|
+
return void i.Db(a); if ("function" == typeof e.onClick) {
|
|
1396
1412
|
var n = {};
|
|
1397
1413
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
1398
|
-
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
1399
|
-
i.
|
|
1414
|
+
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Db(a); }, t.appendChild(a), i.elements.items.push(a); }); }, this.Cb = function () { var e = i.Bb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Eb = function (e) { return !!i.active && i.active.item === e.data; }, this.Db = function (e) { if (!i.Eb(e)) {
|
|
1415
|
+
i.Cb();
|
|
1400
1416
|
var t = e.data, a = i.active = {};
|
|
1401
1417
|
a.item = t, a.div = e;
|
|
1402
|
-
var n = i.
|
|
1418
|
+
var n = i.Bb("item_active");
|
|
1403
1419
|
DayPilot.Util.addClass(e, n);
|
|
1404
1420
|
var o = DayPilot.abs(e);
|
|
1405
1421
|
if (t.children) {
|
|
@@ -1408,16 +1424,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1408
1424
|
"right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
|
|
1409
1425
|
}
|
|
1410
1426
|
DayPilot.MenuBar.active = i;
|
|
1411
|
-
} }, this.init = function () { return this.
|
|
1427
|
+
} }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Cb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
|
|
1412
1428
|
return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1413
1429
|
var i = DayPilot.Menu.active;
|
|
1414
1430
|
if (i) {
|
|
1415
|
-
var a = i.
|
|
1431
|
+
var a = i.xb.source;
|
|
1416
1432
|
a && a.calendar === e.calendar && t.menuClean();
|
|
1417
1433
|
}
|
|
1418
1434
|
}
|
|
1419
1435
|
else
|
|
1420
|
-
t.menuClean(); }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
1436
|
+
t.menuClean(); }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "wheel", t.wheel), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
1421
1437
|
}
|
|
1422
1438
|
}(DayPilot), "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
1423
1439
|
"use strict";
|
|
@@ -1456,24 +1472,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1456
1472
|
throw "No CSS registration method found";
|
|
1457
1473
|
t.sheet.addRule(e, a, n);
|
|
1458
1474
|
} }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
|
|
1459
|
-
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;"),
|
|
1460
|
-
"undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Eb = !1, this.Fb = null, this.Gb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1461
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1475
|
+
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;"),
|
|
1476
|
+
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==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1477
|
+
throw "This modal dialog is already displayed."; if (this.div || this.Ib(), this._a(), this.useIframe) {
|
|
1462
1478
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1463
1479
|
window.setTimeout(t(this, e), 0);
|
|
1464
1480
|
}
|
|
1465
1481
|
else
|
|
1466
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this
|
|
1482
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this._a(), this.Jb(), this.Kb(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1467
1483
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1468
|
-
this.div || this.
|
|
1484
|
+
this.div || this.Ib();
|
|
1469
1485
|
var i = this.loadingHtml;
|
|
1470
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.
|
|
1486
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Lb), this.iframe.src = e, this._a(), this.Jb(), this.Kb();
|
|
1471
1487
|
}
|
|
1472
1488
|
else
|
|
1473
|
-
t.
|
|
1489
|
+
t.Mb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.Kb = function () { if ("function" == typeof t.onShow) {
|
|
1474
1490
|
var e = {};
|
|
1475
|
-
e.root = t.
|
|
1476
|
-
} }, this.
|
|
1491
|
+
e.root = t.Nb(), e.modal = t, t.onShow(e);
|
|
1492
|
+
} }, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1477
1493
|
var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
|
|
1478
1494
|
t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1479
1495
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1486,45 +1502,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1486
1502
|
}
|
|
1487
1503
|
else
|
|
1488
1504
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1489
|
-
} }, this
|
|
1490
|
-
for (var a = i() - 40, n = this.width; n < a && this.
|
|
1505
|
+
} }, this._a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Pb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Lb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; }; if (this.useIframe) {
|
|
1506
|
+
for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
|
|
1491
1507
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
1492
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
1508
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
|
|
1493
1509
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
1494
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1510
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
|
|
1495
1511
|
}
|
|
1496
1512
|
else
|
|
1497
|
-
this.div.style.height = ""; }, this.
|
|
1513
|
+
this.div.style.height = ""; }, this.Qb = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1498
1514
|
var o = a[n].offsetLeft + a[n].offsetWidth;
|
|
1499
1515
|
i = Math.max(i, o);
|
|
1500
|
-
} return i > t.clientWidth; }, this.
|
|
1516
|
+
} return i > t.clientWidth; }, this.Rb = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1501
1517
|
var o = a[n].offsetTop + a[n].offsetHeight;
|
|
1502
1518
|
i = Math.max(i, o);
|
|
1503
|
-
} return i > t.clientHeight; }, this.
|
|
1519
|
+
} return i > t.clientHeight; }, this.Ob = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1504
1520
|
var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
|
|
1505
1521
|
return { x: t, y: i };
|
|
1506
|
-
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.
|
|
1507
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
1508
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
1509
|
-
} }, this.
|
|
1522
|
+
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.Jb = function () { this.Fb || (this.re(window, "resize", this.Sb), this.re(window, "scroll", this.Tb), this.dragDrop && (this.re(document, "mousemove", this.Ub), this.re(document, "mouseup", this.Vb)), this.Fb = !0); }, this.Wb = function () { this.ue(window, "resize", this.Sb), this.ue(window, "scroll", this.Tb), this.dragDrop && (this.ue(document, "mousemove", this.Ub), this.ue(document, "mouseup", this.Vb)), this.Fb = !1; }, this.Xb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Yb(), t.Hb = t.mc(e || window.event), t.Gb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Ub = function (e) { if (t.Hb) {
|
|
1523
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
|
|
1524
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
|
|
1525
|
+
} }, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () { if (this.useIframe) {
|
|
1510
1526
|
var e = document.createElement("div");
|
|
1511
1527
|
e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
|
|
1512
|
-
} }, this.
|
|
1528
|
+
} }, this.Zb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Sb = function () { t.$b(), t.Pb(); }, this.Tb = function () { t.$b(); }, this.Pb = function () { if (!t.left && t.div) {
|
|
1513
1529
|
var e = t.div.offsetWidth;
|
|
1514
1530
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1515
|
-
} }, this
|
|
1516
|
-
var e = t
|
|
1531
|
+
} }, this.$b = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1532
|
+
var e = t._b.scrollY();
|
|
1517
1533
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1518
|
-
} }, this
|
|
1519
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1534
|
+
} }, this._b = {}, this._b.container = function () { return t.container || document.body; }, this._b.scrollY = function () { var e = t._b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1535
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.Ib = function () { var e = t._b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Xb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.bc || (t.stretch(), t.bc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
1520
1536
|
var o = i[n], r = o.name;
|
|
1521
1537
|
if (r) {
|
|
1522
1538
|
var s = o.value;
|
|
1523
1539
|
a[r] = s;
|
|
1524
1540
|
}
|
|
1525
|
-
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
1541
|
+
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Wb(), t.cc(t.div), t.cc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.cc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.dc = function () { if (e)
|
|
1526
1542
|
for (var t in e)
|
|
1527
|
-
this[t] = e[t]; }, this.
|
|
1543
|
+
this[t] = e[t]; }, this.dc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
|
|
1528
1544
|
case 13:
|
|
1529
1545
|
s.close(this.value);
|
|
1530
1546
|
break;
|
|
@@ -1574,28 +1590,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1574
1590
|
g && g.focus();
|
|
1575
1591
|
}
|
|
1576
1592
|
else {
|
|
1577
|
-
var
|
|
1578
|
-
o.autoFocus &&
|
|
1593
|
+
var x = h.firstFocusable();
|
|
1594
|
+
o.autoFocus && x ? x.focus() : o.div.focus();
|
|
1579
1595
|
} }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
|
|
1580
1596
|
throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
1581
|
-
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.
|
|
1597
|
+
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.ec = [], this.fc = null, this.canceling = !1, this.gc = [], this.f = [], this.hc = null, e = e || {}; for (var t in e)
|
|
1582
1598
|
this[t] = e[t]; };
|
|
1583
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
1599
|
+
r.prototype.create = function () { return this.load(), this.render(), this.hc; }, r.prototype.render = function () { var e = this; this.hc = document.createElement("div"), this.ec.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, i = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
|
|
1584
1600
|
var n = document.createElement("div");
|
|
1585
1601
|
n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
|
|
1586
|
-
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.
|
|
1602
|
+
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
|
|
1587
1603
|
var t = {};
|
|
1588
1604
|
t.result = i.serialize(), i.onChange(t);
|
|
1589
|
-
} }, o.onBlur = function () { i.canceling || i.
|
|
1605
|
+
} }, o.onBlur = function () { i.canceling || i.ic(o); }, o.apply(e), o.hc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.hc.appendChild(a); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.ic(i); t = t && a; }), t; }, r.prototype.ic = function (e, t) { function i() { e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.jc = t, e.hc.appendChild(t); } t = t || {}; var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l; if (d) {
|
|
1590
1606
|
var c = {};
|
|
1591
1607
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1592
1608
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1593
1609
|
if (c.valid)
|
|
1594
|
-
clearTimeout(this.
|
|
1610
|
+
clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
|
|
1595
1611
|
else if (!n)
|
|
1596
1612
|
if (a) {
|
|
1597
1613
|
var f = 1e3;
|
|
1598
|
-
clearTimeout(this.
|
|
1614
|
+
clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
|
|
1599
1615
|
}
|
|
1600
1616
|
else
|
|
1601
1617
|
i();
|
|
@@ -1607,37 +1623,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1607
1623
|
catch (e) {
|
|
1608
1624
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1609
1625
|
} for (var n in i)
|
|
1610
|
-
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.
|
|
1626
|
+
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.ec.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.fc ? this.fc : this.ec).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
|
|
1611
1627
|
if (e.name) {
|
|
1612
1628
|
var o = new s;
|
|
1613
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.
|
|
1629
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
|
|
1614
1630
|
}
|
|
1615
|
-
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.
|
|
1631
|
+
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.ec.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
1616
1632
|
}
|
|
1617
1633
|
else if ("title" === a) {
|
|
1618
1634
|
var o = new s;
|
|
1619
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.
|
|
1635
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
|
|
1620
1636
|
}
|
|
1621
1637
|
else if ("image" === a) {
|
|
1622
1638
|
var o = new s;
|
|
1623
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1639
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
1624
1640
|
}
|
|
1625
1641
|
else if ("html" === a) {
|
|
1626
1642
|
var o = new s;
|
|
1627
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1643
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
1628
1644
|
}
|
|
1629
1645
|
else if ("scrollable" === a) {
|
|
1630
1646
|
var o = new s;
|
|
1631
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1647
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
|
|
1632
1648
|
}
|
|
1633
1649
|
else {
|
|
1634
1650
|
var o = new s;
|
|
1635
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.
|
|
1651
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.ec.push(o), n.push(o);
|
|
1636
1652
|
} return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
1637
1653
|
var t = { key: e };
|
|
1638
1654
|
this.onKey(t);
|
|
1639
1655
|
} }, r.prototype.createInteractive = function (e) {
|
|
1640
|
-
var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () {
|
|
1656
|
+
var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () {
|
|
1657
|
+
var i = new l, a = document.createElement("div");
|
|
1658
|
+
a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px");
|
|
1659
|
+
var n = document.createElement("div");
|
|
1660
|
+
return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i;
|
|
1661
|
+
}, "text": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("input"); return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
1641
1662
|
case 13:
|
|
1642
1663
|
t.doOnKey("Enter");
|
|
1643
1664
|
break;
|
|
@@ -1664,13 +1685,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1664
1685
|
n.close(), i = !0;
|
|
1665
1686
|
break;
|
|
1666
1687
|
default: i = !0;
|
|
1667
|
-
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.
|
|
1668
|
-
return {}; var t = n.
|
|
1688
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.kc(e); }, "datetime": function () { return t.lc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.nc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.nc && (t = a.nc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
|
|
1689
|
+
return {}; var t = n.nc, i = {}; return i[e.field] = t, i; }, i; }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
|
|
1669
1690
|
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
|
|
1670
|
-
}, r.prototype.
|
|
1691
|
+
}, r.prototype.kc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1671
1692
|
var h = c.addMinutes(n * u), f = {};
|
|
1672
1693
|
f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
|
|
1673
|
-
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.
|
|
1694
|
+
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.lc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
1674
1695
|
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
1675
1696
|
r.locale = s, r.pattern = l.datePattern;
|
|
1676
1697
|
} o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
@@ -1687,11 +1708,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1687
1708
|
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1688
1709
|
var u = l.addMinutes(n * c), h = {};
|
|
1689
1710
|
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
|
|
1690
|
-
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.
|
|
1711
|
+
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.ec.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var i = this.fc ? this.fc : this.ec, a = i.indexOf(e); return this.fc = i.map(function (i) { if (i !== e)
|
|
1691
1712
|
return i; if (e.propsEqual(t))
|
|
1692
1713
|
return e; var a = e.clone(); for (var n in t)
|
|
1693
|
-
a[n] = t[n]; return a; }), this.
|
|
1694
|
-
this.
|
|
1714
|
+
a[n] = t[n]; return a; }), this.fc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.fc) {
|
|
1715
|
+
this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
|
|
1695
1716
|
} }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
|
|
1696
1717
|
e[a] = i[a]; }), e; };
|
|
1697
1718
|
var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
|
|
@@ -1699,45 +1720,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1699
1720
|
"id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
|
|
1700
1721
|
if (this[t] !== e[t])
|
|
1701
1722
|
return !1; return !0; }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
|
|
1702
|
-
var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
1723
|
+
var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.oc = !1, this.listZIndex = 1e5, this.onSelect = null, this.pc = null, this.qc = null, this.rc = !1, this.sc = null, this.tc = null, this.p = [], this.uc = null, e = e || {}; var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.pc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.pc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.oc; }, set: function (e) { this.oc = e, this.sc && (this.sc.disabled = e, e && this.vc()); } }); for (var a in e)
|
|
1703
1724
|
i[a] || (this[a] = e[a]); for (var a in e)
|
|
1704
1725
|
i[a] && i[a].post(e[a]); };
|
|
1705
|
-
d.prototype.select = function (e) { return this.
|
|
1726
|
+
d.prototype.select = function (e) { return this.pc = this.data.find(function (t) { return t.id === e; }), this.wc(!1), this; }, d.prototype.create = function () { function e(e) { var i = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.qc = null, l.p = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
|
|
1706
1727
|
if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
|
|
1707
1728
|
return;
|
|
1708
1729
|
}
|
|
1709
1730
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
|
|
1710
|
-
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.
|
|
1731
|
+
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.pc && (l.qc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.qc !== r && (l.qc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r); }), l.qc || (l.qc = n), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.qc && (l.qc.className += " " + l.theme + "_list_item_highlight", t && !i(l.qc, h) && l.qc.scrollIntoView()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); } function n() { l.vc(); } function o() { l.q(); } function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.rc ? (l.focus(), s()) : (n(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f; var m = document.createElement("input"); return m.type = "text", m.className = this.theme + "_input", m.disabled = this.oc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) { if (l.rc) {
|
|
1711
1732
|
if ("Enter" === e.key)
|
|
1712
1733
|
return;
|
|
1713
1734
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
1714
1735
|
return;
|
|
1715
1736
|
s();
|
|
1716
1737
|
} if ("ArrowDown" === e.key) {
|
|
1717
|
-
var i = d.
|
|
1718
|
-
i + 1 < d.
|
|
1738
|
+
var i = d.p.indexOf(d.qc);
|
|
1739
|
+
i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
|
|
1719
1740
|
}
|
|
1720
1741
|
else if ("ArrowUp" === e.key) {
|
|
1721
|
-
var i = d.
|
|
1722
|
-
i - 1 >= 0 && (d.
|
|
1742
|
+
var i = d.p.indexOf(d.qc);
|
|
1743
|
+
i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
|
|
1723
1744
|
}
|
|
1724
1745
|
else
|
|
1725
|
-
"Enter" === e.key ? l.
|
|
1746
|
+
"Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), this.sc = m, this.tc = h, this.pc || (this.pc = this.data[0], this.pc && (m.value = this.pc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.vc = function () { this.q(), this.pc ? this.sc.value = this.pc.name : (this.sc.value = "", this.wc(!0)); }, d.prototype.focus = function () { this.rc = !0, this.sc.setAttribute("readonly", "readonly"), this.sc.focus(), this.vc(); }, d.prototype.q = function () { this.tc.style.display = "none"; }, d.prototype.wc = function (e) { if (this.uc.value = this.selected ? this.selected.id : null, this.pc ? this.sc.value = this.pc.name : this.sc.value = "", "function" == typeof this.onSelect) {
|
|
1726
1747
|
var t = { control: this, ui: e };
|
|
1727
1748
|
this.onSelect(t);
|
|
1728
1749
|
} };
|
|
1729
|
-
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
1750
|
+
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.xc = null, this.ec = [], e = e || {}; for (var t in e)
|
|
1730
1751
|
this[t] = e[t]; };
|
|
1731
|
-
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.
|
|
1752
|
+
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.yc(); a.appendChild(n); var o = e.zc({}); o.spacer = !0; var r = this.Ac(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
|
|
1732
1753
|
var i = e.item.onNewRow, a = {};
|
|
1733
1754
|
if ("function" == typeof i) {
|
|
1734
1755
|
var n = {};
|
|
1735
1756
|
n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
|
|
1736
1757
|
}
|
|
1737
|
-
var o = e.
|
|
1738
|
-
e.
|
|
1739
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.
|
|
1740
|
-
throw new Error("Array expected"); this.data = e, this.
|
|
1758
|
+
var o = e.zc(a);
|
|
1759
|
+
e.ec.push(o), e.Bc(), e.Cc();
|
|
1760
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.yc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Dc = function () { var e = this.item.max || 0; return !!(e && this.ec.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.ec.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
1761
|
+
throw new Error("Array expected"); this.data = e, this.Ec(), this.Bc(); }, c.prototype.Fc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Dc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Ec = function () { var e = this; this.ec = [], this.data.forEach(function (t) { var i = e.zc(t); e.ec.push(i); }); }, c.prototype.Gc = function (e) { var t = this, i = t.ec.indexOf(e); t.ec.splice(i, 1); }, c.prototype.zc = function (e) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Hc(a); if ("undefined" == typeof o)
|
|
1741
1762
|
if ("text" === r)
|
|
1742
1763
|
o = "";
|
|
1743
1764
|
else if ("number" === r)
|
|
@@ -1745,23 +1766,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1745
1766
|
else if ("select" === r) {
|
|
1746
1767
|
var s = a.options;
|
|
1747
1768
|
o = s && s[0].id;
|
|
1748
|
-
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.
|
|
1749
|
-
var t = e.
|
|
1769
|
+
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.ec.forEach(function (t) { var i = e.Ac(t); e.nav.body.appendChild(i); }), 0 === this.ec.length) {
|
|
1770
|
+
var t = e.Ic();
|
|
1750
1771
|
e.nav.after.appendChild(t);
|
|
1751
|
-
} this.
|
|
1772
|
+
} this.Fc(); }, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Jc(a); if (e.spacer) {
|
|
1752
1773
|
var r = document.createElement("div");
|
|
1753
1774
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
|
|
1754
1775
|
}
|
|
1755
1776
|
else
|
|
1756
|
-
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.
|
|
1777
|
+
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Gc(e), t.Bc(), t.Cc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, c.prototype.Cc = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
1757
1778
|
var t = {};
|
|
1758
1779
|
e.onInput(t);
|
|
1759
|
-
} }, c.prototype.
|
|
1780
|
+
} }, c.prototype.Jc = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
|
|
1760
1781
|
var a = document.createElement("input");
|
|
1761
|
-
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.
|
|
1782
|
+
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Cc(); }), a;
|
|
1762
1783
|
} if ("select" === i) {
|
|
1763
1784
|
var n = document.createElement("select");
|
|
1764
|
-
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.
|
|
1785
|
+
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.nc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.nc && (e.value = a.nc), t.Cc(); }), n;
|
|
1765
1786
|
} throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
|
|
1766
1787
|
}
|
|
1767
1788
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
@@ -1770,15 +1791,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1770
1791
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1771
1792
|
var e = {};
|
|
1772
1793
|
e.Month = function (t, i) {
|
|
1773
|
-
this.v = "2024.
|
|
1794
|
+
this.v = "2024.4.575-lite", this.nav = {};
|
|
1774
1795
|
var a = this;
|
|
1775
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.
|
|
1796
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.W(), a.Kc(), a.ea(), "Full" === e.UpdateType && (a.Lc(), a.Mc()), a.ja(), a.show(), a.ka(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1776
1797
|
t = e.data;
|
|
1777
1798
|
else {
|
|
1778
1799
|
if ("object" != typeof e)
|
|
1779
1800
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
1780
1801
|
t = e;
|
|
1781
|
-
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
1802
|
+
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify(); }, this.events.find = function (e) { if (!a.events.list)
|
|
1782
1803
|
return null; if ("function" == typeof e) {
|
|
1783
1804
|
for (var t = e, i = 0; i < a.events.list.length; i++) {
|
|
1784
1805
|
var n = new DayPilot.Event(a.events.list[i], a);
|
|
@@ -1798,7 +1819,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1798
1819
|
var i = DayPilot.indexOf(a.events.list, t.data);
|
|
1799
1820
|
a.events.list.splice(i, 1, e);
|
|
1800
1821
|
}
|
|
1801
|
-
} a.update(), a.
|
|
1822
|
+
} a.update(), a.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1802
1823
|
t = e.data;
|
|
1803
1824
|
else if ("object" == typeof e) {
|
|
1804
1825
|
var i = a.events.find(e.id);
|
|
@@ -1807,7 +1828,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1807
1828
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1808
1829
|
var i = a.events.find(e);
|
|
1809
1830
|
i && (t = i.data);
|
|
1810
|
-
} var n = DayPilot.indexOf(a.events.list, t); a.events.list.splice(n, 1), a.update(), a.
|
|
1831
|
+
} var n = DayPilot.indexOf(a.events.list, t); a.events.list.splice(n, 1), a.update(), a.sa.notify(); }, this.events.load = function (e, t, i) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1811
1832
|
i = JSON.parse(o.responseText);
|
|
1812
1833
|
}
|
|
1813
1834
|
catch (e) {
|
|
@@ -1817,21 +1838,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1817
1838
|
var s = {};
|
|
1818
1839
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1819
1840
|
return;
|
|
1820
|
-
a.events.list = i, a.
|
|
1841
|
+
a.events.list = i, a.Ba && a.update();
|
|
1821
1842
|
} }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
1822
1843
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
|
|
1823
1844
|
else {
|
|
1824
1845
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
1825
1846
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
1826
|
-
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.
|
|
1827
|
-
if (a.
|
|
1847
|
+
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.jb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) { if (a.bb(e), this.Ba) {
|
|
1848
|
+
if (a.O)
|
|
1828
1849
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
1829
1850
|
if (this.cells) {
|
|
1830
|
-
a.
|
|
1851
|
+
a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
|
|
1831
1852
|
}
|
|
1832
|
-
} }, this.
|
|
1853
|
+
} }, this.eb = null, this.bb = function (e) { if (e) {
|
|
1833
1854
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
1834
|
-
this.
|
|
1855
|
+
this.eb = t;
|
|
1835
1856
|
for (var i in e)
|
|
1836
1857
|
if (t[i]) {
|
|
1837
1858
|
var n = t[i];
|
|
@@ -1839,19 +1860,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1839
1860
|
}
|
|
1840
1861
|
else
|
|
1841
1862
|
a[i] = e[i];
|
|
1842
|
-
} }, this.
|
|
1863
|
+
} }, this.fb = function () { var e = this.eb; for (var t in e) {
|
|
1843
1864
|
var i = e[t];
|
|
1844
1865
|
i.postInit && i.postInit();
|
|
1845
|
-
} }, this.
|
|
1866
|
+
} }, this.hb = {}, this.hb.events = [], this.ib = function (e) { var t = this.hb.events, i = this.events.list[e], n = {}; for (var o in i)
|
|
1846
1867
|
n[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1847
1868
|
var r = {};
|
|
1848
1869
|
r.control = a, r.data = n, this.onBeforeEventRender(r);
|
|
1849
|
-
} t[e] = n; }, this.
|
|
1870
|
+
} t[e] = n; }, this.ea = function () { var e = this.events.list; if (e) {
|
|
1850
1871
|
if (!DayPilot.isArray(e))
|
|
1851
1872
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1852
1873
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1853
1874
|
for (var t = 0; t < e.length; t++)
|
|
1854
|
-
this.
|
|
1875
|
+
this.ib(t);
|
|
1855
1876
|
for (var i = 0; i < e.length; i++) {
|
|
1856
1877
|
var a = e[i];
|
|
1857
1878
|
if ("object" != typeof a)
|
|
@@ -1864,24 +1885,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1864
1885
|
if (!(n.getTime() > o.getTime()))
|
|
1865
1886
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1866
1887
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
1867
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1888
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
|
|
1868
1889
|
}
|
|
1869
1890
|
}
|
|
1870
1891
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1871
1892
|
var r = this.rows[l];
|
|
1872
|
-
r.events.sort(this.
|
|
1893
|
+
r.events.sort(this.jb);
|
|
1873
1894
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1874
1895
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1875
1896
|
r.putIntoLine(c, u, h, l);
|
|
1876
1897
|
}
|
|
1877
1898
|
}
|
|
1878
|
-
} }, this.
|
|
1899
|
+
} }, this.W = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1879
1900
|
var t = this.elements.events[e];
|
|
1880
1901
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
1881
|
-
} this.elements.events = []; }, this.
|
|
1902
|
+
} this.elements.events = []; }, this.ka = function () { this.Nc(); }, this.Nc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1882
1903
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
1883
1904
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
1884
|
-
this.
|
|
1905
|
+
this.Ea(a[n]); }, this.jb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1885
1906
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, n, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o; var d = 7 * i + t - r; d < 0 && (l += d, t = 0, i = 0); for (var c = r; c >= 7;)
|
|
1886
1907
|
i--, c -= 7; if (c > t) {
|
|
1887
1908
|
c > t + (7 - this.getColCount()) ? (i--, t = t + 7 - c) : (l = l - c + t, t = 0);
|
|
@@ -1889,47 +1910,58 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1889
1910
|
else
|
|
1890
1911
|
t -= c; i < 0 && (i = 0, t = 0); var u = null; for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
|
|
1891
1912
|
var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
|
|
1892
|
-
v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.
|
|
1913
|
+
v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.K("_shadow"));
|
|
1893
1914
|
var y = document.createElement("div");
|
|
1894
|
-
y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.
|
|
1915
|
+
y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
|
|
1895
1916
|
} }, this.clearShadow = function () { if (this.shadow) {
|
|
1896
1917
|
for (var e = 0; e < this.shadow.list.length; e++)
|
|
1897
1918
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1898
1919
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1899
1920
|
} }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
1900
|
-
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1921
|
+
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) {
|
|
1922
|
+
var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
|
|
1923
|
+
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.K("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.K("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.ra, u.oncontextmenu = a.Oc, u.onmousedown = function (i) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
1924
|
+
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1925
|
+
var d = {};
|
|
1926
|
+
d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
|
|
1927
|
+
}
|
|
1928
|
+
else if ("move" === this.style.cursor || t.client.moveEnabled()) {
|
|
1929
|
+
a.clearShadow();
|
|
1930
|
+
var c = DayPilot.mo3(a.nav.top, i);
|
|
1931
|
+
if (!c)
|
|
1932
|
+
return;
|
|
1933
|
+
var h = a.getCellBelowPoint(c.x, c.y), f = DayPilot.DateUtil.daysDiff(t.start(), a.rows[n].start), m = 7 * h.y + h.x - (7 * n + r);
|
|
1934
|
+
f && (m += f);
|
|
1935
|
+
var p = {};
|
|
1936
|
+
p.start = {}, p.start.x = r, p.start.y = n, p.start.line = o, p.offset = a.eventMoveToPosition ? 0 : m, p.colWidth = s, p.event = u.event, p.coords = c, e.movingEvent = p;
|
|
1937
|
+
} }, u.onmousemove = function (i) { if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
|
|
1938
|
+
var a = DayPilot.mo3(u, i);
|
|
1939
|
+
if (a) {
|
|
1940
|
+
u.deleteIcon && (u.deleteIcon.style.display = "");
|
|
1941
|
+
var n = 6;
|
|
1942
|
+
a.x <= n && t.client.resizeEnabled() ? t.part.startsHere ? (u.style.cursor = "w-resize", u.dpBorder = "left") : u.style.cursor = "not-allowed" : u.clientWidth - a.x <= n && t.client.resizeEnabled() ? t.part.endsHere ? (u.style.cursor = "e-resize", u.dpBorder = "right") : u.style.cursor = "not-allowed" : t.client.clickEnabled() ? u.style.cursor = "pointer" : u.style.cursor = "default";
|
|
1943
|
+
}
|
|
1944
|
+
} }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
|
|
1945
|
+
var h = document.createElement("div");
|
|
1946
|
+
if (h.setAttribute("unselectable", "on"), h.className = this.K("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
|
|
1947
|
+
var f = document.createElement("div");
|
|
1948
|
+
f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
|
|
1949
|
+
var m = document.createElement("div");
|
|
1950
|
+
m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
|
|
1920
1951
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1952
|
+
if (t.client.deleteEnabled()) {
|
|
1953
|
+
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
1954
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.K("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ua(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
1955
|
+
}
|
|
1956
|
+
var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1957
|
+
if (DayPilot.Areas.attach(u, t, {
|
|
1958
|
+
"areas": y
|
|
1959
|
+
}), "function" == typeof a.onAfterEventRender) {
|
|
1960
|
+
var g = {};
|
|
1961
|
+
g.e = u.event, g.div = u, a.onAfterEventRender(g);
|
|
1962
|
+
}
|
|
1963
|
+
this.elements.events.push(u), this.nav.events.appendChild(u);
|
|
1964
|
+
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
|
|
1933
1965
|
var o = {};
|
|
1934
1966
|
o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
|
|
1935
1967
|
var r = this.lines[o];
|
|
@@ -1939,7 +1971,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1939
1971
|
e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
|
|
1940
1972
|
e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
|
|
1941
1973
|
} this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
1942
|
-
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.
|
|
1974
|
+
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ga = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.K("_main"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
1943
1975
|
var i = DayPilot.mo3(a.nav.top, t);
|
|
1944
1976
|
if (!i)
|
|
1945
1977
|
return;
|
|
@@ -1982,7 +2014,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1982
2014
|
o < 1 && (o = 1);
|
|
1983
2015
|
var v = m < p ? r : n;
|
|
1984
2016
|
e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
|
|
1985
|
-
} }; }, this.
|
|
2017
|
+
} }; }, this.ja = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
|
|
1986
2018
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1987
2019
|
this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
|
|
1988
2020
|
var l = o;
|
|
@@ -1991,27 +2023,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1991
2023
|
break;
|
|
1992
2024
|
}
|
|
1993
2025
|
} null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
|
|
1994
|
-
i.y++, t -= 7; return i.x = t, i; }, this.
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
for (var r = 0; r < this.rows.length; r++)
|
|
2006
|
-
this.Oc(t, r, e);
|
|
2007
|
-
}
|
|
2008
|
-
}, this.Kc = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2026
|
+
i.y++, t -= 7; return i.x = t, i; }, this.Mc = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
|
|
2027
|
+
this.cells[t] = [];
|
|
2028
|
+
var i = document.createElement("div");
|
|
2029
|
+
i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
|
|
2030
|
+
var a = t + this.getWeekStart();
|
|
2031
|
+
a > 6 && (a -= 7), i.className = this.K("_header");
|
|
2032
|
+
var o = document.createElement("div");
|
|
2033
|
+
o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.K("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
2034
|
+
for (var r = 0; r < this.rows.length; r++)
|
|
2035
|
+
this.Pc(t, r, e);
|
|
2036
|
+
} }, this.Lc = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2009
2037
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
2010
|
-
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.
|
|
2011
|
-
var c = this.
|
|
2038
|
+
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) { var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null; d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l; var c = !a.isWeekend(s), u = {}; u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u); var h = u.cell.properties, f = document.createElement("div"); if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.K("_cell"), h.business) {
|
|
2039
|
+
var c = this.K("_cell_business");
|
|
2012
2040
|
DayPilot.Util.addClass(f, c);
|
|
2013
|
-
} var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.
|
|
2014
|
-
return void e(s); }; var p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.
|
|
2041
|
+
} var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.K("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
|
|
2042
|
+
return void e(s); }; var p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
|
|
2015
2043
|
e.stopPropagation();
|
|
2016
2044
|
var t = {};
|
|
2017
2045
|
t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
|
|
@@ -2022,10 +2050,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2022
2050
|
var e = n.locale();
|
|
2023
2051
|
return e ? e.weekStarts : 0;
|
|
2024
2052
|
} return a.weekStarts || 0; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
2025
|
-
t += this.rows[i].getHeight(); return t; }, this.
|
|
2026
|
-
if (a.
|
|
2053
|
+
t += this.rows[i].getHeight(); return t; }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { a.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.ra = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i && i.client.clickEnabled())
|
|
2054
|
+
if (a.qa()) {
|
|
2027
2055
|
var n = {};
|
|
2028
|
-
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.
|
|
2056
|
+
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.sa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
2029
2057
|
return;
|
|
2030
2058
|
switch (a.eventClickHandling) {
|
|
2031
2059
|
case "CallBack":
|
|
@@ -2035,7 +2063,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2035
2063
|
var o = i.client.contextMenu();
|
|
2036
2064
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
2037
2065
|
}
|
|
2038
|
-
"function" == typeof a.onEventClicked && a.
|
|
2066
|
+
"function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
|
|
2039
2067
|
}
|
|
2040
2068
|
else
|
|
2041
2069
|
switch (a.eventClickHandling) {
|
|
@@ -2043,7 +2071,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2043
2071
|
a.eventClickCallBack(i);
|
|
2044
2072
|
break;
|
|
2045
2073
|
case "JavaScript": a.onEventClick(i);
|
|
2046
|
-
} }, this.
|
|
2074
|
+
} }, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
2047
2075
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
|
|
2048
2076
|
switch (a.eventRightClickHandling) {
|
|
2049
2077
|
case "ContextMenu":
|
|
@@ -2051,9 +2079,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2051
2079
|
i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
|
|
2052
2080
|
}
|
|
2053
2081
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
2054
|
-
} }, this.
|
|
2082
|
+
} }, this.ua = function (e) { if (a.qa()) {
|
|
2055
2083
|
var t = {};
|
|
2056
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
2084
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.sa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
2057
2085
|
return;
|
|
2058
2086
|
switch (a.eventDeleteHandling) {
|
|
2059
2087
|
case "CallBack":
|
|
@@ -2064,7 +2092,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2064
2092
|
break;
|
|
2065
2093
|
case "Update": a.events.remove(e);
|
|
2066
2094
|
}
|
|
2067
|
-
"function" == typeof a.onEventDeleted && a.
|
|
2095
|
+
"function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
|
|
2068
2096
|
}
|
|
2069
2097
|
else
|
|
2070
2098
|
switch (a.eventDeleteHandling) {
|
|
@@ -2075,11 +2103,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2075
2103
|
a.eventDeleteCallBack(e);
|
|
2076
2104
|
break;
|
|
2077
2105
|
case "JavaScript": a.onEventDelete(e);
|
|
2078
|
-
} }, this.eventDeleteCallBack = function (e, t) { this.
|
|
2106
|
+
} }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
2079
2107
|
throw "newStart is null"; if (!i)
|
|
2080
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.
|
|
2108
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o); }, this.L = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.qa()) {
|
|
2081
2109
|
var p = {};
|
|
2082
|
-
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.
|
|
2110
|
+
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.sa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
2083
2111
|
return;
|
|
2084
2112
|
switch (a.eventMoveHandling) {
|
|
2085
2113
|
case "CallBack":
|
|
@@ -2087,7 +2115,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2087
2115
|
break;
|
|
2088
2116
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
2089
2117
|
}
|
|
2090
|
-
"function" == typeof a.onEventMoved && a.
|
|
2118
|
+
"function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
|
|
2091
2119
|
}
|
|
2092
2120
|
else
|
|
2093
2121
|
switch (a.eventMoveHandling) {
|
|
@@ -2097,9 +2125,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2097
2125
|
case "JavaScript": a.onEventMove(e, f, m);
|
|
2098
2126
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
2099
2127
|
throw "newStart is null"; if (!i)
|
|
2100
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
2128
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.J = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r); if (a.qa()) {
|
|
2101
2129
|
var u = {};
|
|
2102
|
-
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.
|
|
2130
|
+
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.sa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
2103
2131
|
return;
|
|
2104
2132
|
switch (a.eventResizeHandling) {
|
|
2105
2133
|
case "CallBack":
|
|
@@ -2107,7 +2135,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2107
2135
|
break;
|
|
2108
2136
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
2109
2137
|
}
|
|
2110
|
-
"function" == typeof a.onEventResized && a.
|
|
2138
|
+
"function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
|
|
2111
2139
|
}
|
|
2112
2140
|
else
|
|
2113
2141
|
switch (a.eventResizeHandling) {
|
|
@@ -2115,14 +2143,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2115
2143
|
a.eventResizeCallBack(e, d, c);
|
|
2116
2144
|
break;
|
|
2117
2145
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
2118
|
-
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.
|
|
2146
|
+
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) { if (this.qa()) {
|
|
2119
2147
|
var i = {};
|
|
2120
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
2148
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.sa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2121
2149
|
return;
|
|
2122
2150
|
switch (a.timeRangeSelectedHandling) {
|
|
2123
2151
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
2124
2152
|
}
|
|
2125
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
2153
|
+
"function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
|
|
2126
2154
|
}
|
|
2127
2155
|
else
|
|
2128
2156
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -2130,16 +2158,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2130
2158
|
a.timeRangeSelectedCallBack(e, t);
|
|
2131
2159
|
break;
|
|
2132
2160
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
2133
|
-
} }, this.
|
|
2134
|
-
var n = this.
|
|
2135
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.
|
|
2161
|
+
} }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== a.xssProtection; };
|
|
2162
|
+
var n = this.aa;
|
|
2163
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.O || (e.O = !0, e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.$a = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.gb = function () { if (this.id && this.id.tagName)
|
|
2136
2164
|
this.nav.top = this.id;
|
|
2137
2165
|
else {
|
|
2138
2166
|
if ("string" != typeof this.id)
|
|
2139
2167
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2140
2168
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2141
2169
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2142
|
-
} }, this.
|
|
2170
|
+
} }, this.mb = function () { this.Kc(), this.Ga(), this.Mc(), this.$a(), this.S("Init"); }, this.Ka = function (e, t) { return a.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.bb, this.internal.xssTextHtml = a.Ka, this.init = function () { return this.gb(), this.loadFromServer() ? void this.mb() : (this.Kc(), this.ea(), this.Ga(), this.Mc(), this.t(), this.ka(), this.$a(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.bb(i);
|
|
2143
2171
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2144
2172
|
var i = e.movingEvent;
|
|
2145
2173
|
if (!i.event)
|
|
@@ -2153,7 +2181,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2153
2181
|
var a = e.movingEvent.event.calendar, n = e.movingEvent.event, o = a.shadow.start, r = a.shadow.position, s = e.movingEvent.offset;
|
|
2154
2182
|
a.clearShadow(), e.movingEvent = null;
|
|
2155
2183
|
var t = t || window.event;
|
|
2156
|
-
return a.
|
|
2184
|
+
return a.L(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
|
|
2157
2185
|
} if (e.resizingEvent) {
|
|
2158
2186
|
var i = e.resizingEvent;
|
|
2159
2187
|
if (!i.event)
|
|
@@ -2165,11 +2193,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2165
2193
|
if (!i.event.calendar.shadow.start)
|
|
2166
2194
|
return;
|
|
2167
2195
|
var a = e.resizingEvent.event.calendar, n = e.resizingEvent.event, o = a.shadow.start, l = a.shadow.width;
|
|
2168
|
-
return a.clearShadow(), e.resizingEvent = null, a.
|
|
2196
|
+
return a.clearShadow(), e.resizingEvent = null, a.J(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
|
|
2169
2197
|
} if (e.timeRangeSelecting) {
|
|
2170
2198
|
if (e.timeRangeSelecting.moved) {
|
|
2171
2199
|
var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
|
|
2172
|
-
a.
|
|
2200
|
+
a.M(o, c), a.clearShadow();
|
|
2173
2201
|
}
|
|
2174
2202
|
e.timeRangeSelecting = null;
|
|
2175
2203
|
} }, DayPilot.Month = e.Month, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotMonth = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
@@ -2178,7 +2206,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2178
2206
|
for (name in e)
|
|
2179
2207
|
i[name] = e[name];
|
|
2180
2208
|
i.Init(), t || (t = i);
|
|
2181
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.
|
|
2209
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2182
2210
|
(0, e(r).assign)(t, n);
|
|
2183
2211
|
} for (var s in a)
|
|
2184
2212
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
@@ -2190,16 +2218,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2190
2218
|
"use strict";
|
|
2191
2219
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
2192
2220
|
DayPilot.Navigator = function (e, t) {
|
|
2193
|
-
this.v = "2024.
|
|
2221
|
+
this.v = "2024.4.575-lite";
|
|
2194
2222
|
var i = this;
|
|
2195
|
-
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
2196
|
-
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.
|
|
2197
|
-
v.style.position = "absolute", o.
|
|
2223
|
+
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.hb = {}, this.Qc = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (o.Rc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Sc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Rc() || (this.root.style.width = 7 * o.cellWidth() + this.Sc() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === i.api; }, this.Lc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Tc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.Uc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.Vc = function () { if (!o.Rc())
|
|
2224
|
+
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.Wc = function () { return o.Rc() ? null : o.cellWidth(); }, this.Xc = function (e) { return "number" != typeof e && (e = 1), o.Rc() ? this.Vc() * e : this.Wc() * e; }, this.Yc = function (e) { var t = o.Rc() ? "%" : "px"; return this.Xc(e) + t; }, this.Mc = function (e, t) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (o.Rc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
2225
|
+
v.style.position = "absolute", o.Rc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
2198
2226
|
else {
|
|
2199
2227
|
v.style.position = "relative";
|
|
2200
2228
|
var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
|
|
2201
2229
|
a.top = y, a.left = 0, a.leftPct = 0;
|
|
2202
|
-
} v.className = this.
|
|
2230
|
+
} v.className = this.K("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Yc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.K("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span><</span>", b.onclick = this.Zc), v.appendChild(b), this.tl = b; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = i.Yc(), D.style.top = "0px", D.style.width = i.Yc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.right = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.Yc(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.$c), v.appendChild(x), this.tr = x; var w = (this.Sc(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
|
|
2203
2231
|
for (var C = 0; C < h; C++) {
|
|
2204
2232
|
var P = d.addDays(7 * C), k = null;
|
|
2205
2233
|
switch (this.weekNumberAlgorithm) {
|
|
@@ -2215,45 +2243,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2215
2243
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2216
2244
|
}
|
|
2217
2245
|
var _ = document.createElement("div");
|
|
2218
|
-
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.
|
|
2246
|
+
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Yc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
|
|
2219
2247
|
} for (var S = 0; S < 7; S++) {
|
|
2220
2248
|
a.cells[S] = [];
|
|
2221
2249
|
var _ = document.createElement("div");
|
|
2222
|
-
_.style.position = "absolute", _.style.left = i.
|
|
2250
|
+
_.style.position = "absolute", _.style.left = i.Yc(S + w), _.style.right = i.Yc(S + w), _.style.top = this.titleHeight + "px", _.style.width = i.Yc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_dayheader"), _.innerHTML = "<span>" + this._c(S) + "</span>", v.appendChild(_), a.days.push(_);
|
|
2223
2251
|
for (var C = 0; C < h; C++) {
|
|
2224
|
-
var P = d.addDays(7 * C + S), M = this.
|
|
2225
|
-
if ("month" === this.
|
|
2252
|
+
var P = d.addDays(7 * C + S), M = this.ad(P) && "none" !== this.bd(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
2253
|
+
if ("month" === this.bd())
|
|
2226
2254
|
M = M && T;
|
|
2227
|
-
else if ("day" === this.
|
|
2255
|
+
else if ("day" === this.bd())
|
|
2228
2256
|
M = M && (T || r && A || s && H);
|
|
2229
|
-
else if ("week" === this.
|
|
2257
|
+
else if ("week" === this.bd()) {
|
|
2230
2258
|
var E = P.firstDayOfMonth() === n;
|
|
2231
2259
|
M = M && (E || r && A || s && H);
|
|
2232
2260
|
}
|
|
2233
2261
|
var N = document.createElement("div");
|
|
2234
2262
|
a.cells[S][C] = N;
|
|
2235
|
-
var I = i.
|
|
2236
|
-
N.day = P, N.x = S, N.y = C, N.left =
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2239
|
-
var
|
|
2240
|
-
if (this.cells && this.cells[P.toStringSortable()] && (
|
|
2241
|
-
var
|
|
2242
|
-
|
|
2263
|
+
var I = i.cd(S, C), O = I.x, R = I.y, U = o.Rc() ? "%" : "px";
|
|
2264
|
+
N.day = P, N.x = S, N.y = C, N.left = O, N.top = R, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.K(T ? "_day" : "_dayother"), i.Tc(N, "cell"), P.getTime() === f.getTime() && T && this.Tc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Tc(N, "weekend"), N.style.position = "absolute", N.style.left = O + U, N.style.right = O + U, N.style.top = R + "px", N.style.width = i.Yc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
2265
|
+
var z = document.createElement("div");
|
|
2266
|
+
z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), i.Tc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
|
|
2267
|
+
var B = null;
|
|
2268
|
+
if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
2269
|
+
var j = {};
|
|
2270
|
+
j.cell = B || {}, j.cell.day = P, j.cell.isCurrentMonth = T, j.cell.isToday = P.getTime() === f.getTime() && T, j.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), B ? (j.cell.html = B.html || P.getDay(), j.cell.cssClass = B.css) : (j.cell.html = P.getDay(), j.cell.cssClass = null), i.onBeforeCellRender(j), B = j.cell;
|
|
2243
2271
|
}
|
|
2244
|
-
if (
|
|
2245
|
-
var
|
|
2246
|
-
|
|
2272
|
+
if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
|
|
2273
|
+
var L = document.createElement("div");
|
|
2274
|
+
L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Tc(L, "cell_text"), N.isClickable = !0, B && B.html && (L.innerHTML = B.html), N.appendChild(L);
|
|
2247
2275
|
}
|
|
2248
|
-
N.setAttribute("unselectable", "on"), N.onclick = this.
|
|
2276
|
+
N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
|
|
2249
2277
|
}
|
|
2250
|
-
} var W = document.createElement("div"); W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.
|
|
2278
|
+
} var W = document.createElement("div"); W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Yc(7 + w), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.K("_line"), v.appendChild(W), this.months.push(a); }, this.cd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Sc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Xc(e + n), "y": t * this.cellHeight + a }; }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.fd = function (e, t, a) { var n = e.month.cells[t][a]; i.Uc(n, "select"); }, this.Sc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.gd = function () { if (this.items)
|
|
2251
2279
|
for (var e = 0; e < this.showMonths; e++)
|
|
2252
2280
|
for (var t = 0; t < 7; t++)
|
|
2253
2281
|
for (var i = 0; i < 6; i++) {
|
|
2254
2282
|
var a = this.months[e].cells[t][i];
|
|
2255
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
2256
|
-
} }, this.
|
|
2283
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
|
|
2284
|
+
} }, this.hd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.bd = function () { return (this.selectMode || "").toLowerCase(); }, this.jd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
|
|
2257
2285
|
case "day":
|
|
2258
2286
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2259
2287
|
break;
|
|
@@ -2267,19 +2295,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2267
2295
|
this.selectionEnd = e;
|
|
2268
2296
|
break;
|
|
2269
2297
|
default: throw "Unknown selectMode value.";
|
|
2270
|
-
} }, this.
|
|
2271
|
-
return void (this.
|
|
2298
|
+
} }, this.kd = null, this.select = function (e, t, a) { var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a; if (!this.Ba)
|
|
2299
|
+
return void (this.kd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2272
2300
|
var m = this.startDate;
|
|
2273
|
-
(this.selectionStart < this.
|
|
2274
|
-
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
2275
|
-
if (i.
|
|
2301
|
+
(this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2302
|
+
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.jd(), this.Lc(), this.Qc(), this.nd(), this.gd(), this.hd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.od(); }, this.update = function (e) { if (i.bb(e), this.Ba) {
|
|
2303
|
+
if (i.O)
|
|
2276
2304
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2277
|
-
i.
|
|
2305
|
+
i.pd();
|
|
2278
2306
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2279
|
-
i
|
|
2280
|
-
} }, this
|
|
2307
|
+
i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
|
|
2308
|
+
} }, this._a = function () { this.Lc(), this.Qc(), this.jd(), this.nd(), this.ea(), this.gd(), this.hd(), this.visible ? this.show() : this.hide(); }, this.pd = function () { i.hb = {}; }, this.eb = null, this.bb = function (e) { if (e) {
|
|
2281
2309
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
|
|
2282
|
-
this.
|
|
2310
|
+
this.eb = t;
|
|
2283
2311
|
for (var a in e)
|
|
2284
2312
|
if (t[a]) {
|
|
2285
2313
|
var n = t[a];
|
|
@@ -2287,15 +2315,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2287
2315
|
}
|
|
2288
2316
|
else
|
|
2289
2317
|
i[a] = e[a];
|
|
2290
|
-
} }, this.
|
|
2318
|
+
} }, this.fb = function () { var e = this.eb; for (var t in e) {
|
|
2291
2319
|
var i = e[t];
|
|
2292
2320
|
i.postInit && i.postInit();
|
|
2293
|
-
} }, this.
|
|
2321
|
+
} }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.qd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.qd = function (e) { if ("function" == typeof i.onAjaxError) {
|
|
2294
2322
|
var t = {};
|
|
2295
2323
|
t.request = e, i.onAjaxError(t);
|
|
2296
2324
|
}
|
|
2297
2325
|
else
|
|
2298
|
-
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.
|
|
2326
|
+
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.T = function (e) { i.U(e.responseText); }, this.Q = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.rd = function (e, t) { "refresh" === e && this.od(); }, this._c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.ad = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.sd = function (e) { for (var t = 0; t < i.months.length; t++) {
|
|
2299
2327
|
var a = i.months[t];
|
|
2300
2328
|
if (!a)
|
|
2301
2329
|
return null;
|
|
@@ -2306,19 +2334,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2306
2334
|
if (a.top <= e.y && e.y < a.top + a.height)
|
|
2307
2335
|
return t;
|
|
2308
2336
|
}
|
|
2309
|
-
} return null; }, this.
|
|
2310
|
-
|
|
2337
|
+
} return null; }, this.td = function (e) { }, this.ud = function () {
|
|
2338
|
+
if (!o.Rc())
|
|
2339
|
+
return void (i.vd = i.cellWidth);
|
|
2340
|
+
var e = i.months[0].cells[0][0], t = e.clientWidth;
|
|
2341
|
+
i.vd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
|
|
2342
|
+
}, this.wd = function (e) { i.ud(); var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t); if (null === a)
|
|
2311
2343
|
return null; var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
|
|
2312
2344
|
return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
|
|
2313
2345
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
2314
2346
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
2315
|
-
if (c <= t.x && t.x < c + i.
|
|
2347
|
+
if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
|
|
2316
2348
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
2317
|
-
} return null; }, this.
|
|
2318
|
-
var t = i.
|
|
2349
|
+
} return null; }, this.xd = function (e) { if (i.freeHandSelectionEnabled) {
|
|
2350
|
+
var t = i.wd(e);
|
|
2319
2351
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2320
|
-
} }, this.
|
|
2321
|
-
var t = i.
|
|
2352
|
+
} }, this.yd = function (e) { if (a.start) {
|
|
2353
|
+
var t = i.wd(e);
|
|
2322
2354
|
if (a.end)
|
|
2323
2355
|
a.end = t;
|
|
2324
2356
|
else if (t) {
|
|
@@ -2326,11 +2358,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2326
2358
|
o > n && (a.end = t);
|
|
2327
2359
|
}
|
|
2328
2360
|
a.end && (a.clear(), a.draw());
|
|
2329
|
-
} }, this.
|
|
2330
|
-
var a = this.
|
|
2331
|
-
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.
|
|
2361
|
+
} }, this.zd = {};
|
|
2362
|
+
var a = this.zd;
|
|
2363
|
+
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.cd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Yc(); if (o.Rc()) {
|
|
2332
2364
|
var c = "Horizontal" === i.orientation ? i.showMonths : 1;
|
|
2333
|
-
s = t.leftPct + n.x / c, l = "%", d = i.
|
|
2365
|
+
s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
|
|
2334
2366
|
} var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u); }, a.clear = function () { if (a.cells) {
|
|
2335
2367
|
for (var e = 0; e < a.cells.length; e++)
|
|
2336
2368
|
i.nav.preselection.removeChild(a.cells[e]);
|
|
@@ -2373,49 +2405,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2373
2405
|
return null;
|
|
2374
2406
|
e = new n(t);
|
|
2375
2407
|
} return e; }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); }; };
|
|
2376
|
-
this.
|
|
2408
|
+
this.dd = function (e) { var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day; if (a.cells[n][o].isClickable) {
|
|
2377
2409
|
i.clearSelection(), i.selectionDay = r;
|
|
2378
2410
|
var r = i.selectionDay;
|
|
2379
|
-
switch (i.
|
|
2411
|
+
switch (i.bd()) {
|
|
2380
2412
|
case "none":
|
|
2381
2413
|
i.selectionStart = r, i.selectionEnd = r;
|
|
2382
2414
|
break;
|
|
2383
2415
|
case "day":
|
|
2384
2416
|
if (i.autoFocusOnClick) {
|
|
2385
2417
|
var s = r;
|
|
2386
|
-
if (r < i.
|
|
2418
|
+
if (r < i.ld() || r >= i.md())
|
|
2387
2419
|
return void i.select(r);
|
|
2388
2420
|
}
|
|
2389
2421
|
var l = a.cells[n][o];
|
|
2390
|
-
i.
|
|
2422
|
+
i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
2391
2423
|
break;
|
|
2392
2424
|
case "week":
|
|
2393
2425
|
if (i.autoFocusOnClick) {
|
|
2394
2426
|
var s = a.cells[0][o].day, d = a.cells[6][o].day;
|
|
2395
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
2427
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
|
|
2396
2428
|
return void i.select(r);
|
|
2397
2429
|
}
|
|
2398
2430
|
for (var c = 0; c < 7; c++)
|
|
2399
|
-
i.
|
|
2431
|
+
i.ed(t, c, o), i.selected.push(a.cells[c][o]);
|
|
2400
2432
|
i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
|
|
2401
2433
|
break;
|
|
2402
2434
|
case "month":
|
|
2403
2435
|
if (i.autoFocusOnClick) {
|
|
2404
2436
|
var s = r;
|
|
2405
|
-
if (r < i.
|
|
2437
|
+
if (r < i.ld() || r >= i.md())
|
|
2406
2438
|
return void i.select(r);
|
|
2407
2439
|
}
|
|
2408
2440
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
2409
2441
|
for (var n = 0; n < 7; n++) {
|
|
2410
2442
|
var l = a.cells[n][o];
|
|
2411
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.
|
|
2443
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.ed(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
2412
2444
|
}
|
|
2413
2445
|
i.selectionStart = s, i.selectionEnd = d;
|
|
2414
2446
|
break;
|
|
2415
2447
|
default: throw "unknown selectMode";
|
|
2416
2448
|
}
|
|
2417
|
-
i.
|
|
2418
|
-
} }, this.
|
|
2449
|
+
i.hd(), i.M();
|
|
2450
|
+
} }, this.M = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.qa()) {
|
|
2419
2451
|
var r = {};
|
|
2420
2452
|
if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
2421
2453
|
return;
|
|
@@ -2444,9 +2476,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2444
2476
|
break;
|
|
2445
2477
|
case "None": break;
|
|
2446
2478
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
2447
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.
|
|
2448
|
-
return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
|
|
2449
|
-
}, this.nd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.pa()) {
|
|
2479
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.$c = function (e) { i.Ad(i.skipMonths); }, this.Zc = function (e) { i.Ad(-i.skipMonths); }, this.Ad = function (e) { this.startDate = this.startDate.addMonths(e), this.Lc(), this.Qc(), this.nd(), this.hd(), this.od(), this.gd(); }, this.ld = function () { return i.startDate.firstDayOfMonth(); }, this.md = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.od = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.qa()) {
|
|
2450
2480
|
var a = {};
|
|
2451
2481
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
2452
2482
|
return;
|
|
@@ -2473,10 +2503,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2473
2503
|
this.onVisibleRangeChanged(e, t);
|
|
2474
2504
|
break;
|
|
2475
2505
|
case "Disabled":
|
|
2476
|
-
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.
|
|
2477
|
-
var t = this.
|
|
2478
|
-
this.
|
|
2479
|
-
} this.root.style.height = this.
|
|
2506
|
+
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.gd(); }, this.nd = function () { for (var e = 0; e < this.showMonths; e++) {
|
|
2507
|
+
var t = this.Bd(e);
|
|
2508
|
+
this.Mc(e, t);
|
|
2509
|
+
} this.root.style.height = this.Cd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Cd = function () { if ("Horizontal" === this.orientation) {
|
|
2480
2510
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2481
2511
|
var i = this.months[t];
|
|
2482
2512
|
i.height > e && (e = i.height);
|
|
@@ -2485,64 +2515,64 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2485
2515
|
} for (var a = 0, t = 0; t < this.months.length; t++) {
|
|
2486
2516
|
var i = this.months[t];
|
|
2487
2517
|
a += i.height;
|
|
2488
|
-
} return a; }, this.
|
|
2489
|
-
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.
|
|
2490
|
-
var o = this.
|
|
2518
|
+
} return a; }, this.Bd = function (e) { if (this.internal.showLinks)
|
|
2519
|
+
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { i.sa.scope && i.sa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.bb, this.internal.initialized = function () { return i.Ba; }, this.aa = {};
|
|
2520
|
+
var o = this.aa;
|
|
2491
2521
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
|
|
2492
2522
|
var e = o.locale();
|
|
2493
2523
|
return e ? e.weekStarts : 0;
|
|
2494
|
-
} return i.weekStarts; }, o.cellWidth = function () { if (i.
|
|
2495
|
-
return i.
|
|
2524
|
+
} return i.weekStarts; }, o.cellWidth = function () { if (i.hb.cellWidth)
|
|
2525
|
+
return i.hb.cellWidth; var e = i.Dd("_cell_dimensions").width; return e || (e = i.cellWidth), i.hb.cellWidth = e, e; }, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2496
2526
|
var t = this.selected[e];
|
|
2497
|
-
i.
|
|
2498
|
-
} this.selected = []; }, this.
|
|
2527
|
+
i.fd(t.parentNode, t.x, t.y);
|
|
2528
|
+
} this.selected = []; }, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2499
2529
|
this.items = {};
|
|
2500
2530
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2501
2531
|
var t = this.events.list[e];
|
|
2502
2532
|
if (!t.hidden) {
|
|
2503
|
-
var i = this.
|
|
2533
|
+
var i = this.Fd(t);
|
|
2504
2534
|
for (var a in i)
|
|
2505
2535
|
this.items[a] = 1;
|
|
2506
2536
|
}
|
|
2507
2537
|
}
|
|
2508
|
-
} }, this.
|
|
2509
|
-
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
2538
|
+
} }, this.Dd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Fd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
2539
|
+
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () { if (this.id && this.id.tagName)
|
|
2510
2540
|
this.nav.top = this.id;
|
|
2511
2541
|
else {
|
|
2512
2542
|
if ("string" != typeof this.id)
|
|
2513
2543
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2514
2544
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2515
2545
|
throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
|
|
2516
|
-
} this.root = this.nav.top; }, this.init = function () { if (this.
|
|
2517
|
-
this.
|
|
2518
|
-
if (this.
|
|
2519
|
-
var e = this.
|
|
2520
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
2546
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.gb(), !this.root.dp) {
|
|
2547
|
+
this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
|
|
2548
|
+
if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
|
|
2549
|
+
var e = this.kd;
|
|
2550
|
+
this.select(e.date1, e.date2, e.options), this.kd = null;
|
|
2521
2551
|
}
|
|
2522
2552
|
return this;
|
|
2523
|
-
} }, this.
|
|
2553
|
+
} }, this.Gd = function () { i.nav.top.onmousedown = this.xd, i.nav.top.onmousemove = this.yd; }, this.$a = function () { DayPilot.re(document, "mouseup", i.Hd); }, this.Hd = function (e) { if (a.start && a.end) {
|
|
2524
2554
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
2525
2555
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
2526
2556
|
return a.start = null, void a.clear();
|
|
2527
2557
|
a.clear();
|
|
2528
2558
|
var o = a.ordered();
|
|
2529
|
-
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.
|
|
2530
|
-
i.
|
|
2531
|
-
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.
|
|
2559
|
+
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Lc(), i.Qc(), i.nd(), i.gd(), i.hd();
|
|
2560
|
+
i.M({ "mode": "FreeHand" });
|
|
2561
|
+
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.bb(t);
|
|
2532
2562
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
2533
2563
|
var i = new DayPilot.Navigator(this.id);
|
|
2534
2564
|
this.daypilot = i;
|
|
2535
2565
|
for (var a in e)
|
|
2536
2566
|
i[a] = e[a];
|
|
2537
2567
|
i.Init(), t || (t = i);
|
|
2538
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.
|
|
2568
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2539
2569
|
(0, e(r).assign)(t, n);
|
|
2540
2570
|
} for (var s in a)
|
|
2541
2571
|
if (0 === s.indexOf("on")) {
|
|
2542
2572
|
var l = DayPilot.Util.shouldApply(s);
|
|
2543
2573
|
l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
|
|
2544
2574
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
|
|
2545
|
-
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
2575
|
+
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2546
2576
|
}
|
|
2547
2577
|
}(DayPilot);
|
|
2548
2578
|
|