@daypilot/daypilot-lite-angular 3.18.0 → 3.20.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/README.md +9 -1
- package/esm2020/lib/core/daypilot-core.mjs +196 -182
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +210 -192
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +195 -181
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
|
|
|
3
3
|
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
/*
|
|
6
|
-
Copyright ©
|
|
6
|
+
Copyright © 2024 Annpoint, s.r.o.
|
|
7
7
|
|
|
8
8
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
9
|
you may not use this file except in compliance with the License.
|
|
@@ -127,11 +127,12 @@ var DayPilot;
|
|
|
127
127
|
})(DayPilot || (DayPilot = {}));
|
|
128
128
|
/*
|
|
129
129
|
DayPilot Lite
|
|
130
|
-
Copyright (c) 2005 -
|
|
130
|
+
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version:
|
|
133
|
+
Version: 2024.1.517-lite
|
|
134
134
|
*/
|
|
135
|
+
var DayPilot = {};
|
|
135
136
|
if ("undefined" == typeof DayPilot)
|
|
136
137
|
var DayPilot = {};
|
|
137
138
|
if (function () {
|
|
@@ -161,7 +162,7 @@ if (function () {
|
|
|
161
162
|
function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
|
|
162
163
|
function i(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
|
|
163
164
|
if ("undefined" == typeof DayPilot.$) {
|
|
164
|
-
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot
|
|
165
|
+
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, Object.defineProperty(DayPilot, "isKhtml", { get: function () { return "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1; } }), DayPilot.mo2 = function (e, t) {
|
|
165
166
|
if (t = t || window.event, "undefined" != typeof t.offsetX) {
|
|
166
167
|
var i = { x: t.offsetX + 1, y: t.offsetY + 1 };
|
|
167
168
|
if (!e)
|
|
@@ -195,7 +196,7 @@ if (function () {
|
|
|
195
196
|
else if (i = DayPilot.mo2(e, t), !i)
|
|
196
197
|
return null;
|
|
197
198
|
return i.shift = t.shiftKey, i.meta = t.metaKey, i.ctrl = t.ctrlKey, i.alt = t.altKey, i;
|
|
198
|
-
}, DayPilot.browser = {}, DayPilot.browser
|
|
199
|
+
}, DayPilot.browser = {}, Object.defineProperty(DayPilot.browser, "hover", { get: function () { return !window.matchMedia("(any-hover: none)").matches; } }), DayPilot.touch = {}, 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) {
|
|
199
200
|
if (!e)
|
|
200
201
|
return null;
|
|
201
202
|
if (e.getBoundingClientRect) {
|
|
@@ -212,7 +213,17 @@ if (function () {
|
|
|
212
213
|
e = e.offsetParent, i.x -= e.scrollLeft, i.y -= e.scrollTop, t && (i.x < 0 && (i.w += i.x, i.x = 0), i.y < 0 && (i.h += i.y, i.y = 0), e.scrollLeft > 0 && i.x + i.w > e.clientWidth && (i.w -= i.x + i.w - e.clientWidth), e.scrollTop && i.y + i.h > e.clientHeight && (i.h -= i.y + i.h - e.clientHeight)), i.x += e.offsetLeft, i.y += e.offsetTop;
|
|
213
214
|
var a = DayPilot.pageOffset();
|
|
214
215
|
return i.x += a.x, i.y += a.y, i;
|
|
215
|
-
}, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () {
|
|
216
|
+
}, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () {
|
|
217
|
+
if ("undefined" == typeof window) {
|
|
218
|
+
var e = {};
|
|
219
|
+
return e.add = function () { }, e.commit = function () { }, e;
|
|
220
|
+
}
|
|
221
|
+
document = document || window.document;
|
|
222
|
+
var t = document.createElement("style");
|
|
223
|
+
t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t);
|
|
224
|
+
var i = !!t.styleSheet, e = {};
|
|
225
|
+
return e.rules = [], e.commit = function () { i && (t.styleSheet.cssText = this.rules.join("\n")); }, e.add = function (e, a, n) { return i ? void this.rules.push(e + "{" + a + "}") : void (t.sheet.insertRule ? ("undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n)) : t.sheet.addRule && t.sheet.addRule(e, a, n)); }, e;
|
|
226
|
+
}, 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 () {
|
|
216
227
|
if (!DayPilot.Global.defaultCss) {
|
|
217
228
|
var e = DayPilot.sheet();
|
|
218
229
|
e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
@@ -347,10 +358,10 @@ if (function () {
|
|
|
347
358
|
function r(e, t, i, a) {
|
|
348
359
|
DayPilot.Menu && DayPilot.Menu.touchPosition(a);
|
|
349
360
|
var n = i.contextMenu || i.menu;
|
|
350
|
-
if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)),
|
|
351
|
-
n && n.show) {
|
|
361
|
+
if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
|
|
352
362
|
var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
|
|
353
|
-
n.show(t, { "initiator": o
|
|
363
|
+
n.show(t, { "initiator": o
|
|
364
|
+
});
|
|
354
365
|
}
|
|
355
366
|
}
|
|
356
367
|
function s(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
|
|
@@ -645,7 +656,7 @@ if (function () {
|
|
|
645
656
|
a = i ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
|
|
646
657
|
}
|
|
647
658
|
var r = e(a);
|
|
648
|
-
return n[r] ? n[r] : (n[r] = this, n[a] = this, o && r !== t && DayPilot.DateUtil.hasTzSpec(t) && (n[t] = this), Object.defineProperty
|
|
659
|
+
return n[r] ? n[r] : (n[r] = this, n[a] = this, o && r !== t && DayPilot.DateUtil.hasTzSpec(t) && (n[t] = this), Object.defineProperty ? (Object.defineProperty(this, "ticks", { get: function () { return a; } }), Object.defineProperty(this, "value", { "value": r, "writable": !1, "enumerable": !0 })) : (this.ticks = a, this.value = r), DayPilot.Date.Config.legacyShowD && (this.d = new Date(a)), void (DayPilot.Stats.dateObjects += 1));
|
|
649
660
|
}, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
|
|
650
661
|
if (!e)
|
|
651
662
|
return this;
|
|
@@ -976,16 +987,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
976
987
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
977
988
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
978
989
|
var n = this;
|
|
979
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "
|
|
990
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.1.517-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.N || (e.N = !0, clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.N; }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
|
|
980
991
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
981
992
|
i = i.parentNode;
|
|
982
993
|
var a = document.createElement("div");
|
|
983
994
|
a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
|
|
984
995
|
var o = document.createElement("div");
|
|
985
996
|
return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
986
|
-
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () {
|
|
987
|
-
return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat;
|
|
988
|
-
}, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
997
|
+
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
989
998
|
var o = this._;
|
|
990
999
|
this.T = function (e, t) {
|
|
991
1000
|
if (e && 0 === e.indexOf("$$$")) {
|
|
@@ -1377,7 +1386,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1377
1386
|
return !1;
|
|
1378
1387
|
};
|
|
1379
1388
|
var r = document.createElement("div");
|
|
1380
|
-
if (r.setAttribute("unselectable", "on"), r.className = n.J("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor
|
|
1389
|
+
if (r.setAttribute("unselectable", "on"), r.className = n.J("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
|
|
1381
1390
|
var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
|
|
1382
1391
|
c.setAttribute("unselectable", "on"), c.className = this.J("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
|
|
1383
1392
|
var u = document.createElement("div");
|
|
@@ -1534,7 +1543,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1534
1543
|
var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
|
|
1535
1544
|
if (h <= u)
|
|
1536
1545
|
return;
|
|
1537
|
-
t.movingShadow = n.Z(t.moving, !
|
|
1546
|
+
t.movingShadow = n.Z(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
|
|
1538
1547
|
}
|
|
1539
1548
|
var o = n.cellHeight, r = 1, f = t.moveOffsetY;
|
|
1540
1549
|
f || (f = o / 2);
|
|
@@ -1593,10 +1602,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1593
1602
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1594
1603
|
this.headerCreated = !0;
|
|
1595
1604
|
this.Qa(t);
|
|
1596
|
-
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
}, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
|
|
1605
|
+
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () {
|
|
1606
|
+
t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload));
|
|
1607
|
+
}, this.events = {}, this.events.add = function (e) {
|
|
1600
1608
|
var t = null;
|
|
1601
1609
|
if (e instanceof DayPilot.Event)
|
|
1602
1610
|
t = e.data;
|
|
@@ -1605,7 +1613,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1605
1613
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1606
1614
|
t = e;
|
|
1607
1615
|
}
|
|
1608
|
-
n.events.list || (n.events.list = []), n.events.list.push(t), n.
|
|
1616
|
+
n.events.list || (n.events.list = []), n.events.list.push(t), n.Za({ "eventsOnly": !0 }), n.qa.notify();
|
|
1609
1617
|
}, this.events.find = function (e) {
|
|
1610
1618
|
if (!n.events.list)
|
|
1611
1619
|
return null;
|
|
@@ -1633,7 +1641,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1633
1641
|
n.events.list.splice(i, 1, e);
|
|
1634
1642
|
}
|
|
1635
1643
|
}
|
|
1636
|
-
n.
|
|
1644
|
+
n.Za({ "eventsOnly": !0 }), n.qa.notify();
|
|
1637
1645
|
}, this.events.remove = function (e) {
|
|
1638
1646
|
var t;
|
|
1639
1647
|
if (e instanceof DayPilot.Event)
|
|
@@ -1647,7 +1655,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1647
1655
|
i && (t = i.data);
|
|
1648
1656
|
}
|
|
1649
1657
|
var a = DayPilot.indexOf(n.events.list, t);
|
|
1650
|
-
n.events.list.splice(a, 1), n.
|
|
1658
|
+
n.events.list.splice(a, 1), n.Za({ "eventsOnly": !0 }), n.qa.notify();
|
|
1651
1659
|
}, this.events.load = function (e, t, i) {
|
|
1652
1660
|
var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
1653
1661
|
var i, o = e.request;
|
|
@@ -1662,7 +1670,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1662
1670
|
var s = {};
|
|
1663
1671
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1664
1672
|
return;
|
|
1665
|
-
n.events.list = i, n.za && n.
|
|
1673
|
+
n.events.list = i, n.za && n.Za({ "eventsOnly": !0 });
|
|
1666
1674
|
}
|
|
1667
1675
|
};
|
|
1668
1676
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
@@ -1671,7 +1679,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1671
1679
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1672
1680
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1673
1681
|
}
|
|
1674
|
-
}, this
|
|
1682
|
+
}, this.$a = function () {
|
|
1675
1683
|
if (n.nav.top.className !== n.J("_main")) {
|
|
1676
1684
|
n.nav.top.className = n.J("_main");
|
|
1677
1685
|
var e = n.nav.corner;
|
|
@@ -1680,14 +1688,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1680
1688
|
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1681
1689
|
}
|
|
1682
1690
|
}, this.update = function (e) {
|
|
1683
|
-
if (n
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1691
|
+
if (n.N)
|
|
1692
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
|
|
1693
|
+
n._a(e), n.Za();
|
|
1694
|
+
}, this.Za = function (e) {
|
|
1695
|
+
if (this.za) {
|
|
1696
|
+
var e = e || {}, t = !e.eventsOnly;
|
|
1697
|
+
n.ab(), n.V(), n.nav.top.style.cursor = "auto", t && (n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Na(), n.Xa(), n.$a(), n.bb()), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1698
|
+
}
|
|
1699
|
+
}, this.cb = null, this._a = function (e) {
|
|
1688
1700
|
if (e) {
|
|
1689
1701
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1690
|
-
this.
|
|
1702
|
+
this.cb = t;
|
|
1691
1703
|
for (var i in e)
|
|
1692
1704
|
if (t[i]) {
|
|
1693
1705
|
var a = t[i];
|
|
@@ -1696,13 +1708,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1696
1708
|
else
|
|
1697
1709
|
n[i] = e[i];
|
|
1698
1710
|
}
|
|
1699
|
-
}, this.
|
|
1700
|
-
var e = this.
|
|
1711
|
+
}, this.db = function () {
|
|
1712
|
+
var e = this.cb;
|
|
1701
1713
|
for (var t in e) {
|
|
1702
1714
|
var i = e[t];
|
|
1703
1715
|
i.postInit && i.postInit();
|
|
1704
1716
|
}
|
|
1705
|
-
}, this.
|
|
1717
|
+
}, this.eb = function () {
|
|
1706
1718
|
if (this.id && this.id.tagName)
|
|
1707
1719
|
this.nav.top = this.id;
|
|
1708
1720
|
else {
|
|
@@ -1711,8 +1723,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1711
1723
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1712
1724
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1713
1725
|
}
|
|
1714
|
-
}, this.
|
|
1715
|
-
var t = this.
|
|
1726
|
+
}, this.fb = {}, this.fb.events = [], this.gb = function (e) {
|
|
1727
|
+
var t = this.fb.events, i = this.events.list[e], a = {};
|
|
1716
1728
|
for (var o in i)
|
|
1717
1729
|
a[o] = i[o];
|
|
1718
1730
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1722,7 +1734,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1722
1734
|
t[e] = a;
|
|
1723
1735
|
}, this.ca = function () {
|
|
1724
1736
|
var e = this.events.list;
|
|
1725
|
-
if (n.
|
|
1737
|
+
if (n.fb.events = [], e) {
|
|
1726
1738
|
if (!DayPilot.isArray(e))
|
|
1727
1739
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1728
1740
|
var t = e.length, i = 864e5;
|
|
@@ -1743,7 +1755,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1743
1755
|
}
|
|
1744
1756
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1745
1757
|
for (var o = 0; o < t; o++)
|
|
1746
|
-
this.
|
|
1758
|
+
this.gb(o);
|
|
1747
1759
|
for (var o = 0; o < this.ta.length; o++) {
|
|
1748
1760
|
var l = {};
|
|
1749
1761
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
@@ -1763,21 +1775,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1763
1775
|
var _ = w.boxBottom;
|
|
1764
1776
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1765
1777
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1766
|
-
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.
|
|
1778
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.fb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1767
1779
|
}
|
|
1768
1780
|
}
|
|
1769
1781
|
}
|
|
1770
1782
|
}
|
|
1771
1783
|
for (var o = 0; o < this.ta.length; o++) {
|
|
1772
1784
|
var d = this.ta[o];
|
|
1773
|
-
d.events.sort(this.
|
|
1785
|
+
d.events.sort(this.hb);
|
|
1774
1786
|
for (var m = 0; m < d.events.length; m++) {
|
|
1775
1787
|
var r = d.events[m];
|
|
1776
1788
|
d.putIntoBlock(r);
|
|
1777
1789
|
}
|
|
1778
1790
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1779
1791
|
var k = d.blocks[m];
|
|
1780
|
-
k.events.sort(this.
|
|
1792
|
+
k.events.sort(this.hb);
|
|
1781
1793
|
for (var S = 0; S < k.events.length; S++) {
|
|
1782
1794
|
var r = k.events[S];
|
|
1783
1795
|
k.putIntoLine(r);
|
|
@@ -1785,7 +1797,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1785
1797
|
}
|
|
1786
1798
|
}
|
|
1787
1799
|
}
|
|
1788
|
-
}, this.
|
|
1800
|
+
}, this.hb = function (e, t) {
|
|
1789
1801
|
if (!(e && t && e.start && t.start))
|
|
1790
1802
|
return 0;
|
|
1791
1803
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1799,30 +1811,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1799
1811
|
var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
|
|
1800
1812
|
0 === s && (d = l);
|
|
1801
1813
|
var c = {};
|
|
1802
|
-
return c.cut = !1, c.top = this.
|
|
1803
|
-
}, this.
|
|
1814
|
+
return c.cut = !1, c.top = this.ib(r), c.boxTop = this.ib(l), c.boxBottom = this.ib(d), this.cache.pixels[a + "_" + i] = c, c;
|
|
1815
|
+
}, this.ib = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.ab = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.da = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ha = function () { var e = this.Fa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { n.qa.scope && n.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.Va = function () {
|
|
1804
1816
|
if (n.nav.scroll) {
|
|
1805
1817
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1806
1818
|
n.Wa.scrollHour = t;
|
|
1807
1819
|
}
|
|
1808
|
-
}, this.
|
|
1820
|
+
}, this.bb = function () { var e = 0; "number" == typeof n.Wa.scrollHour ? e = 2 * n.cellHeight * n.Wa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.jb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.kb = function () { this.ab(), this.ba(), this.Ea(), this.ea(), this.fa(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.lb(), this.R("Init"); }, this.Wa = {}, this.mb = function () { this.Wa.themes = [], this.Wa.themes.push(this.theme || this.cssClassPrefix); }, this.nb = function () {
|
|
1809
1821
|
for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
|
|
1810
1822
|
var i = e[t];
|
|
1811
1823
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1812
1824
|
}
|
|
1813
1825
|
this.Wa.themes = [];
|
|
1814
|
-
}, this.
|
|
1826
|
+
}, this.ob = function () {
|
|
1815
1827
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1816
1828
|
var e = {};
|
|
1817
1829
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1818
1830
|
}
|
|
1819
|
-
}, this.
|
|
1820
|
-
if ("function" == typeof this.onInit && !this.
|
|
1821
|
-
this.
|
|
1831
|
+
}, this.pb = function () {
|
|
1832
|
+
if ("function" == typeof this.onInit && !this.qb) {
|
|
1833
|
+
this.qb = !0;
|
|
1822
1834
|
var e = {};
|
|
1823
1835
|
this.onInit(e);
|
|
1824
1836
|
}
|
|
1825
|
-
}, this.
|
|
1837
|
+
}, this.rb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.lb = function () { var e = n.rb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ia = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n._a, this.internal.xssTextHtml = n.Ia, this.init = function () { this.eb(); var e = this.jb(); return this.mb(), e ? void this.kb() : (this.ab(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.ob(), this.pb(), this.lb(), this.za = !0, this); }, this.Init = this.init, this._a(i);
|
|
1826
1838
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1827
1839
|
e.fn.daypilotCalendar = function (e) {
|
|
1828
1840
|
var t = null, i = this.each(function () {
|
|
@@ -1854,7 +1866,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1854
1866
|
l.call(t, d, function (e) {
|
|
1855
1867
|
for (var t in e)
|
|
1856
1868
|
n[t] = e[t];
|
|
1857
|
-
n.update(), n.
|
|
1869
|
+
n.update(), n.pb();
|
|
1858
1870
|
}, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
|
|
1859
1871
|
} };
|
|
1860
1872
|
}]);
|
|
@@ -1864,13 +1876,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1864
1876
|
var DayPilot = {};
|
|
1865
1877
|
if (function () {
|
|
1866
1878
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1867
|
-
this.v = "
|
|
1879
|
+
this.v = "2024.1.517-lite";
|
|
1868
1880
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1869
1881
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1870
1882
|
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1871
1883
|
for (var t in e)
|
|
1872
1884
|
this[t] = e[t];
|
|
1873
|
-
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1885
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.sb(); this.resetTarget && !e ? this.tb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.sb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.rb && (this.rb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.tb(this.date); }, this.sb = function () {
|
|
1874
1886
|
var e = this.B();
|
|
1875
1887
|
if (!e)
|
|
1876
1888
|
return this.date;
|
|
@@ -1883,26 +1895,26 @@ if (function () {
|
|
|
1883
1895
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1884
1896
|
}
|
|
1885
1897
|
return a;
|
|
1886
|
-
}, this.
|
|
1898
|
+
}, this.tb = function (e) {
|
|
1887
1899
|
var t = this.B();
|
|
1888
1900
|
if (t) {
|
|
1889
1901
|
var a = e.toString(i.pattern, i.locale);
|
|
1890
1902
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1891
1903
|
}
|
|
1892
|
-
}, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.
|
|
1893
|
-
if (!this.
|
|
1904
|
+
}, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.rb; } }), this.show = function () {
|
|
1905
|
+
if (!this.rb) {
|
|
1894
1906
|
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1895
|
-
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.
|
|
1907
|
+
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.ub), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.tb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1896
1908
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1897
1909
|
s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
|
|
1898
1910
|
var l = document.createElement("div");
|
|
1899
1911
|
l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
|
|
1900
|
-
var d = i.
|
|
1901
|
-
if (a.startDate = d, a.
|
|
1912
|
+
var d = i.sb() || (new DayPilot.Date).getDatePart();
|
|
1913
|
+
if (a.startDate = d, a.ub = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1902
1914
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1903
1915
|
s.style.left = c + "px";
|
|
1904
1916
|
}
|
|
1905
|
-
this.
|
|
1917
|
+
this.rb = !0, this.onShow && this.onShow();
|
|
1906
1918
|
}
|
|
1907
1919
|
}, this.prepare(), this.init();
|
|
1908
1920
|
});
|
|
@@ -1914,10 +1926,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1914
1926
|
var e = function () { }, t = {};
|
|
1915
1927
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1916
1928
|
var a = this, n = null;
|
|
1917
|
-
this.v = "
|
|
1929
|
+
this.v = "2024.1.517-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.vb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
1918
1930
|
o = o || {};
|
|
1919
1931
|
var r = null;
|
|
1920
|
-
if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.
|
|
1932
|
+
if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.vb.submenu = null, null !== t.mouse) {
|
|
1921
1933
|
a.cssOnly || (a.cssOnly = !0);
|
|
1922
1934
|
var s = null;
|
|
1923
1935
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1926,15 +1938,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1926
1938
|
return;
|
|
1927
1939
|
}
|
|
1928
1940
|
var d = document.createElement("div");
|
|
1929
|
-
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.
|
|
1941
|
+
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.wb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1930
1942
|
throw "No menu items defined.";
|
|
1931
1943
|
if (this.showMenuTitle) {
|
|
1932
1944
|
var c = document.createElement("div");
|
|
1933
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1945
|
+
c.innerHTML = this.menuTitle, c.className = this.wb("title"), d.appendChild(c);
|
|
1934
1946
|
}
|
|
1935
1947
|
for (var u = 0; u < this.items.length; u++) {
|
|
1936
1948
|
var h = this.items[u], f = document.createElement("div");
|
|
1937
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1949
|
+
if (DayPilot.Util.addClass(f, this.wb("item")), h.items && (DayPilot.Util.addClass(f, this.wb("item_haschildren")), DayPilot.Util.addClass(d, this.wb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1938
1950
|
if ("-" === h.text) {
|
|
1939
1951
|
var m = document.createElement("div");
|
|
1940
1952
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1942,7 +1954,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1942
1954
|
else {
|
|
1943
1955
|
var p = document.createElement("a");
|
|
1944
1956
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1945
|
-
DayPilot.Util.addClass(p, a.
|
|
1957
|
+
DayPilot.Util.addClass(p, a.wb("item_disabled"));
|
|
1946
1958
|
else {
|
|
1947
1959
|
if (h.onclick || h.onClick) {
|
|
1948
1960
|
p.item = h, p.onclick = function (e, t) {
|
|
@@ -1970,7 +1982,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1970
1982
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
1971
1983
|
}
|
|
1972
1984
|
if (h.items && !h.disabled) {
|
|
1973
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
1985
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.xb(e, t); }; };
|
|
1974
1986
|
p.ontouchend = y(h, p);
|
|
1975
1987
|
}
|
|
1976
1988
|
if (h.onclick)
|
|
@@ -2006,13 +2018,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2006
2018
|
}
|
|
2007
2019
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
2008
2020
|
var g = document.createElement("span");
|
|
2009
|
-
if (g.className = a.
|
|
2021
|
+
if (g.className = a.wb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
2010
2022
|
var b = document.createElement("img");
|
|
2011
2023
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
2012
2024
|
}
|
|
2013
2025
|
if (h.icon) {
|
|
2014
2026
|
var D = document.createElement("span");
|
|
2015
|
-
D.className = a.
|
|
2027
|
+
D.className = a.wb("item_icon");
|
|
2016
2028
|
var x = document.createElement("i");
|
|
2017
2029
|
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
2018
2030
|
}
|
|
@@ -2022,7 +2034,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2022
2034
|
var P = document.createElementNS(w, "use");
|
|
2023
2035
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
2024
2036
|
var _ = document.createElement("span");
|
|
2025
|
-
_.className = a.
|
|
2037
|
+
_.className = a.wb("item_symbol"), _.style.position = "absolute", _.style.top = "0px", _.style.left = "0px", _.appendChild(C), p.appendChild(_);
|
|
2026
2038
|
}
|
|
2027
2039
|
var k = function (e, i) {
|
|
2028
2040
|
return function () {
|
|
@@ -2032,7 +2044,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2032
2044
|
return;
|
|
2033
2045
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
2034
2046
|
}
|
|
2035
|
-
e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
2047
|
+
e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.xb(n, i); }, 300));
|
|
2036
2048
|
};
|
|
2037
2049
|
};
|
|
2038
2050
|
p.onmouseover = k(h, p), f.appendChild(p);
|
|
@@ -2041,10 +2053,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2041
2053
|
}
|
|
2042
2054
|
}
|
|
2043
2055
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
2044
|
-
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.
|
|
2056
|
+
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.vb.visible = !0, a.vb.source = i, d.style.display = "";
|
|
2045
2057
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
2046
2058
|
d.style.display = "none";
|
|
2047
|
-
var A = document.documentElement.clientHeight,
|
|
2059
|
+
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
2048
2060
|
if (function () {
|
|
2049
2061
|
var e = o.initiator;
|
|
2050
2062
|
if (e) {
|
|
@@ -2057,35 +2069,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2057
2069
|
}(), function () {
|
|
2058
2070
|
var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft;
|
|
2059
2071
|
if (i - a > A - M && 0 !== A) {
|
|
2060
|
-
var r = i - a - (A - M) +
|
|
2072
|
+
var r = i - a - (A - M) + E;
|
|
2061
2073
|
d.style.top = i - r + "px";
|
|
2062
2074
|
}
|
|
2063
2075
|
else
|
|
2064
2076
|
d.style.top = i + "px";
|
|
2065
|
-
if ("right" === o.align && (e -= T), e - n >
|
|
2066
|
-
var s = e - n - (
|
|
2077
|
+
if ("right" === o.align && (e -= T), e - n > H - T && 0 !== H) {
|
|
2078
|
+
var s = e - n - (H - T) + E;
|
|
2067
2079
|
d.style.left = e - s + "px";
|
|
2068
2080
|
}
|
|
2069
2081
|
else
|
|
2070
2082
|
d.style.left = e + "px";
|
|
2071
2083
|
}(), o.parentLink) {
|
|
2072
2084
|
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), O = z.x + N.offsetWidth, U = z.y - I;
|
|
2073
|
-
O + T >
|
|
2085
|
+
O + T > H && (O = Math.max(0, z.x - T));
|
|
2074
2086
|
var R = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2075
2087
|
U + M - R > A && (U = Math.max(0, A - M + R)), d.style.left = O + "px", d.style.top = U + "px";
|
|
2076
2088
|
}
|
|
2077
|
-
d.style.display = "", this.addShadow(d), this.
|
|
2089
|
+
d.style.display = "", this.addShadow(d), this.vb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
2078
2090
|
}
|
|
2079
|
-
}, this.
|
|
2091
|
+
}, this.xb = function (e, t) {
|
|
2080
2092
|
var i = e, n = t.source;
|
|
2081
|
-
if ((!a.
|
|
2093
|
+
if ((!a.vb.submenu || a.vb.submenu.item !== e) && (a.vb.submenu && a.vb.submenu.item !== e && (DayPilot.Util.removeClass(a.vb.submenu.link.parentNode, a.wb("item_haschildren_active")), a.vb.submenu.menu.hide(), a.vb.submenu = null), e.items)) {
|
|
2082
2094
|
var o = a.cloneOptions();
|
|
2083
|
-
o.items = e.items, a.
|
|
2095
|
+
o.items = e.items, a.vb.submenu = {}, a.vb.submenu.menu = new DayPilot.Menu(o), a.vb.submenu.menu.yb = a, a.vb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.vb.submenu.item = e, a.vb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.wb("item_haschildren_active"));
|
|
2084
2096
|
}
|
|
2085
|
-
}, this.
|
|
2086
|
-
e = e || {}, this.
|
|
2097
|
+
}, this.wb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
|
|
2098
|
+
e = e || {}, this.vb.submenu && this.vb.submenu.menu.hide();
|
|
2087
2099
|
var i = t.waitingSubmenu;
|
|
2088
|
-
if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.
|
|
2100
|
+
if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.vb.div && this.vb.div.parentNode === document.body && document.body.removeChild(this.vb.div), n && (DayPilot.de(n), n = null), a.vb.visible = !1, a.vb.source = null, a.yb && e.hideParent && a.yb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
2089
2101
|
var o = {};
|
|
2090
2102
|
this.onHide(o);
|
|
2091
2103
|
}
|
|
@@ -2099,28 +2111,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2099
2111
|
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.za = !1;
|
|
2100
2112
|
for (var a in t)
|
|
2101
2113
|
this[a] = t[a];
|
|
2102
|
-
this.
|
|
2114
|
+
this.zb = function (e) { return this.theme + "_" + e; }, this.s = function () {
|
|
2103
2115
|
this.nav.top = document.getElementById(e);
|
|
2104
2116
|
var t = this.nav.top;
|
|
2105
|
-
t.className = this.
|
|
2117
|
+
t.className = this.zb("main"), DayPilot.list(i.items).forEach(function (e) {
|
|
2106
2118
|
var a = document.createElement("span");
|
|
2107
|
-
a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.
|
|
2119
|
+
a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.zb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
|
|
2108
2120
|
if (i.active && i.active.item === e)
|
|
2109
|
-
i.
|
|
2121
|
+
i.Ab();
|
|
2110
2122
|
else if (e.children)
|
|
2111
|
-
return void i.
|
|
2123
|
+
return void i.Bb(a);
|
|
2112
2124
|
if ("function" == typeof e.onClick) {
|
|
2113
2125
|
var n = {};
|
|
2114
2126
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
2115
2127
|
}
|
|
2116
|
-
}, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
2128
|
+
}, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Bb(a); }, t.appendChild(a), i.elements.items.push(a);
|
|
2117
2129
|
});
|
|
2118
|
-
}, this.
|
|
2119
|
-
if (!i.
|
|
2120
|
-
i.
|
|
2130
|
+
}, this.Ab = function () { var e = i.zb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Cb = function (e) { return !!i.active && i.active.item === e.data; }, this.Bb = function (e) {
|
|
2131
|
+
if (!i.Cb(e)) {
|
|
2132
|
+
i.Ab();
|
|
2121
2133
|
var t = e.data, a = i.active = {};
|
|
2122
2134
|
a.item = t, a.div = e;
|
|
2123
|
-
var n = i.
|
|
2135
|
+
var n = i.zb("item_active");
|
|
2124
2136
|
DayPilot.Util.addClass(e, n);
|
|
2125
2137
|
var o = DayPilot.abs(e);
|
|
2126
2138
|
if (t.children) {
|
|
@@ -2131,7 +2143,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2131
2143
|
DayPilot.MenuBar.active = i;
|
|
2132
2144
|
}
|
|
2133
2145
|
}, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); };
|
|
2134
|
-
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.
|
|
2146
|
+
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Ab(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
|
|
2135
2147
|
if (!e || !e.touches)
|
|
2136
2148
|
return null;
|
|
2137
2149
|
var t = e.touches[0], i = {};
|
|
@@ -2140,13 +2152,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2140
2152
|
if (e = e || {}, e.calendar) {
|
|
2141
2153
|
var i = DayPilot.Menu.active;
|
|
2142
2154
|
if (i) {
|
|
2143
|
-
var a = i.
|
|
2155
|
+
var a = i.vb.source;
|
|
2144
2156
|
a && a.calendar === e.calendar && t.menuClean();
|
|
2145
2157
|
}
|
|
2146
2158
|
}
|
|
2147
2159
|
else
|
|
2148
2160
|
t.menuClean();
|
|
2149
|
-
}, t.handlersRegistered || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
2161
|
+
}, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
2150
2162
|
}
|
|
2151
2163
|
}(DayPilot), "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
2152
2164
|
"use strict";
|
|
@@ -2190,47 +2202,51 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2190
2202
|
}
|
|
2191
2203
|
}, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
|
|
2192
2204
|
var i = function () {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2205
|
+
if ("undefined" == typeof window) {
|
|
2206
|
+
var e = {};
|
|
2207
|
+
return e.add = function () { }, e.commit = function () { }, e;
|
|
2208
|
+
}
|
|
2209
|
+
var t = document.createElement("style");
|
|
2210
|
+
t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t);
|
|
2211
|
+
var i = !!t.styleSheet, e = {};
|
|
2212
|
+
return e.rules = [], e.commit = function () {
|
|
2197
2213
|
try {
|
|
2198
|
-
|
|
2214
|
+
i && (t.styleSheet.cssText = this.rules.join("\n"));
|
|
2199
2215
|
}
|
|
2200
2216
|
catch (e) { }
|
|
2201
|
-
},
|
|
2202
|
-
if (
|
|
2203
|
-
return void this.rules.push(
|
|
2204
|
-
if (
|
|
2205
|
-
"undefined" == typeof n && (n =
|
|
2217
|
+
}, e.add = function (e, a, n) {
|
|
2218
|
+
if (i)
|
|
2219
|
+
return void this.rules.push(e + "{" + a + "}");
|
|
2220
|
+
if (t.sheet.insertRule)
|
|
2221
|
+
"undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n);
|
|
2206
2222
|
else {
|
|
2207
|
-
if (!
|
|
2223
|
+
if (!t.sheet.addRule)
|
|
2208
2224
|
throw "No CSS registration method found";
|
|
2209
|
-
|
|
2225
|
+
t.sheet.addRule(e, a, n);
|
|
2210
2226
|
}
|
|
2211
|
-
},
|
|
2227
|
+
}, e;
|
|
2212
2228
|
}, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
|
|
2213
2229
|
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
|
|
2214
|
-
navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
|
|
2230
|
+
"undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
|
|
2215
2231
|
this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
|
|
2216
2232
|
var t = this;
|
|
2217
|
-
this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.
|
|
2233
|
+
this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Db = !1, this.Eb = null, this.Fb = null, this.showHtml = function (e) {
|
|
2218
2234
|
if (DayPilot.ModalStatic.displayed(this))
|
|
2219
2235
|
throw "This modal dialog is already displayed.";
|
|
2220
|
-
if (this.div || this.
|
|
2236
|
+
if (this.div || this.Gb(), this.Za(), this.useIframe) {
|
|
2221
2237
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
2222
2238
|
window.setTimeout(t(this, e), 0);
|
|
2223
2239
|
}
|
|
2224
2240
|
else
|
|
2225
2241
|
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
|
|
2226
|
-
this.
|
|
2242
|
+
this.Za(), this.Hb(), this.Ib();
|
|
2227
2243
|
}, this.showUrl = function (e) {
|
|
2228
2244
|
if (DayPilot.ModalStatic.displayed(this))
|
|
2229
2245
|
throw "This modal dialog is already displayed.";
|
|
2230
2246
|
if (this.useIframe) {
|
|
2231
|
-
this.div || this.
|
|
2247
|
+
this.div || this.Gb();
|
|
2232
2248
|
var i = this.loadingHtml;
|
|
2233
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Jb), this.iframe.src = e, this.
|
|
2249
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Jb), this.iframe.src = e, this.Za(), this.Hb(), this.Ib();
|
|
2234
2250
|
}
|
|
2235
2251
|
else
|
|
2236
2252
|
t.Kb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
|
|
@@ -2257,7 +2273,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2257
2273
|
window.console && console.log("HTTP error " + t.status);
|
|
2258
2274
|
}, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
2259
2275
|
}
|
|
2260
|
-
}, this.
|
|
2276
|
+
}, this.Za = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Nb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Jb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
|
|
2261
2277
|
var e = function () { return t.Mb().y; }, i = function () { return t.Mb().x; };
|
|
2262
2278
|
if (this.useIframe) {
|
|
2263
2279
|
for (var a = i() - 40, n = this.width; n < a && this.Ob(); n += 10)
|
|
@@ -2288,12 +2304,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2288
2304
|
}
|
|
2289
2305
|
var t = e.body.clientWidth, i = e.body.clientHeight;
|
|
2290
2306
|
return { x: t, y: i };
|
|
2291
|
-
}, this.Hb = function () { this.
|
|
2292
|
-
if (t.
|
|
2293
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
2294
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
2307
|
+
}, this.Hb = function () { this.Db || (this.re(window, "resize", this.Qb), this.re(window, "scroll", this.Rb), this.dragDrop && (this.re(document, "mousemove", this.Sb), this.re(document, "mouseup", this.Tb)), this.Db = !0); }, this.Ub = function () { this.ue(window, "resize", this.Qb), this.ue(window, "scroll", this.Rb), this.dragDrop && (this.ue(document, "mousemove", this.Sb), this.ue(document, "mouseup", this.Tb)), this.Db = !1; }, this.Vb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Wb(), t.Fb = t.mc(e || window.event), t.Eb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Sb = function (e) {
|
|
2308
|
+
if (t.Fb) {
|
|
2309
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Fb.x, n = i.y - t.Fb.y;
|
|
2310
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Eb.y + n + "px", t.div.style.left = t.Eb.x + a + "px";
|
|
2295
2311
|
}
|
|
2296
|
-
}, this.Tb = function (e) { t.
|
|
2312
|
+
}, this.Tb = function (e) { t.Fb && (t.Xb(), t.div.style.cursor = null, t.Fb = null); }, this.Wb = function () {
|
|
2297
2313
|
if (this.useIframe) {
|
|
2298
2314
|
var e = document.createElement("div");
|
|
2299
2315
|
e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
|
|
@@ -2312,7 +2328,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2312
2328
|
for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
2313
2329
|
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
|
|
2314
2330
|
return t;
|
|
2315
|
-
}, this.
|
|
2331
|
+
}, this.Gb = function () { var e = t.Zb.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Vb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.$b || (t.stretch(), t.$b = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
|
|
2316
2332
|
for (var e = t.Lb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
2317
2333
|
var o = i[n], r = o.name;
|
|
2318
2334
|
if (r) {
|
|
@@ -2862,9 +2878,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2862
2878
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2863
2879
|
var e = {};
|
|
2864
2880
|
e.Month = function (t, i) {
|
|
2865
|
-
this.v = "
|
|
2881
|
+
this.v = "2024.1.517-lite", this.nav = {};
|
|
2866
2882
|
var a = this;
|
|
2867
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
2883
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.N = !1, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
2868
2884
|
var t = null;
|
|
2869
2885
|
if (e instanceof DayPilot.Event)
|
|
2870
2886
|
t = e.data;
|
|
@@ -2926,13 +2942,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2926
2942
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
2927
2943
|
}
|
|
2928
2944
|
}, this.update = function (e) {
|
|
2929
|
-
if (a
|
|
2930
|
-
|
|
2945
|
+
if (a._a(e), this.za) {
|
|
2946
|
+
if (a.N)
|
|
2947
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
2948
|
+
if (this.cells) {
|
|
2949
|
+
a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
|
|
2950
|
+
}
|
|
2931
2951
|
}
|
|
2932
|
-
}, this.
|
|
2952
|
+
}, this.cb = null, this._a = function (e) {
|
|
2933
2953
|
if (e) {
|
|
2934
2954
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
2935
|
-
this.
|
|
2955
|
+
this.cb = t;
|
|
2936
2956
|
for (var i in e)
|
|
2937
2957
|
if (t[i]) {
|
|
2938
2958
|
var n = t[i];
|
|
@@ -2941,14 +2961,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2941
2961
|
else
|
|
2942
2962
|
a[i] = e[i];
|
|
2943
2963
|
}
|
|
2944
|
-
}, this.
|
|
2945
|
-
var e = this.
|
|
2964
|
+
}, this.db = function () {
|
|
2965
|
+
var e = this.cb;
|
|
2946
2966
|
for (var t in e) {
|
|
2947
2967
|
var i = e[t];
|
|
2948
2968
|
i.postInit && i.postInit();
|
|
2949
2969
|
}
|
|
2950
|
-
}, this.
|
|
2951
|
-
var t = this.
|
|
2970
|
+
}, this.fb = {}, this.fb.events = [], this.gb = function (e) {
|
|
2971
|
+
var t = this.fb.events, i = this.events.list[e], n = {};
|
|
2952
2972
|
for (var o in i)
|
|
2953
2973
|
n[o] = i[o];
|
|
2954
2974
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -2963,7 +2983,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2963
2983
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
2964
2984
|
if ("function" == typeof this.onBeforeEventRender)
|
|
2965
2985
|
for (var t = 0; t < e.length; t++)
|
|
2966
|
-
this.
|
|
2986
|
+
this.gb(t);
|
|
2967
2987
|
for (var i = 0; i < e.length; i++) {
|
|
2968
2988
|
var a = e[i];
|
|
2969
2989
|
if ("object" != typeof a)
|
|
@@ -2976,12 +2996,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2976
2996
|
if (!(n.getTime() > o.getTime()))
|
|
2977
2997
|
for (var t = 0; t < this.rows.length; t++) {
|
|
2978
2998
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
2979
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
2999
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.fb.events[i]));
|
|
2980
3000
|
}
|
|
2981
3001
|
}
|
|
2982
3002
|
for (var l = 0; l < this.rows.length; l++) {
|
|
2983
3003
|
var r = this.rows[l];
|
|
2984
|
-
r.events.sort(this.
|
|
3004
|
+
r.events.sort(this.hb);
|
|
2985
3005
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
2986
3006
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
2987
3007
|
r.putIntoLine(c, u, h, l);
|
|
@@ -3000,7 +3020,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3000
3020
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
3001
3021
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
3002
3022
|
this.Ca(a[n]);
|
|
3003
|
-
}, this.
|
|
3023
|
+
}, this.hb = function (e, t) {
|
|
3004
3024
|
if (!(e && t && e.start && t.start))
|
|
3005
3025
|
return 0;
|
|
3006
3026
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -3048,7 +3068,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3048
3068
|
}
|
|
3049
3069
|
else if ("move" === this.style.cursor || t.client.moveEnabled()) {
|
|
3050
3070
|
a.clearShadow();
|
|
3051
|
-
var c = DayPilot.
|
|
3071
|
+
var c = DayPilot.mo3(a.nav.top, i);
|
|
3052
3072
|
if (!c)
|
|
3053
3073
|
return;
|
|
3054
3074
|
var h = a.getCellBelowPoint(c.x, c.y), f = DayPilot.DateUtil.daysDiff(t.start(), a.rows[n].start), m = 7 * h.y + h.x - (7 * n + r);
|
|
@@ -3067,7 +3087,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3067
3087
|
}
|
|
3068
3088
|
}, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
|
|
3069
3089
|
var h = document.createElement("div");
|
|
3070
|
-
if (h.setAttribute("unselectable", "on"), h.className = this.J("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor
|
|
3090
|
+
if (h.setAttribute("unselectable", "on"), h.className = this.J("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
|
|
3071
3091
|
var f = document.createElement("div");
|
|
3072
3092
|
f.setAttribute("unselectable", "on"), f.className = this.J("_event_bar"), f.style.position = "absolute";
|
|
3073
3093
|
var m = document.createElement("div");
|
|
@@ -3119,7 +3139,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3119
3139
|
var n = document.createElement("div");
|
|
3120
3140
|
this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) {
|
|
3121
3141
|
if (e.resizingEvent) {
|
|
3122
|
-
var i = DayPilot.
|
|
3142
|
+
var i = DayPilot.mo3(a.nav.top, t);
|
|
3123
3143
|
if (!i)
|
|
3124
3144
|
return;
|
|
3125
3145
|
var n = a.getCellBelowPoint(i.x, i.y);
|
|
@@ -3138,7 +3158,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3138
3158
|
o < 1 && (o = 1), a.drawShadow(r.x, r.y, 0, o);
|
|
3139
3159
|
}
|
|
3140
3160
|
else if (e.movingEvent) {
|
|
3141
|
-
var i = DayPilot.
|
|
3161
|
+
var i = DayPilot.mo3(a.nav.top, t);
|
|
3142
3162
|
if (!i)
|
|
3143
3163
|
return;
|
|
3144
3164
|
if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
|
|
@@ -3152,7 +3172,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3152
3172
|
o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, f, h);
|
|
3153
3173
|
}
|
|
3154
3174
|
else if (e.timeRangeSelecting) {
|
|
3155
|
-
var i = DayPilot.
|
|
3175
|
+
var i = DayPilot.mo3(a.nav.top, t);
|
|
3156
3176
|
if (!i)
|
|
3157
3177
|
return;
|
|
3158
3178
|
var n = a.getCellBelowPoint(i.x, i.y);
|
|
@@ -3202,9 +3222,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3202
3222
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
3203
3223
|
this.cells[e][t].onclick = null;
|
|
3204
3224
|
this.nav.cells.innerHTML = "";
|
|
3205
|
-
}, this.oa = function () {
|
|
3206
|
-
return 2 === a.api;
|
|
3207
|
-
}, this.Nc = function (t, i, o) {
|
|
3225
|
+
}, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
|
|
3208
3226
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
3209
3227
|
if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px", l.className = this.J("_cell"), !this.isWeekend(s)) {
|
|
3210
3228
|
var d = this.J("_cell_business");
|
|
@@ -3373,7 +3391,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3373
3391
|
}
|
|
3374
3392
|
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { a.qa.scope && a.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
|
|
3375
3393
|
var n = this._;
|
|
3376
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.
|
|
3394
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.N || (e.N = !0, e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.N; }, this.Ya = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.eb = function () {
|
|
3377
3395
|
if (this.id && this.id.tagName)
|
|
3378
3396
|
this.nav.top = this.id;
|
|
3379
3397
|
else {
|
|
@@ -3382,7 +3400,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3382
3400
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3383
3401
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3384
3402
|
}
|
|
3385
|
-
}, this.
|
|
3403
|
+
}, this.kb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ia = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this._a, this.internal.xssTextHtml = a.Ia, this.init = function () { return this.eb(), this.loadFromServer() ? void this.kb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this._a(i);
|
|
3386
3404
|
}, e.gMouseUp = function (t) {
|
|
3387
3405
|
if (e.movingEvent) {
|
|
3388
3406
|
var i = e.movingEvent;
|
|
@@ -3461,9 +3479,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3461
3479
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3462
3480
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3463
3481
|
DayPilot.Navigator = function (e, t) {
|
|
3464
|
-
this.v = "
|
|
3482
|
+
this.v = "2024.1.517-lite";
|
|
3465
3483
|
var i = this;
|
|
3466
|
-
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
3484
|
+
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.fb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) {
|
|
3467
3485
|
var a = {};
|
|
3468
3486
|
a.cells = [], a.days = [], a.weeks = [];
|
|
3469
3487
|
var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
|
|
@@ -3511,19 +3529,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3511
3529
|
var k = document.createElement("div");
|
|
3512
3530
|
k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_dayheader"), k.innerHTML = "<span>" + this.Uc(S) + "</span>", v.appendChild(k), a.days.push(k);
|
|
3513
3531
|
for (var C = 0; C < h; C++) {
|
|
3514
|
-
var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n,
|
|
3532
|
+
var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
3515
3533
|
if ("month" === this.Wc())
|
|
3516
3534
|
M = M && T;
|
|
3517
3535
|
else if ("day" === this.Wc())
|
|
3518
|
-
M = M && (T || r && A || s &&
|
|
3536
|
+
M = M && (T || r && A || s && H);
|
|
3519
3537
|
else if ("week" === this.Wc()) {
|
|
3520
|
-
var
|
|
3521
|
-
M = M && (
|
|
3538
|
+
var E = P.firstDayOfMonth() === n;
|
|
3539
|
+
M = M && (E || r && A || s && H);
|
|
3522
3540
|
}
|
|
3523
3541
|
var N = document.createElement("div");
|
|
3524
3542
|
a.cells[S][C] = N;
|
|
3525
3543
|
var I = i.Xc(S, C), z = I.x, O = I.y;
|
|
3526
|
-
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth =
|
|
3544
|
+
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
3527
3545
|
var U = document.createElement("div");
|
|
3528
3546
|
U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Qc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
|
|
3529
3547
|
var R = null;
|
|
@@ -3531,7 +3549,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3531
3549
|
var L = {};
|
|
3532
3550
|
L.cell = R || {}, L.cell.day = P, L.cell.isCurrentMonth = T, L.cell.isToday = P.getTime() === f.getTime() && T, L.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), R ? (L.cell.html = R.html || P.getDay(), L.cell.cssClass = R.css) : (L.cell.html = P.getDay(), L.cell.cssClass = null), i.onBeforeCellRender(L), R = L.cell;
|
|
3533
3551
|
}
|
|
3534
|
-
if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s &&
|
|
3552
|
+
if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s && H) {
|
|
3535
3553
|
var j = document.createElement("div");
|
|
3536
3554
|
j.innerHTML = P.getDay(), j.style.position = "absolute", j.style.left = "0px", j.style.top = "0px", j.style.right = "0px", j.style.bottom = "0px", i.Qc(j, "cell_text"), N.isClickable = !0, R && R.html && (j.innerHTML = R.html), N.appendChild(j);
|
|
3537
3555
|
}
|
|
@@ -3580,17 +3598,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3580
3598
|
}
|
|
3581
3599
|
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.bd(), this.Jc(), this.Oc(), this.fd(), this._c(), this.ad(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.gd();
|
|
3582
3600
|
}, this.update = function (e) {
|
|
3583
|
-
if (i
|
|
3584
|
-
if (i.
|
|
3601
|
+
if (i._a(e), this.za) {
|
|
3602
|
+
if (i.N)
|
|
3585
3603
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
3586
|
-
i.
|
|
3604
|
+
i.hd();
|
|
3587
3605
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
3588
|
-
i.
|
|
3606
|
+
i.Za(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
3589
3607
|
}
|
|
3590
|
-
}, this.
|
|
3608
|
+
}, this.Za = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.ca(), this._c(), this.ad(), this.visible ? this.show() : this.hide(); }, this.hd = function () { i.fb = {}; }, this.cb = null, this._a = function (e) {
|
|
3591
3609
|
if (e) {
|
|
3592
3610
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
3593
|
-
this.
|
|
3611
|
+
this.cb = t;
|
|
3594
3612
|
for (var a in e)
|
|
3595
3613
|
if (t[a]) {
|
|
3596
3614
|
var n = t[a];
|
|
@@ -3599,20 +3617,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3599
3617
|
else
|
|
3600
3618
|
i[a] = e[a];
|
|
3601
3619
|
}
|
|
3602
|
-
}, this.
|
|
3603
|
-
var e = this.
|
|
3620
|
+
}, this.db = function () {
|
|
3621
|
+
var e = this.cb;
|
|
3604
3622
|
for (var t in e) {
|
|
3605
3623
|
var i = e[t];
|
|
3606
3624
|
i.postInit && i.postInit();
|
|
3607
3625
|
}
|
|
3608
|
-
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.
|
|
3626
|
+
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.jd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.jd = function (e) {
|
|
3609
3627
|
if ("function" == typeof i.onAjaxError) {
|
|
3610
3628
|
var t = {};
|
|
3611
3629
|
t.request = e, i.onAjaxError(t);
|
|
3612
3630
|
}
|
|
3613
3631
|
else
|
|
3614
3632
|
"function" == typeof i.ajaxError && i.ajaxError(e);
|
|
3615
|
-
}, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.
|
|
3633
|
+
}, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.kd = function (e, t) { "refresh" === e && this.gd(); }, this.Uc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Vc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.ld = function (e) {
|
|
3616
3634
|
for (var t = 0; t < i.months.length; t++) {
|
|
3617
3635
|
var a = i.months[t];
|
|
3618
3636
|
if (!a)
|
|
@@ -3624,8 +3642,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3624
3642
|
return t;
|
|
3625
3643
|
}
|
|
3626
3644
|
return null;
|
|
3627
|
-
}, this.
|
|
3628
|
-
var t = DayPilot.mo3(i.nav.top, e), a = i.
|
|
3645
|
+
}, this.md = function (e) {
|
|
3646
|
+
var t = DayPilot.mo3(i.nav.top, e), a = i.ld(t);
|
|
3629
3647
|
if (null === a)
|
|
3630
3648
|
return null;
|
|
3631
3649
|
var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
|
|
@@ -3638,14 +3656,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3638
3656
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
3639
3657
|
}
|
|
3640
3658
|
return null;
|
|
3641
|
-
}, this.
|
|
3659
|
+
}, this.nd = function (e) {
|
|
3642
3660
|
if (i.freeHandSelectionEnabled) {
|
|
3643
|
-
var t = i.
|
|
3661
|
+
var t = i.md(e);
|
|
3644
3662
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
3645
3663
|
}
|
|
3646
|
-
}, this.
|
|
3664
|
+
}, this.od = function (e) {
|
|
3647
3665
|
if (a.start) {
|
|
3648
|
-
var t = i.
|
|
3666
|
+
var t = i.md(e);
|
|
3649
3667
|
if (a.end)
|
|
3650
3668
|
a.end = t;
|
|
3651
3669
|
else if (t) {
|
|
@@ -3654,8 +3672,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3654
3672
|
}
|
|
3655
3673
|
a.end && (a.clear(), a.draw());
|
|
3656
3674
|
}
|
|
3657
|
-
}, this.
|
|
3658
|
-
var a = this.
|
|
3675
|
+
}, this.pd = {};
|
|
3676
|
+
var a = this.pd;
|
|
3659
3677
|
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Xc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () {
|
|
3660
3678
|
if (a.cells) {
|
|
3661
3679
|
for (var e = 0; e < a.cells.length; e++)
|
|
@@ -3802,7 +3820,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3802
3820
|
case "None": break;
|
|
3803
3821
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
3804
3822
|
}
|
|
3805
|
-
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.
|
|
3823
|
+
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.qd(i.skipMonths); }, this.Sc = function (e) { i.qd(-i.skipMonths); }, this.qd = function (e) { this.startDate = this.startDate.addMonths(e), this.Jc(), this.Oc(), this.fd(), this.ad(), this.gd(), this._c(); }, this.dd = function () { return i.startDate.firstDayOfMonth(); }, this.ed = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.gd = function () {
|
|
3806
3824
|
var e = this.visibleStart(), t = this.visibleEnd();
|
|
3807
3825
|
if (i.oa()) {
|
|
3808
3826
|
var a = {};
|
|
@@ -3834,11 +3852,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3834
3852
|
}
|
|
3835
3853
|
}, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i._c(); }, this.fd = function () {
|
|
3836
3854
|
for (var e = 0; e < this.showMonths; e++) {
|
|
3837
|
-
var t = this.
|
|
3855
|
+
var t = this.rd(e);
|
|
3838
3856
|
this.Kc(e, t);
|
|
3839
3857
|
}
|
|
3840
|
-
this.root.style.height = this.
|
|
3841
|
-
}, this.
|
|
3858
|
+
this.root.style.height = this.sd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
|
|
3859
|
+
}, this.sd = function () {
|
|
3842
3860
|
if ("Horizontal" === this.orientation) {
|
|
3843
3861
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
3844
3862
|
var i = this.months[t];
|
|
@@ -3851,12 +3869,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3851
3869
|
a += i.height;
|
|
3852
3870
|
}
|
|
3853
3871
|
return a;
|
|
3854
|
-
}, this.
|
|
3872
|
+
}, this.rd = function (e) {
|
|
3855
3873
|
if (this.internal.showLinks)
|
|
3856
3874
|
return this.internal.showLinks;
|
|
3857
3875
|
var t = {};
|
|
3858
3876
|
return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t;
|
|
3859
|
-
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i
|
|
3877
|
+
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i._a, this.internal.initialized = function () { return i.za; }, this._ = {};
|
|
3860
3878
|
var o = this._;
|
|
3861
3879
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
|
|
3862
3880
|
if ("Auto" === i.weekStarts) {
|
|
@@ -3865,33 +3883,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3865
3883
|
}
|
|
3866
3884
|
return i.weekStarts;
|
|
3867
3885
|
}, o.cellWidth = function () {
|
|
3868
|
-
if (i.
|
|
3869
|
-
return i.
|
|
3870
|
-
var e = i.
|
|
3871
|
-
return e || (e = i.cellWidth), i.
|
|
3886
|
+
if (i.fb.cellWidth)
|
|
3887
|
+
return i.fb.cellWidth;
|
|
3888
|
+
var e = i.td("_cell_dimensions").width;
|
|
3889
|
+
return e || (e = i.cellWidth), i.fb.cellWidth = e, e;
|
|
3872
3890
|
}, this.clearSelection = function () {
|
|
3873
3891
|
for (var e = 0; e < this.selected.length; e++) {
|
|
3874
3892
|
var t = this.selected[e];
|
|
3875
3893
|
i.$c(t.parentNode, t.x, t.y);
|
|
3876
3894
|
}
|
|
3877
3895
|
this.selected = [];
|
|
3878
|
-
}, this.
|
|
3896
|
+
}, this.ud = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () {
|
|
3879
3897
|
if (DayPilot.isArray(this.events.list)) {
|
|
3880
3898
|
this.items = {};
|
|
3881
3899
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
3882
3900
|
var t = this.events.list[e];
|
|
3883
3901
|
if (!t.hidden) {
|
|
3884
|
-
var i = this.
|
|
3902
|
+
var i = this.vd(t);
|
|
3885
3903
|
for (var a in i)
|
|
3886
3904
|
this.items[a] = 1;
|
|
3887
3905
|
}
|
|
3888
3906
|
}
|
|
3889
3907
|
}
|
|
3890
|
-
}, this.
|
|
3908
|
+
}, this.td = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.vd = function (e) {
|
|
3891
3909
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
3892
3910
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3893
3911
|
return a;
|
|
3894
|
-
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
3912
|
+
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.eb = function () {
|
|
3895
3913
|
if (this.id && this.id.tagName)
|
|
3896
3914
|
this.nav.top = this.id;
|
|
3897
3915
|
else {
|
|
@@ -3902,15 +3920,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3902
3920
|
}
|
|
3903
3921
|
this.root = this.nav.top;
|
|
3904
3922
|
}, this.init = function () {
|
|
3905
|
-
if (this.
|
|
3906
|
-
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.
|
|
3907
|
-
if (this.
|
|
3923
|
+
if (this.eb(), !this.root.dp) {
|
|
3924
|
+
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.wd(), this.Ya();
|
|
3925
|
+
if (this.ud() && this.gd(), this.za = !0, this.db(), this.cd) {
|
|
3908
3926
|
var e = this.cd;
|
|
3909
3927
|
this.select(e.date1, e.date2, e.options), this.cd = null;
|
|
3910
3928
|
}
|
|
3911
3929
|
return this;
|
|
3912
3930
|
}
|
|
3913
|
-
}, this.
|
|
3931
|
+
}, this.wd = function () { i.nav.top.onmousedown = this.nd, i.nav.top.onmousemove = this.od; }, this.Ya = function () { DayPilot.re(document, "mouseup", i.xd); }, this.xd = function (e) {
|
|
3914
3932
|
if (a.start && a.end) {
|
|
3915
3933
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
3916
3934
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
@@ -3921,7 +3939,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3921
3939
|
i.L({ "mode": "FreeHand" });
|
|
3922
3940
|
}
|
|
3923
3941
|
a.start = null, a.end = null;
|
|
3924
|
-
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.
|
|
3942
|
+
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.N = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this._a(t);
|
|
3925
3943
|
}, "undefined" != typeof jQuery && !function (e) {
|
|
3926
3944
|
e.fn.daypilotNavigator = function (e) {
|
|
3927
3945
|
var t = null, i = this.each(function () {
|