@daypilot/daypilot-lite-angular 4.6.0 → 4.7.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 +592 -524
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +764 -673
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +586 -518
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -132,7 +132,7 @@ DayPilot Lite
|
|
|
132
132
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
133
133
|
https://www.daypilot.org/
|
|
134
134
|
Licensed under Apache Software License 2.0
|
|
135
|
-
Version: 2025.
|
|
135
|
+
Version: 2025.4.743-lite
|
|
136
136
|
*/
|
|
137
137
|
"use strict";
|
|
138
138
|
var DayPilot = { Global: {} };
|
|
@@ -232,14 +232,14 @@ var DayPilot = { Global: {} };
|
|
|
232
232
|
function a(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
|
|
233
233
|
function i(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
|
|
234
234
|
if ("undefined" == typeof DayPilot.$) {
|
|
235
|
-
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); },
|
|
235
|
+
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot.touch = {}, DayPilot.touch.start = "touchstart", DayPilot.touch.move = "touchmove", DayPilot.touch.end = "touchend", DayPilot.mo3 = function (e, t) {
|
|
236
236
|
var n = t.touches && t.touches[0] ? t.touches[0] : t;
|
|
237
237
|
if (!e) {
|
|
238
238
|
return { x: void 0 !== n.pageX ? n.pageX : n.clientX + window.pageXOffset, y: void 0 !== n.pageY ? n.pageY : n.clientY + window.pageYOffset, shift: !!t.shiftKey, meta: !!t.metaKey, ctrl: !!t.ctrlKey, alt: !!t.altKey };
|
|
239
239
|
}
|
|
240
240
|
var a = e.getBoundingClientRect(), i = n.clientX - a.left, r = n.clientY - a.top;
|
|
241
241
|
return i = Math.round(i), r = Math.round(r), { x: i, y: r, shift: !!t.shiftKey, meta: !!t.metaKey, ctrl: !!t.ctrlKey, alt: !!t.altKey };
|
|
242
|
-
}, DayPilot.browser = {
|
|
242
|
+
}, DayPilot.browser = { get ios() { var e, t; return "undefined" != typeof navigator && ((null === (e = navigator.userAgent) || void 0 === e ? void 0 : e.includes("iPad")) || (null === (t = navigator.userAgent) || void 0 === t ? void 0 : t.includes("iPhone"))); }, get hover() { return !window.matchMedia("(any-hover: none)").matches; } }, DayPilot.debounce = function (e, t) { var n; return function () { var a = this, i = arguments, r = function () { n = null, e.apply(a, i); }; clearTimeout(n), n = setTimeout(r, t); }; }, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" != typeof t.pageX ? { x: t.pageX, y: t.pageY } : "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null; }, DayPilot.abs = function (e, t) {
|
|
243
243
|
if (!e)
|
|
244
244
|
return null;
|
|
245
245
|
if (e.getBoundingClientRect) {
|
|
@@ -283,8 +283,8 @@ var DayPilot = { Global: {} };
|
|
|
283
283
|
}, 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 () {
|
|
284
284
|
if (!DayPilot.Global.defaultCss) {
|
|
285
285
|
var e = DayPilot.sheet();
|
|
286
|
-
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(".calendar_default_main", " --dp-calendar-border-color: #c0c0c0; --dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; --dp-calendar-font-size: 13px; --dp-calendar-header-bg-color: #f3f3f3; --dp-calendar-header-color: #333; --dp-calendar-colheader-padding: 0px; --dp-calendar-rowheader-font-size: 16pt; --dp-calendar-rowheader-padding: 3px; --dp-calendar-cell-bg-color: #f9f9f9; --dp-calendar-cell-business-bg-color: #ffffff; --dp-calendar-cell-border-color: #ddd; --dp-calendar-colheader-horizontal-align: center; --dp-calendar-colheader-vertical-align: center; --dp-calendar-allday-event-color: #333; --dp-calendar-allday-event-border-color: #999; --dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color); --dp-calendar-allday-event-border-radius: 0px; --dp-calendar-allday-event-bg-top-color: #ffffff; --dp-calendar-allday-event-bg-bottom-color: #eeeeee; --dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%); --dp-calendar-allday-event-box-shadow: none; --dp-calendar-allday-event-padding: 4px; --dp-calendar-allday-event-horizontal-align: flex-start; --dp-calendar-event-color: #333; --dp-calendar-event-border-color: #999; --dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color); --dp-calendar-event-border-radius: 0px; --dp-calendar-event-box-shadow: none; --dp-calendar-event-bg-top-color: #ffffff; --dp-calendar-event-bg-bottom-color: #eeeeee; --dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%); --dp-calendar-event-bar-bg-color: #9dc8e8; --dp-calendar-event-bar-color: #1066a8; --dp-calendar-event-bar-width: 6px; --dp-calendar-event-bar-left: 0px; --dp-calendar-event-bar-bottom: 0px; --dp-calendar-event-bar-top: 0px; --dp-calendar-event-bar-display: block; --dp-calendar-event-padding: 2px; --dp-calendar-event-padding-left: 8px; --dp-calendar-message-bg-color: #ffa216; --dp-calendar-message-color: #ffffff; --dp-calendar-message-padding: 10px; --dp-calendar-message-opacity: 0.9; --dp-calendar-selected-event-bg-color: #ddd; --dp-calendar-shadow-color: #bbbbbb; --dp-calendar-shadow-border-color: #888888; --dp-calendar-forbidden-shadow-border-color: #cc0000; --dp-calendar-forbidden-shadow-bg-color: #cc4125; --dp-calendar-now-indicator-color: red; --dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), 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 var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), 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; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "color: var(--dp-calendar-event-color); border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_alldayevent", "box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "color: var(--dp-calendar-allday-event-color); border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), 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: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); 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 var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), 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: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", " --dp-month-border-color: #c0c0c0; --dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --dp-month-font-size: 13px; --dp-month-cell-border-color: #ddd; --dp-month-cell-bg-color: #f9f9f9; --dp-month-cell-business-bg-color: #ffffff; --dp-month-event-color: #333; --dp-month-event-border-color: #999; --dp-month-event-border: 1px solid var(--dp-month-event-border-color); --dp-month-event-bg-top-color: #ffffff; --dp-month-event-bg-bottom-color: #eeeeee; --dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%); --dp-month-event-horizontal-align: flex-start; --dp-month-event-vertical-align: center; --dp-month-event-padding: 2px; --dp-month-event-padding-left: 10px; --dp-month-event-padding-rtl: 2px 10px 2px 1px; --dp-month-event-border-radius: 0px; --dp-month-event-box-shadow: none; --dp-month-event-bar-top: 1px; --dp-month-event-bar-left: 2px; --dp-month-event-bar-bottom: 1px; --dp-month-event-bar-width: 6px; --dp-month-event-bar-color: #1066a8; --dp-month-event-bar-display: block; --dp-month-header-bg-color: #f3f3f3; --dp-month-header-color: #333; --dp-month-header-horizontal-align: center; --dp-month-header-vertical-align: center; --dp-month-header-padding: 0px; --dp-month-message-bg-color: #ffa216; --dp-month-message-color: #ffffff; --dp-month-message-padding: 10px; --dp-month-selected-event-bg-color: #ddd; --dp-month-shadow-color: #bbbbbb; --dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); color: var(--dp-month-event-color); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "), e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), 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; "),
|
|
287
|
-
e.add(".month_default_event_delete:hover", "opacity: 1; "), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "), e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", " --dp-nav-border-color: #c0c0c0; --dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; --dp-nav-font-size: 12px; --dp-nav-title-color: #333; --dp-nav-title-bg-color: #f3f3f3; --dp-nav-dayheader-color: #333; --dp-nav-dayheader-bg-color: #ffffff; --dp-nav-weeknumber-color: #999; --dp-nav-weeknumber-bg-color: #ffffff; --dp-nav-day-color: #000; --dp-nav-day-bg-color: #ffffff; --dp-nav-dayother-color: gray; --dp-nav-dayother-bg-color: #ffffff; --dp-nav-weekend-bg-color: #f0f0f0; --dp-nav-select-bg-color: #FFE794; --dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", ' --dp-scheduler-border-color: #c0c0c0; --dp-scheduler-border-inner-color: #e0e0e0; --dp-scheduler-cell-bg-color: #f9f9f9; --dp-scheduler-cell-business-bg-color: #ffffff; --dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%); --dp-scheduler-event-bg-bottom-color: #eeeeee; --dp-scheduler-event-bg-top-color: #ffffff; --dp-scheduler-event-bar-bg-color: #9dc8e8; --dp-scheduler-event-bar-color: #1066a8; --dp-scheduler-event-bar-display: block; --dp-scheduler-event-bar-height: 4px; --dp-scheduler-event-bar-left: 0px; --dp-scheduler-event-bar-right: 0px; --dp-scheduler-event-bar-top: 0px; --dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color); --dp-scheduler-event-border-color: #ccc; --dp-scheduler-event-border-radius: 0px; --dp-scheduler-event-box-shadow: none; --dp-scheduler-event-color: #333; --dp-scheduler-event-horizontal-align: flex-start; --dp-scheduler-event-milestone-color: #38761d; --dp-scheduler-event-padding: 2px; --dp-scheduler-event-selected-bg-color: #ddd; --dp-scheduler-event-vertical-align: center; --dp-scheduler-focus-outline-color: red; --dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --dp-scheduler-font-size: 13px; --dp-scheduler-grid-line-break-color: #999; --dp-scheduler-grid-line-color: #eee; --dp-scheduler-header-bg-color: #f3f3f3; --dp-scheduler-header-color: #333; --dp-scheduler-link-color: #cc0000; --dp-scheduler-message-bg-color: #ffa216; --dp-scheduler-message-color: #ffffff; --dp-scheduler-message-padding: 10px; --dp-scheduler-rowheader-padding: 7px; --dp-scheduler-rowheader-vertical-align: center; --dp-scheduler-selectionrectangle-color: #1066a8; --dp-scheduler-shadow-border-color: #888888; --dp-scheduler-shadow-color: #bbbbbb; --dp-scheduler-timeheader-horizontal-align: center; --dp-scheduler-timeheader-padding: 0px; --dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), 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: calc(50% - 5px); left:-4px;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00gMS41IDAuNSBMIDYuNSA1IEwgMS41IDkuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Izk5OTk5OTtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);"), e.add(".scheduler_default_tree_image_collapse", "background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);"), e.add(".scheduler_default_event_delete", "background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6IzQ2NDY0NjtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=) no-repeat center center; opacity: 0.6; cursor: pointer;"), e.add(".scheduler_default_event_delete:hover", "opacity: 1;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".scheduler_default_link_dot", "border-radius: 10px; background-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_task_milestone .scheduler_default_event_inner", "position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"), e.add(".scheduler_default_event_left, .scheduler_default_event_right", "white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;");
|
|
286
|
+
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(".calendar_default_main", "--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 0px;--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 0px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #1066a8;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), 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 var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), 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; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "color: var(--dp-calendar-event-color); border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_alldayevent", "box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "color: var(--dp-calendar-allday-event-color); border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), 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: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); 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 var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), 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: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", "--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 0px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #1066a8;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); color: var(--dp-month-event-color); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "), e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), 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; "), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "),
|
|
287
|
+
e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", "--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", '--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #1066a8;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 0px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), 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: calc(50% - 5px); left:-4px;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00gMS41IDAuNSBMIDYuNSA1IEwgMS41IDkuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Izk5OTk5OTtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);"), e.add(".scheduler_default_tree_image_collapse", "background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);"), e.add(".scheduler_default_event_delete", "background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6IzQ2NDY0NjtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=) no-repeat center center; opacity: 0.6; cursor: pointer;"), e.add(".scheduler_default_event_delete:hover", "opacity: 1;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".scheduler_default_link_dot", "border-radius: 10px; background-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_task_milestone .scheduler_default_event_inner", "position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"), e.add(".scheduler_default_event_left, .scheduler_default_event_right", "white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;");
|
|
288
288
|
e.add(".scheduler_default_main:focus", "outline: none;");
|
|
289
289
|
e.add(".scheduler_default_cell_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; outline-offset: -2px; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_top", "border-top: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_bottom", "border-bottom: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_selectionrectangle", "background-color: var(--dp-scheduler-selectionrectangle-color); border: 1px solid #000033; opacity: 0.4;"), e.add(".scheduler_default_link_shadow", "border:1px solid black;"), e.add(".scheduler_default_link_shadow_circle", "background-color:black;"), e.add(".scheduler_default_event_move_left", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_event_move_right", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_link_hover", "box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)"), e.add(".scheduler_default_sorticon", "opacity: 0.2;background-position: center center; background-repeat: no-repeat; cursor: pointer;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_asc", "background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc", "background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_active", "opacity: 1;"), e.add(".scheduler_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".scheduler_default_link_curve", "stroke: var(--dp-scheduler-link-color); fill: none; stroke-width: 2;"), e.add(".scheduler_default_link_curve:hover", "stroke-opacity: 0.5;"), e.add(".scheduler_default_link_curve_dot", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_marker", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_text", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve", "stroke: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_dot", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_marker", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_text", "fill: #aaaaaa;"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
290
290
|
}
|
|
@@ -394,7 +394,12 @@ var DayPilot = { Global: {} };
|
|
|
394
394
|
case 2: t.right = !0;
|
|
395
395
|
}
|
|
396
396
|
return t;
|
|
397
|
-
}, DayPilot.Util.replaceCharAt = function (e, t, n) { return e.substr(0, t) + n + e.substr(t + n.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.isSameEvent = function (e, t) { return !(!e || !t) && (e = e instanceof DayPilot.Event ? e.data : e, t = t instanceof DayPilot.Event ? t.data : t, e === t || !DayPilot.Util.isNullOrUndefined(e.id) && e.id === t.id); }, DayPilot.Util.overlaps = function (e, t, n, a) { return !(t <= n || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.
|
|
397
|
+
}, DayPilot.Util.replaceCharAt = function (e, t, n) { return e.substr(0, t) + n + e.substr(t + n.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.isSameEvent = function (e, t) { return !(!e || !t) && (e = e instanceof DayPilot.Event ? e.data : e, t = t instanceof DayPilot.Event ? t.data : t, e === t || !DayPilot.Util.isNullOrUndefined(e.id) && e.id === t.id); }, DayPilot.Util.overlaps = function (e, t, n, a) { return !(t <= n || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.isReactComponent = function (e) {
|
|
398
|
+
if (!e)
|
|
399
|
+
return !1;
|
|
400
|
+
var t = "function" == typeof Symbol && Symbol.for, n = t && Symbol.for("react.element") || 60103, a = t && Symbol.for("react.transitional.element") || null, i = e.$$typeof;
|
|
401
|
+
return i === n || i === a || 60103 === i;
|
|
402
|
+
}, DayPilot.Util.isMouseEvent = function (e) { return !!e && ("mouse" === e.pointerType || e instanceof MouseEvent); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (t, n, a) {
|
|
398
403
|
a = a || {};
|
|
399
404
|
var i = a.areas, r = a.allowed || function () { return !0; }, o = a.offsetX || 0;
|
|
400
405
|
i = e(n, i), i && DayPilot.isArray(i) && 0 !== i.length && (DayPilot.re(t, "mousemove", function (e) { t.active || t.areasDisabled || !r() || DayPilot.Areas.showAreas(t, n, e, i, { "offsetX": o, "eventDiv": a.eventDiv }); }), DayPilot.re(t, "mouseleave", function (e) { DayPilot.Areas.hideAreas(t, e); }), i.forEach(function (e) {
|
|
@@ -425,8 +430,9 @@ var DayPilot = { Global: {} };
|
|
|
425
430
|
}, DayPilot.Areas.createArea = function (e, t, n, a) {
|
|
426
431
|
function i(e, t, n) {
|
|
427
432
|
var a = {};
|
|
428
|
-
return a.area = e, a.source = t, a.originalEvent = n,
|
|
429
|
-
a.preventDefault
|
|
433
|
+
return a.area = e, a.source = t, a.originalEvent = n, a.preventDefault = function () {
|
|
434
|
+
a.preventDefault.value = !0;
|
|
435
|
+
}, "function" == typeof e.onClick && e.onClick(a), a;
|
|
430
436
|
}
|
|
431
437
|
function r(e, t, n) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(n), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
|
|
432
438
|
function o(e, t, n, a) {
|
|
@@ -598,7 +604,8 @@ var DayPilot = { Global: {} };
|
|
|
598
604
|
else
|
|
599
605
|
a = e;
|
|
600
606
|
var i = a, r = {};
|
|
601
|
-
return r.o = !0,
|
|
607
|
+
return r.o = !0,
|
|
608
|
+
r.p = i.id, r.control = i, r.q = t || {}, r.s = function () { i.hide ? i.hide() : i.nav && i.nav.top ? i.nav.top.style.display = "none" : i.style.display = "none"; }, r.t = function (e) { (function () { return !!i.backendUrl || !("function" != typeof WebForm_DoCallback || !i.uniqueID); })() ? i.commandCallBack && i.commandCallBack("navigate", { "day": e }) : (i.startDate = e, i.update()); }, r.u = function () { n.z(), i.show ? i.show() : i.nav && i.nav.top ? i.nav.top.style.display = "" : i.style.display = ""; }, r.A = function () {
|
|
602
609
|
if (r.q.navigatorSelectMode)
|
|
603
610
|
return r.q.navigatorSelectMode;
|
|
604
611
|
if (i.isCalendar)
|
|
@@ -1843,7 +1850,7 @@ var DayPilot = { Global: {} };
|
|
|
1843
1850
|
if (C === k && (x.cut || _.cut))
|
|
1844
1851
|
continue;
|
|
1845
1852
|
var D = _.boxBottom, S = "Always" === o.useEventBoxes;
|
|
1846
|
-
S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C
|
|
1853
|
+
S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
|
|
1847
1854
|
var M = w.part.top, T = w.part.top + w.part.height;
|
|
1848
1855
|
M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
|
|
1849
1856
|
}
|
|
@@ -2143,7 +2150,7 @@ var DayPilot = { Global: {} };
|
|
|
2143
2150
|
d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Rb.visible = !0, a.Rb.source = n, d.style.display = "";
|
|
2144
2151
|
var A = d.offsetHeight, E = d.offsetWidth;
|
|
2145
2152
|
d.style.display = "none";
|
|
2146
|
-
var H = document.documentElement.clientHeight, N = window.innerWidth,
|
|
2153
|
+
var H = document.documentElement.clientHeight, N = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
|
|
2147
2154
|
if (function () {
|
|
2148
2155
|
var e = r.initiator;
|
|
2149
2156
|
if (e) {
|
|
@@ -2156,19 +2163,19 @@ var DayPilot = { Global: {} };
|
|
|
2156
2163
|
}(), function () {
|
|
2157
2164
|
var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0;
|
|
2158
2165
|
if (n - i > H - A && 0 !== H) {
|
|
2159
|
-
s = n - (n - i - (H - A) +
|
|
2166
|
+
s = n - (n - i - (H - A) + R);
|
|
2160
2167
|
}
|
|
2161
2168
|
else
|
|
2162
2169
|
s = n;
|
|
2163
2170
|
if (a.Rb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > N - E && 0 !== N) {
|
|
2164
|
-
l = e - (e - o - (N - E) +
|
|
2171
|
+
l = e - (e - o - (N - E) + R);
|
|
2165
2172
|
}
|
|
2166
2173
|
else
|
|
2167
2174
|
l = e;
|
|
2168
2175
|
a.Rb.x = l, d.style.left = l + "px";
|
|
2169
2176
|
}(), r.parentLink) {
|
|
2170
|
-
var
|
|
2171
|
-
z + E > N && (z = Math.max(0,
|
|
2177
|
+
var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), z = P.x + I.offsetWidth, B = P.y - L;
|
|
2178
|
+
z + E > N && (z = Math.max(0, P.x - E));
|
|
2172
2179
|
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2173
2180
|
B + A - U > H && (B = Math.max(0, H - A + U)), d.style.left = z + "px", d.style.top = B + "px";
|
|
2174
2181
|
}
|
|
@@ -4031,7 +4038,7 @@ var DayPilot = { Global: {} };
|
|
|
4031
4038
|
switch (i.timeRangeSelectedHandling) {
|
|
4032
4039
|
case "Bind":
|
|
4033
4040
|
var s = i.bound;
|
|
4034
|
-
if ("object" == typeof s) {
|
|
4041
|
+
if (s && "object" == typeof s) {
|
|
4035
4042
|
var l = {};
|
|
4036
4043
|
l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
|
|
4037
4044
|
}
|
|
@@ -4045,7 +4052,7 @@ var DayPilot = { Global: {} };
|
|
|
4045
4052
|
switch (i.timeRangeSelectedHandling) {
|
|
4046
4053
|
case "Bind":
|
|
4047
4054
|
var s = i.bound;
|
|
4048
|
-
if ("object" == typeof s) {
|
|
4055
|
+
if (s && "object" == typeof s) {
|
|
4049
4056
|
var l = {};
|
|
4050
4057
|
l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
|
|
4051
4058
|
}
|
|
@@ -4247,20 +4254,20 @@ var DayPilot = { Global: {} };
|
|
|
4247
4254
|
}(DayPilot), function (DayPilot) {
|
|
4248
4255
|
function e(e) { var t = e.touches[0].pageX, n = e.touches[0].pageY, a = {}; return a.x = t, a.y = n, a; }
|
|
4249
4256
|
if ("undefined" == typeof DayPilot.Scheduler) {
|
|
4250
|
-
var t =
|
|
4251
|
-
DayPilot.Scheduler = function (
|
|
4257
|
+
var t = {}, n = function () { }, a = !1, i = function () { return document.body; }, r = function () { return document.createElement("div"); };
|
|
4258
|
+
DayPilot.Scheduler = function (a, o) {
|
|
4252
4259
|
this.v = "${v}";
|
|
4253
|
-
var
|
|
4254
|
-
this.isScheduler = !0, this.id =
|
|
4255
|
-
var
|
|
4260
|
+
var s = this;
|
|
4261
|
+
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ae = -1, this.be = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.yb = {}, this.yb.cells = [], this.yb.linesVertical = {}, this.yb.linesHorizontal = {}, this.yb.timeHeaderGroups = [], this.yb.timeHeader = {}, this.yb.events = [], this.nav = {}, this.R = {};
|
|
4262
|
+
var l = this.R;
|
|
4256
4263
|
this.ce = {};
|
|
4257
|
-
var
|
|
4264
|
+
var d = s.ce;
|
|
4258
4265
|
this.ee = {};
|
|
4259
|
-
var
|
|
4260
|
-
this.scrollTo = function (e) {
|
|
4266
|
+
var c = this.ee, u = {};
|
|
4267
|
+
this.scrollTo = function (e) { s.fe(e); }, this.fe = function (e) {
|
|
4261
4268
|
if (e) {
|
|
4262
|
-
if (!
|
|
4263
|
-
return void (
|
|
4269
|
+
if (!s.Ma)
|
|
4270
|
+
return void (s.ge = e);
|
|
4264
4271
|
var t;
|
|
4265
4272
|
if (e instanceof DayPilot.Date)
|
|
4266
4273
|
t = this.getPixels(e).left;
|
|
@@ -4271,82 +4278,82 @@ var DayPilot = { Global: {} };
|
|
|
4271
4278
|
throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
|
|
4272
4279
|
t = e;
|
|
4273
4280
|
}
|
|
4274
|
-
var n =
|
|
4275
|
-
t < 0 && (t = 0), t > n - a && (t = n - a),
|
|
4281
|
+
var n = s.he.clientWidth, a = s.nav.scroll.clientWidth;
|
|
4282
|
+
t < 0 && (t = 0), t > n - a && (t = n - a), s.ie(t);
|
|
4276
4283
|
}
|
|
4277
4284
|
}, this.scrollToResource = function (e) {
|
|
4278
4285
|
DayPilot.complete(function () {
|
|
4279
4286
|
var t;
|
|
4280
4287
|
if ("string" == typeof e || "number" == typeof e)
|
|
4281
|
-
t =
|
|
4288
|
+
t = s.je(e);
|
|
4282
4289
|
else {
|
|
4283
4290
|
if (!(e instanceof DayPilot.Row))
|
|
4284
4291
|
throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
|
|
4285
|
-
t =
|
|
4292
|
+
t = s.je(e.id);
|
|
4286
4293
|
}
|
|
4287
|
-
t && setTimeout(function () { var e = t.top;
|
|
4294
|
+
t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100);
|
|
4288
4295
|
});
|
|
4289
4296
|
}, this.ke = function () {
|
|
4290
4297
|
if (this.floatingTimeHeaders && this.timeHeader) {
|
|
4291
|
-
var e =
|
|
4298
|
+
var e = s.le();
|
|
4292
4299
|
if (e) {
|
|
4293
|
-
|
|
4300
|
+
s.me();
|
|
4294
4301
|
for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
|
|
4295
4302
|
for (var r = 0; r < this.timeHeader[i].length; r++) {
|
|
4296
|
-
var o = this.timeHeader[i][r],
|
|
4297
|
-
if (
|
|
4298
|
-
c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div =
|
|
4303
|
+
var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
|
|
4304
|
+
if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
|
|
4305
|
+
c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
|
|
4299
4306
|
break;
|
|
4300
4307
|
}
|
|
4301
4308
|
}
|
|
4302
4309
|
for (var u = 0; u < a.length; u++) {
|
|
4303
4310
|
var c = a[u];
|
|
4304
|
-
|
|
4311
|
+
s.ne(c.div, c.marginLeft, c.marginRight);
|
|
4305
4312
|
}
|
|
4306
4313
|
}
|
|
4307
4314
|
}
|
|
4308
|
-
}, this.oe = function () {
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4311
|
-
var i = e, r = e + n, o = t,
|
|
4312
|
-
return
|
|
4313
|
-
var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d =
|
|
4314
|
-
if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o,
|
|
4315
|
+
}, this.oe = function () { s.ke(), s.pe(); }, this.qe = {};
|
|
4316
|
+
var h = s.qe;
|
|
4317
|
+
h.se = function (e, t, n, a) {
|
|
4318
|
+
var i = e, r = e + n, o = t, l = t + a;
|
|
4319
|
+
return s.elements.events.filter(function (e) {
|
|
4320
|
+
var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight;
|
|
4321
|
+
if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
|
|
4315
4322
|
return !0;
|
|
4316
4323
|
});
|
|
4317
|
-
},
|
|
4318
|
-
var e = [], t =
|
|
4324
|
+
}, h.te = function () {
|
|
4325
|
+
var e = [], t = s.le();
|
|
4319
4326
|
if (!t)
|
|
4320
4327
|
return e;
|
|
4321
|
-
for (var n = t.pixels.left, a = 0; a <
|
|
4322
|
-
var i =
|
|
4323
|
-
o < n && n <
|
|
4328
|
+
for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
|
|
4329
|
+
var i = s.elements.events[a], r = i.event, o = r.part.left, l = r.part.left + r.part.width;
|
|
4330
|
+
o < n && n < l && e.push(i);
|
|
4324
4331
|
}
|
|
4325
4332
|
return e.area = t, e;
|
|
4326
4333
|
}, this.pe = function () {
|
|
4327
4334
|
if (this.floatingEvents) {
|
|
4328
|
-
var e =
|
|
4329
|
-
|
|
4335
|
+
var e = h.te();
|
|
4336
|
+
s.ve = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.we(t, r, 0); }), s.xe();
|
|
4330
4337
|
}
|
|
4331
|
-
}, this.elements.sections = [], this.elements.hsections = [], this.ne = function (e, t, n) { var a =
|
|
4338
|
+
}, this.elements.sections = [], this.elements.hsections = [], this.ne = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s._a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.me = function () {
|
|
4332
4339
|
for (var e = 0; e < this.elements.hsections.length; e++) {
|
|
4333
4340
|
var t = this.elements.hsections[e], n = t.cell;
|
|
4334
|
-
n && t.firstChild && (t.firstChild.innerHTML =
|
|
4341
|
+
n && t.firstChild && (t.firstChild.innerHTML = s._a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
|
|
4335
4342
|
}
|
|
4336
4343
|
this.elements.hsections = [];
|
|
4337
4344
|
}, this.we = function (e, t, n) {
|
|
4338
4345
|
var a = e.section;
|
|
4339
4346
|
if (a)
|
|
4340
|
-
return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp =
|
|
4341
|
-
a =
|
|
4342
|
-
var i =
|
|
4343
|
-
i.className =
|
|
4344
|
-
var
|
|
4345
|
-
|
|
4347
|
+
return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp = s.ve) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.ye = { marginLeft: t, marginRight: n, stamp: s.ve }));
|
|
4348
|
+
a = r(), a.className = s.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden";
|
|
4349
|
+
var i = r();
|
|
4350
|
+
i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n, stamp: s.ve }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "";
|
|
4351
|
+
var o = e.event, l = o.cache || o.data;
|
|
4352
|
+
l.fontColor && (i.style.color = l.fontColor), this.elements.sections.push(e);
|
|
4346
4353
|
}, this.xe = function () {
|
|
4347
4354
|
for (var e = [], t = 0; t < this.elements.sections.length; t++) {
|
|
4348
4355
|
var n = this.elements.sections[t];
|
|
4349
|
-
if (n.section && n.section.ye && n.section.ye.stamp ===
|
|
4356
|
+
if (n.section && n.section.ye && n.section.ye.stamp === s.ve)
|
|
4350
4357
|
e.push(n);
|
|
4351
4358
|
else {
|
|
4352
4359
|
var a = n.event;
|
|
@@ -4354,15 +4361,15 @@ var DayPilot = { Global: {} };
|
|
|
4354
4361
|
}
|
|
4355
4362
|
}
|
|
4356
4363
|
this.elements.sections = e;
|
|
4357
|
-
}, this.setScrollX = function (e) {
|
|
4364
|
+
}, this.setScrollX = function (e) { s.ze.enabled ? (s.ze.scrollXRequested = e, setTimeout(function () { var e = s.ze.scrollXRequested; "number" == typeof e && s.ie(e); }, 0)) : s.ie(e); }, this.ie = function (e) { var t = s.nav.scroll, n = s.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ze.enabled ? (s.ze.scrollYRequested = e, setTimeout(function () { var e = s.ze.scrollYRequested; "number" == typeof e && s.Be(e); }, 0)) : s.Be(e); }, this.Be = function (e) { var t = s.nav.scroll, n = s.ae; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () {
|
|
4358
4365
|
if (this.nav.scroll) {
|
|
4359
|
-
!function () { var e =
|
|
4366
|
+
!function () { var e = s.Ae(); s.he.style.height = s.ae + "px", s.he.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
|
|
4360
4367
|
var e = 1;
|
|
4361
4368
|
this.nav.scroll.style.height = "30px";
|
|
4362
4369
|
var t = this.Ya(), n = t + this.Ce() + e;
|
|
4363
|
-
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px",
|
|
4370
|
+
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
|
|
4364
4371
|
var a = 30;
|
|
4365
|
-
"Auto" ===
|
|
4372
|
+
"Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
|
|
4366
4373
|
}
|
|
4367
4374
|
for (var i = 0; i < this.elements.linesVertical.length; i++)
|
|
4368
4375
|
this.elements.linesVertical[i].style.height = this.ae + "px";
|
|
@@ -4371,184 +4378,185 @@ var DayPilot = { Global: {} };
|
|
|
4371
4378
|
this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = [];
|
|
4372
4379
|
var e = this.timeHeaders;
|
|
4373
4380
|
e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]);
|
|
4374
|
-
for (var t =
|
|
4381
|
+
for (var t = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
|
|
4375
4382
|
var a = e[n].groupBy, i = e[n].format;
|
|
4376
4383
|
"Default" === a && (a = this.cellGroupBy);
|
|
4377
|
-
for (var r = [], o =
|
|
4378
|
-
var
|
|
4379
|
-
if (
|
|
4384
|
+
for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
|
|
4385
|
+
var d = {};
|
|
4386
|
+
if (d.start = o, d.end = this.Fe(d.start, a), d.start.ticks === d.end.ticks)
|
|
4380
4387
|
break;
|
|
4381
|
-
|
|
4382
|
-
var c = this.getPixels(
|
|
4383
|
-
if (
|
|
4388
|
+
d.left = this.getPixels(d.start).left;
|
|
4389
|
+
var c = this.getPixels(d.end).left, u = c - d.left;
|
|
4390
|
+
if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Ge()) : d.text = this.He(d, a), u > 0) {
|
|
4384
4391
|
if ("function" == typeof this.onBeforeTimeHeaderRender) {
|
|
4385
4392
|
var h = {};
|
|
4386
|
-
h.start =
|
|
4393
|
+
h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s._a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
|
|
4387
4394
|
var f = {};
|
|
4388
|
-
f.header = h, f.control =
|
|
4395
|
+
f.header = h, f.control = s, this.onBeforeTimeHeaderRender(f), d.text = h.text, d.html = h.html, d.backColor = h.backColor, d.fontColor = h.fontColor, d.toolTip = h.toolTip, d.areas = h.areas, d.cssClass = h.cssClass;
|
|
4389
4396
|
}
|
|
4390
|
-
r.push(
|
|
4397
|
+
r.push(d);
|
|
4391
4398
|
}
|
|
4392
|
-
o =
|
|
4399
|
+
o = d.end;
|
|
4393
4400
|
}
|
|
4394
4401
|
this.timeHeader.push(r);
|
|
4395
4402
|
}
|
|
4396
|
-
}, this.getPixels = function (e) { var t =
|
|
4403
|
+
}, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.Ae(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) {
|
|
4397
4404
|
var a = this.Ie(e, n);
|
|
4398
4405
|
if (!a)
|
|
4399
4406
|
return null;
|
|
4400
|
-
var i = a.x, r =
|
|
4407
|
+
var i = a.x, r = s.Je(i);
|
|
4401
4408
|
if (!r)
|
|
4402
4409
|
return null;
|
|
4403
4410
|
var o = n && !t ? r.end : r.start;
|
|
4404
4411
|
return t ? o.addTime(this.Ke(a.offset)) : o;
|
|
4405
4412
|
}, this.Ie = function (e, t) {
|
|
4406
4413
|
t && (e -= 1);
|
|
4407
|
-
var n = Math.floor(e /
|
|
4414
|
+
var n = Math.floor(e / s.cellWidth), a = s.Je(n);
|
|
4408
4415
|
if (!a)
|
|
4409
4416
|
return null;
|
|
4410
4417
|
var i = {};
|
|
4411
|
-
return i.x = n, i.offset = e %
|
|
4418
|
+
return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i;
|
|
4412
4419
|
}, this.Le = function (e) {
|
|
4413
|
-
var t = e.ticks - this.startDate.ticks, n = 60 *
|
|
4420
|
+
var t = e.ticks - this.startDate.ticks, n = 60 * s.Me() * 1e3;
|
|
4414
4421
|
if (t < 0)
|
|
4415
4422
|
return { past: !0 };
|
|
4416
4423
|
var a = Math.floor(t / n);
|
|
4417
|
-
return { i: a, current:
|
|
4418
|
-
}, this.Bb = function (e) { var t = 60 *
|
|
4424
|
+
return { i: a, current: s.Je(a) };
|
|
4425
|
+
}, this.Bb = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Ke = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Ne = function (e) { DayPilot.Global.touch.start || t.Oe || (s.Pe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Qe(e, t); }, this.xa = function (e) {
|
|
4419
4426
|
if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
4420
4427
|
var t = this.event;
|
|
4421
4428
|
if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
|
|
4422
4429
|
return !1;
|
|
4423
|
-
|
|
4430
|
+
s.Re(e);
|
|
4424
4431
|
var n = {};
|
|
4425
|
-
if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof
|
|
4432
|
+
if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(n), n.preventDefault.value))
|
|
4426
4433
|
return !1;
|
|
4427
|
-
switch (
|
|
4434
|
+
switch (s.eventRightClickHandling) {
|
|
4428
4435
|
case "ContextMenu":
|
|
4429
4436
|
var a = t.client.contextMenu();
|
|
4430
|
-
a ? a.show(t) :
|
|
4437
|
+
a ? a.show(t) : s.contextMenu && s.contextMenu.show(this.event);
|
|
4431
4438
|
}
|
|
4432
|
-
return "function" == typeof
|
|
4439
|
+
return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
|
|
4433
4440
|
}
|
|
4434
|
-
}, this.Je = function (e) { var t =
|
|
4441
|
+
}, this.Je = function (e) { var t = s.Me(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Qe = function (e, t) {
|
|
4435
4442
|
if ("boolean" == typeof t)
|
|
4436
4443
|
throw new DayPilot.Exception("Invalid _eventClickSingle parameters");
|
|
4437
4444
|
var n = e.event;
|
|
4438
4445
|
if (n) {
|
|
4439
4446
|
var a = t.ctrlKey, i = t.metaKey;
|
|
4440
4447
|
if (n.client.clickEnabled()) {
|
|
4441
|
-
|
|
4448
|
+
s.Re(t);
|
|
4442
4449
|
var r = {};
|
|
4443
|
-
r.e = n, r.control =
|
|
4450
|
+
r.e = n, r.control = s, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof s.onEventClick && (s.onEventClick(r), r.preventDefault.value) || "function" == typeof s.onEventClicked && s.onEventClicked(r);
|
|
4444
4451
|
}
|
|
4445
4452
|
}
|
|
4446
4453
|
}, this.ya = function (e) {
|
|
4447
4454
|
var t = {};
|
|
4448
|
-
if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, t.control =
|
|
4449
|
-
switch (
|
|
4450
|
-
case "Update":
|
|
4455
|
+
if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, t.control = s, t.toJSON = function () { return DayPilot.Util.copyProps(t, {}, ["e"]); }, "function" != typeof s.onEventDelete || (s.onEventDelete(t), !t.preventDefault.value)) {
|
|
4456
|
+
switch (s.eventDeleteHandling) {
|
|
4457
|
+
case "Update": s.events.remove(e);
|
|
4451
4458
|
}
|
|
4452
|
-
"function" == typeof
|
|
4459
|
+
"function" == typeof s.onEventDeleted && s.onEventDeleted(t);
|
|
4453
4460
|
}
|
|
4454
4461
|
}, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, a) {
|
|
4455
4462
|
function i() {
|
|
4456
4463
|
if (!r.preventDefault.value) {
|
|
4457
|
-
switch (r.loaded = {}, t = r.newStart, n = r.newEnd,
|
|
4458
|
-
case "Update":
|
|
4464
|
+
switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
|
|
4465
|
+
case "Update": s.Te(r);
|
|
4459
4466
|
}
|
|
4460
|
-
"function" == typeof
|
|
4467
|
+
"function" == typeof s.onEventResized && s.onEventResized(r);
|
|
4461
4468
|
}
|
|
4462
4469
|
}
|
|
4463
4470
|
if ("Disabled" !== this.eventResizeHandling) {
|
|
4464
|
-
n =
|
|
4471
|
+
n = s.Se(n);
|
|
4465
4472
|
var r = {};
|
|
4466
|
-
r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control =
|
|
4473
|
+
r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = s, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(r), r.async || i();
|
|
4467
4474
|
}
|
|
4468
|
-
}, this.rb = function (e) { e = e || {}, clearTimeout(
|
|
4469
|
-
if ("function" == typeof
|
|
4475
|
+
}, this.rb = function (e) { e = e || {}, clearTimeout(s.Ue), s.timeHeader = null, s.cellProperties = {}, s.Ee(), s.Ve(), s.events.We(), s.R.Ld(), s.clearSelection(), s.ha(), s.Xe(), s.Ye(), s.sb(), s.Ze(), s.$e(), s._e(), s.ia(), s.Z(), s.af(), s.bf = {}, s.cf(), s.ma(), s.df(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.be !== s.visible && this.show() : this.hide(), this.be = this.visible, this.oe(), s.ef(), this.ff(); }, this.ff = function () {
|
|
4476
|
+
if ("function" == typeof s.onAfterUpdate) {
|
|
4470
4477
|
var e = {};
|
|
4471
|
-
|
|
4478
|
+
s.onAfterUpdate(e);
|
|
4472
4479
|
}
|
|
4473
4480
|
}, this.update = function (e) {
|
|
4474
|
-
if (!
|
|
4481
|
+
if (!s.Ma)
|
|
4475
4482
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized.");
|
|
4476
|
-
if (
|
|
4483
|
+
if (s.Q)
|
|
4477
4484
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable.");
|
|
4478
|
-
|
|
4479
|
-
},
|
|
4485
|
+
u.request(e);
|
|
4486
|
+
}, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.gf(e), u.timeout = setTimeout(u.doit)) : (u.gf(e), u.doit()); }, u.gf = function (e) {
|
|
4480
4487
|
if (e) {
|
|
4481
|
-
|
|
4488
|
+
u.options || (u.options = {});
|
|
4482
4489
|
for (var t in e)
|
|
4483
|
-
|
|
4490
|
+
u.options[t] = e[t];
|
|
4484
4491
|
}
|
|
4485
|
-
},
|
|
4486
|
-
if (
|
|
4487
|
-
n =
|
|
4492
|
+
}, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.hf = function (e) { e.forEach(function (e) { s.if(e.index); }); }, this.jf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.kf = function (e, t, n) { e = DayPilot.ua(e), e = s.jf(e), s.hf(e), this.lf ? (this.Xe(), this.$e(), this.af(), e.forEach(function (e) { s.mf(e.index); }), e.forEach(function (e) { s.nf(e.index); }), this.df(), this.of()) : (e.forEach(function (e) { t || s.mf(e.index), s.nf(e.index); }), e.forEach(function (e) { s.pf(e.index); }), s.df()), s.pe(), n && n(), this.cf(); }, this.Se = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.rf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
|
|
4493
|
+
if (s.sf = null, "Disabled" !== s.eventMoveHandling) {
|
|
4494
|
+
n = s.Se(n);
|
|
4488
4495
|
var r = {};
|
|
4489
|
-
r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control =
|
|
4496
|
+
r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = s, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
|
|
4490
4497
|
var o = function () {
|
|
4491
4498
|
if (r.loaded = function () { }, r.preventDefault.value)
|
|
4492
|
-
return void
|
|
4493
|
-
switch (t = r.newStart, n = r.newEnd,
|
|
4494
|
-
case "Update":
|
|
4499
|
+
return void s.tf();
|
|
4500
|
+
switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
|
|
4501
|
+
case "Update": s.Te(r);
|
|
4495
4502
|
}
|
|
4496
|
-
|
|
4503
|
+
s.tf(), "function" == typeof s.onEventMoved && s.onEventMoved(r);
|
|
4497
4504
|
};
|
|
4498
|
-
r.async = !1, r.loaded = function () { o(); }, "function" == typeof
|
|
4505
|
+
r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
|
|
4506
|
+
r.async || o();
|
|
4499
4507
|
}
|
|
4500
|
-
}, this.Te = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i),
|
|
4508
|
+
}, this.Te = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.uf(); }, this.vf = function (e) {
|
|
4501
4509
|
if (e)
|
|
4502
4510
|
if (e.args)
|
|
4503
|
-
|
|
4511
|
+
s.O(e.args.start, e.args.end, e.args.resource);
|
|
4504
4512
|
else {
|
|
4505
|
-
var t =
|
|
4513
|
+
var t = s.wf(e);
|
|
4506
4514
|
if (!t)
|
|
4507
4515
|
return;
|
|
4508
|
-
|
|
4516
|
+
s.O(t.start, t.end, t.resource);
|
|
4509
4517
|
}
|
|
4510
4518
|
}, this.O = function (e, t, n) {
|
|
4511
|
-
if ("Disabled" !==
|
|
4519
|
+
if ("Disabled" !== s.timeRangeSelectedHandling) {
|
|
4512
4520
|
var a = t;
|
|
4513
|
-
t =
|
|
4521
|
+
t = s.Se(a);
|
|
4514
4522
|
var i = {};
|
|
4515
|
-
if (i.control =
|
|
4516
|
-
if (
|
|
4523
|
+
if (i.control = s, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof s.onTimeRangeSelect) {
|
|
4524
|
+
if (s.onTimeRangeSelect(i), i.preventDefault.value)
|
|
4517
4525
|
return;
|
|
4518
4526
|
e = i.start, t = i.end;
|
|
4519
4527
|
}
|
|
4520
|
-
t =
|
|
4528
|
+
t = s.qf(t), s.xf(s.yf, e, t), s.zf(s.yf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
|
|
4521
4529
|
}
|
|
4522
4530
|
}, this.xf = function (e, t, n) {
|
|
4523
4531
|
if (e) {
|
|
4524
4532
|
var a, i = n;
|
|
4525
|
-
t.getTime() <
|
|
4526
|
-
var r =
|
|
4527
|
-
i.getTime() > r.getTime() ? (e.end.x =
|
|
4533
|
+
t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Le(t), e.start.x = a.i, e.start.time = t);
|
|
4534
|
+
var r = s.startDate.addDays(s.days);
|
|
4535
|
+
i.getTime() > r.getTime() ? (e.end.x = s.Af(), e.end.time = r.getTime()) : (a = s.Le(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
|
|
4528
4536
|
}
|
|
4529
|
-
}, this.Bf = function (e, t) {
|
|
4537
|
+
}, this.Bf = function (e, t) { s.Cf(e, t); }, this.Cf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Df = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Ef(e, t), i = s.Ff(a), r = s.Je(a.start.x), o = s.Je(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Ef = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ie(e), i = s.Ie(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Gf(r).i, n.end.y = s.Gf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Af(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ff = function (e) {
|
|
4530
4538
|
e || (e = this.Ef(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop));
|
|
4531
4539
|
var t = [];
|
|
4532
4540
|
t.ignoreToJSON = !0;
|
|
4533
4541
|
for (var n = e.start.y; n <= e.end.y; n++) {
|
|
4534
|
-
var a =
|
|
4542
|
+
var a = s.rowlist[n];
|
|
4535
4543
|
a && t.push(a.id);
|
|
4536
4544
|
}
|
|
4537
4545
|
return t;
|
|
4538
|
-
}, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () {
|
|
4539
|
-
var e =
|
|
4546
|
+
}, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.he.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () {
|
|
4547
|
+
var e = s;
|
|
4540
4548
|
if (e.Ma && !e.Q) {
|
|
4541
4549
|
e.Q = !0;
|
|
4542
|
-
for (var
|
|
4543
|
-
var a = e.Hf[
|
|
4550
|
+
for (var n in e.Hf) {
|
|
4551
|
+
var a = e.Hf[n];
|
|
4544
4552
|
DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
|
|
4545
4553
|
}
|
|
4546
|
-
e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.De = null, e.he.calendar = null, e.he = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null,
|
|
4554
|
+
e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.De = null, e.he.calendar = null, e.he = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.qc(e), c = null;
|
|
4547
4555
|
}
|
|
4548
|
-
}, this.disposed = function () { return
|
|
4549
|
-
for (var t, n =
|
|
4550
|
-
var d = n[
|
|
4551
|
-
if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i =
|
|
4556
|
+
}, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.If(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Gf = function (e) {
|
|
4557
|
+
for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
|
|
4558
|
+
var d = n[l];
|
|
4559
|
+
if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
|
|
4552
4560
|
break;
|
|
4553
4561
|
}
|
|
4554
4562
|
return a;
|
|
@@ -4560,24 +4568,24 @@ var DayPilot = { Global: {} };
|
|
|
4560
4568
|
var a = this.rowlist[e];
|
|
4561
4569
|
return { top: t - a.height, height: a.height, bottom: t, i: e, data: a };
|
|
4562
4570
|
}, this.events.find = function (e) {
|
|
4563
|
-
if (!
|
|
4571
|
+
if (!s.events.list || "undefined" == typeof s.events.list.length)
|
|
4564
4572
|
return null;
|
|
4565
4573
|
if ("function" == typeof e)
|
|
4566
|
-
return
|
|
4567
|
-
for (var t =
|
|
4568
|
-
if (
|
|
4569
|
-
return new DayPilot.Event(
|
|
4574
|
+
return s.Kf(e);
|
|
4575
|
+
for (var t = s.events.list.length, n = 0; n < t; n++)
|
|
4576
|
+
if (s.events.list[n].id === e)
|
|
4577
|
+
return new DayPilot.Event(s.events.list[n], s);
|
|
4570
4578
|
return null;
|
|
4571
4579
|
}, this.events.findAll = function (e) {
|
|
4572
4580
|
if ("function" == typeof e) {
|
|
4573
|
-
for (var t =
|
|
4574
|
-
var i = new DayPilot.Event(
|
|
4581
|
+
for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
|
|
4582
|
+
var i = new DayPilot.Event(s.events.list[a], s);
|
|
4575
4583
|
e(i) && n.push(i);
|
|
4576
4584
|
}
|
|
4577
4585
|
return n;
|
|
4578
4586
|
}
|
|
4579
4587
|
if ("object" == typeof e)
|
|
4580
|
-
return
|
|
4588
|
+
return s.events.findAll(function (t) {
|
|
4581
4589
|
for (var n in e)
|
|
4582
4590
|
if (e[n] !== t.data[n])
|
|
4583
4591
|
return !1;
|
|
@@ -4585,29 +4593,29 @@ var DayPilot = { Global: {} };
|
|
|
4585
4593
|
});
|
|
4586
4594
|
throw new DayPilot.Exception("function or object argument expected");
|
|
4587
4595
|
}, this.Kf = function (e) {
|
|
4588
|
-
for (var t =
|
|
4589
|
-
var a = new DayPilot.Event(
|
|
4596
|
+
for (var t = s.events.list.length, n = 0; n < t; n++) {
|
|
4597
|
+
var a = new DayPilot.Event(s.events.list[n], s);
|
|
4590
4598
|
if (e(a))
|
|
4591
4599
|
return a;
|
|
4592
4600
|
}
|
|
4593
4601
|
return null;
|
|
4594
|
-
}, this.events.focus = function (e) { var t =
|
|
4595
|
-
if (
|
|
4596
|
-
var t = e.start(), n =
|
|
4597
|
-
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(
|
|
4602
|
+
}, this.events.focus = function (e) { var t = s.Lf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) {
|
|
4603
|
+
if (s.Lf(e)) {
|
|
4604
|
+
var t = e.start(), n = s.getViewport();
|
|
4605
|
+
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Mf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
|
|
4598
4606
|
var a = e.resource();
|
|
4599
|
-
|
|
4607
|
+
s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
|
|
4600
4608
|
}
|
|
4601
4609
|
}, this.events.all = function () {
|
|
4602
|
-
for (var e = [], t = 0; t <
|
|
4603
|
-
var n = new DayPilot.Event(
|
|
4610
|
+
for (var e = [], t = 0; t < s.events.list.length; t++) {
|
|
4611
|
+
var n = new DayPilot.Event(s.events.list[t], s);
|
|
4604
4612
|
e.push(n);
|
|
4605
4613
|
}
|
|
4606
4614
|
return e;
|
|
4607
4615
|
}, this.events.forRange = function (e, t) {
|
|
4608
|
-
e = e ? new DayPilot.Date(e) :
|
|
4609
|
-
for (var n = [], a = 0; a <
|
|
4610
|
-
var i = new DayPilot.Event(
|
|
4616
|
+
e = e ? new DayPilot.Date(e) : s.visibleStart(), t = t ? new DayPilot.Date(t) : s.visibleEnd();
|
|
4617
|
+
for (var n = [], a = 0; a < s.events.list.length; a++) {
|
|
4618
|
+
var i = new DayPilot.Event(s.events.list[a], s);
|
|
4611
4619
|
DayPilot.Util.overlaps(i.start(), i.end(), e, t) && n.push(i);
|
|
4612
4620
|
}
|
|
4613
4621
|
return n;
|
|
@@ -4627,22 +4635,22 @@ var DayPilot = { Global: {} };
|
|
|
4627
4635
|
var o = {};
|
|
4628
4636
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
|
|
4629
4637
|
return;
|
|
4630
|
-
|
|
4638
|
+
s.events.list = o.data, s.Ma && s.update();
|
|
4631
4639
|
}
|
|
4632
4640
|
};
|
|
4633
|
-
if (
|
|
4634
|
-
DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start":
|
|
4641
|
+
if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
|
|
4642
|
+
DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": i, "error": a });
|
|
4635
4643
|
else {
|
|
4636
|
-
var r = e, o = "start=" +
|
|
4644
|
+
var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
|
|
4637
4645
|
r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
|
|
4638
4646
|
}
|
|
4639
4647
|
}, this.events.Nf = function (e) {
|
|
4640
4648
|
var t = [];
|
|
4641
|
-
return
|
|
4642
|
-
|
|
4649
|
+
return s.rowlist.forEach(function (n) {
|
|
4650
|
+
s.Of(n.index);
|
|
4643
4651
|
for (var a = 0; a < n.events.length; a++) {
|
|
4644
4652
|
var i = n.events[a].data;
|
|
4645
|
-
if (
|
|
4653
|
+
if (s.Pf(i, e)) {
|
|
4646
4654
|
t.push(n), n.events.splice(a, 1);
|
|
4647
4655
|
break;
|
|
4648
4656
|
}
|
|
@@ -4651,53 +4659,53 @@ var DayPilot = { Global: {} };
|
|
|
4651
4659
|
}, this.events.Qf = function (e) {
|
|
4652
4660
|
if (!e)
|
|
4653
4661
|
return null;
|
|
4654
|
-
for (var t =
|
|
4662
|
+
for (var t = s.rowlist, n = 0; n < t.length; n++) {
|
|
4655
4663
|
var a = t[n];
|
|
4656
|
-
|
|
4664
|
+
s.Of(a.index);
|
|
4657
4665
|
for (var i = 0; i < a.events.length; i++) {
|
|
4658
4666
|
var r = a.events[i];
|
|
4659
|
-
if (
|
|
4667
|
+
if (s.Pf(r.data, e))
|
|
4660
4668
|
return a.events[i];
|
|
4661
4669
|
}
|
|
4662
4670
|
}
|
|
4663
4671
|
return null;
|
|
4664
4672
|
}, this.events.Rf = function (e) {
|
|
4665
|
-
var t = [], n =
|
|
4666
|
-
|
|
4667
|
-
var i =
|
|
4673
|
+
var t = [], n = s.Sf(), a = DayPilot.indexOf(s.events.list, e);
|
|
4674
|
+
s.zb(a);
|
|
4675
|
+
var i = s.rowlist, r = !1;
|
|
4668
4676
|
return i.forEach(function (i) {
|
|
4669
4677
|
if (!r) {
|
|
4670
|
-
|
|
4671
|
-
var o =
|
|
4672
|
-
o && ("function" == typeof
|
|
4678
|
+
s.Of(i.index);
|
|
4679
|
+
var o = s.Tf(e, i);
|
|
4680
|
+
o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.yb.events[a]), t.push(i), n || (r = !0));
|
|
4673
4681
|
}
|
|
4674
4682
|
}), t;
|
|
4675
4683
|
}, this.Pf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) {
|
|
4676
4684
|
if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
|
|
4677
|
-
var t =
|
|
4678
|
-
return
|
|
4685
|
+
var t = s.events.find(e.id);
|
|
4686
|
+
return s.events.remove(t), void s.events.add(e);
|
|
4679
4687
|
}
|
|
4680
|
-
if (
|
|
4681
|
-
|
|
4682
|
-
var n =
|
|
4683
|
-
e.commit(), n = n.concat(
|
|
4688
|
+
if (s.events.list.find(function (t) { return s.Pf(t, e.data); })) {
|
|
4689
|
+
s.ze.Uf && (s.ze.skip = !0);
|
|
4690
|
+
var n = s.events.Nf(e.data);
|
|
4691
|
+
e.commit(), n = n.concat(s.events.Rf(e.data)), s.events.Vf(n);
|
|
4684
4692
|
}
|
|
4685
4693
|
}, this.events.remove = function (e) {
|
|
4686
4694
|
if (e) {
|
|
4687
4695
|
if ("string" == typeof e || "number" == typeof e) {
|
|
4688
|
-
var t =
|
|
4689
|
-
return void
|
|
4696
|
+
var t = s.events.find(e);
|
|
4697
|
+
return void s.events.remove(t);
|
|
4690
4698
|
}
|
|
4691
|
-
var n =
|
|
4692
|
-
n &&
|
|
4693
|
-
var a =
|
|
4694
|
-
|
|
4699
|
+
var n = s.Wf(e.data);
|
|
4700
|
+
n && s.events.list.splice(n.index, 1), s.ze.Uf && (s.ze.skip = !0);
|
|
4701
|
+
var a = s.events.Nf(e.data);
|
|
4702
|
+
s.events.Vf(a);
|
|
4695
4703
|
}
|
|
4696
4704
|
}, this.events.add = function (e, t, n) {
|
|
4697
4705
|
n = n || {};
|
|
4698
4706
|
var a = n.renderOnly;
|
|
4699
|
-
e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar =
|
|
4700
|
-
var i =
|
|
4707
|
+
e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []);
|
|
4708
|
+
var i = s.Wf(e);
|
|
4701
4709
|
if (a) {
|
|
4702
4710
|
if (!i)
|
|
4703
4711
|
throw new DayPilot.Exception("Unexpected: event not found in list");
|
|
@@ -4705,31 +4713,31 @@ var DayPilot = { Global: {} };
|
|
|
4705
4713
|
else {
|
|
4706
4714
|
if (i)
|
|
4707
4715
|
throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
|
|
4708
|
-
i ||
|
|
4716
|
+
i || s.events.list.push(e.data);
|
|
4709
4717
|
}
|
|
4710
|
-
if (
|
|
4711
|
-
|
|
4712
|
-
var r =
|
|
4713
|
-
|
|
4718
|
+
if (s.Ma) {
|
|
4719
|
+
s.ze.Uf && (s.ze.skip = !0);
|
|
4720
|
+
var r = s.events.Rf(e.data);
|
|
4721
|
+
s.events.Vf(r);
|
|
4714
4722
|
}
|
|
4715
4723
|
}, this.events.Xf = function (e) {
|
|
4716
4724
|
var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end);
|
|
4717
|
-
return !!
|
|
4718
|
-
if (
|
|
4725
|
+
return !!s.events.list.find(function (e) {
|
|
4726
|
+
if (s.Pf(t, e))
|
|
4719
4727
|
return !1;
|
|
4720
4728
|
if (t.resource !== e.resource)
|
|
4721
4729
|
return !1;
|
|
4722
4730
|
var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end);
|
|
4723
4731
|
return DayPilot.Util.overlaps(n, a, i, r);
|
|
4724
4732
|
});
|
|
4725
|
-
}, this.events.Yf = { "rows": [] }, this.events.Zf = null, this.events.We = function () { clearTimeout(
|
|
4726
|
-
var t =
|
|
4733
|
+
}, this.events.Yf = { "rows": [] }, this.events.Zf = null, this.events.We = function () { clearTimeout(s.events.Zf), s.events.Zf = null, s.events.Yf.rows = []; }, this.events.$f = 0, this.events.Vf = function (e) { var t = s.events.Yf.rows; e.forEach(function (e) { t.push(e); }), s.events.Yf.rows = DayPilot.ua(t); var n = s.events.uf; s.events.Zf || (s.events.Zf = setTimeout(n, s.events.$f)); }, this.events.uf = function () { clearTimeout(s.events.Zf), s.events.Zf = null; var e = s.events.Yf.rows; s.events.Yf.rows = [], s._f(e), s.ag(), s.Ma && (s.lf && s.Xe(), s.ma(), s.kf(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return s.ze.skip; }, this.ze.skipped = function () { s.ze.skip = !1; }, this.ze.bg = !1, this.ze.Uf = !1, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.dg = function (e) {
|
|
4734
|
+
var t = s.startDate;
|
|
4727
4735
|
if (e.ticks === t.ticks)
|
|
4728
4736
|
return e;
|
|
4729
4737
|
var n = t;
|
|
4730
4738
|
if (e.ticks < t.ticks) {
|
|
4731
4739
|
for (; n.ticks > e.ticks;)
|
|
4732
|
-
n = n.addTime(60 * -
|
|
4740
|
+
n = n.addTime(60 * -s.Me() * 1e3);
|
|
4733
4741
|
return n;
|
|
4734
4742
|
}
|
|
4735
4743
|
var a = this.Le(e);
|
|
@@ -4737,31 +4745,31 @@ var DayPilot = { Global: {} };
|
|
|
4737
4745
|
return a.current.start;
|
|
4738
4746
|
throw new DayPilot.Exception("getBoxStart(): time not found");
|
|
4739
4747
|
}, this.If = function (e) {
|
|
4740
|
-
var
|
|
4748
|
+
var n = this.Gf(s.coords.y);
|
|
4741
4749
|
if ("function" != typeof e.end)
|
|
4742
4750
|
throw new DayPilot.Exception("e.end function is not defined");
|
|
4743
4751
|
if (!e.end())
|
|
4744
4752
|
throw new DayPilot.Exception("e.end() returns null");
|
|
4745
4753
|
var a = DayPilot.DateUtil.diff(e.rawend(), e.start());
|
|
4746
4754
|
a = DayPilot.Util.atLeast(a, 1);
|
|
4747
|
-
var i =
|
|
4755
|
+
var i = l.eg(a), r = 0, o = s.coords.x;
|
|
4748
4756
|
i && (r = e.start().getTime() - this.dg(e.start()).getTime());
|
|
4749
|
-
var
|
|
4750
|
-
if (
|
|
4757
|
+
var d = 0;
|
|
4758
|
+
if (t.fg)
|
|
4751
4759
|
if (i) {
|
|
4752
4760
|
var c = e.start(), u = this.dg(c);
|
|
4753
|
-
|
|
4754
|
-
var h = 60 *
|
|
4755
|
-
|
|
4761
|
+
d = t.fg.getTime() - u.getTime();
|
|
4762
|
+
var h = 60 * s.Me() * 1e3;
|
|
4763
|
+
d = Math.floor(d / h) * h;
|
|
4756
4764
|
}
|
|
4757
4765
|
else
|
|
4758
|
-
|
|
4759
|
-
var f = this.getDate(o, !0).addTime(-
|
|
4760
|
-
|
|
4761
|
-
var v =
|
|
4766
|
+
d = t.fg.getTime() - e.start().getTime();
|
|
4767
|
+
var f = this.getDate(o, !0).addTime(-d);
|
|
4768
|
+
t.gg && (f = e.start());
|
|
4769
|
+
var v = s.snapToGrid;
|
|
4762
4770
|
v && (f = this.dg(f)), f = f.addTime(r);
|
|
4763
|
-
var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g
|
|
4764
|
-
return _.top =
|
|
4771
|
+
var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {};
|
|
4772
|
+
return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _;
|
|
4765
4773
|
}, this.Me = function () {
|
|
4766
4774
|
switch (this.scale) {
|
|
4767
4775
|
case "CellDuration": return this.cellDuration;
|
|
@@ -4771,78 +4779,78 @@ var DayPilot = { Global: {} };
|
|
|
4771
4779
|
case "Week": return 10080;
|
|
4772
4780
|
}
|
|
4773
4781
|
throw new DayPilot.Exception("can't guess cellDuration value");
|
|
4774
|
-
}, this.hg = function (e) { return e.end.ticks - e.start.ticks; }, this.ig = function () { var e =
|
|
4775
|
-
var e =
|
|
4776
|
-
"right" ===
|
|
4777
|
-
var r, o,
|
|
4778
|
-
if ("right" ===
|
|
4782
|
+
}, this.hg = function (e) { return e.end.ticks - e.start.ticks; }, this.ig = function () { var e = t.jg.width, n = t.jg.left, a = t.kg, i = t.gg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.jg.start = r, t.jg.end = o; }, this.lg = function () {
|
|
4783
|
+
var e = s.coords, n = t.gg.dpBorder, a = t.gg.event, i = a.part.left;
|
|
4784
|
+
"right" === n && (i += a.part.width);
|
|
4785
|
+
var r, o, l = t.gg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid;
|
|
4786
|
+
if ("right" === n) {
|
|
4779
4787
|
if (r = c, f) {
|
|
4780
|
-
var v =
|
|
4788
|
+
var v = s.Ie(d + c + h).cell, p = s.Ie(c).cell, m = p.left + p.width - c;
|
|
4781
4789
|
o = v.left + v.width - c, o < m && (o = m);
|
|
4782
4790
|
}
|
|
4783
4791
|
else
|
|
4784
4792
|
o = d + h;
|
|
4785
|
-
var g =
|
|
4786
|
-
c + o > g && (o = g - c),
|
|
4793
|
+
var g = s.Ae();
|
|
4794
|
+
c + o > g && (o = g - c), t.jg.left = c, t.jg.width = o, t.jg.style.left = c + "px", t.jg.style.width = o + "px";
|
|
4787
4795
|
}
|
|
4788
4796
|
else {
|
|
4789
|
-
if ("left" !==
|
|
4797
|
+
if ("left" !== n)
|
|
4790
4798
|
throw new DayPilot.Exception("Invalid dpBorder.");
|
|
4791
|
-
f ? (h >= d && (h = d), r = Math.floor((c + h + 0) /
|
|
4792
|
-
var y = c + d, b =
|
|
4793
|
-
f ? "Never" ===
|
|
4799
|
+
f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
|
|
4800
|
+
var y = c + d, b = l;
|
|
4801
|
+
f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.jg.left = r, t.jg.width = o, t.jg.style.left = r + "px", t.jg.style.width = o + "px";
|
|
4794
4802
|
}
|
|
4795
|
-
|
|
4803
|
+
s.ig();
|
|
4796
4804
|
}, this.mg = function () {
|
|
4797
|
-
if (
|
|
4798
|
-
var e =
|
|
4799
|
-
e.row =
|
|
4805
|
+
if (s.coords && t.ng) {
|
|
4806
|
+
var e = t.og, n = this.If(t.ng);
|
|
4807
|
+
e.row = n.row, e.style.height = DayPilot.Util.atLeast(n.row.height, 0) + "px", e.style.top = n.top + "px", e.style.left = n.left + "px", e.style.width = n.width + "px", e.start = n.start, e.end = n.end;
|
|
4800
4808
|
}
|
|
4801
|
-
}, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(
|
|
4809
|
+
}, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(s.progressiveRowRenderingPreload); }, this.rg = function (e) {
|
|
4802
4810
|
e = e || 0;
|
|
4803
|
-
var t = 0, n =
|
|
4804
|
-
if (
|
|
4805
|
-
var a =
|
|
4806
|
-
t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(
|
|
4811
|
+
var t = 0, n = s.rowlist.length;
|
|
4812
|
+
if (s.progressiveRowRendering) {
|
|
4813
|
+
var a = s.le();
|
|
4814
|
+
t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
|
|
4807
4815
|
}
|
|
4808
4816
|
return { "start": t, "end": n };
|
|
4809
4817
|
}, this.Ye = function () {
|
|
4810
|
-
function e() { var e =
|
|
4818
|
+
function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); }
|
|
4811
4819
|
this.sg = !0;
|
|
4812
4820
|
var t = this.pg();
|
|
4813
4821
|
e();
|
|
4814
|
-
var
|
|
4815
|
-
if (
|
|
4816
|
-
|
|
4822
|
+
var a = this.divHeader;
|
|
4823
|
+
if (a.style.width = t + "px", a.style.height = s.ae + "px", s.divHeader = a, s.progressiveRowRendering)
|
|
4824
|
+
n();
|
|
4817
4825
|
else
|
|
4818
4826
|
for (var i = this.rowlist.length, r = 0; r < i; r++)
|
|
4819
|
-
|
|
4820
|
-
|
|
4827
|
+
s.tg(r);
|
|
4828
|
+
s.ug(), this.divResScroll.appendChild(a);
|
|
4821
4829
|
}, this.vg = function () {
|
|
4822
|
-
if (
|
|
4823
|
-
for (var e = this.qg(), t = 0; t <
|
|
4824
|
-
e.start <= t && t < e.end ?
|
|
4830
|
+
if (s.progressiveRowRendering)
|
|
4831
|
+
for (var e = this.qg(), t = 0; t < s.rowlist.length; t++)
|
|
4832
|
+
e.start <= t && t < e.end ? s.tg(t) : s.wg(t);
|
|
4825
4833
|
}, this.ug = function () {
|
|
4826
|
-
if (!
|
|
4827
|
-
var e =
|
|
4828
|
-
t.style.position = "absolute", e.appendChild(t),
|
|
4829
|
-
var n =
|
|
4834
|
+
if (!s.R.xg()) {
|
|
4835
|
+
var e = s.divHeader, t = r();
|
|
4836
|
+
t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
|
|
4837
|
+
var n = r();
|
|
4830
4838
|
n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
|
|
4831
4839
|
var a = this.pg();
|
|
4832
4840
|
t.style.width = a + "px", t.style.top = this.ae + "px";
|
|
4833
4841
|
}
|
|
4834
|
-
}, this.wg = function (e) { var t =
|
|
4835
|
-
var t =
|
|
4842
|
+
}, this.wg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.if = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) {
|
|
4843
|
+
var t = s.rowlist, n = s.divHeader;
|
|
4836
4844
|
if (n && !n.rows[e]) {
|
|
4837
4845
|
var a = this.pg(), i = t[e];
|
|
4838
4846
|
if (i) {
|
|
4839
|
-
var
|
|
4840
|
-
|
|
4841
|
-
var d =
|
|
4842
|
-
|
|
4847
|
+
var o = this.yg(i), l = r();
|
|
4848
|
+
l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
|
|
4849
|
+
var d = o.row, c = this.rowHeaderWidth;
|
|
4850
|
+
l.style.width = c + "px", l.style.border = "0px none";
|
|
4843
4851
|
var u = d.toolTip || d.toolTip;
|
|
4844
|
-
u && (
|
|
4845
|
-
var h =
|
|
4852
|
+
u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.zg;
|
|
4853
|
+
var h = r();
|
|
4846
4854
|
h.style.width = c + "px", h.className = this.L("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
|
|
4847
4855
|
var f = d.backColor || d.backColor;
|
|
4848
4856
|
f && (h.style.background = f);
|
|
@@ -4850,7 +4858,7 @@ var DayPilot = { Global: {} };
|
|
|
4850
4858
|
v && (h.style.color = v);
|
|
4851
4859
|
var p = d.horizontalAlignment || d.horizontalAlignment;
|
|
4852
4860
|
p && (h.style.textAlign = p), h.style.height = i.height + "px", h.style.overflow = "hidden", h.style.position = "relative";
|
|
4853
|
-
var m =
|
|
4861
|
+
var m = r();
|
|
4854
4862
|
switch (m.className = this.L("_rowheader_inner"), p) {
|
|
4855
4863
|
case "right":
|
|
4856
4864
|
m.style.justifyContent = "flex-end";
|
|
@@ -4861,12 +4869,12 @@ var DayPilot = { Global: {} };
|
|
|
4861
4869
|
case "center": m.style.justifyContent = "center";
|
|
4862
4870
|
}
|
|
4863
4871
|
h.appendChild(m);
|
|
4864
|
-
var g = d.areas || [], y =
|
|
4872
|
+
var g = d.areas || [], y = s.Ag(i);
|
|
4865
4873
|
DayPilot.Areas.attach(h, y, { areas: g });
|
|
4866
|
-
var b =
|
|
4874
|
+
var b = r();
|
|
4867
4875
|
b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.L("_resourcedivider"), h.appendChild(b);
|
|
4868
|
-
var w =
|
|
4869
|
-
x.innerHTML =
|
|
4876
|
+
var w = r(), x = r();
|
|
4877
|
+
x.innerHTML = s._a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
|
|
4870
4878
|
var _ = d.verticalAlignment || d.verticalAlignment;
|
|
4871
4879
|
if (_)
|
|
4872
4880
|
switch (m.style.display = "flex", _) {
|
|
@@ -4878,28 +4886,28 @@ var DayPilot = { Global: {} };
|
|
|
4878
4886
|
break;
|
|
4879
4887
|
case "bottom": m.style.alignItems = "flex-end";
|
|
4880
4888
|
}
|
|
4881
|
-
|
|
4889
|
+
l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
|
|
4882
4890
|
}
|
|
4883
4891
|
}
|
|
4884
|
-
}, this.zg = function (e) { var t = this.row, n =
|
|
4885
|
-
if ("Disabled" !==
|
|
4892
|
+
}, this.zg = function (e) { var t = this.row, n = s.Ag(t, this.index); s.Bf(n, e); }, this.Bg = function () {
|
|
4893
|
+
if ("Disabled" !== s.timeHeaderClickHandling) {
|
|
4886
4894
|
var e = {};
|
|
4887
|
-
e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(
|
|
4895
|
+
e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Me())), s.Df(e);
|
|
4888
4896
|
}
|
|
4889
4897
|
}, this.Cg = function (e) {
|
|
4890
|
-
if ("Disabled" !==
|
|
4898
|
+
if ("Disabled" !== s.timeHeaderRightClickHandling) {
|
|
4891
4899
|
e.cancelBubble = !0, e.preventDefault();
|
|
4892
4900
|
var t = {};
|
|
4893
|
-
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(
|
|
4901
|
+
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Me()));
|
|
4894
4902
|
var n = {};
|
|
4895
|
-
n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof
|
|
4903
|
+
n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderRightClick && (s.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof s.onTimeHeaderRightClicked && s.onTimeHeaderRightClicked(n);
|
|
4896
4904
|
}
|
|
4897
|
-
}, this.Ag = function (e) { return new DayPilot.Row(e,
|
|
4905
|
+
}, this.Ag = function (e) { return new DayPilot.Row(e, s); }, this.Of = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Dg = {}, this.ha = function (e) {
|
|
4898
4906
|
if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
|
|
4899
4907
|
throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");
|
|
4900
|
-
|
|
4908
|
+
c.prepareRows(!0);
|
|
4901
4909
|
var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender;
|
|
4902
|
-
|
|
4910
|
+
s.Dg = {};
|
|
4903
4911
|
for (var i = 0; i < n.length; i++) {
|
|
4904
4912
|
var r = n[i];
|
|
4905
4913
|
if (r) {
|
|
@@ -4912,28 +4920,28 @@ var DayPilot = { Global: {} };
|
|
|
4912
4920
|
if (!("string" == typeof r.id || "number" == typeof r.id))
|
|
4913
4921
|
throw new DayPilot.Exception("All events must have an id property (string or number)");
|
|
4914
4922
|
var o = "_" + r.id;
|
|
4915
|
-
if (
|
|
4923
|
+
if (s.Dg[o])
|
|
4916
4924
|
throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
|
|
4917
|
-
|
|
4918
|
-
for (var
|
|
4919
|
-
var d = t[
|
|
4920
|
-
|
|
4925
|
+
s.Dg[o] = !0, a && this.zb(i), t = s.Eg(r.resource);
|
|
4926
|
+
for (var l = 0; t && l < t.length; l++) {
|
|
4927
|
+
var d = t[l], u = this.Tf(r, d);
|
|
4928
|
+
u && a && (u.cache = this.yb.events[i]);
|
|
4921
4929
|
}
|
|
4922
4930
|
}
|
|
4923
4931
|
}
|
|
4924
|
-
|
|
4925
|
-
},
|
|
4926
|
-
|
|
4927
|
-
for (var t =
|
|
4932
|
+
s.rowlist.forEach(function (e) { s.Fg(e); }), s.ag();
|
|
4933
|
+
}, c.rowcache = {}, c.prepareRows = function (e) {
|
|
4934
|
+
c.rowcache = {};
|
|
4935
|
+
for (var t = s.rowlist, n = 0; n < t.length; n++) {
|
|
4928
4936
|
var a = t[n];
|
|
4929
|
-
if (e && a.resetEvents(),
|
|
4937
|
+
if (e && a.resetEvents(), s.Of(a.index), a.id) {
|
|
4930
4938
|
var i = typeof a.id + "_" + a.id;
|
|
4931
|
-
|
|
4939
|
+
c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
|
|
4932
4940
|
}
|
|
4933
4941
|
}
|
|
4934
|
-
}, this.Eg = function (e) { var t = typeof e + "_" + e; return
|
|
4935
|
-
for (var e = {}, t = 0; t <
|
|
4936
|
-
var n =
|
|
4942
|
+
}, this.Eg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Sf = function () {
|
|
4943
|
+
for (var e = {}, t = 0; t < s.rowlist.length; t++) {
|
|
4944
|
+
var n = s.rowlist[t], a = n.id;
|
|
4937
4945
|
if (e[a])
|
|
4938
4946
|
return !0;
|
|
4939
4947
|
e[a] = !0;
|
|
@@ -4955,31 +4963,31 @@ var DayPilot = { Global: {} };
|
|
|
4955
4963
|
var n = e.events[t];
|
|
4956
4964
|
e.putIntoLine(n);
|
|
4957
4965
|
}
|
|
4958
|
-
}, this._f = function (e) { e = DayPilot.ua(e), e =
|
|
4966
|
+
}, this._f = function (e) { e = DayPilot.ua(e), e = s.jf(e), e.forEach(function (e) { s.Fg(e); }), e.forEach(function (e) { s.Gg(e); }); }, this.Tf = function (e, t) {
|
|
4959
4967
|
var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end);
|
|
4960
|
-
a =
|
|
4961
|
-
var i = n.ticks, r = a.ticks, o =
|
|
4968
|
+
a = s.qf(a);
|
|
4969
|
+
var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks;
|
|
4962
4970
|
if (r < i)
|
|
4963
4971
|
return null;
|
|
4964
4972
|
var c = null;
|
|
4965
|
-
if ("function" == typeof
|
|
4966
|
-
var u = DayPilot.indexOf(
|
|
4967
|
-
c =
|
|
4973
|
+
if ("function" == typeof s.onBeforeEventRender) {
|
|
4974
|
+
var u = DayPilot.indexOf(s.events.list, e);
|
|
4975
|
+
c = s.yb.events[u];
|
|
4968
4976
|
}
|
|
4969
|
-
if (t.id !== e.resource || (r <= o || i >=
|
|
4977
|
+
if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
|
|
4970
4978
|
return null;
|
|
4971
|
-
var h = new DayPilot.Event(e,
|
|
4972
|
-
h.part.dayIndex =
|
|
4973
|
-
var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end
|
|
4979
|
+
var h = new DayPilot.Event(e, s);
|
|
4980
|
+
h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days);
|
|
4981
|
+
var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end);
|
|
4974
4982
|
h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1)));
|
|
4975
4983
|
var p = f.left, m = v.left;
|
|
4976
|
-
if (
|
|
4984
|
+
if (l.eg(r - i)) {
|
|
4977
4985
|
var g = f.boxLeft, y = v.boxRight;
|
|
4978
4986
|
h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
|
|
4979
4987
|
}
|
|
4980
4988
|
else
|
|
4981
|
-
h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p
|
|
4982
|
-
var b =
|
|
4989
|
+
h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1);
|
|
4990
|
+
var b = s.eventMinWidth;
|
|
4983
4991
|
return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h;
|
|
4984
4992
|
}, this.Ab = function (e, t) {
|
|
4985
4993
|
if (!(e && t && e.start && t.start))
|
|
@@ -4987,23 +4995,23 @@ var DayPilot = { Global: {} };
|
|
|
4987
4995
|
var n = e.start().ticks - t.start().ticks;
|
|
4988
4996
|
return 0 !== n ? n : t.end().ticks - e.end().ticks;
|
|
4989
4997
|
}, this.rows = {}, this.rows.all = function () {
|
|
4990
|
-
for (var e = [], t = 0; t <
|
|
4991
|
-
var n =
|
|
4998
|
+
for (var e = [], t = 0; t < s.rowlist.length; t++) {
|
|
4999
|
+
var n = s.Ag(s.rowlist[t]);
|
|
4992
5000
|
e.push(n);
|
|
4993
5001
|
}
|
|
4994
5002
|
return e;
|
|
4995
|
-
}, this.rows.each = function (e) {
|
|
5003
|
+
}, this.rows.each = function (e) { s.rows.all().forEach(e); }, this.rows.forEach = function (e) { s.rows.all().forEach(e); }, this.rows.find = function (e, t) {
|
|
4996
5004
|
if ("string" == typeof e || "number" == typeof e || !e && t) {
|
|
4997
|
-
var n =
|
|
4998
|
-
e || (n =
|
|
5005
|
+
var n = s.Eg(e);
|
|
5006
|
+
e || (n = s.rowlist);
|
|
4999
5007
|
var a = null;
|
|
5000
|
-
return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a,
|
|
5008
|
+
return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, s) : null;
|
|
5001
5009
|
}
|
|
5002
5010
|
if ("function" != typeof e)
|
|
5003
5011
|
throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected");
|
|
5004
|
-
var i = t || 0, r =
|
|
5012
|
+
var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Ag(t)); });
|
|
5005
5013
|
if (r)
|
|
5006
|
-
return
|
|
5014
|
+
return s.Ag(r);
|
|
5007
5015
|
}, this.rows.load = function (e, t, n) {
|
|
5008
5016
|
if (!e)
|
|
5009
5017
|
throw new DayPilot.Exception("rows.load(): 'url' parameter required");
|
|
@@ -5020,32 +5028,32 @@ var DayPilot = { Global: {} };
|
|
|
5020
5028
|
var o = {};
|
|
5021
5029
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
|
|
5022
5030
|
return;
|
|
5023
|
-
|
|
5031
|
+
s.resources = o.data, s.Ma && s.update();
|
|
5024
5032
|
}
|
|
5025
5033
|
};
|
|
5026
|
-
|
|
5034
|
+
s.rowsLoadMethod && "POST" === s.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a });
|
|
5027
5035
|
}, this.rows.remove = function (e) {
|
|
5028
5036
|
if ("number" == typeof e || "string" == typeof e) {
|
|
5029
|
-
var t =
|
|
5037
|
+
var t = s.rows.find(e);
|
|
5030
5038
|
if (!t)
|
|
5031
5039
|
throw new DayPilot.Exception("The row to be removed was not found");
|
|
5032
|
-
return void
|
|
5040
|
+
return void s.rows.remove(t);
|
|
5033
5041
|
}
|
|
5034
|
-
var n = e.$.row.resource, a = DayPilot.indexOf(
|
|
5035
|
-
|
|
5036
|
-
}, this.rows.add = function (e) {
|
|
5042
|
+
var n = e.$.row.resource, a = DayPilot.indexOf(s.resources, n);
|
|
5043
|
+
s.resources.splice(a, 1), s.update();
|
|
5044
|
+
}, this.rows.add = function (e) { s.resources.push(e), s.rb(); }, this.rows.update = function (e) {
|
|
5037
5045
|
if (!(e instanceof DayPilot.Row || "object" == typeof e))
|
|
5038
5046
|
throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object.");
|
|
5039
5047
|
if (!(e instanceof DayPilot.Row)) {
|
|
5040
5048
|
var t = e;
|
|
5041
|
-
if (e =
|
|
5049
|
+
if (e = s.rows.find(t.id), !e)
|
|
5042
5050
|
return;
|
|
5043
5051
|
e.data = t;
|
|
5044
5052
|
}
|
|
5045
|
-
var n = e.index, a =
|
|
5046
|
-
|
|
5053
|
+
var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Hg(r), l = s.Ig(o);
|
|
5054
|
+
l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Of(l.index), s.Jg(l), s.Fg(l), s.if(l.index), s.af(), s.df();
|
|
5047
5055
|
}, this.Jg = function (e) {
|
|
5048
|
-
for (var t =
|
|
5056
|
+
for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
|
|
5049
5057
|
var r = t[i];
|
|
5050
5058
|
if (r) {
|
|
5051
5059
|
if (r instanceof DayPilot.Event)
|
|
@@ -5061,15 +5069,15 @@ var DayPilot = { Global: {} };
|
|
|
5061
5069
|
var e = this.resources;
|
|
5062
5070
|
if ({}.i = 0, null != e && !DayPilot.isArray(e))
|
|
5063
5071
|
throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object");
|
|
5064
|
-
e = e || [],
|
|
5065
|
-
}, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(
|
|
5072
|
+
e = e || [], s.rowlist = [], this.Kg(e);
|
|
5073
|
+
}, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Mf(); }, this.Ig = function (e) {
|
|
5066
5074
|
var t = {};
|
|
5067
|
-
return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html =
|
|
5075
|
+
return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s._a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.ye, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () {
|
|
5068
5076
|
var e = t;
|
|
5069
5077
|
e.events = [], e.events.forRange = function (t, n) {
|
|
5070
|
-
t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) :
|
|
5078
|
+
t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days);
|
|
5071
5079
|
for (var a = [], i = 0; i < e.events.length; i++) {
|
|
5072
|
-
var r = e.events[i], o =
|
|
5080
|
+
var r = e.events[i], o = s.qf(r.end());
|
|
5073
5081
|
DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
|
|
5074
5082
|
}
|
|
5075
5083
|
return a;
|
|
@@ -5097,11 +5105,11 @@ var DayPilot = { Global: {} };
|
|
|
5097
5105
|
}, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t;
|
|
5098
5106
|
}, this.Kg = function (e) {
|
|
5099
5107
|
if (e)
|
|
5100
|
-
for (var t =
|
|
5108
|
+
for (var t = s.rowlist, n = 0; n < e.length; n++)
|
|
5101
5109
|
if (e[n]) {
|
|
5102
5110
|
var a = {};
|
|
5103
5111
|
a.index = n;
|
|
5104
|
-
var i = this.Hg(e[n], a), r =
|
|
5112
|
+
var i = this.Hg(e[n], a), r = s.Ig(i, parent);
|
|
5105
5113
|
r.index = n, t.push(r);
|
|
5106
5114
|
}
|
|
5107
5115
|
}, this.yg = function (e) { var t = {}; return t.row = this.Ag(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Hg = function (e, t) {
|
|
@@ -5110,79 +5118,79 @@ var DayPilot = { Global: {} };
|
|
|
5110
5118
|
n[a] = t[a];
|
|
5111
5119
|
for (var i in e)
|
|
5112
5120
|
n[i] = e[i];
|
|
5113
|
-
return n.html =
|
|
5114
|
-
}, this.Mg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart =
|
|
5121
|
+
return n.html = s._a(e.name, e.html), n.ye = e, n;
|
|
5122
|
+
}, this.Mg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Ng, this.nav.top.ontouchmove = d.Og, this.nav.top.ontouchend = d.Pg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.fb()), t.appendChild(n), t.appendChild(this.Qg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Ce() + this.Ya() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Ce() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Rg()), i.appendChild(s.Sg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Ce(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Ug = function () {
|
|
5115
5123
|
var e = this.rowHeaderWidth, t = this.divHeader;
|
|
5116
5124
|
t.style.width = e + "px";
|
|
5117
|
-
for (var n =
|
|
5125
|
+
for (var n = s.qg(), a = n.start; a < n.end; a++) {
|
|
5118
5126
|
var i = t.rows[a];
|
|
5119
5127
|
if (i) {
|
|
5120
|
-
var r =
|
|
5128
|
+
var r = s.rowHeaderWidth;
|
|
5121
5129
|
i.style.width = r + "px";
|
|
5122
5130
|
i.firstChild.style.width = r + "px";
|
|
5123
5131
|
}
|
|
5124
5132
|
}
|
|
5125
|
-
|
|
5126
|
-
}, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t =
|
|
5127
|
-
var e =
|
|
5128
|
-
e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className =
|
|
5129
|
-
var
|
|
5130
|
-
|
|
5131
|
-
if (
|
|
5132
|
-
var
|
|
5133
|
-
|
|
5133
|
+
s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px");
|
|
5134
|
+
}, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ce() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = " ", this.divCorner = n, t.appendChild(n), t; }, this.Ce = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Vg = null, this.Qg = function () {
|
|
5135
|
+
var e = r();
|
|
5136
|
+
e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll");
|
|
5137
|
+
var n = s.R.xg();
|
|
5138
|
+
n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Wg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () {
|
|
5139
|
+
if (s.Vg && clearTimeout(s.Vg), n) {
|
|
5140
|
+
var a = function () { var t = s.Xg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
|
|
5141
|
+
DayPilot.browser.ios ? t.Wg && (s.Vg = setTimeout(a, 10)) : s.Vg = setTimeout(a, 10);
|
|
5134
5142
|
}
|
|
5135
5143
|
else
|
|
5136
|
-
|
|
5144
|
+
s.Vg = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500);
|
|
5137
5145
|
}, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows");
|
|
5138
|
-
var
|
|
5139
|
-
return this.divHeader =
|
|
5146
|
+
var a = r();
|
|
5147
|
+
return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.De = e, e;
|
|
5140
5148
|
}, this.Yg = null, this.Zg = null, this.$g = function () {
|
|
5141
|
-
var e = function () {
|
|
5142
|
-
var t =
|
|
5149
|
+
var e = function () { s._g(), s.ef(); }, t = function () {
|
|
5150
|
+
var t = s.nav.top;
|
|
5143
5151
|
if (t) {
|
|
5144
|
-
if (!
|
|
5145
|
-
return
|
|
5146
|
-
|
|
5152
|
+
if (!s.Yg)
|
|
5153
|
+
return s.Yg = {}, void (s.Yg.width = t.offsetWidth);
|
|
5154
|
+
s.Yg.width !== t.offsetWidth && (s.Yg.width = t.offsetWidth, e());
|
|
5147
5155
|
}
|
|
5148
5156
|
};
|
|
5149
|
-
if (!
|
|
5157
|
+
if (!s.Zg) {
|
|
5150
5158
|
var n = new ResizeObserver(DayPilot.debounce(t, 100));
|
|
5151
|
-
n.observe(
|
|
5159
|
+
n.observe(s.nav.top), s.Zg = n;
|
|
5152
5160
|
}
|
|
5153
|
-
}, this._g = function () {
|
|
5154
|
-
var e =
|
|
5155
|
-
e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Ce() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.he =
|
|
5161
|
+
}, this._g = function () { s.Q || (s.ma(), s.ah(), s.yb.drawArea = null); }, this.ah = function () { var e = s.yf; s.clearSelection(), s.yf = e, s.zf(e, { "justDraw": !0 }); }, this.Rg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ce() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Xg(), "Max" === t && e > s.height ? s.height : e); }, this.Xg = function () { var e; return this.ae !== -1 ? (e = this.ae, this.ae > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Sg = function () {
|
|
5162
|
+
var e = r();
|
|
5163
|
+
e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Ce() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.he = r();
|
|
5156
5164
|
var t = this.he;
|
|
5157
5165
|
t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
|
|
5158
5166
|
var n = this.Ae();
|
|
5159
|
-
return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch =
|
|
5160
|
-
|
|
5161
|
-
}, this.qb = function () {
|
|
5167
|
+
return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh,
|
|
5168
|
+
t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
|
|
5169
|
+
}, this.qb = function () { t.fh || (t.fh = !0, DayPilot.re(document, "mouseup", t._d), DayPilot.reNonPassive(document, "touchmove", t.gh), DayPilot.re(document, "touchend", t.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, s.jh = this.nav.scroll.scrollLeft, s.kh = this.nav.scroll.scrollTop, this.divNorth && (s.lh = this.divNorth.clientWidth); }, this.mh = {}, this.mh.step = 300, this.mh.delay = 10, this.mh.mode = "display", this.mh.layers = !1, this.Gg = function (e) {
|
|
5162
5170
|
for (var t = 0, n = 0; n < e.lines.length; n++) {
|
|
5163
5171
|
for (var a = e.lines[n], i = 0; i < a.length; i++) {
|
|
5164
5172
|
var r = a[i];
|
|
5165
|
-
r.part.line = n, r.part.top = t +
|
|
5173
|
+
r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
|
|
5166
5174
|
}
|
|
5167
|
-
t +=
|
|
5175
|
+
t += s.eventHeight;
|
|
5168
5176
|
}
|
|
5169
5177
|
}, this.Ue = null, this.na = function (e) {
|
|
5170
|
-
if (!
|
|
5178
|
+
if (!s.Q) {
|
|
5171
5179
|
var t = this.mh.step;
|
|
5172
5180
|
"display" === this.mh.mode ? this.divEvents.style.display = "none" : "visibility" === this.mh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
|
|
5173
5181
|
var n = "Progressive" === this.dynamicEventRendering, a = this.le(), i = a.pixels.top, r = a.pixels.bottom;
|
|
5174
|
-
|
|
5175
|
-
|
|
5182
|
+
s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) {
|
|
5183
|
+
s.Gg(n);
|
|
5176
5184
|
for (var a = 0; a < n.lines.length; a++)
|
|
5177
5185
|
for (var i = n.lines[a], r = 0; r < i.length; r++) {
|
|
5178
|
-
var o = i[r],
|
|
5179
|
-
if (e &&
|
|
5180
|
-
return
|
|
5186
|
+
var o = i[r], l = s.Va(o);
|
|
5187
|
+
if (e && l && (t--, t <= 0))
|
|
5188
|
+
return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Ue = setTimeout(function () { s.na(e); }, s.mh.delay));
|
|
5181
5189
|
}
|
|
5182
5190
|
}), this.divEvents.style.display = "", this.pe();
|
|
5183
5191
|
}
|
|
5184
5192
|
}, this.nf = function (e) {
|
|
5185
|
-
var t =
|
|
5193
|
+
var t = s.rowlist[e];
|
|
5186
5194
|
this.Gg(t);
|
|
5187
5195
|
for (var n = 0; n < t.lines.length; n++)
|
|
5188
5196
|
for (var a = t.lines[n], i = 0; i < a.length; i++) {
|
|
@@ -5205,19 +5213,29 @@ var DayPilot = { Global: {} };
|
|
|
5205
5213
|
for (var a = n.length - 1; a >= 0; a--)
|
|
5206
5214
|
this.elements.events.splice(n[a], 1);
|
|
5207
5215
|
}
|
|
5208
|
-
}, this.Pa = function (e) {
|
|
5216
|
+
}, this.Pa = function (e) {
|
|
5217
|
+
var t = e.domArgs;
|
|
5218
|
+
if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
|
|
5219
|
+
var n = t && t.Qa;
|
|
5220
|
+
if (n) {
|
|
5221
|
+
var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
|
|
5222
|
+
a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null);
|
|
5226
|
+
}, this.oh = function () {
|
|
5209
5227
|
if ("Progressive" === this.dynamicEventRendering) {
|
|
5210
|
-
if (
|
|
5211
|
-
var e =
|
|
5228
|
+
if (s.dynamicEventRenderingCacheSweeping) {
|
|
5229
|
+
var e = s.dynamicEventRenderingCacheSize || 0;
|
|
5212
5230
|
this.divEvents.style.display = "none";
|
|
5213
5231
|
for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
|
|
5214
5232
|
var i = this.elements.events[a];
|
|
5215
|
-
this.
|
|
5233
|
+
this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
|
|
5216
5234
|
}
|
|
5217
5235
|
this.elements.events = t, this.divEvents.style.display = "";
|
|
5218
5236
|
}
|
|
5219
5237
|
}
|
|
5220
|
-
}, this.
|
|
5238
|
+
}, this.qh = function (e) {
|
|
5221
5239
|
for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
|
|
5222
5240
|
var i = this.elements.cells[a];
|
|
5223
5241
|
t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.gb(i));
|
|
@@ -5225,9 +5243,18 @@ var DayPilot = { Global: {} };
|
|
|
5225
5243
|
}, this.gb = function (e) {
|
|
5226
5244
|
if (e && e.coords) {
|
|
5227
5245
|
var t = e.coords.x, n = e.coords.y;
|
|
5228
|
-
|
|
5246
|
+
!function () {
|
|
5247
|
+
var t = e.domArgs;
|
|
5248
|
+
if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
|
|
5249
|
+
var n = t && t.Qa;
|
|
5250
|
+
if (n) {
|
|
5251
|
+
var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
|
|
5252
|
+
a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
}(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.yb.cells[t + "_" + n] = null;
|
|
5229
5256
|
}
|
|
5230
|
-
}, this.
|
|
5257
|
+
}, this.rh = function () {
|
|
5231
5258
|
var e = "Progressive" === this.dynamicEventRendering;
|
|
5232
5259
|
if (!this.nav.scroll)
|
|
5233
5260
|
return !1;
|
|
@@ -5237,196 +5264,221 @@ var DayPilot = { Global: {} };
|
|
|
5237
5264
|
for (var s = 0; s < i.lines.length; s++)
|
|
5238
5265
|
for (var l = i.lines[s], d = 0; d < l.length; d++) {
|
|
5239
5266
|
var c = l[d];
|
|
5240
|
-
if (this.
|
|
5267
|
+
if (this.uh(c))
|
|
5241
5268
|
return !0;
|
|
5242
5269
|
}
|
|
5243
5270
|
}
|
|
5244
5271
|
return !1;
|
|
5245
|
-
}, this.
|
|
5272
|
+
}, this.uh = function (e) {
|
|
5246
5273
|
if (e.rendered)
|
|
5247
5274
|
return !1;
|
|
5248
5275
|
var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width;
|
|
5249
5276
|
return !t || !(a <= i || n >= r);
|
|
5250
|
-
}, this.
|
|
5277
|
+
}, this.ph = function (e) {
|
|
5251
5278
|
if (!e.rendered)
|
|
5252
5279
|
return !0;
|
|
5253
|
-
var t = this.le(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left,
|
|
5254
|
-
return r <= o || i >=
|
|
5280
|
+
var t = this.le(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight;
|
|
5281
|
+
return r <= o || i >= l || (a <= d || n >= c);
|
|
5255
5282
|
}, this.Va = function (e, t) {
|
|
5256
5283
|
t = t || {};
|
|
5257
5284
|
var n = t.forced;
|
|
5258
5285
|
if (e.rendered)
|
|
5259
5286
|
return !1;
|
|
5260
|
-
var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex,
|
|
5287
|
+
var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.le(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w;
|
|
5261
5288
|
if (!n && a && (x || _))
|
|
5262
5289
|
return !1;
|
|
5263
|
-
var C = e.part.width, k =
|
|
5290
|
+
var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius;
|
|
5264
5291
|
"number" == typeof S && (S += "px");
|
|
5265
|
-
var M = D.padding ||
|
|
5292
|
+
var M = D.padding || s.eventPadding;
|
|
5266
5293
|
"number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k);
|
|
5267
|
-
var T =
|
|
5268
|
-
T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px",
|
|
5269
|
-
"number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.
|
|
5270
|
-
var A =
|
|
5271
|
-
A.className =
|
|
5294
|
+
var T = r();
|
|
5295
|
+
T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass);
|
|
5296
|
+
"number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.vh, T.onmousedown = this.wh, T.onmouseup = this.xh, T.ontouchstart = d.yh, T.ontouchmove = d.zh, T.ontouchend = d.Ah, e.client.clickEnabled() && (T.onclick = this.Ne), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1");
|
|
5297
|
+
var A = r();
|
|
5298
|
+
A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A);
|
|
5272
5299
|
var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime();
|
|
5273
5300
|
if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
|
|
5274
|
-
var N = 100 * e.part.barLeft / C,
|
|
5275
|
-
|
|
5276
|
-
var
|
|
5277
|
-
|
|
5278
|
-
}
|
|
5279
|
-
T.row = i, T.event = e,
|
|
5280
|
-
|
|
5301
|
+
var N = 100 * e.part.barLeft / C, R = Math.ceil(100 * e.part.barWidth / C), I = r();
|
|
5302
|
+
I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
|
|
5303
|
+
var L = r();
|
|
5304
|
+
L.className = this.L("_event_bar_inner"), L.style.left = N + "%", 0 < R && R <= 1 ? L.style.width = "1px" : L.style.width = R + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
|
|
5305
|
+
}
|
|
5306
|
+
T.row = i, T.event = e, function () {
|
|
5307
|
+
if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
|
|
5308
|
+
return void s.Bh(A, D.text, D.html);
|
|
5309
|
+
var t = {};
|
|
5310
|
+
if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
|
|
5311
|
+
var n = A;
|
|
5312
|
+
if (n) {
|
|
5313
|
+
t.Qa = n;
|
|
5314
|
+
var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
|
|
5315
|
+
if (a) {
|
|
5316
|
+
if (!s.cg.reactDOM)
|
|
5317
|
+
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
5318
|
+
s.cg.Vc(t.element, n);
|
|
5319
|
+
}
|
|
5320
|
+
else if (i) {
|
|
5321
|
+
if (!s.Sa.Ra)
|
|
5322
|
+
throw new DayPilot.Exception("Can't reach Vue");
|
|
5323
|
+
s.Sa.Ta = !0, s.Sa.Wa(t.element, n), s.Sa.Ta = !1;
|
|
5324
|
+
}
|
|
5325
|
+
else
|
|
5326
|
+
n.appendChild(t.element);
|
|
5327
|
+
}
|
|
5328
|
+
}
|
|
5329
|
+
else
|
|
5330
|
+
A.innerHTML = e.client.innerHTML();
|
|
5331
|
+
}();
|
|
5332
|
+
var P = [];
|
|
5281
5333
|
return function () {
|
|
5282
|
-
if ("Disabled" !==
|
|
5283
|
-
var e =
|
|
5284
|
-
|
|
5334
|
+
if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
|
|
5335
|
+
var e = s.durationBarVisible ? s.durationBarHeight : 0;
|
|
5336
|
+
P.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
|
|
5285
5337
|
}
|
|
5286
|
-
}(), D.areas && (
|
|
5287
|
-
}, this._a = function (e, t) { return
|
|
5338
|
+
}(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0;
|
|
5339
|
+
}, this._a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Bh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.of = function () {
|
|
5288
5340
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
5289
|
-
var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i =
|
|
5290
|
-
n.part.top + d >
|
|
5341
|
+
var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
|
|
5342
|
+
n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
|
|
5291
5343
|
}
|
|
5292
|
-
}, this.
|
|
5344
|
+
}, this.Ch = function (e) {
|
|
5293
5345
|
if (!e)
|
|
5294
5346
|
return null;
|
|
5295
|
-
for (var t = 0; t <
|
|
5296
|
-
var n =
|
|
5347
|
+
for (var t = 0; t < s.elements.events.length; t++) {
|
|
5348
|
+
var n = s.elements.events[t];
|
|
5297
5349
|
if (n.event === e || n.event.data === e.data)
|
|
5298
5350
|
return n;
|
|
5299
5351
|
}
|
|
5300
5352
|
return null;
|
|
5301
5353
|
}, this.Lf = function (e) {
|
|
5302
|
-
var t =
|
|
5354
|
+
var t = s.events.Qf(e.data);
|
|
5303
5355
|
if (!t)
|
|
5304
5356
|
return null;
|
|
5305
|
-
var n =
|
|
5306
|
-
return
|
|
5307
|
-
}, this.
|
|
5357
|
+
var n = s.rowlist[t.part.dayIndex];
|
|
5358
|
+
return s.Gg(n), s.Va(t, { "forced": !0 }), s.Ch(t);
|
|
5359
|
+
}, this.vh = function (e) {
|
|
5308
5360
|
for (var t = e.currentTarget; t && !t.event;)
|
|
5309
5361
|
t = t.parentNode;
|
|
5310
|
-
|
|
5311
|
-
}, this.Pe = {}, this.
|
|
5312
|
-
|
|
5362
|
+
s.Dh(t, e), s.Re(e);
|
|
5363
|
+
}, this.Pe = {}, this.wh = function (e) { s.Re(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Oe = !0, t.gg = this, t.kg = this.event, t.Eh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Fh(this, e)); }, this.xh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Fh = function (e, t) { var n = s.Pe; s.Re(t), n.Gh = !0, n.Pe = e, n.ng = e.event, n.Eh = DayPilot.mc(t), n.Hh = DayPilot.mo3(e, t).x, n.fg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
|
|
5364
|
+
d.Hf = [];
|
|
5365
|
+
d.relativeCoords = function (e) { return d.Ih(e); }, d.startResizing = function (e, t) { d.Jh(e, t); }, d.startMoving = function (e, t) { d.Fh(e, t); }, d.yh = function (t) {
|
|
5313
5366
|
if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
5314
|
-
t.stopPropagation(),
|
|
5367
|
+
t.stopPropagation(), d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
5315
5368
|
var n = t.currentTarget;
|
|
5316
|
-
|
|
5317
|
-
var a =
|
|
5318
|
-
|
|
5369
|
+
s.coords = d.Ih(t);
|
|
5370
|
+
var a = s.tapAndHoldTimeout;
|
|
5371
|
+
d.Hf.push(setTimeout(function () {
|
|
5319
5372
|
DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault();
|
|
5320
5373
|
var a = n.event;
|
|
5321
|
-
switch (
|
|
5374
|
+
switch (s.eventTapAndHoldHandling) {
|
|
5322
5375
|
case "Move": if (a.client.moveEnabled()) {
|
|
5323
5376
|
var i = e(t);
|
|
5324
|
-
|
|
5377
|
+
d.Fh(n, i);
|
|
5325
5378
|
}
|
|
5326
5379
|
}
|
|
5327
5380
|
}, a));
|
|
5328
5381
|
}
|
|
5329
|
-
};
|
|
5330
|
-
c.yh = function () { c.Gh(), DayPilot.Global.touch.start = !1; }, c.zh = function (e) {
|
|
5382
|
+
}, d.zh = function () { d.Kh(), DayPilot.Global.touch.start = !1; }, d.Ah = function (e) {
|
|
5331
5383
|
if (!DayPilot.Util.isMouseEvent(e)) {
|
|
5332
|
-
if (
|
|
5384
|
+
if (d.Kh(), DayPilot.Global.touch.start) {
|
|
5333
5385
|
DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
|
|
5334
5386
|
var t = e.currentTarget;
|
|
5335
|
-
setTimeout(function () {
|
|
5387
|
+
setTimeout(function () { s.Qe(t, e); });
|
|
5336
5388
|
}
|
|
5337
5389
|
setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
|
|
5338
5390
|
}
|
|
5339
|
-
},
|
|
5340
|
-
if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" ===
|
|
5341
|
-
|
|
5342
|
-
var t =
|
|
5343
|
-
|
|
5344
|
-
|
|
5391
|
+
}, d.Ng = function (e) {
|
|
5392
|
+
if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
|
|
5393
|
+
d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
5394
|
+
var t = s.tapAndHoldTimeout;
|
|
5395
|
+
d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Ih(e), d.Lh = s.Mh(); }, t));
|
|
5396
|
+
s.coords = d.Ih(e);
|
|
5345
5397
|
}
|
|
5346
|
-
},
|
|
5347
|
-
if (
|
|
5348
|
-
return e.preventDefault(), void
|
|
5398
|
+
}, d.Og = function (e) {
|
|
5399
|
+
if (d.Kh(), DayPilot.Global.touch.start = !1, t.gg)
|
|
5400
|
+
return e.preventDefault(), void d.Nh();
|
|
5349
5401
|
if (DayPilot.Global.touch.active) {
|
|
5350
|
-
if (e.preventDefault(),
|
|
5351
|
-
return void
|
|
5352
|
-
if (
|
|
5353
|
-
var
|
|
5354
|
-
|
|
5402
|
+
if (e.preventDefault(), s.coords = d.Ih(e), t.Pe)
|
|
5403
|
+
return void d.Oh();
|
|
5404
|
+
if (d.Lh) {
|
|
5405
|
+
var n = d.Lh;
|
|
5406
|
+
n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.zf(n);
|
|
5355
5407
|
}
|
|
5356
5408
|
}
|
|
5357
|
-
},
|
|
5358
|
-
|
|
5409
|
+
}, d.debug = function () { }, d.Pg = function (e) {
|
|
5410
|
+
d.Kh();
|
|
5359
5411
|
if (DayPilot.Global.touch.active) {
|
|
5360
|
-
if (
|
|
5412
|
+
if (t.Pe) {
|
|
5361
5413
|
e.preventDefault();
|
|
5362
|
-
var
|
|
5363
|
-
if (
|
|
5414
|
+
var n = t.ng;
|
|
5415
|
+
if (s !== t.og.calendar)
|
|
5364
5416
|
return;
|
|
5365
|
-
var a =
|
|
5366
|
-
DayPilot.Util.removeClass(
|
|
5417
|
+
var a = t.og.start, r = t.og.end, o = t.og.row.id;
|
|
5418
|
+
DayPilot.Util.removeClass(t.Pe, s.L("_event_moving_source")), DayPilot.de(t.og), t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, t.og = null, s.M(n, a, r, o);
|
|
5367
5419
|
}
|
|
5368
|
-
if (
|
|
5369
|
-
var
|
|
5370
|
-
|
|
5371
|
-
var
|
|
5372
|
-
|
|
5420
|
+
if (d.Lh) {
|
|
5421
|
+
var l = d.Lh;
|
|
5422
|
+
d.Lh = null;
|
|
5423
|
+
var c = s.elements.range2;
|
|
5424
|
+
c && c.overlapping ? s.clearSelection() : s.vf(l);
|
|
5373
5425
|
}
|
|
5374
5426
|
}
|
|
5375
5427
|
else if (DayPilot.Global.touch.start) {
|
|
5376
|
-
if (
|
|
5428
|
+
if (s.coords.x < s.getScrollX())
|
|
5377
5429
|
return;
|
|
5378
|
-
var
|
|
5379
|
-
|
|
5380
|
-
var
|
|
5381
|
-
|
|
5430
|
+
var l = s.Mh();
|
|
5431
|
+
s.zf(l);
|
|
5432
|
+
var c = s.elements.range2;
|
|
5433
|
+
c && c.overlapping ? s.clearSelection() : s.vf(l);
|
|
5382
5434
|
}
|
|
5383
5435
|
setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
|
|
5384
|
-
},
|
|
5385
|
-
for (var e = 0; e <
|
|
5386
|
-
clearTimeout(
|
|
5387
|
-
|
|
5388
|
-
},
|
|
5389
|
-
if (!
|
|
5390
|
-
var e =
|
|
5391
|
-
|
|
5392
|
-
}
|
|
5393
|
-
|
|
5394
|
-
},
|
|
5395
|
-
if (!
|
|
5396
|
-
var e =
|
|
5397
|
-
|
|
5398
|
-
}
|
|
5399
|
-
|
|
5400
|
-
}, this.
|
|
5436
|
+
}, d.Kh = function () {
|
|
5437
|
+
for (var e = 0; e < d.Hf.length; e++)
|
|
5438
|
+
clearTimeout(d.Hf[e]);
|
|
5439
|
+
d.Hf = [];
|
|
5440
|
+
}, d.Ih = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.he, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Fh = function (e, n) { t.Pe = e, t.ng = e.event, t.Eh = n; var a = DayPilot.abs(e); t.Hh = n.x - a.x, t.fg = s.getDate(s.coords.x, !0), t.og = s.ca(e), s.mg(); }, d.Jh = function (e, n) { t.gg = e, t.kg = e.event, t.gg.dpBorder = n, t.jg || (t.jg = s.ca(e)), s.lg(); }, d.Nh = function () {
|
|
5441
|
+
if (!t.jg) {
|
|
5442
|
+
var e = t.gg;
|
|
5443
|
+
t.jg = s.ca(e);
|
|
5444
|
+
}
|
|
5445
|
+
s.lg();
|
|
5446
|
+
}, d.Oh = function () {
|
|
5447
|
+
if (!t.og) {
|
|
5448
|
+
var e = t.Pe;
|
|
5449
|
+
t.og = s.ca(e);
|
|
5450
|
+
}
|
|
5451
|
+
t.og.calendar.mg();
|
|
5452
|
+
}, this.Dh = function (e, n) {
|
|
5401
5453
|
var a = this.eventResizeMargin, i = e;
|
|
5402
|
-
if ("undefined" != typeof
|
|
5403
|
-
var r = DayPilot.mo3(e,
|
|
5404
|
-
if (r && (
|
|
5405
|
-
var o = i.event.part.start.toString() === i.event.start().toString(),
|
|
5406
|
-
r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ?
|
|
5454
|
+
if ("undefined" != typeof t) {
|
|
5455
|
+
var r = DayPilot.mo3(e, n);
|
|
5456
|
+
if (r && (s.eventOffset = r, !t.gg && !t.Pe)) {
|
|
5457
|
+
var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
|
|
5458
|
+
r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.gg || t.Pe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
|
|
5407
5459
|
}
|
|
5408
5460
|
}
|
|
5409
|
-
}, this.Af = function () { var e =
|
|
5410
|
-
if (e = e ||
|
|
5461
|
+
}, this.Af = function () { var e = s.Me(); return s.days * (1440 / e); }, this.wf = function (e) {
|
|
5462
|
+
if (e = e || t.Lh || s.yf, !e)
|
|
5411
5463
|
return null;
|
|
5412
|
-
var
|
|
5413
|
-
if (!
|
|
5464
|
+
var n = s.rowlist[e.start.y];
|
|
5465
|
+
if (!n)
|
|
5414
5466
|
return null;
|
|
5415
|
-
var a, i, r = e, o = r.end.time > r.start.time,
|
|
5416
|
-
u ? (a =
|
|
5417
|
-
var h = new DayPilot.Selection(a, i,
|
|
5467
|
+
var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid;
|
|
5468
|
+
u ? (a = s.Je(d).start, i = s.Je(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time);
|
|
5469
|
+
var h = new DayPilot.Selection(a, i, l, s);
|
|
5418
5470
|
return h.allowed = !e.div || !e.div.overlapping, h;
|
|
5419
5471
|
}, this.Ze = function () {
|
|
5420
|
-
this.yb.timeHeader = {},
|
|
5421
|
-
var e =
|
|
5472
|
+
this.yb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []);
|
|
5473
|
+
var e = r();
|
|
5422
5474
|
e.style.position = "relative", this.nav.timeHeader = e;
|
|
5423
5475
|
for (var t = 0; t < this.timeHeader.length; t++)
|
|
5424
5476
|
for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
|
|
5425
|
-
this.
|
|
5477
|
+
this.Ph(a, t);
|
|
5426
5478
|
var i = this.divNorth;
|
|
5427
5479
|
1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e));
|
|
5428
|
-
var
|
|
5429
|
-
i.style.width =
|
|
5480
|
+
var o = this.Ae();
|
|
5481
|
+
i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px");
|
|
5430
5482
|
}, this.He = function (e, t) {
|
|
5431
5483
|
var n = null, a = this.R.Ge();
|
|
5432
5484
|
t = t || this.cellGroupBy;
|
|
@@ -5436,13 +5488,13 @@ var DayPilot = { Global: {} };
|
|
|
5436
5488
|
n = i.toString("m");
|
|
5437
5489
|
break;
|
|
5438
5490
|
case "Hour":
|
|
5439
|
-
n = "Clock12Hours" ===
|
|
5491
|
+
n = "Clock12Hours" === s.R.Qh() ? i.toString("h tt", a) : i.toString("H", a);
|
|
5440
5492
|
break;
|
|
5441
5493
|
case "Day":
|
|
5442
5494
|
n = i.toString(a.datePattern);
|
|
5443
5495
|
break;
|
|
5444
5496
|
case "Week":
|
|
5445
|
-
n = 1 ===
|
|
5497
|
+
n = 1 === l.ea() ? i.weekNumberISO() : i.weekNumber();
|
|
5446
5498
|
break;
|
|
5447
5499
|
case "Month":
|
|
5448
5500
|
n = i.toString("MMMM yyyy", a);
|
|
@@ -5458,13 +5510,13 @@ var DayPilot = { Global: {} };
|
|
|
5458
5510
|
break;
|
|
5459
5511
|
case "Cell":
|
|
5460
5512
|
var r = (e.end.ticks - e.start.ticks) / 6e4;
|
|
5461
|
-
n = this.
|
|
5513
|
+
n = this.Rh(i, r);
|
|
5462
5514
|
break;
|
|
5463
5515
|
default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
5464
5516
|
}
|
|
5465
5517
|
return n;
|
|
5466
|
-
}, this.
|
|
5467
|
-
var a, i =
|
|
5518
|
+
}, this.Rh = function (e, t) { var n = this.R.Ge(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Qh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Fe = function (e, t, n) {
|
|
5519
|
+
var a, i = s.startDate.addDays(s.days);
|
|
5468
5520
|
t = t || this.cellGroupBy;
|
|
5469
5521
|
var r = 60;
|
|
5470
5522
|
switch (t) {
|
|
@@ -5478,7 +5530,7 @@ var DayPilot = { Global: {} };
|
|
|
5478
5530
|
a = e.getDatePart().addDays(1);
|
|
5479
5531
|
break;
|
|
5480
5532
|
case "Week":
|
|
5481
|
-
for (a = e.getDatePart().addDays(1); a.dayOfWeek() !==
|
|
5533
|
+
for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== l.ea();)
|
|
5482
5534
|
a = a.addDays(1);
|
|
5483
5535
|
break;
|
|
5484
5536
|
case "Month":
|
|
@@ -5501,132 +5553,132 @@ var DayPilot = { Global: {} };
|
|
|
5501
5553
|
a = i;
|
|
5502
5554
|
break;
|
|
5503
5555
|
case "Cell":
|
|
5504
|
-
var
|
|
5505
|
-
|
|
5556
|
+
var d = this.Le(e);
|
|
5557
|
+
d.current && (a = d.current.end);
|
|
5506
5558
|
break;
|
|
5507
5559
|
default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
5508
5560
|
}
|
|
5509
5561
|
return a.getTime() > i.getTime() && (a = i), a;
|
|
5510
|
-
}, this.
|
|
5511
|
-
|
|
5512
|
-
var t =
|
|
5562
|
+
}, this.Ph = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Bg, u.oncontextmenu = this.Cg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s._a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ag = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.lf = !0), e.height = t; }), s.lf && (s.yb.drawArea = null); }, this.$e = function () {
|
|
5563
|
+
s.rowlist.forEach(function (e) {
|
|
5564
|
+
var t = s.divHeader;
|
|
5513
5565
|
if (t) {
|
|
5514
5566
|
var n = e.index;
|
|
5515
5567
|
if (t.rows[n]) {
|
|
5516
5568
|
var a = t.rows[n];
|
|
5517
|
-
|
|
5569
|
+
s.sg && (a.style.top = e.top + "px");
|
|
5518
5570
|
var i = e.height;
|
|
5519
5571
|
a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
|
|
5520
5572
|
}
|
|
5521
5573
|
}
|
|
5522
|
-
}),
|
|
5574
|
+
}), s.sg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.ae + "px");
|
|
5523
5575
|
}, this.bh = function (e) {
|
|
5524
5576
|
if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
|
|
5525
5577
|
return !1;
|
|
5526
|
-
if (
|
|
5578
|
+
if (s.Re(e), "Disabled" === s.timeRangeSelectedHandling)
|
|
5527
5579
|
return !1;
|
|
5528
|
-
var
|
|
5529
|
-
if (
|
|
5580
|
+
var n = DayPilot.Util.mouseButton(e);
|
|
5581
|
+
if (s.Sh())
|
|
5530
5582
|
return !1;
|
|
5531
|
-
if (
|
|
5583
|
+
if (n.middle || n.right)
|
|
5532
5584
|
return !1;
|
|
5533
|
-
if (
|
|
5585
|
+
if (s.Th(s.coords))
|
|
5534
5586
|
return !1;
|
|
5535
|
-
var a =
|
|
5536
|
-
return
|
|
5537
|
-
}, this.
|
|
5538
|
-
if (
|
|
5587
|
+
var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown";
|
|
5588
|
+
return s.Uh = a, t.Lh = s.Mh(), t.Lh && (t.Vh = s), !1;
|
|
5589
|
+
}, this.Mh = function () { var e = {}, t = s.Ie(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Gf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.zf(e), e; }, this.dh = function (e) {
|
|
5590
|
+
if (s.Pe = {}, s.yf) {
|
|
5539
5591
|
if (DayPilot.Util.mouseButton(e).left) {
|
|
5540
|
-
var
|
|
5541
|
-
if (
|
|
5592
|
+
var n = s.yf;
|
|
5593
|
+
if (s.Th(s.coords)) {
|
|
5542
5594
|
var a = function (e) {
|
|
5543
5595
|
return function () {
|
|
5544
|
-
|
|
5545
|
-
var
|
|
5546
|
-
if (
|
|
5596
|
+
t.Wh = null;
|
|
5597
|
+
var n = s.wf(e);
|
|
5598
|
+
if (n) {
|
|
5547
5599
|
var a = {};
|
|
5548
|
-
a.start =
|
|
5600
|
+
a.start = n.start, a.end = n.end, a.resource = n.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeClick && s.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof s.onTimeRangeClicked && s.onTimeRangeClicked(a);
|
|
5549
5601
|
}
|
|
5550
5602
|
};
|
|
5551
5603
|
};
|
|
5552
|
-
"Disabled" !==
|
|
5604
|
+
"Disabled" !== s.timeRangeClickHandling && a(n)();
|
|
5553
5605
|
}
|
|
5554
5606
|
}
|
|
5555
5607
|
}
|
|
5556
|
-
}, this.
|
|
5608
|
+
}, this.Sh = function () { return !!(t.gg || t.Pe || t.Lh) || !!s.Pe.Gh; }, this.dragInProgress = function () { return s.Sh(); }, this.Re = function (e) { var t = DayPilot.mo3(s.he, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ch = function (e) {
|
|
5557
5609
|
if (!DayPilot.Global.touch.active) {
|
|
5558
|
-
var
|
|
5559
|
-
if (
|
|
5560
|
-
DayPilot.distance(
|
|
5610
|
+
var n = DayPilot.mc(e);
|
|
5611
|
+
if (s.Re(e), s.Pe.Gh) {
|
|
5612
|
+
DayPilot.distance(s.Pe.Eh, n) > 2 && (DayPilot.Util.copyProps(s.Pe, t), i().style.cursor = "move", s.Pe = {});
|
|
5561
5613
|
}
|
|
5562
|
-
|
|
5614
|
+
t.gg && t.kg.calendar === s ? (t.gg.event || (t.gg.event = t.kg), s.Xh()) : t.ng ? s.Yh() : t.Lh && t.Lh.calendar === s && (t.Lh.moved = !0, s.Zh());
|
|
5563
5615
|
}
|
|
5564
|
-
}, this.
|
|
5565
|
-
if (!
|
|
5566
|
-
DayPilot.Util.addClass(
|
|
5567
|
-
var e =
|
|
5568
|
-
|
|
5616
|
+
}, this.Zh = function () { var e = t.Lh, n = s.Ie(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.zf(e); }, this.Xh = function () { t.jg || (t.jg = s.ca(t.gg)), s.lg(); }, this.Yh = function () {
|
|
5617
|
+
if (!t.og) {
|
|
5618
|
+
DayPilot.Util.addClass(t.Pe, s.L("_event_moving_source"));
|
|
5619
|
+
var e = t.ng;
|
|
5620
|
+
t.og = s.ca(e);
|
|
5569
5621
|
}
|
|
5570
|
-
|
|
5571
|
-
}, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.
|
|
5572
|
-
var t =
|
|
5622
|
+
s.mg();
|
|
5623
|
+
}, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) {
|
|
5624
|
+
var t = s.yf;
|
|
5573
5625
|
if (!t || !t.start || !t.end)
|
|
5574
5626
|
return !1;
|
|
5575
|
-
var n = this.Jf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top,
|
|
5576
|
-
return e.x >= i && e.x <= r && e.y >= o && e.y <=
|
|
5627
|
+
var n = this.Jf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom;
|
|
5628
|
+
return e.x >= i && e.x <= r && e.y >= o && e.y <= l;
|
|
5577
5629
|
}, this.zf = function (e) {
|
|
5578
|
-
function
|
|
5579
|
-
var t, n,
|
|
5630
|
+
function n(e) {
|
|
5631
|
+
var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time;
|
|
5580
5632
|
if (i || !h) {
|
|
5581
|
-
var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p =
|
|
5633
|
+
var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Je(f), m = s.Je(v);
|
|
5582
5634
|
t = p.left, n = m.left + m.width;
|
|
5583
5635
|
}
|
|
5584
5636
|
else
|
|
5585
|
-
c ? (
|
|
5586
|
-
var g = n - t, y =
|
|
5637
|
+
c ? (l = e.start.time, d = e.end.time) : (l = e.end.time, d = e.start.time), t = s.getPixels(l).left, n = s.getPixels(d).left;
|
|
5638
|
+
var g = n - t, y = s.elements.range2;
|
|
5587
5639
|
if (!y) {
|
|
5588
|
-
y =
|
|
5589
|
-
var b =
|
|
5590
|
-
b.className =
|
|
5640
|
+
y = r(), y.style.position = "absolute";
|
|
5641
|
+
var b = r();
|
|
5642
|
+
b.className = s.L("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
|
|
5591
5643
|
}
|
|
5592
|
-
return y.className =
|
|
5644
|
+
return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y;
|
|
5593
5645
|
}
|
|
5594
|
-
if (e = e ||
|
|
5595
|
-
var a =
|
|
5646
|
+
if (e = e || t.Lh) {
|
|
5647
|
+
var a = s.eventBorderRadius;
|
|
5596
5648
|
"number" == typeof a && (a += "px");
|
|
5597
|
-
var i =
|
|
5598
|
-
|
|
5649
|
+
var i = s.snapToGrid, o = s.rowlist;
|
|
5650
|
+
n(e);
|
|
5599
5651
|
}
|
|
5600
|
-
}, this
|
|
5601
|
-
if (!
|
|
5652
|
+
}, this.$h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () {
|
|
5653
|
+
if (!s.coords)
|
|
5602
5654
|
return null;
|
|
5603
5655
|
var e = {};
|
|
5604
|
-
e.x =
|
|
5605
|
-
var t =
|
|
5606
|
-
return e.row =
|
|
5656
|
+
e.x = s.coords.x, e.y = s.coords.y;
|
|
5657
|
+
var t = s.Gf(e.y, e.grid).element;
|
|
5658
|
+
return e.row = s.Ag(t), e.time = s.getDate(e.x, !0), e;
|
|
5607
5659
|
}, this.Hf = {}, this.Hf.na = null, this.Hf.drawCells = null, this.Hf.drawRows = null, this.Hf.click = null, this.Hf.resClick = [], this.Hf.updateFloats = null, this.ef = function () {
|
|
5608
|
-
if (!
|
|
5609
|
-
|
|
5610
|
-
var e =
|
|
5611
|
-
if (
|
|
5612
|
-
|
|
5660
|
+
if (!s.Q) {
|
|
5661
|
+
s.cf();
|
|
5662
|
+
var e = s.nav.scroll;
|
|
5663
|
+
if (s.jh = e.scrollLeft, s.kh = e.scrollTop, s.lh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.jh), DayPilot.browser.ios && t.Wg ? n() : s.divResScroll.scrollTop = s.kh, s.progressiveRowRendering && (s.Hf.drawRows && (clearTimeout(s.Hf.drawRows), s.Hf.drawRows = null), s.scrollDelayRows > 0 ? s.Hf.drawRows = setTimeout(function () { s.vg(); }, s.scrollDelayRows) : s.vg()), s.Hf.drawCells && (clearTimeout(s.Hf.drawCells), s.Hf.drawCells = null), s.scrollDelayCells > 0)
|
|
5664
|
+
s.Hf.drawCells = setTimeout(s._h(), s.scrollDelayCells);
|
|
5613
5665
|
else {
|
|
5614
|
-
|
|
5666
|
+
s._h()();
|
|
5615
5667
|
}
|
|
5616
|
-
|
|
5668
|
+
s.Hf.na && (clearTimeout(s.Hf.na), s.Hf.na = null), s.scrollDelayEvents > 0 ? s.Hf.na = setTimeout(s.ai(), s.scrollDelayEvents) : s.na(), s.Hf.updateFloats && (clearTimeout(s.Hf.updateFloats), s.Hf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Hf.updateFloats = setTimeout(function () { s.oe(); }, s.scrollDelayFloats) : s.oe(), s.onScrollCalled = !0;
|
|
5617
5669
|
}
|
|
5618
|
-
}, this.
|
|
5619
|
-
if (!
|
|
5670
|
+
}, this._h = function () { return function () { s && s.df(); }; }, this.ai = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.pe()); }; }, this.cf = function () { s.yb.drawArea = null; }, this.show = function () { s.visible = !0, s.be = !0, s.nav.top.style.display = "", s.u(), s._g(), s.ef(); }, this.hide = function () { s.visible = !1, s.be = !1, s.nav.top.style.display = "none"; }, this.Wf = function (e) {
|
|
5671
|
+
if (!s.events.list)
|
|
5620
5672
|
return null;
|
|
5621
5673
|
for (var t = 0; t < this.events.list.length; t++) {
|
|
5622
5674
|
var n = this.events.list[t];
|
|
5623
|
-
if (
|
|
5675
|
+
if (s.Pf(n, e)) {
|
|
5624
5676
|
var a = {};
|
|
5625
5677
|
return a.ex = n, a.index = t, a;
|
|
5626
5678
|
}
|
|
5627
5679
|
}
|
|
5628
5680
|
return null;
|
|
5629
|
-
}, this
|
|
5681
|
+
}, this.bi = function () {
|
|
5630
5682
|
var e = this.le(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart;
|
|
5631
5683
|
this.cellProperties || (this.cellProperties = {});
|
|
5632
5684
|
for (var r = 0; r <= n; r++) {
|
|
@@ -5634,71 +5686,71 @@ var DayPilot = { Global: {} };
|
|
|
5634
5686
|
var l = a + s;
|
|
5635
5687
|
this.hd(o, l);
|
|
5636
5688
|
}
|
|
5637
|
-
this.
|
|
5689
|
+
this.ci(o);
|
|
5638
5690
|
}
|
|
5639
5691
|
for (var d = this.qg(), l = d.start; l < d.end; l++)
|
|
5640
|
-
this.
|
|
5692
|
+
this.di(l);
|
|
5641
5693
|
}, this.df = function () {
|
|
5642
|
-
if (!
|
|
5643
|
-
var e =
|
|
5694
|
+
if (!s.Q) {
|
|
5695
|
+
var e = s.rowlist;
|
|
5644
5696
|
if (e && e.length > 0) {
|
|
5645
5697
|
if (this.cellSweeping) {
|
|
5646
5698
|
var t = this.cellSweepingCacheSize;
|
|
5647
|
-
this.
|
|
5699
|
+
this.qh(t);
|
|
5648
5700
|
}
|
|
5649
|
-
this
|
|
5701
|
+
this.bi();
|
|
5650
5702
|
}
|
|
5651
5703
|
this.lf = !1;
|
|
5652
5704
|
}
|
|
5653
5705
|
}, this.le = function () {
|
|
5654
|
-
if (
|
|
5655
|
-
return
|
|
5706
|
+
if (s.yb.drawArea)
|
|
5707
|
+
return s.yb.drawArea;
|
|
5656
5708
|
if (!this.nav.scroll)
|
|
5657
5709
|
return null;
|
|
5658
|
-
var e =
|
|
5659
|
-
o =
|
|
5710
|
+
var e = s.kh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.jh - n, r = i + s.lh + 2 * n, o = 0, l = 0;
|
|
5711
|
+
o = s.Ie(i).x, l = s.Ie(r, !0).x;
|
|
5660
5712
|
var d = this.Af();
|
|
5661
|
-
|
|
5713
|
+
l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0);
|
|
5662
5714
|
var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Gf(c).i, f = this.Gf(u).i;
|
|
5663
|
-
f < this.rowlist.length && f++, t.xStart = o, t.xEnd =
|
|
5664
|
-
var v =
|
|
5665
|
-
return 0 === v.clientWidth && (v =
|
|
5666
|
-
}, this.Ae = function () { return
|
|
5667
|
-
var t =
|
|
5715
|
+
f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f;
|
|
5716
|
+
var v = s.nav.scroll;
|
|
5717
|
+
return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.yb.drawArea = t, t;
|
|
5718
|
+
}, this.Ae = function () { return s.Af() * s.cellWidth; }, this.di = function (e) {
|
|
5719
|
+
var t = s.rowlist, n = s.divLines, a = "y_" + e;
|
|
5668
5720
|
if (!this.yb.linesHorizontal[a]) {
|
|
5669
|
-
var i = t[e],
|
|
5670
|
-
c.style.left = "0px", c.style.top =
|
|
5721
|
+
var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ae(), c = r();
|
|
5722
|
+
c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.yb.linesHorizontal[a] = c;
|
|
5671
5723
|
}
|
|
5672
|
-
}, this.
|
|
5673
|
-
var t =
|
|
5724
|
+
}, this.ci = function (e) {
|
|
5725
|
+
var t = s.Je(e);
|
|
5674
5726
|
if (t) {
|
|
5675
|
-
var n =
|
|
5727
|
+
var n = s.divLines, a = s.ae, i = "x_" + e;
|
|
5676
5728
|
if (!this.yb.linesVertical[i]) {
|
|
5677
|
-
var
|
|
5678
|
-
|
|
5729
|
+
var o = t.left + t.width - 1, l = r();
|
|
5730
|
+
l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.yb.linesVertical[i] = l;
|
|
5679
5731
|
}
|
|
5680
5732
|
}
|
|
5681
|
-
}, this.Xe = function () {
|
|
5733
|
+
}, this.Xe = function () { s.ae = s.ei(s.rowlist); }, this.ei = function (e) {
|
|
5682
5734
|
for (var t = 0, n = 0; n < e.length; n++) {
|
|
5683
5735
|
var a = e[n];
|
|
5684
5736
|
a.top = t, t += a.height;
|
|
5685
5737
|
}
|
|
5686
5738
|
return t;
|
|
5687
|
-
}, this.af = function () {
|
|
5739
|
+
}, this.af = function () { s.elements.cells = [], s.yb.cells = [], s.divCells.innerHTML = "", s.fi(); }, this.fi = function () { s.divLines.innerHTML = "", s.yb.linesVertical = {}, s.yb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.pf = function (e) {
|
|
5688
5740
|
var t = [];
|
|
5689
|
-
for (var n in
|
|
5690
|
-
t.push(
|
|
5691
|
-
t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) {
|
|
5741
|
+
for (var n in s.yb.cells)
|
|
5742
|
+
t.push(s.yb.cells[n]);
|
|
5743
|
+
t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); });
|
|
5692
5744
|
}, this.hd = function (e, t) {
|
|
5693
5745
|
if (this.Ma) {
|
|
5694
|
-
var n =
|
|
5746
|
+
var n = s.Je(e);
|
|
5695
5747
|
if (n) {
|
|
5696
|
-
var a =
|
|
5697
|
-
if (!this.yb.cells[
|
|
5698
|
-
var
|
|
5699
|
-
if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute",
|
|
5700
|
-
if (
|
|
5701
|
-
switch (c.style.display = "flex",
|
|
5748
|
+
var a = s.rowlist, i = s.divCells, o = e + "_" + t;
|
|
5749
|
+
if (!this.yb.cells[o]) {
|
|
5750
|
+
var l = this.gi(e, t), d = s.hi(e, t), c = r();
|
|
5751
|
+
if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
|
|
5752
|
+
if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s._a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
|
|
5753
|
+
switch (c.style.display = "flex", l.horizontalAlignment) {
|
|
5702
5754
|
case "right":
|
|
5703
5755
|
c.style.justifyContent = "flex-end";
|
|
5704
5756
|
break;
|
|
@@ -5707,7 +5759,7 @@ var DayPilot = { Global: {} };
|
|
|
5707
5759
|
break;
|
|
5708
5760
|
case "center": c.style.justifyContent = "center";
|
|
5709
5761
|
}
|
|
5710
|
-
switch (
|
|
5762
|
+
switch (l.verticalAlignment) {
|
|
5711
5763
|
case "center":
|
|
5712
5764
|
c.style.alignItems = "center";
|
|
5713
5765
|
break;
|
|
@@ -5717,95 +5769,119 @@ var DayPilot = { Global: {} };
|
|
|
5717
5769
|
case "bottom": c.style.alignItems = "flex-end";
|
|
5718
5770
|
}
|
|
5719
5771
|
}
|
|
5720
|
-
DayPilot.Areas.attach(c, d.cell, { "areas":
|
|
5772
|
+
DayPilot.Areas.attach(c, d.cell, { "areas": l.areas || d.cell.areas });
|
|
5721
5773
|
}
|
|
5722
|
-
|
|
5774
|
+
var u = { start: n.start, end: n.end, resource: a[t].id, div: c, properties: l, x: e, y: t };
|
|
5775
|
+
!function () {
|
|
5776
|
+
if ("function" == typeof s.onBeforeCellDomAdd || "function" == typeof s.onBeforeCellDomRemove) {
|
|
5777
|
+
var e = {};
|
|
5778
|
+
if (e.control = s, e.cell = u, e.element = null, c.domArgs = e, "function" == typeof s.onBeforeCellDomAdd && s.onBeforeCellDomAdd(e), e.element) {
|
|
5779
|
+
var t = c;
|
|
5780
|
+
if (t) {
|
|
5781
|
+
e.Qa = t;
|
|
5782
|
+
var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
|
|
5783
|
+
if (n) {
|
|
5784
|
+
if (!s.cg.reactDOM)
|
|
5785
|
+
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
5786
|
+
s.cg.Vc(e.element, t);
|
|
5787
|
+
}
|
|
5788
|
+
else if (a) {
|
|
5789
|
+
if (!s.Sa.Ra)
|
|
5790
|
+
throw new DayPilot.Exception("Can't reach Vue");
|
|
5791
|
+
s.Sa.Ta = !0, s.Sa.Wa(e.element, t), s.Sa.Ta = !1;
|
|
5792
|
+
}
|
|
5793
|
+
else
|
|
5794
|
+
t.appendChild(e.element);
|
|
5795
|
+
}
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
}(), i.appendChild(c), this.elements.cells.push(c), this.yb.cells[o] = c;
|
|
5723
5799
|
}
|
|
5724
5800
|
}
|
|
5725
5801
|
}
|
|
5726
|
-
}, this.
|
|
5727
|
-
var n =
|
|
5802
|
+
}, this.hi = function (e, t) {
|
|
5803
|
+
var n = s.Je(e);
|
|
5728
5804
|
if (!n)
|
|
5729
5805
|
return null;
|
|
5730
|
-
var a =
|
|
5731
|
-
if (
|
|
5806
|
+
var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {};
|
|
5807
|
+
if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Ag(a), properties: s.gi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
|
|
5732
5808
|
var d = e + "_" + t;
|
|
5733
|
-
if (
|
|
5734
|
-
return
|
|
5735
|
-
|
|
5809
|
+
if (s.beforeCellRenderCaching && s.bf[d])
|
|
5810
|
+
return l;
|
|
5811
|
+
s.bf[d] = !0, this.onBeforeCellRender(l);
|
|
5736
5812
|
}
|
|
5737
|
-
return
|
|
5738
|
-
}, this.clearSelection = function () { this.
|
|
5813
|
+
return l;
|
|
5814
|
+
}, this.clearSelection = function () { this.ii(); }, this.ji = function (e, t, n) {
|
|
5739
5815
|
e = new DayPilot.Date(e), t = new DayPilot.Date(t);
|
|
5740
|
-
var a =
|
|
5816
|
+
var a = s.je(n), i = s.Le(e);
|
|
5741
5817
|
if (!i.current)
|
|
5742
5818
|
throw new DayPilot.Exception("Time range selection 'start' out of timeline");
|
|
5743
|
-
var r =
|
|
5819
|
+
var r = s.Le(new DayPilot.Date(t).addMilliseconds(-1));
|
|
5744
5820
|
if (!r.current)
|
|
5745
5821
|
throw new DayPilot.Exception("Time range selection 'end' out of timeline");
|
|
5746
5822
|
var o = {};
|
|
5747
5823
|
return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o;
|
|
5748
|
-
}, this.selectTimeRange = function (e, t, n, a) { var i =
|
|
5749
|
-
if ("Auto" ===
|
|
5750
|
-
var e =
|
|
5824
|
+
}, this.selectTimeRange = function (e, t, n, a) { var i = s.ji(e, t, n); s.zf(i), a || setTimeout(function () { s.vf(i); }, 0); }, this.tf = function () { var e = t.og && t.og.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.og), t.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ii = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.yf = null, s.ki = null; }, l.Ld = function () { delete s.yb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Ge = function () { return DayPilot.Locale.find(s.locale); }, l.Qh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Ge().timeFormat; }, l.ea = function () {
|
|
5825
|
+
if ("Auto" === s.weekStarts) {
|
|
5826
|
+
var e = l.Ge();
|
|
5751
5827
|
return e ? e.weekStarts : 0;
|
|
5752
5828
|
}
|
|
5753
|
-
return
|
|
5754
|
-
},
|
|
5755
|
-
var n = e + "_" + t, a =
|
|
5829
|
+
return s.weekStarts || 0;
|
|
5830
|
+
}, l.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.eg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Me() * 1e3; }, this.gi = function (e, t) {
|
|
5831
|
+
var n = e + "_" + t, a = s.rowlist;
|
|
5756
5832
|
if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
|
|
5757
5833
|
return this.cellProperties[n];
|
|
5758
5834
|
if (!this.cellProperties[n]) {
|
|
5759
|
-
var i = a[t], r = i.id, o =
|
|
5760
|
-
c.start =
|
|
5835
|
+
var i = a[t], r = i.id, o = s.Je(e), l = o.start, d = o.end, c = {};
|
|
5836
|
+
c.start = l, c.end = d, c.resource = r;
|
|
5761
5837
|
var u = {};
|
|
5762
|
-
u.business =
|
|
5838
|
+
u.business = s.isBusiness(c), this.cellProperties[n] = u;
|
|
5763
5839
|
}
|
|
5764
5840
|
return this.cellProperties[n];
|
|
5765
5841
|
}, this.isBusiness = function (e, t) {
|
|
5766
5842
|
var n = e.start, a = e.end, i = (a.getTime() - n.getTime()) / 6e4;
|
|
5767
|
-
if (i <= 1440 && !(
|
|
5843
|
+
if (i <= 1440 && !(s.businessWeekends || t || 0 !== e.start.dayOfWeek() && 6 !== e.start.dayOfWeek()))
|
|
5768
5844
|
return !1;
|
|
5769
5845
|
if (i < 720) {
|
|
5770
5846
|
var r = n.getHours();
|
|
5771
5847
|
r += n.getMinutes() / 60, r += n.getSeconds() / 3600, r += n.getMilliseconds() / 36e5;
|
|
5772
|
-
var o = this.businessBeginsHour,
|
|
5773
|
-
if (0 ===
|
|
5848
|
+
var o = this.businessBeginsHour, l = this.businessEndsHour;
|
|
5849
|
+
if (0 === l && (l = 24), o === l)
|
|
5774
5850
|
return !1;
|
|
5775
|
-
if (!(o <
|
|
5776
|
-
return r <
|
|
5851
|
+
if (!(o < l))
|
|
5852
|
+
return r < l || r >= o;
|
|
5777
5853
|
if (r < o)
|
|
5778
5854
|
return !1;
|
|
5779
|
-
if (
|
|
5855
|
+
if (l >= 24)
|
|
5780
5856
|
return !0;
|
|
5781
|
-
if (r >=
|
|
5857
|
+
if (r >= l)
|
|
5782
5858
|
return !1;
|
|
5783
5859
|
}
|
|
5784
5860
|
return !0;
|
|
5785
|
-
}, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.
|
|
5861
|
+
}, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.li = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.li, this.je = function (e) { return s.Eg(e)[0]; }, this.xb = function () {
|
|
5786
5862
|
if (this.id && this.id.tagName)
|
|
5787
5863
|
this.nav.top = this.id;
|
|
5788
5864
|
else {
|
|
5789
5865
|
if ("string" != typeof this.id)
|
|
5790
5866
|
throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");
|
|
5791
5867
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
5792
|
-
throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" +
|
|
5868
|
+
throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
|
|
5793
5869
|
}
|
|
5794
5870
|
}, this.init = function () {
|
|
5795
5871
|
if (this.Ma)
|
|
5796
5872
|
throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");
|
|
5797
5873
|
if (this.xb(), this.nav.top.dp) {
|
|
5798
|
-
if (this.nav.top.dp ===
|
|
5799
|
-
return
|
|
5874
|
+
if (this.nav.top.dp === s)
|
|
5875
|
+
return s;
|
|
5800
5876
|
throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
|
|
5801
5877
|
}
|
|
5802
|
-
return this.
|
|
5803
|
-
}, this.
|
|
5878
|
+
return this.mi(), this.$g(), this;
|
|
5879
|
+
}, this.mi = function () { this.Mg(), this.qb(), this.ba(), this.ih(), this.rb(); var angular = s.ze.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.ef(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.cf(), this.wb(), this.Ma = !0; var t = s.ge; t ? s.scrollTo(t) : s.ef(); }, this.vb = null, this.tb = function (e) {
|
|
5804
5880
|
if (e) {
|
|
5805
|
-
var t = { "resources": { "preInit": function () { var e = this.data; e && (
|
|
5806
|
-
|
|
5881
|
+
var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.fe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ie(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Be(this.data); } } };
|
|
5882
|
+
s.vb = t, s.ze.scrollToRequested && (t.scrollTo.data = s.ze.scrollToRequested, s.ze.scrollToRequested = null), s.ze.scrollXRequested && (t.scrollX.data = s.ze.scrollXRequested, s.ze.scrollXRequested = null), s.ze.scrollYRequested && (t.scrollY.data = s.ze.scrollYRequested, s.ze.scrollYRequested = null);
|
|
5807
5883
|
for (var n in e)
|
|
5808
|
-
t[n] || (
|
|
5884
|
+
t[n] || (s[n] = e[n]);
|
|
5809
5885
|
for (var a in e)
|
|
5810
5886
|
if (t[a]) {
|
|
5811
5887
|
var i = t[a];
|
|
@@ -5813,79 +5889,94 @@ var DayPilot = { Global: {} };
|
|
|
5813
5889
|
}
|
|
5814
5890
|
}
|
|
5815
5891
|
}, this.wb = function () {
|
|
5816
|
-
var e =
|
|
5892
|
+
var e = s.vb;
|
|
5817
5893
|
for (var t in e) {
|
|
5818
5894
|
var n = e[t];
|
|
5819
5895
|
n.postInit && n.postInit();
|
|
5820
5896
|
}
|
|
5821
|
-
|
|
5897
|
+
s.vb = {};
|
|
5898
|
+
}, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.cg.Vc = function (e, t) {
|
|
5899
|
+
var n = s.cg.reactDOM;
|
|
5900
|
+
if ("function" == typeof n.createRoot) {
|
|
5901
|
+
var a = t.ni;
|
|
5902
|
+
a || (a = n.createRoot(t), t.ni = a), a.render(e);
|
|
5903
|
+
}
|
|
5904
|
+
else
|
|
5905
|
+
n.render(e, t);
|
|
5906
|
+
}, this.cg.nh = function (e) {
|
|
5907
|
+
var t = s.cg.reactDOM;
|
|
5908
|
+
if ("function" == typeof t.createRoot) {
|
|
5909
|
+
var n = e.ni;
|
|
5910
|
+
setTimeout(function () { n.unmount(), e.ni = null; }, 0);
|
|
5911
|
+
}
|
|
5912
|
+
else
|
|
5913
|
+
t.unmountComponentAtNode(e);
|
|
5822
5914
|
}, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) {
|
|
5823
|
-
var a =
|
|
5915
|
+
var a = s.Sa.Ra;
|
|
5824
5916
|
if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
5825
5917
|
var i = a.createVNode(e, n);
|
|
5826
5918
|
a.render(i, t);
|
|
5827
5919
|
}
|
|
5828
5920
|
}, this.Sa.Wa = function (e, t) {
|
|
5829
|
-
var n =
|
|
5921
|
+
var n = s.Sa.Ra;
|
|
5830
5922
|
if ("function" == typeof n.render) {
|
|
5831
5923
|
var a = e;
|
|
5832
5924
|
DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
|
|
5833
5925
|
}
|
|
5834
|
-
}, this.Sa.Ua = function (e) { var t =
|
|
5835
|
-
|
|
5836
|
-
}, i = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
|
|
5926
|
+
}, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.qf, this.internal.adjustEndNormalize = s.rf, this.internal.xssTextHtml = s._a, this.internal.touch = s.ce, this.internal.skipUpdate = s.ze.skipUpdate, this.internal.skipped = s.ze.skipped, this.internal.loadOptions = s.tb, this.internal.postInit = s.wb, this.internal.enableAngular2 = function () { s.ze.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { s.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { s.events.uf(); }, this.internal.enableReact = function (e, t) { s.cg.react = e, s.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Sa.Ra = e; }, this.internal.vueRef = function () { return s.Sa.Ra; }, this.internal.vueRendering = function () { return s.Sa.Ta; }, this.tb(o);
|
|
5927
|
+
}, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
|
|
5837
5928
|
if (!e)
|
|
5838
5929
|
throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
|
|
5839
5930
|
if (!t)
|
|
5840
5931
|
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");
|
|
5841
|
-
this.
|
|
5842
|
-
var n = this.
|
|
5932
|
+
this.oi = {};
|
|
5933
|
+
var n = this.oi;
|
|
5843
5934
|
n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags;
|
|
5844
5935
|
var a = this;
|
|
5845
|
-
a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.
|
|
5846
|
-
for (var e = [], t = 0; t < a.
|
|
5847
|
-
e.push(a.
|
|
5936
|
+
a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.pi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () {
|
|
5937
|
+
for (var e = [], t = 0; t < a.pi.events.length; t++)
|
|
5938
|
+
e.push(a.pi.events[t]);
|
|
5848
5939
|
return e;
|
|
5849
|
-
}, a.events.isEmpty = function () { return 0 === a.
|
|
5850
|
-
},
|
|
5851
|
-
if (
|
|
5852
|
-
var
|
|
5853
|
-
|
|
5940
|
+
}, a.events.isEmpty = function () { return 0 === a.pi.events.length; }, a.events.forRange = function (e, t) { return a.pi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); };
|
|
5941
|
+
}, t.Pe = null, t.ng = null, t.Eh = null, t.gg = null, t.kg = null, t.Oe = !1, t.fh = !1, t.Wh = null, t.qi = null, t.qc = function () { DayPilot.ue(document, "mouseup", t._d), DayPilot.ue(document, "touchmove", t.gh), DayPilot.ue(document, "touchend", t.hh), t.fh = !1; }, t.gh = function (e) {
|
|
5942
|
+
if (t.gg) {
|
|
5943
|
+
var n = t.gg.event.calendar;
|
|
5944
|
+
n.coords = n.ce.Ih(e), n.ce.Nh(), e.preventDefault();
|
|
5854
5945
|
}
|
|
5855
|
-
if (
|
|
5946
|
+
if (t.Pe) {
|
|
5856
5947
|
e.preventDefault();
|
|
5857
|
-
var
|
|
5858
|
-
|
|
5948
|
+
var n = t.ng.calendar;
|
|
5949
|
+
n.coords = n.ce.Ih(e), n.ce.Oh();
|
|
5859
5950
|
}
|
|
5860
|
-
},
|
|
5861
|
-
if (
|
|
5862
|
-
var
|
|
5863
|
-
if (setTimeout(function () {
|
|
5864
|
-
return void
|
|
5865
|
-
var
|
|
5866
|
-
|
|
5951
|
+
}, t.hh = function (e) { t.Wg = !1, t._d(e); }, t._d = function (e) {
|
|
5952
|
+
if (t.gg) {
|
|
5953
|
+
var a = function () { var e = t.kg, n = e.calendar; i().style.cursor = "", t.gg = null, t.kg = null, DayPilot.de(t.jg), t.jg = null, n && (n.ri = null); };
|
|
5954
|
+
if (setTimeout(function () { t.Oe = !1; }), !t.jg)
|
|
5955
|
+
return void a();
|
|
5956
|
+
var r = t.kg, o = r.calendar, s = t.jg.start, l = t.jg.end, d = "left" === t.gg.dpBorder ? "start" : "end";
|
|
5957
|
+
a(), o.K(r, s, l, d);
|
|
5867
5958
|
}
|
|
5868
|
-
else if (
|
|
5869
|
-
var
|
|
5870
|
-
if (!
|
|
5871
|
-
return void
|
|
5872
|
-
var
|
|
5959
|
+
else if (t.ng) {
|
|
5960
|
+
var a = function () { DayPilot.Global.movingAreaData = null; var e = t.og && t.og.calendar; t.og && (DayPilot.de(t.og), t.og.calendar = null), i().style.cursor = "", t.Pe = null, t.ng = null, e && (e.sf = null); };
|
|
5961
|
+
if (!t.og)
|
|
5962
|
+
return void a();
|
|
5963
|
+
var r = t.ng, o = t.og.calendar;
|
|
5873
5964
|
if (!o)
|
|
5874
|
-
return void
|
|
5875
|
-
if (
|
|
5876
|
-
return void
|
|
5877
|
-
var s =
|
|
5878
|
-
|
|
5965
|
+
return void a();
|
|
5966
|
+
if (t.og.source = t.Pe, !t.og.row)
|
|
5967
|
+
return void a();
|
|
5968
|
+
var s = t.og.start, l = t.og.end, c = t.og.row.id;
|
|
5969
|
+
t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
|
|
5879
5970
|
}
|
|
5880
|
-
else if (
|
|
5881
|
-
var u = DayPilot.Util.mouseButton(e), h =
|
|
5882
|
-
if (f.
|
|
5883
|
-
return clearTimeout(
|
|
5884
|
-
f.yf = h,
|
|
5885
|
-
var v = function (e) { return function () {
|
|
5886
|
-
return
|
|
5971
|
+
else if (t.Lh) {
|
|
5972
|
+
var u = DayPilot.Util.mouseButton(e), h = t.Lh, f = h.calendar, a = function () { };
|
|
5973
|
+
if (f.ki = null, t.Wh)
|
|
5974
|
+
return clearTimeout(t.Wh), t.Wh = null, void a();
|
|
5975
|
+
f.yf = h, t.Lh = null;
|
|
5976
|
+
var v = function (e) { return function () { t.Wh = null, f.vf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.yf = e; }; }, p = f.$h(h);
|
|
5977
|
+
return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Wh = null);
|
|
5887
5978
|
}
|
|
5888
|
-
|
|
5979
|
+
t.Hh = null, t.fg = null;
|
|
5889
5980
|
};
|
|
5890
5981
|
}
|
|
5891
5982
|
}(DayPilot);
|