@daypilot/daypilot-lite-angular 5.2.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/core/daypilot-core.mjs +780 -773
- package/esm2022/lib/daypilot-navigator.component.mjs +20 -5
- package/fesm2022/daypilot-daypilot-lite-angular.mjs +798 -776
- package/fesm2022/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +1 -0
- package/lib/daypilot-navigator.component.d.ts +0 -1
- package/package.json +2 -2
|
@@ -144,6 +144,7 @@ var DayPilot;
|
|
|
144
144
|
businessBeginsHour;
|
|
145
145
|
businessEndsHour;
|
|
146
146
|
cellHeight;
|
|
147
|
+
cellDuration;
|
|
147
148
|
columnMarginLeft;
|
|
148
149
|
columnMarginRight;
|
|
149
150
|
columnsLoadMethod;
|
|
@@ -482,7 +483,7 @@ DayPilot Lite
|
|
|
482
483
|
Copyright (c) 2005 - 2026 Annpoint s.r.o.
|
|
483
484
|
https://www.daypilot.org/
|
|
484
485
|
Licensed under Apache Software License 2.0
|
|
485
|
-
Version: 2026.1.
|
|
486
|
+
Version: 2026.1.796-lite
|
|
486
487
|
*/
|
|
487
488
|
"use strict";
|
|
488
489
|
var DayPilot = { Global: {} };
|
|
@@ -555,8 +556,8 @@ var DayPilot = { Global: {} };
|
|
|
555
556
|
return a; var i = document.createElement("style"); i.nonce = e(), i.styleSheet || i.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(i); var r = !!i.styleSheet, o = {}; return o.rules = [], o.commit = function () { r && (i.styleSheet.cssText = this.rules.join("\n")); }, o.add = function (e, t, n) { return r ? void this.rules.push(e + "{" + t + "}") : void (i.sheet.insertRule ? ("undefined" == typeof n && (n = i.sheet.cssRules.length), i.sheet.insertRule(e + "{" + t + "}", n)) : i.sheet.addRule && i.sheet.addRule(e, t, n)); }, o; }, 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 () {
|
|
556
557
|
if (!DayPilot.Global.defaultCss) {
|
|
557
558
|
var e = DayPilot.sheet();
|
|
558
|
-
e.add(".menu_default_main", "border-radius: 4px; box-shadow: 0 0px 10px 0px #00000022; user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".calendar_default_main", "--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 4px;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 4px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size: 10px; vertical-align: super; padding-left: 2px; padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_event:hover .calendar_default_event_inner", "background: var(--dp-calendar-event-background-hover);"), e.add(".calendar_default_alldayevent", "color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_alldayevent:hover .calendar_default_alldayevent_inner", "background: var(--dp-calendar-allday-event-background-hover);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "color: var(--dp-calendar-event-color); box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), e.add(".calendar_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".calendar_default_event_delete:hover", "opacity: 0.7;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", "--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 4px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #208fe3;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_event:hover .month_default_event_inner", "background: var(--dp-month-event-background-hover);"), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "),
|
|
559
|
-
e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), e.add(".month_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".month_default_event_delete:hover", "opacity: 0.7;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "), e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", "--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", '--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-background-hover: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color-hover) 0%, var(--dp-scheduler-event-bg-bottom-color-hover) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bg-bottom-color-hover: #e8e8e8;--dp-scheduler-event-bg-top-color-hover: #f8f8f8;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #208fe3;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 4px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner, .scheduler_default_event:hover.scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event:hover .scheduler_default_event_inner", "background: var(--dp-scheduler-event-background-hover);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";position:absolute;top:calc(50% - 5px);left:1px;width:5px;height:10px;opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_tree_image_collapse", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".scheduler_default_event_delete:hover", "opacity: 0.7;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;");
|
|
559
|
+
e.add(".menu_default_main", "border-radius: 4px; box-shadow: 0 0px 10px 0px #00000022; user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".calendar_default_main", "--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 4px;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 4px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size: 10px; vertical-align: super; padding-left: 2px; padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_event:hover .calendar_default_event_inner", "background: var(--dp-calendar-event-background-hover);"), e.add(".calendar_default_alldayevent", "color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_alldayevent:hover .calendar_default_alldayevent_inner", "background: var(--dp-calendar-allday-event-background-hover);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner, .calendar_default_event:hover.calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "color: var(--dp-calendar-event-color); box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), e.add(".calendar_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".calendar_default_event_delete:hover", "opacity: 0.7;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", "--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 4px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #208fe3;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_event:hover .month_default_event_inner", "background: var(--dp-month-event-background-hover);"), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "),
|
|
560
|
+
e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner, .month_default_event:hover.month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), e.add(".month_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".month_default_event_delete:hover", "opacity: 0.7;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "), e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", "--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", '--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-background-hover: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color-hover) 0%, var(--dp-scheduler-event-bg-bottom-color-hover) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bg-bottom-color-hover: #e8e8e8;--dp-scheduler-event-bg-top-color-hover: #f8f8f8;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #208fe3;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 4px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner, .scheduler_default_event:hover.scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event:hover .scheduler_default_event_inner", "background: var(--dp-scheduler-event-background-hover);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";position:absolute;top:calc(50% - 5px);left:1px;width:5px;height:10px;opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_tree_image_collapse", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".scheduler_default_event_delete:hover", "opacity: 0.7;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;");
|
|
560
561
|
e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top", "background-color: gray; opacity: 0.2;");
|
|
561
562
|
e.add(".scheduler_default_link_dot", "border-radius: 10px; background-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_task_milestone .scheduler_default_event_inner", "position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"), e.add(".scheduler_default_event_left, .scheduler_default_event_right", "white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;"), e.add(".scheduler_default_main:focus", "outline: none;"), e.add(".scheduler_default_cell_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; outline-offset: -2px; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_top", "border-top: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_bottom", "border-bottom: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_selectionrectangle", "background-color: var(--dp-scheduler-selectionrectangle-color); border: 1px solid #000033; opacity: 0.4;"), e.add(".scheduler_default_link_shadow", "border:1px solid black;"), e.add(".scheduler_default_link_shadow_circle", "background-color:black;"), e.add(".scheduler_default_event_move_left", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_event_move_right", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_link_hover", "box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)"), e.add(".scheduler_default_sorticon", "opacity: 0.2;background-position: center center; background-repeat: no-repeat; cursor: pointer;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_asc", "background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc", "background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_active", "opacity: 0.7;"), e.add(".scheduler_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".scheduler_default_link_curve", "stroke: var(--dp-scheduler-link-color); fill: none; stroke-width: 2;"), e.add(".scheduler_default_link_curve:hover", "stroke-opacity: 0.5;"), e.add(".scheduler_default_link_curve_dot", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_marker", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_text", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve", "stroke: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_dot", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_marker", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_text", "fill: #aaaaaa;"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
562
563
|
}
|
|
@@ -590,7 +591,8 @@ var DayPilot = { Global: {} };
|
|
|
590
591
|
if (4 === t.readyState)
|
|
591
592
|
if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
|
|
592
593
|
var e = {};
|
|
593
|
-
e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)),
|
|
594
|
+
e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)),
|
|
595
|
+
r(e);
|
|
594
596
|
}
|
|
595
597
|
else if (o) {
|
|
596
598
|
var n = {};
|
|
@@ -753,8 +755,9 @@ var DayPilot = { Global: {} };
|
|
|
753
755
|
DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e); }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) { if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
|
|
754
756
|
for (var n in t)
|
|
755
757
|
this[n] = t[n]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
|
|
756
|
-
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ca", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ko-kr", { "dayNames": ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], "dayNamesShort": ["일", "월", "화", "수", "목", "금", "토"], "monthNames": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "tt h:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd tt h:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"],
|
|
757
|
-
"
|
|
758
|
+
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ca", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ko-kr", { "dayNames": ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], "dayNamesShort": ["일", "월", "화", "수", "목", "금", "토"], "monthNames": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "tt h:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd tt h:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", {
|
|
759
|
+
"dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0
|
|
760
|
+
})), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-tw", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "timePattern": "tt hh:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d tt hh:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) { function t(e, t, a) { var i = {}; i.start = e, i.end = t, i.day = a, i.target = n.m.control, i.preventDefault = function () { this.preventDefault.value = !0; }; var r = n.J; r && r.start === i.start && r.end === i.end && r.day === i.day && r.target === i.target || (n.J = i, "function" == typeof n.onChange && (n.onChange(i), i.preventDefault.value) || "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(i), i.preventDefault.value) || (n.m.u(n.n), "function" == typeof n.onChanged && n.onChanged(i), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(i))); } var n = this; this.j = [], this.k = [], this.l = {}, this.selectedClass = null, this.syncScrollbar = !0, this.m = null, this.n = DayPilot.Date.today(), this.o = null, this.onChange = null, this.onChanged = null, this.onSelect = null, this.l.updateMode = function (e) { var t = n.l.control; t && (t.selectMode = e, t.select(n.n)); }, this.addView = function (e, t) { var a; if ("string" == typeof e) {
|
|
758
761
|
if (a = document.getElementById(e), !a)
|
|
759
762
|
throw "Element not found: " + e;
|
|
760
763
|
}
|
|
@@ -961,14 +964,12 @@ var DayPilot = { Global: {} };
|
|
|
961
964
|
var o = this;
|
|
962
965
|
this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", 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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.rtl = !1, this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.R = !1, this.S = {};
|
|
963
966
|
var s = this.S;
|
|
964
|
-
this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.T(); }, this.T = function () { DayPilot.de(o.elements.selection), o.elements.selection = [], o.nav.activeSelection = null; }, this.U = function (e, t, n) {
|
|
965
|
-
this.callbackTimeout && window.clearTimeout(this.callbackTimeout),
|
|
966
|
-
this.callbackTimeout = window.setTimeout(function () { o.loadingStart(); }, 100);
|
|
967
|
+
this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.T(); }, this.T = function () { DayPilot.de(o.elements.selection), o.elements.selection = [], o.nav.activeSelection = null; }, this.U = function (e, t, n) {
|
|
967
968
|
var a = {};
|
|
968
969
|
a.action = e, a.parameters = n, a.data = t, a.header = this.V();
|
|
969
970
|
var i = "JSON" + JSON.stringify(a);
|
|
970
|
-
|
|
971
|
-
}, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = o; e.R || (e.R = !0, clearInterval(e.Z), e._(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.aa(), e.ba(), 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.R; }, this.ca = function () { this.nav.top.dispose = this.dispose; }, this.X = function (e) { o.Y(e.responseText); }, this.V = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = o.days, e.startDate = o.startDate, e.heightSpec = o.heightSpec, e.businessBeginsHour = o.businessBeginsHour, e.businessEndsHour = o.businessEndsHour, e.hashes = o.hashes, e.timeFormat = o.timeFormat, e.viewType = o.viewType, e.locale = o.locale, e; }, this.da = function (e) { for (var t = e.parentNode; t && "TD" !== t.tagName;)
|
|
971
|
+
__doPostBack(o.uniqueID, i);
|
|
972
|
+
}, this.W = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { o.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.V(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.X, i, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, i, this.Y, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = o; e.R || (e.R = !0, clearInterval(e.Z), e._(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.aa(), e.ba(), 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.R; }, this.ca = function () { this.nav.top.dispose = this.dispose; }, this.X = function (e) { o.Y(e.responseText); }, this.V = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = o.days, e.startDate = o.startDate, e.heightSpec = o.heightSpec, e.businessBeginsHour = o.businessBeginsHour, e.businessEndsHour = o.businessEndsHour, e.hashes = o.hashes, e.timeFormat = o.timeFormat, e.viewType = o.viewType, e.locale = o.locale, e; }, this.da = function (e) { for (var t = e.parentNode; t && "TD" !== t.tagName;)
|
|
972
973
|
t = t.parentNode; var n = o.eventBorderRadius; "number" == typeof n && (n += "px"); var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = o.M("_shadow"); var i = document.createElement("div"); return i.className = o.M("_shadow_inner"), n && (i.style.borderRadius = n, a.style.borderRadius = n), a.appendChild(i), t.firstChild.appendChild(a), a; }, this.S.locale = function () { var e = DayPilot.Locale.find(o.locale); return e ? e : DayPilot.Locale.US; }, this.S.timeFormat = function () { return "Auto" !== o.timeFormat ? o.timeFormat : this.locale().timeFormat; }, this.S.ea = function () { return "Disabled" !== o.xssProtection; }, this.S.fa = function () { if ("Auto" === o.weekStarts) {
|
|
973
974
|
var e = s.locale();
|
|
974
975
|
return e ? e.weekStarts : 0;
|
|
@@ -1343,8 +1344,7 @@ var DayPilot = { Global: {} };
|
|
|
1343
1344
|
var i = o.cellHeight, r = 0, s = a.y - t.originalMouse.y;
|
|
1344
1345
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1345
1346
|
var l = t.originalHeight + s;
|
|
1346
|
-
o.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + i / 2) / i) * i - t.originalTop + r),
|
|
1347
|
-
l < i && (l = i);
|
|
1347
|
+
o.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + i / 2) / i) * i - t.originalTop + r), l < i && (l = i);
|
|
1348
1348
|
var d = o.nav.main.clientHeight;
|
|
1349
1349
|
t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
|
|
1350
1350
|
}
|
|
@@ -1524,11 +1524,11 @@ var DayPilot = { Global: {} };
|
|
|
1524
1524
|
if ("Resources" === o.viewType && (b = b && d.id === r.resource), b) {
|
|
1525
1525
|
var w = new DayPilot.Event(r, o);
|
|
1526
1526
|
w.part.dayIndex = i, w.part.start = u < g ? p : c, w.part.end = f > y ? m : h;
|
|
1527
|
-
var x = this.getPixels(w.part.start, d.start),
|
|
1528
|
-
if (
|
|
1527
|
+
var x = this.getPixels(w.part.start, d.start), _ = this.getPixels(w.part.end, d.start), C = x.top, k = _.top;
|
|
1528
|
+
if (C === k && (x.cut || _.cut))
|
|
1529
1529
|
continue;
|
|
1530
|
-
var S =
|
|
1531
|
-
D ? (w.part.top = Math.floor(
|
|
1530
|
+
var S = _.boxBottom, D = "Always" === o.useEventBoxes;
|
|
1531
|
+
D ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(S / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
|
|
1532
1532
|
var M = w.part.top, T = w.part.top + w.part.height;
|
|
1533
1533
|
M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
|
|
1534
1534
|
}
|
|
@@ -1698,13 +1698,13 @@ var DayPilot = { Global: {} };
|
|
|
1698
1698
|
if (h.icon) {
|
|
1699
1699
|
var x = document.createElement("span");
|
|
1700
1700
|
x.className = a.Sb("item_icon");
|
|
1701
|
-
var
|
|
1702
|
-
|
|
1701
|
+
var _ = document.createElement("i");
|
|
1702
|
+
_.className = h.icon, x.appendChild(_), p.appendChild(x);
|
|
1703
1703
|
}
|
|
1704
1704
|
if (h.symbol) {
|
|
1705
|
-
var
|
|
1705
|
+
var C = "http://www.w3.org/2000/svg", k = document.createElementNS(C, "svg");
|
|
1706
1706
|
k.setAttribute("width", "100%"), k.setAttribute("height", "100%");
|
|
1707
|
-
var S = document.createElementNS(
|
|
1707
|
+
var S = document.createElementNS(C, "use");
|
|
1708
1708
|
S.setAttribute("href", h.symbol), k.appendChild(S);
|
|
1709
1709
|
var D = document.createElement("span");
|
|
1710
1710
|
D.className = a.Sb("item_symbol"), D.style.position = "absolute", D.style.top = "0px", D.style.left = "0px", D.appendChild(k), p.appendChild(D);
|
|
@@ -1739,10 +1739,10 @@ var DayPilot = { Global: {} };
|
|
|
1739
1739
|
}
|
|
1740
1740
|
else
|
|
1741
1741
|
d = e; a.Rb.x = d, l.style.left = d + "px"; }(), r.parentLink) {
|
|
1742
|
-
var I = r.parentLink, P = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), z = DayPilot.abs(r.parentLink.parentNode),
|
|
1743
|
-
|
|
1744
|
-
var
|
|
1745
|
-
L + A -
|
|
1742
|
+
var I = r.parentLink, P = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), z = DayPilot.abs(r.parentLink.parentNode), B = z.x + I.offsetWidth, L = z.y - P;
|
|
1743
|
+
B + E > N && (B = Math.max(0, z.x - E));
|
|
1744
|
+
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1745
|
+
L + A - U > H && (L = Math.max(0, H - A + U)), l.style.left = B + "px", l.style.top = L + "px";
|
|
1746
1746
|
}
|
|
1747
1747
|
l.style.display = "", this.addShadow(l), this.Rb.div = l, r.submenu || (DayPilot.Menu.active = this);
|
|
1748
1748
|
} }, this.update = function () { if (a.Rb.visible) {
|
|
@@ -1776,10 +1776,23 @@ var DayPilot = { Global: {} };
|
|
|
1776
1776
|
"right" === t.align && (o += r.w), a.menu.show(null, { "x": o, "y": r.y + r.h, "align": t.align, "windowMargin": n.windowMargin });
|
|
1777
1777
|
}
|
|
1778
1778
|
DayPilot.MenuBar.active = n;
|
|
1779
|
-
} }, this.init = function () { return this.z(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Wb(), 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 () {
|
|
1780
|
-
"undefined" != typeof t && (t.menuClean(),
|
|
1781
|
-
|
|
1782
|
-
|
|
1779
|
+
} }, this.init = function () { return this.z(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Wb(), 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 () {
|
|
1780
|
+
"undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate());
|
|
1781
|
+
}, t.pointerDown = function (e) { if ("undefined" != typeof t) {
|
|
1782
|
+
for (var n = t.Zb(), a = 0; a < n.length; a++) {
|
|
1783
|
+
var i = n[a];
|
|
1784
|
+
if (i.Rb && i.Rb.div) {
|
|
1785
|
+
var r = i.Rb.div.getBoundingClientRect(), o = e.clientX, s = e.clientY;
|
|
1786
|
+
if (o >= r.left && o <= r.right && s >= r.top && s <= r.bottom)
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
DayPilot.MenuBar.deactivate();
|
|
1791
|
+
} }, t.Zb = function () { var e = DayPilot.Menu.active; if (!e)
|
|
1792
|
+
return []; for (var t = [e], n = 0; n < t.length;) {
|
|
1793
|
+
var a = t[n];
|
|
1794
|
+
a.Rb && a.Rb.submenu && a.Rb.submenu.menu && t.push(a.Rb.submenu.menu), n++;
|
|
1795
|
+
} return t; }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "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 () { }, t.touchPosition = function (e) { if (!e || !e.touches)
|
|
1783
1796
|
return null; var t = e.touches[0], n = {}; return n.x = t.pageX, n.y = t.pageY, n; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.mousePosition = function (e) { t.mouse = t.mousePosition(e); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1784
1797
|
var n = DayPilot.Menu.active;
|
|
1785
1798
|
if (n) {
|
|
@@ -1788,7 +1801,7 @@ var DayPilot = { Global: {} };
|
|
|
1788
1801
|
}
|
|
1789
1802
|
}
|
|
1790
1803
|
else
|
|
1791
|
-
t.menuClean(); }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "
|
|
1804
|
+
t.menuClean(); }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "pointerdown", t.pointerDown), DayPilot.re(document, "wheel", t.wheel), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), DayPilot.re(window, "resize", t.resize), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
1792
1805
|
}
|
|
1793
1806
|
}(DayPilot), function (DayPilot) {
|
|
1794
1807
|
function e(t, n, a) { var i = n.indexOf("."); if (i === -1)
|
|
@@ -1796,7 +1809,7 @@ var DayPilot = { Global: {} };
|
|
|
1796
1809
|
var o = n.substring(i + 1), s = t[r];
|
|
1797
1810
|
"object" == typeof s && null !== s || (t[r] = {}, s = t[r]), e(s, o, a);
|
|
1798
1811
|
} }
|
|
1799
|
-
function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.
|
|
1812
|
+
function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.Ac = [], this.Bc = null, this.canceling = !1, this.Cc = [], this.j = [], this.Dc = null, e = e || {}; for (var t in e)
|
|
1800
1813
|
this[t] = e[t]; }
|
|
1801
1814
|
function n() { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; }
|
|
1802
1815
|
function a() { this.element = null, this.canFocus = function () { return !1; }, this.apply = function () { }, this.focus = function () { }, this.save = function () { return {}; }; }
|
|
@@ -1804,10 +1817,10 @@ var DayPilot = { Global: {} };
|
|
|
1804
1817
|
var r = e[a];
|
|
1805
1818
|
"object" == typeof r ? "[object Array]" === Object.prototype.toString.call(r) ? t[n + a] = r : r && r.toJSON ? t[n + a] = r.toJSON() : i(r, t, n + a + ".") : t[n + a] = r;
|
|
1806
1819
|
} return t; }
|
|
1807
|
-
function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
1820
|
+
function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Jc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Kc = null, this.Lc = null, this.Mc = !1, this.Nc = null, this.Oc = null, this.s = [], this.Pc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Kc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Kc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Jc; }, set: function (e) { this.Jc = e, this.Nc && (this.Nc.disabled = e, e && this.Qc()); } }); for (var a in e)
|
|
1808
1821
|
n[a] || (this[a] = e[a]); for (var i in e)
|
|
1809
1822
|
n[i] && n[i].post(e[i]); }
|
|
1810
|
-
function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
1823
|
+
function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Sc = null, this.Ac = [], e = e || {}; for (var t in e)
|
|
1811
1824
|
this[t] = e[t]; }
|
|
1812
1825
|
if (!DayPilot.ModalStatic) {
|
|
1813
1826
|
DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () { if (this.list.length > 0) {
|
|
@@ -1830,38 +1843,44 @@ var DayPilot = { Global: {} };
|
|
|
1830
1843
|
var r = a[i];
|
|
1831
1844
|
if (r.nonce)
|
|
1832
1845
|
return r.nonce;
|
|
1833
|
-
} return ""; } if ("undefined"
|
|
1834
|
-
|
|
1835
|
-
return
|
|
1836
|
-
|
|
1837
|
-
|
|
1846
|
+
} return ""; } var t, n, a = { add: function () { }, commit: function () { }, print: function () { return ""; } }; if ("undefined" != typeof globalThis && globalThis.c)
|
|
1847
|
+
return a; if ("undefined" == typeof window)
|
|
1848
|
+
return a; if ("disable" === (null === (n = null === (t = document.querySelector('meta[name="daypilot:css"]')) || void 0 === t ? void 0 : t.content) || void 0 === n ? void 0 : n.toLowerCase()))
|
|
1849
|
+
return a; var i = document.createElement("style"); !(!document.querySelector("head > script[data-rendered-by-lwc]") && !document.querySelector("body > div#auraLoadingBox")) || (i.nonce = e()), i.styleSheet || i.appendChild(document.createTextNode("")); try {
|
|
1850
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(i);
|
|
1838
1851
|
}
|
|
1839
|
-
catch (e) {
|
|
1840
|
-
return
|
|
1841
|
-
|
|
1852
|
+
catch (e) {
|
|
1853
|
+
return a;
|
|
1854
|
+
} var r = !!i.styleSheet, o = {}; return o.rules = [], o.commit = function () { try {
|
|
1855
|
+
r && (i.styleSheet.cssText = this.rules.join("\n"));
|
|
1856
|
+
}
|
|
1857
|
+
catch (e) { } }, o.add = function (e, t, n) { if (r)
|
|
1858
|
+
return void this.rules.push(e + "{" + t + "}"); if (!i.sheet)
|
|
1859
|
+
return this; if (i.sheet.insertRule)
|
|
1860
|
+
"undefined" == typeof n && (n = i.sheet.cssRules.length), i.sheet.insertRule(e + "{" + t + "}", n);
|
|
1842
1861
|
else {
|
|
1843
|
-
if (!
|
|
1862
|
+
if (!i.sheet.addRule)
|
|
1844
1863
|
throw "No CSS registration method found";
|
|
1845
|
-
|
|
1846
|
-
} },
|
|
1847
|
-
t.push(e[
|
|
1848
|
-
d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.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;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.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;"), d.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==\")"), d.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;"), d.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==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Zb = !1, this.$b = null, this._b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1849
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1864
|
+
i.sheet.addRule(e, t, n);
|
|
1865
|
+
} }, o.print = function () { for (var e = i.sheet.cssRules, t = [], n = 0; n < e.length; n++)
|
|
1866
|
+
t.push(e[n].cssText); return t.join("\n"); }, o; }, l = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", d = new s;
|
|
1867
|
+
d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.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;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.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;"), d.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==\")"), d.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;"), d.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==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.$b = !1, this._b = null, this.bc = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1868
|
+
throw "This modal dialog is already displayed."; if (this.div || this.cc(), this.rb(), this.useIframe) {
|
|
1850
1869
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1851
1870
|
window.setTimeout(t(this, e), 0);
|
|
1852
1871
|
}
|
|
1853
1872
|
else
|
|
1854
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.rb(), this.
|
|
1873
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.rb(), this.dc(), this.ec(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1855
1874
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1856
|
-
this.div || this.
|
|
1875
|
+
this.div || this.cc();
|
|
1857
1876
|
var n = this.loadingHtml;
|
|
1858
|
-
n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.
|
|
1877
|
+
n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.fc), this.iframe.src = e, this.rb(), this.dc(), this.ec();
|
|
1859
1878
|
}
|
|
1860
1879
|
else
|
|
1861
|
-
t.
|
|
1880
|
+
t.gc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } }); }, this.ec = function () { if ("function" == typeof t.onShow) {
|
|
1862
1881
|
var e = {};
|
|
1863
|
-
e.root = t.
|
|
1864
|
-
} }, this.
|
|
1882
|
+
e.root = t.hc(), e.modal = t, t.onShow(e);
|
|
1883
|
+
} }, this.hc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.gc = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1865
1884
|
var n = e.method || "GET", a = e.success || function () { }, i = e.error || function () { }, r = e.data, o = e.url;
|
|
1866
1885
|
t.open(n, o, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1867
1886
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1874,120 +1893,133 @@ var DayPilot = { Global: {} };
|
|
|
1874
1893
|
}
|
|
1875
1894
|
else
|
|
1876
1895
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof r && (r = JSON.stringify(r)), t.send(r));
|
|
1877
|
-
} }, this.rb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.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.
|
|
1878
|
-
for (var a = n() - 40, i = this.width; i < a && this.
|
|
1896
|
+
} }, this.rb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.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.ic(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.fc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.jc().y; }, n = function () { return t.jc().x; }; if (this.useIframe) {
|
|
1897
|
+
for (var a = n() - 40, i = this.width; i < a && this.kc(); i += 10)
|
|
1879
1898
|
this.div.style.width = i + "px", this.div.style.marginLeft = "-" + Math.floor(i / 2) + "px";
|
|
1880
|
-
for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.
|
|
1899
|
+
for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.lc(); o += 10)
|
|
1881
1900
|
this.iframe.style.height = o + "px", this.div.style.height = o + "px";
|
|
1882
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1901
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.fc);
|
|
1883
1902
|
}
|
|
1884
1903
|
else
|
|
1885
|
-
this.div.style.height = ""; }, this.
|
|
1904
|
+
this.div.style.height = ""; }, this.kc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
|
|
1886
1905
|
var r = a[i].offsetLeft + a[i].offsetWidth;
|
|
1887
1906
|
n = Math.max(n, r);
|
|
1888
|
-
} return n > t.clientWidth; }, this.
|
|
1907
|
+
} return n > t.clientWidth; }, this.lc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
|
|
1889
1908
|
var r = a[i].offsetTop + a[i].offsetHeight;
|
|
1890
1909
|
n = Math.max(n, r);
|
|
1891
|
-
} return n > t.clientHeight; }, this.
|
|
1910
|
+
} return n > t.clientHeight; }, this.jc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1892
1911
|
var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
|
|
1893
1912
|
return { x: t, y: n };
|
|
1894
|
-
} var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.
|
|
1895
|
-
var n = t.mc(e), a = n.x - t.
|
|
1896
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t
|
|
1897
|
-
} }, this.
|
|
1913
|
+
} var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.dc = function () { this.$b || (this.re(window, "resize", this.nc), this.re(window, "scroll", this.oc), this.dragDrop && (this.re(document, "mousemove", this.pc), this.re(document, "mouseup", this.qc)), this.$b = !0); }, this.rc = function () { this.ue(window, "resize", this.nc), this.ue(window, "scroll", this.oc), this.dragDrop && (this.ue(document, "mousemove", this.pc), this.ue(document, "mouseup", this.qc)), this.$b = !1; }, this.sc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.tc(), t.bc = t.mc(e || window.event), t._b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.pc = function (e) { if (t.bc) {
|
|
1914
|
+
var n = t.mc(e), a = n.x - t.bc.x, i = n.y - t.bc.y;
|
|
1915
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t._b.y + i + "px", t.div.style.left = t._b.x + a + "px";
|
|
1916
|
+
} }, this.qc = function () { t.bc && (t.uc(), t.div.style.cursor = null, t.bc = null); }, this.tc = function () { if (this.useIframe) {
|
|
1898
1917
|
var e = document.createElement("div");
|
|
1899
1918
|
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;
|
|
1900
|
-
} }, this.
|
|
1919
|
+
} }, this.uc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.nc = function () { t.vc(), t.ic(); }, this.oc = function () { t.vc(); }, this.ic = function () { if (!t.left && t.div) {
|
|
1901
1920
|
var e = t.div.offsetWidth;
|
|
1902
1921
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1903
|
-
} }, this.
|
|
1904
|
-
var e = t.
|
|
1922
|
+
} }, this.vc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1923
|
+
var e = t.wc.scrollY();
|
|
1905
1924
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1906
|
-
} }, this.
|
|
1907
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1925
|
+
} }, this.wc = {}, this.wc.container = function () { return t.container || document.body; }, this.wc.scrollY = function () { var e = t.wc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1926
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.cc = function () { var e = t.wc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.sc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.xc || (t.stretch(), t.xc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.hc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
|
|
1908
1927
|
var r = n[i], o = r.name;
|
|
1909
1928
|
if (o) {
|
|
1910
1929
|
var s = r.value;
|
|
1911
1930
|
a[o] = s;
|
|
1912
1931
|
}
|
|
1913
|
-
} t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
1932
|
+
} t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.rc(), t.yc(t.div), t.yc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.yc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.zc = function () { if (e)
|
|
1914
1933
|
for (var t in e)
|
|
1915
|
-
this[t] = e[t]; }, this.
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
o.
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1934
|
+
this[t] = e[t]; }, this.zc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) {
|
|
1935
|
+
"object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1;
|
|
1936
|
+
var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || "";
|
|
1937
|
+
return DayPilot.getPromise(function (t) {
|
|
1938
|
+
n.onClosed = function (e) { t(e); };
|
|
1939
|
+
var o = new DayPilot.Modal(n), s = document.createElement("div");
|
|
1940
|
+
s.className = o.theme + "_inner";
|
|
1941
|
+
var l = document.createElement("div");
|
|
1942
|
+
l.className = o.theme + "_content", l.innerHTML = e;
|
|
1943
|
+
var d = document.createElement("div");
|
|
1944
|
+
d.className = o.theme + "_input";
|
|
1945
|
+
var c = document.createElement("input");
|
|
1946
|
+
c.value = r, c.style.width = "100%", c.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
|
|
1947
|
+
case 13:
|
|
1948
|
+
o.close(this.value);
|
|
1949
|
+
break;
|
|
1950
|
+
case 27:
|
|
1951
|
+
o.close();
|
|
1952
|
+
break;
|
|
1953
|
+
default: t = !0;
|
|
1954
|
+
} t || (e.preventDefault(), e.stopPropagation()); }, d.appendChild(c);
|
|
1955
|
+
var u = document.createElement("div");
|
|
1956
|
+
u.className = o.theme + "_buttons";
|
|
1957
|
+
var h = document.createElement("button");
|
|
1958
|
+
h.innerText = a, h.className = o.theme + "_ok", h.onclick = function () { o.close(c.value); };
|
|
1959
|
+
var f = document.createTextNode(" "), v = document.createElement("button");
|
|
1960
|
+
v.innerText = i, v.className = o.theme + "_cancel", v.onclick = function () { o.close(); }, u.appendChild(h), u.appendChild(f), u.appendChild(v), s.appendChild(l), s.appendChild(d), s.appendChild(u), o.showHtml(s), o.autoFocus && c.focus();
|
|
1961
|
+
});
|
|
1962
|
+
};
|
|
1924
1963
|
var c = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
|
|
1925
|
-
DayPilot.Modal.form = function (n, a, i) {
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
s.name = o, s.id = o, n.push(s);
|
|
1937
|
-
}
|
|
1964
|
+
DayPilot.Modal.form = function (n, a, i) { if (1 === arguments.length) {
|
|
1965
|
+
var r = n;
|
|
1966
|
+
if (c(r))
|
|
1967
|
+
a = {};
|
|
1968
|
+
else {
|
|
1969
|
+
if ("object" != typeof r)
|
|
1970
|
+
throw "Invalid DayPilot.Modal.form() parameter";
|
|
1971
|
+
a = n, n = [];
|
|
1972
|
+
for (var o in a) {
|
|
1973
|
+
var s = {};
|
|
1974
|
+
s.name = o, s.id = o, n.push(s);
|
|
1938
1975
|
}
|
|
1939
1976
|
}
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
t.result = n;
|
|
1950
|
-
} i(t); }; var r = new DayPilot.Modal(l), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_input"; var d = new t({ theme: r.theme, form: n, data: a, zIndex: r.zIndex, locale: r.locale, plugins: r.plugins, onKey: function (e) { switch (e.key) {
|
|
1951
|
-
case "Enter":
|
|
1952
|
-
d.validate() && r.close(d.serialize());
|
|
1953
|
-
break;
|
|
1954
|
-
case "Escape": r.close();
|
|
1955
|
-
} }, onChange: function (e) { "function" == typeof r.onChange && r.onChange(e); } }), c = d.create(); s.append(c); var f = document.createElement("div"); f.className = r.theme + "_buttons"; var v = document.createElement("button"); v.innerText = u, v.className = r.theme + "_ok", l.okDisabled && (v.disabled = !0), v.onclick = function () { d.validate() && r.close(d.serialize()); }; var p = document.createTextNode(" "), m = document.createElement("button"); if (m.innerText = h, m.className = r.theme + "_cancel", m.onclick = function () { r.close(); }, m.onmousedown = function () { d.canceling = !0; }, f.appendChild(v), f.appendChild(p), f.appendChild(m), o.appendChild(s), o.appendChild(f), r.showHtml(o), r.div.setAttribute("tabindex", "-1"), r.div.addEventListener("keydown", function (e) { switch (e.keyCode) {
|
|
1956
|
-
case 27:
|
|
1957
|
-
r.close();
|
|
1977
|
+
} var l = {}; for (var d in i)
|
|
1978
|
+
l[d] = i[d]; l.height = l.height || 40, l.useIframe = !1; var u = l.okText || "OK", h = l.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { l.onClosed = function (t) { if (t.result) {
|
|
1979
|
+
var n = JSON.parse(JSON.stringify(a));
|
|
1980
|
+
for (var r in t.result)
|
|
1981
|
+
e(n, r, t.result[r]);
|
|
1982
|
+
t.result = n;
|
|
1983
|
+
} i(t); }; var r = new DayPilot.Modal(l), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_input"; var d = new t({ theme: r.theme, form: n, data: a, zIndex: r.zIndex, locale: r.locale, plugins: r.plugins, onKey: function (e) { switch (e.key) {
|
|
1984
|
+
case "Enter":
|
|
1985
|
+
d.validate() && r.close(d.serialize());
|
|
1958
1986
|
break;
|
|
1959
|
-
case
|
|
1960
|
-
} }), r.
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1987
|
+
case "Escape": r.close();
|
|
1988
|
+
} }, onChange: function (e) { "function" == typeof r.onChange && r.onChange(e); } }), c = d.create(); s.append(c); var f = document.createElement("div"); f.className = r.theme + "_buttons"; var v = document.createElement("button"); v.innerText = u, v.className = r.theme + "_ok", l.okDisabled && (v.disabled = !0), v.onclick = function () { d.validate() && r.close(d.serialize()); }; var p = document.createTextNode(" "), m = document.createElement("button"); if (m.innerText = h, m.className = r.theme + "_cancel", m.onclick = function () { r.close(); }, m.onmousedown = function () { d.canceling = !0; }, f.appendChild(v), f.appendChild(p), f.appendChild(m), o.appendChild(s), o.appendChild(f), r.showHtml(o), r.div.setAttribute("tabindex", "-1"), r.div.addEventListener("keydown", function (e) { switch (e.keyCode) {
|
|
1989
|
+
case 27:
|
|
1990
|
+
r.close();
|
|
1991
|
+
break;
|
|
1992
|
+
case 13: d.validate() && r.close(d.serialize());
|
|
1993
|
+
} }), r.focus) {
|
|
1994
|
+
var g = null;
|
|
1995
|
+
if ("object" == typeof r.focus) {
|
|
1996
|
+
var y = r.focus.id, b = r.focus.value;
|
|
1997
|
+
g = d.findViewById(y, b);
|
|
1969
1998
|
}
|
|
1970
|
-
else
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1999
|
+
else
|
|
2000
|
+
"string" == typeof r.focus && (g = d.findViewById(r.focus));
|
|
2001
|
+
g && g.focus();
|
|
2002
|
+
}
|
|
2003
|
+
else {
|
|
2004
|
+
var w = d.firstFocusable();
|
|
2005
|
+
r.autoFocus && w ? w.focus() : r.div.focus();
|
|
2006
|
+
} }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function () { var e = DayPilot.Modal.opener(); if (!e)
|
|
2007
|
+
throw "Unable to find the opener DayPilot.Modal instance."; e.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Dc; }, t.prototype.render = function () { var e = this; this.Dc = document.createElement("div"), this.Ac.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) { var t = this.theme, n = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
|
|
1976
2008
|
var i = document.createElement("div");
|
|
1977
2009
|
i.className = t + "_form_item_label", i.innerText = e.text, a.appendChild(i);
|
|
1978
|
-
} var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.
|
|
2010
|
+
} var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.Ec(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
|
|
1979
2011
|
var t = {};
|
|
1980
2012
|
t.result = n.serialize(), n.onChange(t);
|
|
1981
|
-
} }, r.onBlur = function () { n.canceling || n.
|
|
2013
|
+
} }, r.onBlur = function () { n.canceling || n.Ec(r); }, r.apply(e), r.Dc = a, r.row = e, r.element && a.appendChild(r.element), this.j.push(r), this.Dc.appendChild(a); }, t.prototype.validate = function () { var e = this, t = !0; return this.j.forEach(function (n) { var a = e.Ec(n); t = t && a; }), t; }, t.prototype.Ec = function (e, t) { function n() { e.Fc && (e.Fc.remove(), e.Fc = null), e.Dc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Fc = t, e.Dc.appendChild(t); } t = t || {}; var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l; if (d) {
|
|
1982
2014
|
var c = {};
|
|
1983
2015
|
c.valid = !0, c.value = e.save()[r.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1984
2016
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1985
2017
|
if (c.valid)
|
|
1986
|
-
clearTimeout(this.
|
|
2018
|
+
clearTimeout(this.Cc[r.field]), e.Fc && (e.Fc.remove(), e.Fc = null), e.Dc.classList.remove(u);
|
|
1987
2019
|
else if (!i)
|
|
1988
2020
|
if (a) {
|
|
1989
2021
|
var f = 1e3;
|
|
1990
|
-
clearTimeout(this.
|
|
2022
|
+
clearTimeout(this.Cc[r.field]), this.Cc[r.field] = setTimeout(function () { n(); }, f);
|
|
1991
2023
|
}
|
|
1992
2024
|
else
|
|
1993
2025
|
n();
|
|
@@ -1999,32 +2031,32 @@ var DayPilot = { Global: {} };
|
|
|
1999
2031
|
catch (e) {
|
|
2000
2032
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
2001
2033
|
} for (var a in t)
|
|
2002
|
-
this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.
|
|
2034
|
+
this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.Ac.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Bc ? this.Bc : this.Ac).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) { var a = this, i = this.getFieldType(e), r = []; if ("radio" === i) {
|
|
2003
2035
|
if (e.name) {
|
|
2004
2036
|
var o = new n;
|
|
2005
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.
|
|
2037
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.Ac.push(o), r.push(o);
|
|
2006
2038
|
}
|
|
2007
|
-
e.options.forEach(function (o) { var s = new n; s.field = e.id, s.data = o, s.level = t, s.type = i, s.isValue = !0, s.text = o.name, s.resolved = o.id, a.
|
|
2039
|
+
e.options.forEach(function (o) { var s = new n; s.field = e.id, s.data = o, s.level = t, s.type = i, s.isValue = !0, s.text = o.name, s.resolved = o.id, a.Ac.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }); });
|
|
2008
2040
|
}
|
|
2009
2041
|
else if ("title" === i) {
|
|
2010
2042
|
var o = new n;
|
|
2011
|
-
o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.
|
|
2043
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.Ac.push(o), r.push(o);
|
|
2012
2044
|
}
|
|
2013
2045
|
else if ("image" === i) {
|
|
2014
2046
|
var o = new n;
|
|
2015
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.
|
|
2047
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.Ac.push(o), r.push(o);
|
|
2016
2048
|
}
|
|
2017
2049
|
else if ("html" === i) {
|
|
2018
2050
|
var o = new n;
|
|
2019
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.
|
|
2051
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.Ac.push(o), r.push(o);
|
|
2020
2052
|
}
|
|
2021
2053
|
else if ("scrollable" === i) {
|
|
2022
2054
|
var o = new n;
|
|
2023
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.
|
|
2055
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.Ac.push(o), r.push(o);
|
|
2024
2056
|
}
|
|
2025
2057
|
else {
|
|
2026
2058
|
var o = new n;
|
|
2027
|
-
o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.
|
|
2059
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.Ac.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
|
|
2028
2060
|
} return r; }, t.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
2029
2061
|
var t = { key: e };
|
|
2030
2062
|
this.onKey(t);
|
|
@@ -2055,11 +2087,11 @@ var DayPilot = { Global: {} };
|
|
|
2055
2087
|
r.close(), n = !0;
|
|
2056
2088
|
break;
|
|
2057
2089
|
default: n = !0;
|
|
2058
|
-
} n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.
|
|
2059
|
-
return {}; var t = r.
|
|
2090
|
+
} n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Gc(e); }, "datetime": function () { return t.Hc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Ic = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Ic && (t = a.Ic); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "radio", r.name = e.field, r.Ic = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!r.checked)
|
|
2091
|
+
return {}; var t = r.Ic, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Ic = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, t.prototype.Gc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], o = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(o) || (o = 15); for (var s = 60 / o, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * s; u++) {
|
|
2060
2092
|
var h = c.addMinutes(o * u), f = {};
|
|
2061
2093
|
f.name = h.toString(e.data.timeFormat || d.timePattern, d), f.id = h.toString("HH:mm"), i.push(f);
|
|
2062
|
-
} var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.
|
|
2094
|
+
} var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.Hc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var a = n.searchable; a.disabled = !e.enabled; var i = new DayPilot.Date(e.value).toString("HH:mm"); a.select(i); var r = n.dateInput, o = n.picker; e.data.dateFormat && (o.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
2063
2095
|
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
2064
2096
|
o.locale = s, o.pattern = l.datePattern;
|
|
2065
2097
|
} r.disabled = !e.enabled, o.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || o.pattern, o.locale); r.value = d; }; var i = function () { var a = document.createElement("input"); a.name = e.field; var i = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function () { n.onInput({ "immediate": !0 }); } }); return a.picker = i, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var n = !1; switch (e.keyCode) {
|
|
@@ -2076,48 +2108,48 @@ var DayPilot = { Global: {} };
|
|
|
2076
2108
|
} n || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { i.show(); }, a.onclick = function () { i.show(); }, a.oninput = function () { n.onInput(); }, a.onblur = function () { n.onBlur(); }, n.dateInput = a, n.picker = i, a; }(), o = function () { var a = [], i = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(i) || (i = 15); for (var o = 60 / i, s = e.data.locale || t.locale, l = DayPilot.Locale.find(s) || DayPilot.Locale.US, d = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
2077
2109
|
var u = d.addMinutes(i * c), h = {};
|
|
2078
2110
|
h.name = u.toString(e.data.timeFormat || l.timePattern, l), h.id = u.toString("HH:mm"), a.push(h);
|
|
2079
|
-
} var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.
|
|
2111
|
+
} var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.Ac.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.j.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.j.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) { var n = this.Bc ? this.Bc : this.Ac, a = n.indexOf(e); return this.Bc = n.map(function (n) { if (n !== e)
|
|
2080
2112
|
return n; if (e.propsEqual(t))
|
|
2081
2113
|
return e; var a = e.clone(); for (var i in t)
|
|
2082
|
-
a[i] = t[i]; return a; }), this.
|
|
2083
|
-
this.
|
|
2114
|
+
a[i] = t[i]; return a; }), this.Bc[a]; }, t.prototype.updateInteractive = function (e) { var t = this.Bc.indexOf(e); this.j[t].apply(e); }, t.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Bc) {
|
|
2115
|
+
this.Bc.filter(function (t, n) { return e.Ac[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.Ac = this.Bc, this.Bc = null;
|
|
2084
2116
|
} }, t.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, t.prototype.serialize = function () { var e = {}; return this.j.forEach(function (t) { var n = t.save(); for (var a in n)
|
|
2085
2117
|
e[a] = n[a]; }), e; }, n.prototype.clone = function () { var e = new n; for (var t in this)
|
|
2086
2118
|
"id" !== t && (e[t] = this[t]); return e; }, n.prototype.propsEqual = function (e) { for (var t in e)
|
|
2087
2119
|
if (this[t] !== e[t])
|
|
2088
|
-
return !1; return !0; }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.
|
|
2120
|
+
return !1; return !0; }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Kc = this.data.find(function (t) { return t.id === e; }), this.Rc(!1), this; }, r.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Lc = null, l.s = []; var i = null; l.data.forEach(function (n) { var r = n.name || n.id; if ("includes" === e) {
|
|
2089
2121
|
if (r.toLowerCase().indexOf(v.value.toLowerCase()) === -1)
|
|
2090
2122
|
return;
|
|
2091
2123
|
}
|
|
2092
2124
|
else if ("startsWith" === e && 0 !== r.toLowerCase().indexOf(v.value.toLowerCase()))
|
|
2093
|
-
return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.
|
|
2125
|
+
return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Kc && (l.Lc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Lc !== o && (l.Lc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.s.push(o); }), l.Lc || (l.Lc = i), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Lc && (l.Lc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Lc, h) && l.Lc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; } function a(e) { var t = e.item; l.Kc = t, l.Rc(!0), r(), o(); } function i() { l.Qc(); } function r() { l.t(); } function o() { l.Mc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Mc = !1, v.removeAttribute("readonly"), v.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Mc ? (l.focus(), s()) : (i(), o()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Pc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Jc, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) { if (l.Mc) {
|
|
2094
2126
|
if ("Enter" === e.key)
|
|
2095
2127
|
return;
|
|
2096
2128
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
2097
2129
|
return;
|
|
2098
2130
|
s();
|
|
2099
2131
|
} if ("ArrowDown" === e.key) {
|
|
2100
|
-
var n = d.s.indexOf(d.
|
|
2101
|
-
n + 1 < d.s.length && (d.
|
|
2132
|
+
var n = d.s.indexOf(d.Lc);
|
|
2133
|
+
n + 1 < d.s.length && (d.Lc = d.s[n + 1]), t();
|
|
2102
2134
|
}
|
|
2103
2135
|
else if ("ArrowUp" === e.key) {
|
|
2104
|
-
var n = d.s.indexOf(d.
|
|
2105
|
-
n - 1 >= 0 && (d.
|
|
2136
|
+
var n = d.s.indexOf(d.Lc);
|
|
2137
|
+
n - 1 >= 0 && (d.Lc = d.s[n - 1]), t();
|
|
2106
2138
|
}
|
|
2107
2139
|
else
|
|
2108
|
-
"Enter" === e.key ? l.
|
|
2140
|
+
"Enter" === e.key ? l.Lc ? (e.stopPropagation(), a(l.Lc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o()); }), this.Nc = v, this.Oc = h, this.Kc || (this.Kc = this.data[0], this.Kc && (v.value = this.Kc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, r.prototype.Qc = function () { this.t(), this.Kc ? this.Nc.value = this.Kc.name : (this.Nc.value = "", this.Rc(!0)); }, r.prototype.focus = function () { this.Mc = !0, this.Nc.setAttribute("readonly", "readonly"), this.Nc.focus(), this.Qc(); }, r.prototype.t = function () { this.Oc.style.display = "none"; }, r.prototype.Rc = function (e) { if (this.Pc.value = this.selected ? this.selected.id : null, this.Kc ? this.Nc.value = this.Kc.name : this.Nc.value = "", "function" == typeof this.onSelect) {
|
|
2109
2141
|
var t = { control: this, ui: e };
|
|
2110
2142
|
this.onSelect(t);
|
|
2111
|
-
} }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.
|
|
2143
|
+
} }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.Tc(); a.appendChild(i); var r = e.Uc({}); r.spacer = !0; var o = this.Vc(r); o.classList.add(e.theme + "_spacer"), a.appendChild(o); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function () { if (!e.disabled) {
|
|
2112
2144
|
var t = e.item.onNewRow, n = {};
|
|
2113
2145
|
if ("function" == typeof t) {
|
|
2114
2146
|
var a = {};
|
|
2115
2147
|
a.result = e.form.serialize(), a.value = {}, t(a), n = a.value;
|
|
2116
2148
|
}
|
|
2117
|
-
var i = e.
|
|
2118
|
-
e.
|
|
2119
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.
|
|
2120
|
-
throw new Error("Array expected"); this.data = e, this.
|
|
2149
|
+
var i = e.Uc(n);
|
|
2150
|
+
e.Ac.push(i), e.Wc(), e.Xc();
|
|
2151
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.Tc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Yc = function () { var e = this.item.max || 0; return !!(e && this.Ac.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.Ac.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
2152
|
+
throw new Error("Array expected"); this.data = e, this.Zc(), this.Wc(); }, o.prototype.$c = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Yc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Zc = function () { var e = this; this.Ac = [], this.data.forEach(function (t) { var n = e.Uc(t); e.Ac.push(n); }); }, o.prototype._c = function (e) { var t = this, n = t.Ac.indexOf(e); t.Ac.splice(n, 1); }, o.prototype.Uc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (a) { var i = a.id, r = e[i], o = t.ad(a); if ("undefined" == typeof r)
|
|
2121
2153
|
if ("text" === o)
|
|
2122
2154
|
r = "";
|
|
2123
2155
|
else if ("number" === o)
|
|
@@ -2125,23 +2157,23 @@ var DayPilot = { Global: {} };
|
|
|
2125
2157
|
else if ("select" === o) {
|
|
2126
2158
|
var s = a.options;
|
|
2127
2159
|
r = s && s[0].id;
|
|
2128
|
-
} var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype.
|
|
2129
|
-
var t = e.
|
|
2160
|
+
} var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype.ad = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Wc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.Ac.forEach(function (t) { var n = e.Vc(t); e.nav.body.appendChild(n); }), 0 === this.Ac.length) {
|
|
2161
|
+
var t = e.bd();
|
|
2130
2162
|
e.nav.after.appendChild(t);
|
|
2131
|
-
} this
|
|
2163
|
+
} this.$c(); }, o.prototype.bd = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Vc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (a) { var i = document.createElement("div"); i.className = t.theme + "_cell"; var r = t.cd(a); if (e.spacer) {
|
|
2132
2164
|
var o = document.createElement("div");
|
|
2133
2165
|
o.style.height = "0px", o.style.overflow = "hidden", o.appendChild(r), i.appendChild(o);
|
|
2134
2166
|
}
|
|
2135
2167
|
else
|
|
2136
|
-
i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t
|
|
2168
|
+
i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t._c(e), t.Wc(), t.Xc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n; }, o.prototype.Xc = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
2137
2169
|
var t = {};
|
|
2138
2170
|
e.onInput(t);
|
|
2139
|
-
} }, o.prototype.
|
|
2171
|
+
} }, o.prototype.cd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
|
|
2140
2172
|
var a = document.createElement("input");
|
|
2141
|
-
return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.
|
|
2173
|
+
return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Xc(); }), a;
|
|
2142
2174
|
} if ("select" === n) {
|
|
2143
2175
|
var i = document.createElement("select");
|
|
2144
|
-
return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.
|
|
2176
|
+
return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Ic = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Ic && (e.value = n.Ic), t.Xc(); }), i;
|
|
2145
2177
|
} throw new Error("Unsupported item type: " + n); }, o.prototype.focus = function () { };
|
|
2146
2178
|
}
|
|
2147
2179
|
}(DayPilot), function (DayPilot) {
|
|
@@ -2152,7 +2184,7 @@ var DayPilot = { Global: {} };
|
|
|
2152
2184
|
var i = this;
|
|
2153
2185
|
this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.R = !1, this.S = {};
|
|
2154
2186
|
var r = this.S;
|
|
2155
|
-
this.Y = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i._(), i.
|
|
2187
|
+
this.Y = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i._(), i.dd(), i.ia(), "Full" === t.UpdateType && (i.ed(), i.fd()), i.na(), i.show(), i.oa(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
2156
2188
|
t = e.data;
|
|
2157
2189
|
else {
|
|
2158
2190
|
if ("object" != typeof e)
|
|
@@ -2203,13 +2235,15 @@ var DayPilot = { Global: {} };
|
|
|
2203
2235
|
else {
|
|
2204
2236
|
var o = e, s = "start=" + i.visibleStart().toString() + "&end=" + i.visibleEnd().toString();
|
|
2205
2237
|
o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": r, "error": a });
|
|
2206
|
-
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.Ab), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) {
|
|
2207
|
-
if (i.
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2238
|
+
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.Ab), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) {
|
|
2239
|
+
if (i.tb(e), this.Ma) {
|
|
2240
|
+
if (i.R)
|
|
2241
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
2242
|
+
if (this.cells) {
|
|
2243
|
+
i._(), i.dd(), i.ia(), i.ed(), i.fd(), i.na(), i.z(), i.oa(), this.visible ? this.show() : this.hide();
|
|
2244
|
+
}
|
|
2211
2245
|
}
|
|
2212
|
-
}
|
|
2246
|
+
}, this.vb = null, this.tb = function (e) { if (e) {
|
|
2213
2247
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
2214
2248
|
this.vb = t;
|
|
2215
2249
|
for (var n in e)
|
|
@@ -2226,39 +2260,36 @@ var DayPilot = { Global: {} };
|
|
|
2226
2260
|
a[r] = n[r]; if ("function" == typeof this.onBeforeEventRender) {
|
|
2227
2261
|
var o = {};
|
|
2228
2262
|
o.control = i, o.data = a, this.onBeforeEventRender(o);
|
|
2229
|
-
} t[e] = a; }, this.ia = function () {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
var
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
var o = this.rows[t], s = new DayPilot.Event(a, this);
|
|
2249
|
-
o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.yb.events[n]));
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
for (var l = 0; l < this.rows.length; l++) {
|
|
2253
|
-
var o = this.rows[l];
|
|
2254
|
-
o.events.sort(this.Ab);
|
|
2255
|
-
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
2256
|
-
var c = o.events[d], u = o.getStartColumn(c), h = o.getWidth(c);
|
|
2257
|
-
o.putIntoLine(c, u, h, l);
|
|
2263
|
+
} t[e] = a; }, this.ia = function () { var e = this.events.list; if (e) {
|
|
2264
|
+
if (!DayPilot.isArray(e))
|
|
2265
|
+
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
2266
|
+
if ("function" == typeof this.onBeforeEventRender)
|
|
2267
|
+
for (var t = 0; t < e.length; t++)
|
|
2268
|
+
this.zb(t);
|
|
2269
|
+
for (var n = 0; n < e.length; n++) {
|
|
2270
|
+
var a = e[n];
|
|
2271
|
+
if ("object" != typeof a)
|
|
2272
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
2273
|
+
if (!a.start)
|
|
2274
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
2275
|
+
if (!a.end)
|
|
2276
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
2277
|
+
var i = new DayPilot.Date(a.start), r = new DayPilot.Date(a.end);
|
|
2278
|
+
if (!(i.getTime() > r.getTime()))
|
|
2279
|
+
for (var t = 0; t < this.rows.length; t++) {
|
|
2280
|
+
var o = this.rows[t], s = new DayPilot.Event(a, this);
|
|
2281
|
+
o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.yb.events[n]));
|
|
2258
2282
|
}
|
|
2283
|
+
}
|
|
2284
|
+
for (var l = 0; l < this.rows.length; l++) {
|
|
2285
|
+
var o = this.rows[l];
|
|
2286
|
+
o.events.sort(this.Ab);
|
|
2287
|
+
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
2288
|
+
var c = o.events[d], u = o.getStartColumn(c), h = o.getWidth(c);
|
|
2289
|
+
o.putIntoLine(c, u, h, l);
|
|
2259
2290
|
}
|
|
2260
2291
|
}
|
|
2261
|
-
}, this._ = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
2292
|
+
} }, this._ = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
2262
2293
|
var t = this.elements.events[e];
|
|
2263
2294
|
i.Pa(t);
|
|
2264
2295
|
} this.elements.events = []; }, this.Pa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
|
|
@@ -2266,7 +2297,7 @@ var DayPilot = { Global: {} };
|
|
|
2266
2297
|
if (a) {
|
|
2267
2298
|
i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
|
|
2268
2299
|
}
|
|
2269
|
-
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.oa = function () { this.
|
|
2300
|
+
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.oa = function () { this.gd(); }, this.gd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
2270
2301
|
for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
|
|
2271
2302
|
for (var a = t.lines[n], i = 0; i < a.length; i++)
|
|
2272
2303
|
this.Va(a[i]); }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
|
|
@@ -2285,7 +2316,7 @@ var DayPilot = { Global: {} };
|
|
|
2285
2316
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
2286
2317
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
2287
2318
|
} }, this.getEventTop = function (e, t) { for (var n = this.headerHeight, a = 0; a < e; a++)
|
|
2288
|
-
n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) { var a = n.cache || n.data, r = a.borderRadius || i.eventBorderRadius; "number" == typeof r && (r += "px"); var o = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(o, s), f = document.createElement("div"); f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.M("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.M("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.M("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.wa, f.oncontextmenu = i.
|
|
2319
|
+
n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) { var a = n.cache || n.data, r = a.borderRadius || i.eventBorderRadius; "number" == typeof r && (r += "px"); var o = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(o, s), f = document.createElement("div"); f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.M("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.M("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.M("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.wa, f.oncontextmenu = i.hd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
|
|
2289
2320
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
2290
2321
|
var r = {};
|
|
2291
2322
|
r.start = {}, r.start.x = l, r.start.y = o, r.event = f.event, r.width = DayPilot.DateUtil.daysSpan(r.event.start(), r.event.end()) + 1, r.direction = this.style.cursor, e.resizingEvent = r;
|
|
@@ -2331,7 +2362,7 @@ var DayPilot = { Global: {} };
|
|
|
2331
2362
|
}
|
|
2332
2363
|
}
|
|
2333
2364
|
else
|
|
2334
|
-
v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
2365
|
+
v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.dd = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7); this.days = 7 * n, this.rows = []; for (var a = function (e) { var t = {}; t.start = r.firstDate.addDays(7 * e), t.end = t.start.addDays(r.getColCount()), t.events = [], t.lines = [], t.index = e, t.minHeight = r.cellHeight, t.calendar = r, t.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, t.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, t.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, t.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, t.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, t.putIntoLine = function (e, n, a, i) { for (var r = t, o = 0; o < this.lines.length; o++) {
|
|
2335
2366
|
var s = this.lines[o];
|
|
2336
2367
|
if (s.isFree(n, a))
|
|
2337
2368
|
return s.addEvent(e, n, a, i, o), o;
|
|
@@ -2389,7 +2420,7 @@ var DayPilot = { Global: {} };
|
|
|
2389
2420
|
break;
|
|
2390
2421
|
}
|
|
2391
2422
|
} null === i && (i = this.rows.length - 1); var d = {}; return d.x = a, d.y = i, d.relativeY = o, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
|
|
2392
|
-
n.y++, t -= 7; return n.x = t, n; }, this.
|
|
2423
|
+
n.y++, t -= 7; return n.x = t, n; }, this.fd = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
|
|
2393
2424
|
this.cells[t] = [];
|
|
2394
2425
|
var n = document.createElement("div");
|
|
2395
2426
|
n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.left = this.getCellWidth() * t + "%", n.style.width = this.getCellWidth() + "%", n.style.top = "0px", n.style.height = this.headerHeight + "px";
|
|
@@ -2398,8 +2429,8 @@ var DayPilot = { Global: {} };
|
|
|
2398
2429
|
var i = document.createElement("div");
|
|
2399
2430
|
i.setAttribute("unselectable", "on"), i.innerHTML = r.locale().dayNames[a], n.appendChild(i), i.style.position = "absolute", i.style.top = "0px", i.style.bottom = "0px", i.style.left = "0px", i.style.right = "0px", i.className = this.M("_header_inner"), i.innerHTML = r.locale().dayNames[a], e.appendChild(n);
|
|
2400
2431
|
for (var o = 0; o < this.rows.length; o++)
|
|
2401
|
-
this.
|
|
2402
|
-
} }, this.
|
|
2432
|
+
this.jd(t, o, e);
|
|
2433
|
+
} }, this.ed = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2403
2434
|
for (var t = 0; t < this.cells[e].length; t++) {
|
|
2404
2435
|
var n = i.cells[e][t];
|
|
2405
2436
|
i.gb(n);
|
|
@@ -2408,7 +2439,7 @@ var DayPilot = { Global: {} };
|
|
|
2408
2439
|
if (a) {
|
|
2409
2440
|
i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
|
|
2410
2441
|
}
|
|
2411
|
-
} }(), e.onclick = null; }, this.va = function () { return 2 === i.api; }, this.
|
|
2442
|
+
} }(), e.onclick = null; }, this.va = function () { return 2 === i.api; }, this.jd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.M("_cell"), v.business) {
|
|
2412
2443
|
var m = this.M("_cell_business");
|
|
2413
2444
|
DayPilot.Util.addClass(p, m);
|
|
2414
2445
|
} var g = document.createElement("div"); g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.left = "0px", g.style.right = "0px", g.style.top = "0px", g.style.bottom = "0px", g.className = this.M("_cell_inner"), v.backColor && (g.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function () { "Disabled" !== i.timeRangeSelectedHandling && (i.clearShadow(), e.timeRangeSelecting = { "root": i, "x": n, "y": a, "from": { x: n, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); i.P(t, n); }; if ("Disabled" !== i.timeRangeSelectedHandling)
|
|
@@ -2459,7 +2490,7 @@ var DayPilot = { Global: {} };
|
|
|
2459
2490
|
i.eventClickCallBack(n);
|
|
2460
2491
|
break;
|
|
2461
2492
|
case "JavaScript": i.onEventClick(n);
|
|
2462
|
-
} }, this.
|
|
2493
|
+
} }, this.hd = function (e) { var t = e.currentTarget; return i.ya(t.event), !1; }, this.ya = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
2463
2494
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof i.onEventRightClick || (i.onEventRightClick(t), !t.preventDefault.value)) {
|
|
2464
2495
|
switch (i.eventRightClickHandling) {
|
|
2465
2496
|
case "ContextMenu":
|
|
@@ -2546,20 +2577,20 @@ var DayPilot = { Global: {} };
|
|
|
2546
2577
|
i.timeRangeSelectedCallBack(e, t);
|
|
2547
2578
|
break;
|
|
2548
2579
|
case "JavaScript": i.onTimeRangeSelected(e, t);
|
|
2549
|
-
} }, this.xa = {}, this.xa.scope = null, this.xa.notify = function () { i.xa.scope && i.xa.scope["$apply"](); }, this.xa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.W("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.S.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.S.ea = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.R || (e.R = !0, e.
|
|
2580
|
+
} }, this.xa = {}, this.xa.scope = null, this.xa.notify = function () { i.xa.scope && i.xa.scope["$apply"](); }, this.xa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.W("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.S.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.S.ea = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.R || (e.R = !0, e.ed(), e._(), 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.R; }, this.qb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
|
|
2550
2581
|
this.nav.top = this.id;
|
|
2551
2582
|
else {
|
|
2552
2583
|
if ("string" != typeof this.id)
|
|
2553
2584
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2554
2585
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2555
2586
|
throw "DayPilot.Month: The placeholder element not found: '" + this.id + "'.";
|
|
2556
|
-
} }, this.Fb = function () { this.
|
|
2587
|
+
} }, this.Fb = function () { this.dd(), this.Xa(), this.fd(), this.qb(), this.W("Init"); }, this._a = function (e, t) { return i.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
2557
2588
|
var r = a.createVNode(e, n);
|
|
2558
2589
|
a.render(r, t);
|
|
2559
2590
|
} }, this.Sa.Wa = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.render) {
|
|
2560
2591
|
var r = e;
|
|
2561
2592
|
DayPilot.isArray(e) && (r = a.h("div", n, e)), a.render(r, t);
|
|
2562
|
-
} }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.tb, this.internal.xssTextHtml = i._a, this.internal.upd = function (e) { i.update(e); }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.init = function () { return this.xb(), this.loadFromServer() ? void this.Fb() : (this.
|
|
2593
|
+
} }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.tb, this.internal.xssTextHtml = i._a, this.internal.upd = function (e) { i.update(e); }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.init = function () { return this.xb(), this.loadFromServer() ? void this.Fb() : (this.dd(), this.ia(), this.Xa(), this.fd(), this.z(), this.oa(), this.qb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.tb(a);
|
|
2563
2594
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2564
2595
|
var n = e.movingEvent;
|
|
2565
2596
|
if (!n.event)
|
|
@@ -2633,111 +2664,91 @@ var DayPilot = { Global: {} };
|
|
|
2633
2664
|
var o = this;
|
|
2634
2665
|
this.id = a, 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.eventEndSpec = "DateTime", 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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.S = {};
|
|
2635
2666
|
var s = this.S;
|
|
2636
|
-
this.
|
|
2637
|
-
var l = this.
|
|
2638
|
-
this.nav = {}, this.yb = {}, this.
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
var S = o.showWeekNumbers ? 1 : 0;
|
|
2664
|
-
if (this.showWeekNumbers)
|
|
2665
|
-
for (var D = 0; D < p; D++) {
|
|
2666
|
-
var M = h.addDays(7 * D), T = null;
|
|
2667
|
-
switch (this.weekNumberAlgorithm) {
|
|
2668
|
-
case "Auto":
|
|
2669
|
-
T = 1 === s.weekStarts() ? M.weekNumberISO() : M.weekNumber();
|
|
2670
|
-
break;
|
|
2671
|
-
case "US":
|
|
2672
|
-
T = M.weekNumber();
|
|
2673
|
-
break;
|
|
2674
|
-
case "ISO8601":
|
|
2675
|
-
T = M.weekNumberISO();
|
|
2676
|
-
break;
|
|
2677
|
-
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2678
|
-
}
|
|
2679
|
-
var A = document.createElement("div");
|
|
2680
|
-
A.style.position = "absolute", A.style.left = "0px", A.style.right = "0px", A.style.top = D * this.cellHeight + x + "px", A.style.width = o.sd(), A.style.height = this.cellHeight + "px", A.style.lineHeight = this.cellHeight + "px", A.className = this.M("_weeknumber"), A.innerHTML = "<span>" + T + "</span>", b.appendChild(A), r.weeks.push(A);
|
|
2667
|
+
this.kd = {};
|
|
2668
|
+
var l = this.kd;
|
|
2669
|
+
this.nav = {}, this.yb = {}, this.ld = function () { this.root.dp = this, this.root.className = this.M("_main"), "Horizontal" === this.orientation ? (s.md() || (this.root.style.width = this.showMonths * (7 * s.cellWidth() + this.nd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : s.md() || (this.root.style.width = 7 * s.cellWidth() + this.nd() + "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 = o.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.va = function () { return 2 === o.api; }, this.ed = function () { this.root.innerHTML = ""; }, this.M = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.od = function (e, t) { var n = this.M("_" + t); DayPilot.Util.addClass(e, n); }, this.pd = function (e, t) { var n = this.M("_" + t); DayPilot.Util.removeClass(e, n); }, this.qd = function () {
|
|
2670
|
+
if (!s.md())
|
|
2671
|
+
return null;
|
|
2672
|
+
var e = 7;
|
|
2673
|
+
return this.showWeekNumbers && e++, 100 / e;
|
|
2674
|
+
}, this.rd = function () { return s.md() ? null : s.cellWidth(); }, this.sd = function (e) { return "number" != typeof e && (e = 1), s.md() ? this.qd() * e : this.rd() * e; }, this.td = function (e) { var t = s.md() ? "%" : "px"; return this.sd(e) + t; }, this.fd = function (a, i) { var r = {}; r.cells = [], r.days = [], r.weeks = []; var l = this.startDate.addMonths(a), d = i.before, c = i.after, u = l.firstDayOfMonth(), h = u.firstDayOfWeek(s.weekStarts()), f = u.addMonths(1), v = DayPilot.DateUtil.daysDiff(h, f), p = "Auto" === this.rowsPerMonth ? Math.ceil(v / 7) : 6; r.rowCount = p; var m = (new DayPilot.Date).getDatePart(), g = 7 * s.cellWidth() + this.nd(); r.width = g; var y = this.cellHeight * p + this.titleHeight + this.dayHeaderHeight; r.height = y; var b = document.createElement("div"); if (s.md() ? "Horizontal" === this.orientation && (b.style.width = 100 / o.showMonths + "%") : b.style.width = g + "px", b.style.height = y + "px", "Horizontal" === this.orientation)
|
|
2675
|
+
b.style.position = "absolute", s.md() ? (b.style.left = 100 / o.showMonths * a + "%", r.leftPct = 100 / o.showMonths * a) : b.style.left = g * a + "px", b.style.top = "0px", r.top = 0, r.left = g * a;
|
|
2676
|
+
else {
|
|
2677
|
+
b.style.position = "relative";
|
|
2678
|
+
var w = a > 0 ? o.months[a - 1].top + o.months[a - 1].height : 0;
|
|
2679
|
+
r.top = w, r.left = 0, r.leftPct = 0;
|
|
2680
|
+
} b.className = this.M("_month"), b.style.cursor = "default", b.style.userSelect = "none", b.style.webkitUserSelect = "none", b.month = r, r.div = b, this.root.appendChild(b); var x = this.titleHeight + this.dayHeaderHeight, _ = document.createElement("div"); _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = "0px", _.style.width = o.td(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.M("_titleleft"), i.left && (_.style.cursor = "pointer", _.innerHTML = "<span><</span>", _.onclick = this.ud), b.appendChild(_); var C = document.createElement("div"); C.style.position = "absolute", C.style.left = o.td(), C.style.top = "0px", C.style.width = o.td(o.showWeekNumbers ? 6 : 5), C.style.height = this.titleHeight + "px", C.style.lineHeight = this.titleHeight + "px", C.className = this.M("_title"), C.innerHTML = s.locale().monthNames[l.getMonth()] + " " + l.getYear(), b.appendChild(C), this.ti = C; var k = document.createElement("div"); k.style.position = "absolute", k.style.left = o.td(o.showWeekNumbers ? 7 : 6), k.style.right = o.td(o.showWeekNumbers ? 7 : 6), k.style.top = "0px", k.style.width = o.td(), k.style.height = this.titleHeight + "px", k.style.lineHeight = this.titleHeight + "px", k.className = this.M("_titleright"), i.right && (k.style.cursor = "pointer", k.innerHTML = "<span>></span>", k.onclick = this.vd), b.appendChild(k), this.tr = k; var S = o.showWeekNumbers ? 1 : 0; if (this.showWeekNumbers)
|
|
2681
|
+
for (var D = 0; D < p; D++) {
|
|
2682
|
+
var M = h.addDays(7 * D), T = null;
|
|
2683
|
+
switch (this.weekNumberAlgorithm) {
|
|
2684
|
+
case "Auto":
|
|
2685
|
+
T = 1 === s.weekStarts() ? M.weekNumberISO() : M.weekNumber();
|
|
2686
|
+
break;
|
|
2687
|
+
case "US":
|
|
2688
|
+
T = M.weekNumber();
|
|
2689
|
+
break;
|
|
2690
|
+
case "ISO8601":
|
|
2691
|
+
T = M.weekNumberISO();
|
|
2692
|
+
break;
|
|
2693
|
+
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2681
2694
|
}
|
|
2682
|
-
if (o.showWeekNumbers) {
|
|
2683
|
-
var A = document.createElement("div");
|
|
2684
|
-
A.style.position = "absolute", A.style.left = "0px", A.style.right = "0px", A.style.top = this.titleHeight + "px", A.style.width = o.sd(), A.style.height = this.dayHeaderHeight + "px", A.className = this.M("_dayheader"), b.appendChild(A);
|
|
2685
|
-
}
|
|
2686
|
-
for (var E = 0; E < 7; E++) {
|
|
2687
|
-
r.cells[E] = [];
|
|
2688
2695
|
var A = document.createElement("div");
|
|
2689
|
-
A.style.position = "absolute", A.style.left =
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
i.appendChild(a.element);
|
|
2696
|
+
A.style.position = "absolute", A.style.left = "0px", A.style.right = "0px", A.style.top = D * this.cellHeight + x + "px", A.style.width = o.td(), A.style.height = this.cellHeight + "px", A.style.lineHeight = this.cellHeight + "px", A.className = this.M("_weeknumber"), A.innerHTML = "<span>" + T + "</span>", b.appendChild(A), r.weeks.push(A);
|
|
2697
|
+
} if (o.showWeekNumbers) {
|
|
2698
|
+
var A = document.createElement("div");
|
|
2699
|
+
A.style.position = "absolute", A.style.left = "0px", A.style.right = "0px", A.style.top = this.titleHeight + "px", A.style.width = o.td(), A.style.height = this.dayHeaderHeight + "px", A.className = this.M("_dayheader"), b.appendChild(A);
|
|
2700
|
+
} for (var E = 0; E < 7; E++) {
|
|
2701
|
+
r.cells[E] = [];
|
|
2702
|
+
var A = document.createElement("div");
|
|
2703
|
+
A.style.position = "absolute", A.style.left = o.td(E + S), A.style.right = o.td(E + S), A.style.top = this.titleHeight + "px", A.style.width = o.td(), A.style.height = this.dayHeaderHeight + "px", A.style.lineHeight = this.dayHeaderHeight + "px", A.className = this.M("_dayheader"), A.innerHTML = "<span>" + this.wd(E) + "</span>", b.appendChild(A), r.days.push(A);
|
|
2704
|
+
for (var H = function (a) { var i = h.addDays(7 * a + E), u = N.xd(i) && "none" !== N.yd(), f = i.firstDayOfMonth() === l, v = i < l, p = i >= l.addMonths(1); if ("month" === N.yd())
|
|
2705
|
+
u = u && f;
|
|
2706
|
+
else if ("day" === N.yd())
|
|
2707
|
+
u = u && (f || d && v || c && p);
|
|
2708
|
+
else if ("week" === N.yd()) {
|
|
2709
|
+
var g = i.firstDayOfMonth() === l;
|
|
2710
|
+
u = u && (g || d && v || c && p);
|
|
2711
|
+
} var y = document.createElement("div"); r.cells[E][a] = y; var w = o.zd(E, a), x = w.x, _ = w.y, C = s.md() ? "%" : "px"; y.day = i, y.x = E, y.y = a, y.left = x, y.top = _, y.isCurrentMonth = f, y.isNextMonth = p, y.isPrevMonth = v, y.showBefore = d, y.showAfter = c, y.className = N.M(f ? "_day" : "_dayother"), o.od(y, "cell"), i.getTime() === m.getTime() && f && N.od(y, "today"), 0 !== i.dayOfWeek() && 6 !== i.dayOfWeek() || N.od(y, "weekend"), y.style.position = "absolute", y.style.left = x + C, y.style.right = x + C, y.style.top = _ + "px", y.style.width = o.td(), y.style.height = N.cellHeight + "px", y.style.lineHeight = N.cellHeight + "px"; var k = document.createElement("div"); k.style.position = "absolute", k.className = i.getTime() === m.getTime() && f ? N.M("_todaybox") : N.M("_daybox"), o.od(k, "cell_box"), k.style.left = "0px", k.style.top = "0px", k.style.right = "0px", k.style.bottom = "0px", y.appendChild(k); var S = null; N.cells && N.cells[i.toStringSortable()] && (S = N.cells[i.toStringSortable()]); var D = S || {}; if (D.day = i, D.isCurrentMonth = f, D.isToday = i.getTime() === m.getTime() && f, D.isWeekend = 0 === i.dayOfWeek() || 6 === i.dayOfWeek(), S ? (D.html = S.html || i.getDay(), D.cssClass = S.css) : (D.html = i.getDay(), D.cssClass = null), D.events = { all: function () { var e; return (null === (e = o.items) || void 0 === e ? void 0 : e[i.toStringSortable()]) || []; } }, "function" == typeof o.onBeforeCellRender) {
|
|
2712
|
+
var M = {};
|
|
2713
|
+
M.cell = D, o.onBeforeCellRender(M), S = M.cell;
|
|
2714
|
+
} if (S && DayPilot.Util.addClass(y, S.cssClass || S.css), f || d && v || c && p) {
|
|
2715
|
+
var T = document.createElement("div");
|
|
2716
|
+
T.innerHTML = i.getDay(), T.style.position = "absolute", T.style.left = "0px", T.style.top = "0px", T.style.right = "0px", T.style.bottom = "0px", o.od(T, "cell_text"), y.isClickable = !0, S && S.html && (T.innerHTML = S.html), y.appendChild(T);
|
|
2717
|
+
} y.onclick = N.Ad, function () { if ("function" == typeof o.onBeforeCellDomAdd || "function" == typeof o.onBeforeCellDomRemove) {
|
|
2718
|
+
var a = {};
|
|
2719
|
+
if (a.control = o, a.cell = D, a.element = null, y.domArgs = a, "function" == typeof o.onBeforeCellDomAdd && o.onBeforeCellDomAdd(a), a.element) {
|
|
2720
|
+
var i = k;
|
|
2721
|
+
if (i) {
|
|
2722
|
+
a.Qa = i;
|
|
2723
|
+
var r = e(a.element), s = t(a.element), l = n(a.element);
|
|
2724
|
+
if (r) {
|
|
2725
|
+
if (!o.Bd.reactDOM)
|
|
2726
|
+
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
2727
|
+
o.Bd.Wc(a.element, i);
|
|
2728
|
+
}
|
|
2729
|
+
else if (s) {
|
|
2730
|
+
if (!o.Sa.Ra)
|
|
2731
|
+
throw new DayPilot.Exception("Can't reach Vue");
|
|
2732
|
+
o.Sa.Ta = !0, o.Sa.Mb(a.element, i, a.props), o.Sa.Ta = !1;
|
|
2727
2733
|
}
|
|
2734
|
+
else if (l) {
|
|
2735
|
+
if (!o.Sa.Ra)
|
|
2736
|
+
throw new DayPilot.Exception("Can't reach Vue");
|
|
2737
|
+
o.Sa.Ta = !0, o.Sa.Wa(a.element, i), o.Sa.Ta = !1;
|
|
2738
|
+
}
|
|
2739
|
+
else
|
|
2740
|
+
i.appendChild(a.element);
|
|
2728
2741
|
}
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
R.style.position = "absolute", R.style.left = "0px", R.style.top = x - 2 + "px", R.style.width = o.sd(7 + S), R.style.height = "1px", R.style.fontSize = "1px", R.style.lineHeight = "1px", R.className = this.M("_line"), b.appendChild(R), this.months.push(r);
|
|
2734
|
-
}, this.yd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": o.rd(e + a), "y": t * this.cellHeight + n }; }, this.Bd = function (e, t, n) { var a = e.month.cells[t][n]; o.nd(a, "select"); }, this.Cd = function (e, t, n) { var a = e.month.cells[t][n]; o.od(a, "select"); }, this.md = function () { return this.showWeekNumbers ? s.cellWidth() : 0; }, this.Dd = function () { var e; if (this.items)
|
|
2742
|
+
}
|
|
2743
|
+
} }(), b.appendChild(y), u && (o.Cd(b, E, a), N.selected.push(y)); }, N = this, D = 0; D < p; D++)
|
|
2744
|
+
H(D);
|
|
2745
|
+
} var R = document.createElement("div"); R.style.position = "absolute", R.style.left = "0px", R.style.top = x - 2 + "px", R.style.width = o.td(7 + S), R.style.height = "1px", R.style.fontSize = "1px", R.style.lineHeight = "1px", R.className = this.M("_line"), b.appendChild(R), this.months.push(r); }, this.zd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": o.sd(e + a), "y": t * this.cellHeight + n }; }, this.Cd = function (e, t, n) { var a = e.month.cells[t][n]; o.od(a, "select"); }, this.Dd = function (e, t, n) { var a = e.month.cells[t][n]; o.pd(a, "select"); }, this.nd = function () { return this.showWeekNumbers ? s.cellWidth() : 0; }, this.Ed = function () { var e; if (this.items)
|
|
2735
2746
|
for (var t = 0; t < this.showMonths; t++)
|
|
2736
2747
|
for (var n = 0; n < 7; n++)
|
|
2737
2748
|
for (var a = 0; a < 6; a++) {
|
|
2738
2749
|
var i = this.months[t].cells[n][a];
|
|
2739
|
-
i && ((null === (e = this.items[i.day.toStringSortable()]) || void 0 === e ? void 0 : e.length) > 0 ? (this.
|
|
2740
|
-
} }, this.
|
|
2750
|
+
i && ((null === (e = this.items[i.day.toStringSortable()]) || void 0 === e ? void 0 : e.length) > 0 ? (this.od(i, "busy"), this.pd(i, "free")) : (this.pd(i, "busy"), this.od(i, "free")));
|
|
2751
|
+
} }, this.Fd = function () { var e = {}; e.startDate = o.startDate, e.selectionStart = o.selectionStart, e.selectionEnd = o.selectionEnd.addDays(1), o.state.value = JSON.stringify(e); }, this.yd = function () { return (this.selectMode || "").toLowerCase(); }, this.Gd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.yd()) {
|
|
2741
2752
|
case "day":
|
|
2742
2753
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2743
2754
|
break;
|
|
@@ -2751,10 +2762,10 @@ var DayPilot = { Global: {} };
|
|
|
2751
2762
|
this.selectionEnd = e;
|
|
2752
2763
|
break;
|
|
2753
2764
|
default: throw "Unknown selectMode value.";
|
|
2754
|
-
} }, this.
|
|
2765
|
+
} }, this.Hd = null, this.select = function (e, t, n) { if (!this.R) {
|
|
2755
2766
|
var a = t && (t instanceof DayPilot.Date || "string" == typeof t), i = t && "object" == typeof t && !a || "boolean" == typeof t, r = e, s = a ? t : null, l = i ? t : n;
|
|
2756
2767
|
if (!this.Ma)
|
|
2757
|
-
return void (this.
|
|
2768
|
+
return void (this.Hd = { "date1": r, "date2": s, "options": l });
|
|
2758
2769
|
var d = !0, c = !0;
|
|
2759
2770
|
l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
|
|
2760
2771
|
var u = this.selectionStart, h = this.selectionEnd;
|
|
@@ -2762,16 +2773,16 @@ var DayPilot = { Global: {} };
|
|
|
2762
2773
|
var f = !1;
|
|
2763
2774
|
if (d) {
|
|
2764
2775
|
var v = this.startDate;
|
|
2765
|
-
(this.selectionStart < this.
|
|
2776
|
+
(this.selectionStart < this.Id() || this.selectionStart >= this.Jd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
|
|
2766
2777
|
}
|
|
2767
|
-
s && o.freeHandSelectionEnabled ? o.selectionEnd = new DayPilot.Date(s) : this.
|
|
2768
|
-
} }, this.update = function (e) { o.
|
|
2778
|
+
s && o.freeHandSelectionEnabled ? o.selectionEnd = new DayPilot.Date(s) : this.Gd(), this.ed(), this.ld(), this.Kd(), this.Ed(), this.Fd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.P(), f && this.Ld();
|
|
2779
|
+
} }, this.update = function (e) { o.Md(e); }, this.Md = function (e) { if (o.tb(e), this.Ma) {
|
|
2769
2780
|
if (o.R)
|
|
2770
2781
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2771
|
-
o.
|
|
2782
|
+
o.Nd();
|
|
2772
2783
|
var t = { "day": o.selectionDay, "start": o.selectionStart, "end": o.selectionEnd };
|
|
2773
2784
|
o.rb(), t.start === o.selectionStart && t.end === o.selectionEnd && t.day === o.selectionDay || o.P();
|
|
2774
|
-
} }, this.rb = function () { this.
|
|
2785
|
+
} }, this.rb = function () { this.ed(), this.ld(), this.ia(), this.Gd(), this.Kd(), this.Ed(), this.Fd(), this.visible ? this.show() : this.hide(); }, this.Nd = function () { o.yb = {}; }, this.vb = null, this.tb = function (e) { if (e) {
|
|
2775
2786
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? o.events.list = e.list : o.events.list = e); } } };
|
|
2776
2787
|
this.vb = t;
|
|
2777
2788
|
for (var n in e)
|
|
@@ -2784,12 +2795,12 @@ var DayPilot = { Global: {} };
|
|
|
2784
2795
|
} }, this.wb = function () { var e = this.vb; for (var t in e) {
|
|
2785
2796
|
var n = e[t];
|
|
2786
2797
|
n.postInit && n.postInit();
|
|
2787
|
-
} }, this.W = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.V(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.X, i, this.
|
|
2798
|
+
} }, this.W = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.V(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.X, i, this.Od) : WebForm_DoCallback(this.uniqueID, i, this.Y, null, this.callbackError, !0); }, this.Od = function (e) { if ("function" == typeof o.onAjaxError) {
|
|
2788
2799
|
var t = {};
|
|
2789
2800
|
t.request = e, o.onAjaxError(t);
|
|
2790
2801
|
}
|
|
2791
2802
|
else
|
|
2792
|
-
"function" == typeof o.ajaxError && o.ajaxError(e); }, this.X = function (e) { o.Y(e.responseText); }, this.U = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.V(); var i = "JSON" + JSON.stringify(a); __doPostBack(o.uniqueID, i); }, this.V = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.
|
|
2803
|
+
"function" == typeof o.ajaxError && o.ajaxError(e); }, this.X = function (e) { o.Y(e.responseText); }, this.U = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.V(); var i = "JSON" + JSON.stringify(a); __doPostBack(o.uniqueID, i); }, this.V = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.wd = function (e) { var t = e + s.weekStarts(); return t > 6 && (t -= 7), s.locale().dayNamesShort[t]; }, this.xd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Pd = function (e) { for (var t = 0; t < o.months.length; t++) {
|
|
2793
2804
|
var n = o.months[t];
|
|
2794
2805
|
if (!n)
|
|
2795
2806
|
return null;
|
|
@@ -2797,19 +2808,19 @@ var DayPilot = { Global: {} };
|
|
|
2797
2808
|
return null;
|
|
2798
2809
|
if (!(n.left + n.width < e.x) && n.top <= e.y && e.y < n.top + n.height)
|
|
2799
2810
|
return t;
|
|
2800
|
-
} return null; }, this.
|
|
2801
|
-
return void (o.
|
|
2811
|
+
} return null; }, this.Qd = function () { if (!s.md())
|
|
2812
|
+
return void (o.Rd = o.cellWidth); var e = o.months[0].cells[0][0], t = e.clientWidth; o.Rd = t, o.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === o.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); }); }, this.Sd = function (e) { o.Qd(); var t = DayPilot.mo3(o.nav.top, e), n = o.Pd(t); if (null === n)
|
|
2802
2813
|
return null; var a = o.months[n], i = this.titleHeight + this.dayHeaderHeight; if (a.top <= t.y && t.y < a.top + i)
|
|
2803
2814
|
return { "month": n, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < a.cells.length; r++)
|
|
2804
2815
|
for (var s = 0; s < a.cells[r].length; s++) {
|
|
2805
2816
|
var l = a.cells[r][s], d = l.top + a.top, c = l.left + a.left;
|
|
2806
|
-
if (c <= t.x && t.x < c + o.
|
|
2817
|
+
if (c <= t.x && t.x < c + o.Rd && d <= t.y && t.y < d + o.cellHeight)
|
|
2807
2818
|
return { "month": n, "x": r, "y": s, "coords": t };
|
|
2808
|
-
} return null; }, this.
|
|
2809
|
-
var t = o.
|
|
2819
|
+
} return null; }, this.Td = function (e) { if (o.freeHandSelectionEnabled) {
|
|
2820
|
+
var t = o.Sd(e);
|
|
2810
2821
|
t && !t.header && (l.start = t), e.preventDefault();
|
|
2811
|
-
} }, this.
|
|
2812
|
-
var t = o.
|
|
2822
|
+
} }, this.Ud = function (e) { if (l.start) {
|
|
2823
|
+
var t = o.Sd(e);
|
|
2813
2824
|
if (l.end)
|
|
2814
2825
|
l.end = t;
|
|
2815
2826
|
else if (t) {
|
|
@@ -2817,9 +2828,9 @@ var DayPilot = { Global: {} };
|
|
|
2817
2828
|
a > n && (l.end = t);
|
|
2818
2829
|
}
|
|
2819
2830
|
l.end && (l.clear(), l.draw());
|
|
2820
|
-
} }, l.start = null, l.drawCell = function (e) { var t = o.months[e.month], n = o.
|
|
2831
|
+
} }, l.start = null, l.drawCell = function (e) { var t = o.months[e.month], n = o.zd(e.x, e.y), a = t.top + n.y, i = t.left + n.x, r = "px", d = o.td(); if (s.md()) {
|
|
2821
2832
|
var c = "Horizontal" === o.orientation ? o.showMonths : 1;
|
|
2822
|
-
i = t.leftPct + n.x / c, r = "%", d = o.
|
|
2833
|
+
i = t.leftPct + n.x / c, r = "%", d = o.td(1 / c);
|
|
2823
2834
|
} var u = document.createElement("div"); u.style.position = "absolute", u.style.left = i + r, u.style.top = a + "px", u.style.height = o.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", o.nav.preselection.appendChild(u), l.cells.push(u); }, l.clear = function () { if (l.cells) {
|
|
2824
2835
|
for (var e = 0; e < l.cells.length; e++)
|
|
2825
2836
|
o.nav.preselection.removeChild(l.cells[e]);
|
|
@@ -2838,40 +2849,40 @@ var DayPilot = { Global: {} };
|
|
|
2838
2849
|
t.month = i.month, t.x = i.x, t.y = i.y;
|
|
2839
2850
|
}
|
|
2840
2851
|
t.visible() && l.drawCell(t);
|
|
2841
|
-
} }, l.ordered = function () { var e = l.start, t = l.end, n = {}; return !t || new r(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.
|
|
2842
|
-
switch (o.clearSelection(), o.selectionDay = s, o.
|
|
2852
|
+
} }, l.ordered = function () { var e = l.start, t = l.end, n = {}; return !t || new r(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.Ad = function (e) { var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, i = t.x, r = t.y, s = a.cells[i][r].day; if (a.cells[i][r].isClickable) {
|
|
2853
|
+
switch (o.clearSelection(), o.selectionDay = s, o.yd()) {
|
|
2843
2854
|
case "none":
|
|
2844
2855
|
o.selectionStart = s, o.selectionEnd = s;
|
|
2845
2856
|
break;
|
|
2846
2857
|
case "day":
|
|
2847
|
-
if (o.autoFocusOnClick && (s < o.
|
|
2858
|
+
if (o.autoFocusOnClick && (s < o.Id() || s >= o.Jd()))
|
|
2848
2859
|
return void o.select(s);
|
|
2849
2860
|
var l = a.cells[i][r];
|
|
2850
|
-
o.
|
|
2861
|
+
o.Cd(n, i, r), o.selected.push(l), o.selectionStart = l.day, o.selectionEnd = l.day;
|
|
2851
2862
|
break;
|
|
2852
2863
|
case "week":
|
|
2853
2864
|
if (o.autoFocusOnClick) {
|
|
2854
2865
|
var d = a.cells[0][r].day, c = a.cells[6][r].day;
|
|
2855
|
-
if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < o.
|
|
2866
|
+
if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < o.Id() || c >= o.Jd()))
|
|
2856
2867
|
return void o.select(s);
|
|
2857
2868
|
}
|
|
2858
2869
|
for (var u = 0; u < 7; u++)
|
|
2859
|
-
o.
|
|
2870
|
+
o.Cd(n, u, r), o.selected.push(a.cells[u][r]);
|
|
2860
2871
|
o.selectionStart = a.cells[0][r].day, o.selectionEnd = a.cells[6][r].day;
|
|
2861
2872
|
break;
|
|
2862
2873
|
case "month":
|
|
2863
|
-
if (o.autoFocusOnClick && (s < o.
|
|
2874
|
+
if (o.autoFocusOnClick && (s < o.Id() || s >= o.Jd()))
|
|
2864
2875
|
return void o.select(s);
|
|
2865
2876
|
for (var d = null, c = null, h = 0; h < 6; h++)
|
|
2866
2877
|
for (var f = 0; f < 7; f++) {
|
|
2867
2878
|
var l = a.cells[f][h];
|
|
2868
|
-
l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (o.
|
|
2879
|
+
l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (o.Cd(n, f, h), o.selected.push(l), null === d && (d = l.day), c = l.day);
|
|
2869
2880
|
}
|
|
2870
2881
|
o.selectionStart = d, o.selectionEnd = c;
|
|
2871
2882
|
break;
|
|
2872
2883
|
default: throw "unknown selectMode";
|
|
2873
2884
|
}
|
|
2874
|
-
o.
|
|
2885
|
+
o.Fd(), o.P();
|
|
2875
2886
|
} }, this.P = function (e) { var t = o.selectionStart, n = o.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), i = o.selectionDay; if (e = e || {}, o.va()) {
|
|
2876
2887
|
var r = {};
|
|
2877
2888
|
if (r.start = t, r.end = n, r.day = i, r.days = a, r.mode = e.mode || o.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof o.onTimeRangeSelect && (o.onTimeRangeSelect(r), r.preventDefault.value))
|
|
@@ -2903,7 +2914,7 @@ var DayPilot = { Global: {} };
|
|
|
2903
2914
|
break;
|
|
2904
2915
|
case "None": break;
|
|
2905
2916
|
case "PostBack": o.timeRangeSelectedPostBack(t, n, i);
|
|
2906
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.U("TimeRangeSelected", n, i); }, this.
|
|
2917
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.U("TimeRangeSelected", n, i); }, this.vd = function () { o.Vd(o.skipMonths); }, this.ud = function () { o.Vd(-o.skipMonths); }, this.Vd = function (e) { this.startDate = this.startDate.addMonths(e), this.ed(), this.ld(), this.Kd(), this.Fd(), this.Ld(), this.Ed(); }, this.Id = function () { return o.startDate.firstDayOfMonth(); }, this.Jd = function () { return o.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return o.startDate.firstDayOfMonth().firstDayOfWeek(s.weekStarts()); }, this.visibleEnd = function () { return o.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(s.weekStarts()).addDays(42); }, this.Ld = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (o.va()) {
|
|
2907
2918
|
var n = {};
|
|
2908
2919
|
if (n.start = e, n.end = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof o.onVisibleRangeChange && (o.onVisibleRangeChange(n), n.preventDefault.value))
|
|
2909
2920
|
return;
|
|
@@ -2930,10 +2941,10 @@ var DayPilot = { Global: {} };
|
|
|
2930
2941
|
this.onVisibleRangeChanged(e, t);
|
|
2931
2942
|
break;
|
|
2932
2943
|
case "Disabled":
|
|
2933
|
-
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.W("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.Y = function (e) { var t = JSON.parse(e); o.items = t.Items, o.cells = t.Cells, o.cells ? o.update() : o.
|
|
2934
|
-
var t = this.
|
|
2935
|
-
this.
|
|
2936
|
-
} this.showToday && "Bottom" === this.todayPosition && this.
|
|
2944
|
+
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.W("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.Y = function (e) { var t = JSON.parse(e); o.items = t.Items, o.cells = t.Cells, o.cells ? o.update() : o.Ed(); }, this.Kd = function () { this.showToday && "Top" === this.todayPosition && this.Wd(); for (var e = 0; e < this.showMonths; e++) {
|
|
2945
|
+
var t = this.Xd(e);
|
|
2946
|
+
this.fd(e, t);
|
|
2947
|
+
} this.showToday && "Bottom" === this.todayPosition && this.Wd(), this.root.style.height = this.Yd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Wd = function () { if (this.showToday) {
|
|
2937
2948
|
var e = document.createElement("span");
|
|
2938
2949
|
e.className = this.M("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () { if ("function" == typeof o.onTodayClick) {
|
|
2939
2950
|
var e = {};
|
|
@@ -2942,7 +2953,7 @@ var DayPilot = { Global: {} };
|
|
|
2942
2953
|
} o.select(DayPilot.Date.today()); };
|
|
2943
2954
|
var t = document.createElement("div");
|
|
2944
2955
|
t.style.height = this.todayHeight + "px", t.className = this.M("_todaysection"), t.appendChild(e), this.root.appendChild(t);
|
|
2945
|
-
} }, this.
|
|
2956
|
+
} }, this.Yd = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
|
|
2946
2957
|
for (var t = 0; t < this.months.length; t++) {
|
|
2947
2958
|
var n = this.months[t];
|
|
2948
2959
|
n.height > e && (e = n.height);
|
|
@@ -2951,14 +2962,14 @@ var DayPilot = { Global: {} };
|
|
|
2951
2962
|
} for (var t = 0; t < this.months.length; t++) {
|
|
2952
2963
|
var n = this.months[t];
|
|
2953
2964
|
e += n.height;
|
|
2954
|
-
} return e; }, this.
|
|
2955
|
-
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.xa = {}, this.xa.scope = null, this.xa.notify = function () { o.xa.scope && o.xa.scope["$apply"](); }, this.
|
|
2956
|
-
var a = t.
|
|
2957
|
-
a || (a = n.createRoot(t), t.
|
|
2965
|
+
} return e; }, this.Xd = function (e) { if (this.internal.showLinks)
|
|
2966
|
+
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.xa = {}, this.xa.scope = null, this.xa.notify = function () { o.xa.scope && o.xa.scope["$apply"](); }, this.Bd = {}, this.Bd.reactDOM = null, this.Bd.react = null, this.Bd.Wc = function (e, t) { var n = o.Bd.reactDOM; if ("function" == typeof n.createRoot) {
|
|
2967
|
+
var a = t.Zd;
|
|
2968
|
+
a || (a = n.createRoot(t), t.Zd = a), a.render(e);
|
|
2958
2969
|
}
|
|
2959
2970
|
else
|
|
2960
|
-
n.render(e, t); }, this.
|
|
2961
|
-
var n = e.
|
|
2971
|
+
n.render(e, t); }, this.Bd.$d = function (e) { var t = o.Bd.reactDOM; if ("function" == typeof t.createRoot) {
|
|
2972
|
+
var n = e.Zd;
|
|
2962
2973
|
setTimeout(function () { n.unmount(); }, 0);
|
|
2963
2974
|
}
|
|
2964
2975
|
else
|
|
@@ -2968,24 +2979,24 @@ var DayPilot = { Global: {} };
|
|
|
2968
2979
|
} }, this.Sa.Wa = function (e, t) { var n = o.Sa.Ra; if ("function" == typeof n.render) {
|
|
2969
2980
|
var a = e;
|
|
2970
2981
|
DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
|
|
2971
|
-
} }, this.Sa.Ua = function (e) { var t = o.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.tb, this.internal.initialized = function () { return o.Ma; }, this.internal.
|
|
2982
|
+
} }, this.Sa.Ua = function (e) { var t = o.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.tb, this.internal.initialized = function () { return o.Ma; }, this.internal.enableVue = function (e) { o.Sa.Ra = e; }, this.internal.vueRef = function () { return o.Sa.Ra; }, this.internal.vueRendering = function () { return o.Sa.Ta; }, this.internal.upd = function (e) { o.Md(e); }, s.locale = function () { return DayPilot.Locale.find(o.locale); }, s.weekStarts = function () { if ("Auto" === o.weekStarts) {
|
|
2972
2983
|
var e = s.locale();
|
|
2973
2984
|
return e ? e.weekStarts : 0;
|
|
2974
2985
|
} return o.weekStarts; }, s.cellWidth = function () { if (o.yb.cellWidth)
|
|
2975
|
-
return o.yb.cellWidth; var e = o
|
|
2986
|
+
return o.yb.cellWidth; var e = o._d("_cell_dimensions").width; return e || (e = o.cellWidth), o.yb.cellWidth = e, e; }, s.md = function () { return "Auto" === o.S.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2976
2987
|
var t = this.selected[e];
|
|
2977
|
-
o.
|
|
2978
|
-
} this.selected = []; }, this.
|
|
2988
|
+
o.Dd(t.parentNode, t.x, t.y);
|
|
2989
|
+
} this.selected = []; }, this.ae = function () { return !!this.backendUrl && ("undefined" == typeof o.items || !o.items); }, this.events = {}, this.ia = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2979
2990
|
this.items = {};
|
|
2980
2991
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2981
2992
|
var t = this.events.list[e];
|
|
2982
2993
|
if (!t.hidden) {
|
|
2983
|
-
var n = new DayPilot.Event(t), a = this.
|
|
2994
|
+
var n = new DayPilot.Event(t), a = this.be(t);
|
|
2984
2995
|
for (var i in a)
|
|
2985
2996
|
this.items[i] || (this.items[i] = []), this.items[i].push(n);
|
|
2986
2997
|
}
|
|
2987
2998
|
}
|
|
2988
|
-
} }, this
|
|
2999
|
+
} }, this._d = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.M(e); var n = o.root || document.body; n.appendChild(t); var a = t.offsetHeight, i = t.offsetWidth; n.removeChild(t); var r = {}; return r.height = a, r.width = i, r; }, this.be = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(), r = function () { return "Date" === o.eventEndSpec ? i.getTime() <= n.getTime() : i.getTime() < n.getTime(); }; r();)
|
|
2989
3000
|
a[i.toStringSortable()] = 1, i = i.addDays(1); return a; }, this.show = function () { o.visible = !0, o.root.style.display = ""; }, this.hide = function () { o.visible = !1, o.root.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
|
|
2990
3001
|
this.nav.top = this.id;
|
|
2991
3002
|
else {
|
|
@@ -2994,19 +3005,19 @@ var DayPilot = { Global: {} };
|
|
|
2994
3005
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2995
3006
|
throw "DayPilot.Navigator: The placeholder element not found: '" + a + "'.";
|
|
2996
3007
|
} this.root = this.nav.top; }, this.init = function () { if (this.xb(), !this.root.dp) {
|
|
2997
|
-
this.
|
|
2998
|
-
if (this.
|
|
2999
|
-
var e = this.
|
|
3000
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
3008
|
+
this.Gd(), this.ld(), this.Kd(), this.ia(), this.Ed(), this.ca(), this.ce(), this.qb();
|
|
3009
|
+
if (this.ae() && this.Ld(), this.Ma = !0, this.wb(), this.Hd) {
|
|
3010
|
+
var e = this.Hd;
|
|
3011
|
+
this.select(e.date1, e.date2, e.options), this.Hd = null;
|
|
3001
3012
|
}
|
|
3002
3013
|
return this;
|
|
3003
|
-
} }, this.
|
|
3014
|
+
} }, this.ce = function () { o.nav.top.onmousedown = this.Td, o.nav.top.onmousemove = this.Ud; }, this.qb = function () { DayPilot.re(document, "mouseup", o.ee); }, this.ee = function (e) { if (l.start && l.end) {
|
|
3004
3015
|
var t = DayPilot.mo3(o.nav.top, e);
|
|
3005
3016
|
if (t.x === l.start.coords.x && t.y === l.start.coords.y)
|
|
3006
3017
|
return l.start = null, void l.clear();
|
|
3007
3018
|
l.clear();
|
|
3008
3019
|
var n = l.ordered();
|
|
3009
|
-
n.start = new r(n.start).nextVisible(), n.end = new r(n.end).previousVisible(), o.selectionDay = new r(n.start).date(), o.selectionStart = o.selectionDay, o.selectionEnd = new r(n.end).date(), l.start = null, l.end = null, o.
|
|
3020
|
+
n.start = new r(n.start).nextVisible(), n.end = new r(n.end).previousVisible(), o.selectionDay = new r(n.start).date(), o.selectionStart = o.selectionDay, o.selectionEnd = new r(n.end).date(), l.start = null, l.end = null, o.ed(), o.ld(), o.Kd(), o.Ed(), o.Fd();
|
|
3010
3021
|
o.P({ "mode": "FreeHand" });
|
|
3011
3022
|
} l.start = null, l.end = null; }, this.dispose = function () { var e = o; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.R = !0); }, this.disposed = function () { return this.R; }, this.ca = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.tb(i);
|
|
3012
3023
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
|
|
@@ -3022,7 +3033,7 @@ var DayPilot = { Global: {} };
|
|
|
3022
3033
|
var l = DayPilot.Util.shouldApply(s);
|
|
3023
3034
|
l ? !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s) : !function (n) { i[n] = function (i) { e(a[n])(t, { "args": i }); }; }(s);
|
|
3024
3035
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e) { for (var t in e)
|
|
3025
|
-
i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ia(), i.
|
|
3036
|
+
i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ia(), i.Ed(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
3026
3037
|
}
|
|
3027
3038
|
}(DayPilot), function (DayPilot) {
|
|
3028
3039
|
function e(e) { var t = e.touches[0].pageX, n = e.touches[0].pageY, a = {}; return a.x = t, a.y = n, a; }
|
|
@@ -3031,15 +3042,15 @@ var DayPilot = { Global: {} };
|
|
|
3031
3042
|
DayPilot.Scheduler = function (a, o) {
|
|
3032
3043
|
this.v = "${v}";
|
|
3033
3044
|
var s = this;
|
|
3034
|
-
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cornerText = null, this.cornerHtml = null, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.zoomLevels = [], this.zoomPosition = "left", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeCornerRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.R = !1, this.
|
|
3045
|
+
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cornerText = null, this.cornerHtml = null, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.zoomLevels = [], this.zoomPosition = "left", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeCornerRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.R = !1, this.fe = -1, this.ge = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.yb = {}, this.yb.cells = [], this.yb.linesVertical = {}, this.yb.linesHorizontal = {}, this.yb.timeHeaderGroups = [], this.yb.timeHeader = {}, this.yb.events = [], this.nav = {}, this.S = {};
|
|
3035
3046
|
var l = this.S;
|
|
3036
|
-
this.ge = {};
|
|
3037
|
-
var d = s.ge;
|
|
3038
3047
|
this.he = {};
|
|
3039
|
-
var
|
|
3040
|
-
this.
|
|
3048
|
+
var d = s.he;
|
|
3049
|
+
this.ie = {};
|
|
3050
|
+
var c = this.ie, u = {};
|
|
3051
|
+
this.scrollTo = function (e) { s.je(e); }, this.je = function (e) { if (e) {
|
|
3041
3052
|
if (!s.Ma)
|
|
3042
|
-
return void (s.
|
|
3053
|
+
return void (s.ke = e);
|
|
3043
3054
|
var t;
|
|
3044
3055
|
if (e instanceof DayPilot.Date)
|
|
3045
3056
|
t = this.getPixels(e).left;
|
|
@@ -3050,18 +3061,18 @@ var DayPilot = { Global: {} };
|
|
|
3050
3061
|
throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
|
|
3051
3062
|
t = e;
|
|
3052
3063
|
}
|
|
3053
|
-
var n = s.
|
|
3054
|
-
t < 0 && (t = 0), t > n - a && (t = n - a), s.
|
|
3064
|
+
var n = s.le.clientWidth, a = s.nav.scroll.clientWidth;
|
|
3065
|
+
t < 0 && (t = 0), t > n - a && (t = n - a), s.me(t);
|
|
3055
3066
|
} }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
|
|
3056
|
-
t = s.
|
|
3067
|
+
t = s.ne(e);
|
|
3057
3068
|
else {
|
|
3058
3069
|
if (!(e instanceof DayPilot.Row))
|
|
3059
3070
|
throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
|
|
3060
|
-
t = s.
|
|
3061
|
-
} t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.
|
|
3062
|
-
var e = s.
|
|
3071
|
+
t = s.ne(e.id);
|
|
3072
|
+
} t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.oe = function () { if (this.floatingTimeHeaders && this.timeHeader) {
|
|
3073
|
+
var e = s.pe();
|
|
3063
3074
|
if (e) {
|
|
3064
|
-
s.
|
|
3075
|
+
s.qe();
|
|
3065
3076
|
for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
|
|
3066
3077
|
for (var r = 0; r < this.timeHeader[i].length; r++) {
|
|
3067
3078
|
var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
|
|
@@ -3072,66 +3083,76 @@ var DayPilot = { Global: {} };
|
|
|
3072
3083
|
}
|
|
3073
3084
|
for (var u = 0; u < a.length; u++) {
|
|
3074
3085
|
var c = a[u];
|
|
3075
|
-
s.
|
|
3086
|
+
s.se(c.div, c.marginLeft, c.marginRight);
|
|
3076
3087
|
}
|
|
3077
|
-
s.
|
|
3088
|
+
s.te();
|
|
3078
3089
|
}
|
|
3079
|
-
} }, this.
|
|
3080
|
-
var h = s.
|
|
3081
|
-
h.
|
|
3082
|
-
return !0; }); }, h.
|
|
3090
|
+
} }, this.ve = function () { s.oe(), s.we(); }, this.xe = {};
|
|
3091
|
+
var h = s.xe;
|
|
3092
|
+
h.ye = function (e, t, n, a) { var i = e, r = e + n, o = t, l = t + a; return s.elements.events.filter(function (e) { var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight; if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
|
|
3093
|
+
return !0; }); }, h.ze = function () { var e = [], t = s.pe(); if (!t)
|
|
3083
3094
|
return e; for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
|
|
3084
3095
|
var i = s.elements.events[a], r = i.event, o = r.part.left, l = r.part.left + r.part.width;
|
|
3085
3096
|
o < n && n < l && e.push(i);
|
|
3086
|
-
} return e.area = t, e; }, this.
|
|
3087
|
-
var e = h.
|
|
3088
|
-
s.
|
|
3089
|
-
} }, this.elements.sections = [], this.elements.hsections = [], this.
|
|
3097
|
+
} return e.area = t, e; }, this.we = function () { if (this.floatingEvents) {
|
|
3098
|
+
var e = h.ze();
|
|
3099
|
+
s.Ae = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.Be(t, r, 0); }), s.Ce();
|
|
3100
|
+
} }, this.elements.sections = [], this.elements.hsections = [], this.se = function (e, t, n) { var a; if (e.section) {
|
|
3090
3101
|
var i = e.section;
|
|
3091
|
-
return i.style.left = t + "px", i.style.right = n + "px", void (e.
|
|
3092
|
-
} var o = r(); o.className = s.M("_timeheader_float"), o.style.position = "absolute", o.style.left = t + "px", o.style.right = n + "px", o.style.top = "0px", o.style.bottom = "0px", o.style.overflow = "hidden"; var l = r(); l.className = s.M("_timeheader_float_inner"), e.
|
|
3102
|
+
return i.style.left = t + "px", i.style.right = n + "px", void (e.De = !1);
|
|
3103
|
+
} var o = r(); o.className = s.M("_timeheader_float"), o.style.position = "absolute", o.style.left = t + "px", o.style.right = n + "px", o.style.top = "0px", o.style.bottom = "0px", o.style.overflow = "hidden"; var l = r(); l.className = s.M("_timeheader_float_inner"), e.Ee = l; var d = e.cell.th, c = !0, u = null === (a = e.domArgs) || void 0 === a ? void 0 : a.element; if (u) {
|
|
3093
3104
|
var h = l;
|
|
3094
3105
|
if (DayPilot.Util.isReactComponent(u)) {
|
|
3095
|
-
if (!s.
|
|
3106
|
+
if (!s.Bd.reactDOM)
|
|
3096
3107
|
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
3097
|
-
s.
|
|
3108
|
+
s.Bd.Wc(u, h), c = !1;
|
|
3098
3109
|
}
|
|
3099
|
-
} if (c && (l.innerHTML = s._a(d.text, d.innerHTML)), d.fontColor && (l.style.color = d.fontColor), o.appendChild(l), o.
|
|
3110
|
+
} if (c && (l.innerHTML = s._a(d.text, d.innerHTML)), d.fontColor && (l.style.color = d.fontColor), o.appendChild(l), o.Fe = { marginLeft: t, marginRight: n }, e.section = o, e.insertBefore(o, e.firstChild.nextSibling), u) {
|
|
3100
3111
|
var f = e.firstChild && e.firstChild.firstChild;
|
|
3101
3112
|
f && setTimeout(function () { f.style.display = "none"; }, 0);
|
|
3102
3113
|
}
|
|
3103
3114
|
else
|
|
3104
|
-
e.firstChild.innerHTML = ""; this.elements.hsections.push(e); }, this.
|
|
3105
|
-
this.elements.hsections[e].
|
|
3106
|
-
} }, this.
|
|
3115
|
+
e.firstChild.innerHTML = ""; this.elements.hsections.push(e); }, this.qe = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
|
|
3116
|
+
this.elements.hsections[e].De = !0;
|
|
3117
|
+
} }, this.te = function () { for (var e = [], t = 0; t < this.elements.hsections.length; t++) {
|
|
3107
3118
|
var n = this.elements.hsections[t];
|
|
3108
|
-
if (n.
|
|
3119
|
+
if (n.De) {
|
|
3109
3120
|
var a = n.cell;
|
|
3110
3121
|
if (a && n.firstChild)
|
|
3111
3122
|
if (n.domArgs && n.domArgs.element) {
|
|
3112
3123
|
var i = n.firstChild && n.firstChild.firstChild;
|
|
3113
3124
|
i && (i.style.display = "");
|
|
3114
|
-
var r = s.
|
|
3125
|
+
var r = s.Bd.reactDOM && DayPilot.Util.isReactComponent(n.domArgs.element);
|
|
3115
3126
|
if (r) {
|
|
3116
|
-
var o = n.
|
|
3117
|
-
s.
|
|
3127
|
+
var o = n.Ee;
|
|
3128
|
+
s.Bd.$d(o);
|
|
3118
3129
|
}
|
|
3119
3130
|
}
|
|
3120
3131
|
else
|
|
3121
3132
|
n.firstChild.innerHTML = s._a(a.th.text, a.th.innerHTML);
|
|
3122
|
-
DayPilot.de(n.section), n.section = null, n.
|
|
3133
|
+
DayPilot.de(n.section), n.section = null, n.De = !1;
|
|
3123
3134
|
}
|
|
3124
3135
|
else
|
|
3125
3136
|
e.push(n);
|
|
3126
|
-
} this.elements.hsections = e; }, this.
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3137
|
+
} this.elements.hsections = e; }, this.Be = function (e, t, n) {
|
|
3138
|
+
var a, i, o = e.section;
|
|
3139
|
+
if (o)
|
|
3140
|
+
return o.Fe && o.Fe.marginLeft === t && o.Fe.marginRight === n ? void (o.Fe.stamp = s.Ae) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (o.Fe = { marginLeft: t, marginRight: n, stamp: s.Ae }));
|
|
3141
|
+
o = r(), o.className = s.M("_event_float"), o.style.position = "absolute", o.style.left = t + "px", o.style.right = n + "px", o.style.top = "0px", o.style.bottom = "0px", o.style.overflow = "hidden";
|
|
3142
|
+
var l = r();
|
|
3143
|
+
l.className = s.M("_event_float_inner"), l.innerHTML = e.event.client.html(), o.appendChild(l);
|
|
3144
|
+
var d = null === (a = e.domArgs) || void 0 === a ? void 0 : a.element;
|
|
3145
|
+
if (o.Fe = { marginLeft: t, marginRight: n, stamp: s.Ae }, e.section = o, e.insertBefore(o, e.firstChild.nextSibling), d) {
|
|
3146
|
+
var c = null === (i = null === e || void 0 === e ? void 0 : e.firstChild) || void 0 === i ? void 0 : i.firstChild;
|
|
3147
|
+
c && (c.style.display = "none");
|
|
3148
|
+
}
|
|
3149
|
+
else
|
|
3150
|
+
e.firstChild.innerHTML = "";
|
|
3151
|
+
var u = e.event, h = u.cache || u.data;
|
|
3152
|
+
h.fontColor && (l.style.color = h.fontColor), this.elements.sections.push(e);
|
|
3153
|
+
}, this.Ce = function () { for (var e, t = [], n = 0; n < this.elements.sections.length; n++) {
|
|
3133
3154
|
var a = this.elements.sections[n];
|
|
3134
|
-
if (a.section && a.section.
|
|
3155
|
+
if (a.section && a.section.Fe && a.section.Fe.stamp === s.Ae)
|
|
3135
3156
|
t.push(a);
|
|
3136
3157
|
else {
|
|
3137
3158
|
var i = a.event;
|
|
@@ -3144,32 +3165,27 @@ var DayPilot = { Global: {} };
|
|
|
3144
3165
|
a.firstChild.innerHTML = i.client.html();
|
|
3145
3166
|
DayPilot.de(a.section), a.section = null;
|
|
3146
3167
|
}
|
|
3147
|
-
} this.elements.sections = t; }, this.setScrollX = function (e) { s.
|
|
3148
|
-
s.
|
|
3149
|
-
var e = s.Fe.scrollYRequested;
|
|
3150
|
-
"number" == typeof e && s.He(e);
|
|
3151
|
-
}, 0)) : s.He(e);
|
|
3152
|
-
}, this.He = function (e) { var t = s.nav.scroll, n = s.ee; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.na = function () { if (this.nav.scroll) {
|
|
3153
|
-
!function () { var e = s.Ge(); s.ke.style.height = s.ee + "px", s.ke.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
|
|
3168
|
+
} this.elements.sections = t; }, this.setScrollX = function (e) { s.Ge.enabled ? (s.Ge.scrollXRequested = e, setTimeout(function () { var e = s.Ge.scrollXRequested; "number" == typeof e && s.me(e); }, 0)) : s.me(e); }, this.me = function (e) { var t = s.nav.scroll, n = s.He(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.Ge.enabled ? (s.Ge.scrollYRequested = e, setTimeout(function () { var e = s.Ge.scrollYRequested; "number" == typeof e && s.Ie(e); }, 0)) : s.Ie(e); }, this.Ie = function (e) { var t = s.nav.scroll, n = s.fe; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.na = function () { if (this.nav.scroll) {
|
|
3169
|
+
!function () { var e = s.He(); s.le.style.height = s.fe + "px", s.le.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
|
|
3154
3170
|
var e = 1;
|
|
3155
3171
|
this.nav.scroll.style.height = "30px";
|
|
3156
|
-
var t = this.Ya(), n = t + this.
|
|
3157
|
-
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.
|
|
3172
|
+
var t = this.Ya(), n = t + this.Je() + e;
|
|
3173
|
+
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.Ke.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
|
|
3158
3174
|
var a = 30;
|
|
3159
3175
|
"Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
|
|
3160
3176
|
}
|
|
3161
3177
|
for (var i = 0; i < this.elements.linesVertical.length; i++)
|
|
3162
|
-
this.elements.linesVertical[i].style.height = this.
|
|
3163
|
-
} }, this.
|
|
3178
|
+
this.elements.linesVertical[i].style.height = this.fe + "px";
|
|
3179
|
+
} }, this.Le = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
|
|
3164
3180
|
var a = e[n].groupBy, i = e[n].format;
|
|
3165
3181
|
"Default" === a && (a = this.cellGroupBy);
|
|
3166
3182
|
for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
|
|
3167
3183
|
var d = {};
|
|
3168
|
-
if (d.start = o, d.end = this.
|
|
3184
|
+
if (d.start = o, d.end = this.Me(d.start, a), d.start.ticks === d.end.ticks)
|
|
3169
3185
|
break;
|
|
3170
3186
|
d.left = this.getPixels(d.start).left;
|
|
3171
3187
|
var c = this.getPixels(d.end).left, u = c - d.left;
|
|
3172
|
-
if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.
|
|
3188
|
+
if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Ne()) : d.text = this.Oe(d, a), u > 0) {
|
|
3173
3189
|
if ("function" == typeof this.onBeforeTimeHeaderRender) {
|
|
3174
3190
|
var h = {};
|
|
3175
3191
|
h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s._a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
|
|
@@ -3181,15 +3197,15 @@ var DayPilot = { Global: {} };
|
|
|
3181
3197
|
o = d.end;
|
|
3182
3198
|
}
|
|
3183
3199
|
this.timeHeader.push(r);
|
|
3184
|
-
} }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.
|
|
3185
|
-
return null; var i = a.x, r = s.
|
|
3186
|
-
return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.
|
|
3187
|
-
return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.
|
|
3188
|
-
return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.
|
|
3200
|
+
} }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.He(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.Pe(e, n); if (!a)
|
|
3201
|
+
return null; var i = a.x, r = s.Qe(i); if (!r)
|
|
3202
|
+
return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Re(a.offset)) : o; }, this.Pe = function (e, t) { t && (e -= 1); var n = Math.floor(e / s.cellWidth), a = s.Qe(n); if (!a)
|
|
3203
|
+
return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.Se = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * s.Te() * 1e3; if (t < 0)
|
|
3204
|
+
return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.Qe(a) }; }, this.Bb = function (e) { var t = 60 * s.Te() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Re = function (e) { var t = 60 * s.Te() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Ue = function (e) { DayPilot.Global.touch.start || t.Ve || (s.We = {}, s.wa(this, e)); }, this.wa = function (e, t) { e.event && s.Xe(e, t); }, this.ya = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
3189
3205
|
var t = this.event;
|
|
3190
3206
|
if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
|
|
3191
3207
|
return !1;
|
|
3192
|
-
s.
|
|
3208
|
+
s.Ye(e);
|
|
3193
3209
|
var n = {};
|
|
3194
3210
|
if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(n), n.preventDefault.value))
|
|
3195
3211
|
return !1;
|
|
@@ -3199,11 +3215,11 @@ var DayPilot = { Global: {} };
|
|
|
3199
3215
|
a ? a.show(t) : s.contextMenu && s.contextMenu.show(this.event);
|
|
3200
3216
|
}
|
|
3201
3217
|
return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
|
|
3202
|
-
} }, this.
|
|
3218
|
+
} }, this.Qe = function (e) { var t = s.Te(), n = 60 * t * 1e3, a = new DayPilot.Date(s.startDate); return { start: a.addTime(e * n), end: a.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Xe = function (e, t) { if ("boolean" == typeof t)
|
|
3203
3219
|
throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
|
|
3204
3220
|
var a = t.ctrlKey, i = t.metaKey;
|
|
3205
3221
|
if (n.client.clickEnabled()) {
|
|
3206
|
-
s.
|
|
3222
|
+
s.Ye(t);
|
|
3207
3223
|
var r = {};
|
|
3208
3224
|
r.e = n, r.control = s, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof s.onEventClick && (s.onEventClick(r), r.preventDefault.value) || "function" == typeof s.onEventClicked && s.onEventClicked(r);
|
|
3209
3225
|
}
|
|
@@ -3214,73 +3230,73 @@ var DayPilot = { Global: {} };
|
|
|
3214
3230
|
"function" == typeof s.onEventDeleted && s.onEventDeleted(t);
|
|
3215
3231
|
} }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.L = function (e, t, n, a) { function i() { if (!r.preventDefault.value) {
|
|
3216
3232
|
switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
|
|
3217
|
-
case "Update": s
|
|
3233
|
+
case "Update": s.$e(r);
|
|
3218
3234
|
}
|
|
3219
3235
|
"function" == typeof s.onEventResized && s.onEventResized(r);
|
|
3220
3236
|
} } if ("Disabled" !== this.eventResizeHandling) {
|
|
3221
|
-
n = s.
|
|
3237
|
+
n = s.Ze(n);
|
|
3222
3238
|
var r = {};
|
|
3223
3239
|
r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = s, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(r), r.async || i();
|
|
3224
|
-
} }, this.rb = function (e) { e = e || {}, clearTimeout(s
|
|
3240
|
+
} }, this.rb = function (e) { e = e || {}, clearTimeout(s._e), s.timeHeader = null, s.cellProperties = {}, s.Le(), s.af(), s.events.bf(), s.S.Nd(), s.clearSelection(), s.ia(), s.cf(), s.df(), s.eb(), s.sb(), s.ef(), s.ff(), s.gf(), s.ja(), s._(), s.hf(), s.if = {}, s.jf(), s.na(), s.kf(), e.immediateEvents ? s.oa() : setTimeout(function () { s.oa(); }, 100), this.visible ? s.ge !== s.visible && this.show() : this.hide(), this.ge = this.visible, this.ve(), s.lf(), this.mf(); }, this.mf = function () { if ("function" == typeof s.onAfterUpdate) {
|
|
3225
3241
|
var e = {};
|
|
3226
3242
|
s.onAfterUpdate(e);
|
|
3227
3243
|
} }, this.update = function (e) { if (!s.Ma)
|
|
3228
3244
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (s.R)
|
|
3229
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.
|
|
3245
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.nf(e), u.timeout = setTimeout(u.doit)) : (u.nf(e), u.doit()); }, u.nf = function (e) { if (e) {
|
|
3230
3246
|
u.options || (u.options = {});
|
|
3231
3247
|
for (var t in e)
|
|
3232
3248
|
u.options[t] = e[t];
|
|
3233
|
-
} }, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.
|
|
3234
|
-
n = s.
|
|
3249
|
+
} }, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.of = function (e) { e.forEach(function (e) { s.pf(e.index); }); }, this.qf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.rf = function (e, t, n) { e = DayPilot.ua(e), e = s.qf(e), s.of(e), this.sf ? (this.cf(), this.ff(), this.hf(), e.forEach(function (e) { s.tf(e.index); }), e.forEach(function (e) { s.uf(e.index); }), this.kf(), this.vf()) : (e.forEach(function (e) { t || s.tf(e.index), s.uf(e.index); }), e.forEach(function (e) { s.wf(e.index); }), s.kf()), s.we(), n && n(), this.jf(); }, this.Ze = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.xf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.yf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.N = function (e, t, n, a, i) { if (s.zf = null, "Disabled" !== s.eventMoveHandling) {
|
|
3250
|
+
n = s.Ze(n);
|
|
3235
3251
|
var r = {};
|
|
3236
3252
|
r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = s, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
|
|
3237
3253
|
var o = function () { if (r.loaded = function () { }, r.preventDefault.value)
|
|
3238
|
-
return void s.
|
|
3239
|
-
case "Update": s
|
|
3240
|
-
} s.
|
|
3254
|
+
return void s.Af(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
|
|
3255
|
+
case "Update": s.$e(r);
|
|
3256
|
+
} s.Af(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
|
|
3241
3257
|
r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r), r.async || o();
|
|
3242
|
-
} }, this
|
|
3258
|
+
} }, this.$e = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.Bf(); }, this.Cf = function (e) { if (e)
|
|
3243
3259
|
if (e.args)
|
|
3244
3260
|
s.P(e.args.start, e.args.end, e.args.resource);
|
|
3245
3261
|
else {
|
|
3246
|
-
var t = s.
|
|
3262
|
+
var t = s.Df(e);
|
|
3247
3263
|
if (!t)
|
|
3248
3264
|
return;
|
|
3249
3265
|
s.P(t.start, t.end, t.resource);
|
|
3250
3266
|
} }, this.P = function (e, t, n) { if ("Disabled" !== s.timeRangeSelectedHandling) {
|
|
3251
3267
|
var a = t;
|
|
3252
|
-
t = s.
|
|
3268
|
+
t = s.Ze(a);
|
|
3253
3269
|
var i = {};
|
|
3254
3270
|
if (i.control = s, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof s.onTimeRangeSelect) {
|
|
3255
3271
|
if (s.onTimeRangeSelect(i), i.preventDefault.value)
|
|
3256
3272
|
return;
|
|
3257
3273
|
e = i.start, t = i.end;
|
|
3258
3274
|
}
|
|
3259
|
-
t = s.
|
|
3260
|
-
} }, this.
|
|
3275
|
+
t = s.xf(t), s.Ef(s.Ff, e, t), s.Gf(s.Ff), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
|
|
3276
|
+
} }, this.Ef = function (e, t, n) { if (e) {
|
|
3261
3277
|
var a, i = n;
|
|
3262
|
-
t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.
|
|
3278
|
+
t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Se(t), e.start.x = a.i, e.start.time = t);
|
|
3263
3279
|
var r = s.startDate.addDays(s.days);
|
|
3264
|
-
i.getTime() > r.getTime() ? (e.end.x = s.
|
|
3265
|
-
} }, this.
|
|
3280
|
+
i.getTime() > r.getTime() ? (e.end.x = s.Hf(), e.end.time = r.getTime()) : (a = s.Se(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
|
|
3281
|
+
} }, this.If = function (e, t) { s.Jf(e, t); }, this.Jf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Kf = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Lf(e, t), i = s.Mf(a), r = s.Qe(a.start.x), o = s.Qe(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Lf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Pe(e), i = s.Pe(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Nf(r).i, n.end.y = s.Nf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Hf(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Mf = function (e) { e || (e = this.Lf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
|
|
3266
3282
|
var a = s.rowlist[n];
|
|
3267
3283
|
a && t.push(a.id);
|
|
3268
|
-
} return t; }, this.M = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { s.nav.top.className !== s.M("_main") && (s.nav.top.className = s.M("_main"), s.nav.dh1.className = s.M("_divider_horizontal"), s.nav.dh2.className = s.M("_divider_horizontal"), s.divResScroll.className = s.M("_rowheader_scroll"), s.nav.divider.className = s.M("_divider") + " " + s.M("_splitter"), s.nav.scroll.className = s.M("_scrollable"), s.
|
|
3284
|
+
} return t; }, this.M = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { s.nav.top.className !== s.M("_main") && (s.nav.top.className = s.M("_main"), s.nav.dh1.className = s.M("_divider_horizontal"), s.nav.dh2.className = s.M("_divider_horizontal"), s.divResScroll.className = s.M("_rowheader_scroll"), s.nav.divider.className = s.M("_divider") + " " + s.M("_splitter"), s.nav.scroll.className = s.M("_scrollable"), s.le.className = s.M("_matrix") + " " + s.M("_grid_main")); }, this.ca = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = s; if (e.Ma && !e.R) {
|
|
3269
3285
|
e.R = !0;
|
|
3270
|
-
for (var n in e.
|
|
3271
|
-
var a = e.
|
|
3286
|
+
for (var n in e.Of) {
|
|
3287
|
+
var a = e.Of[n];
|
|
3272
3288
|
DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
|
|
3273
3289
|
}
|
|
3274
|
-
e._(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.
|
|
3275
|
-
} }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.
|
|
3290
|
+
e._(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.Ke = null, e.le.calendar = null, e.le = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.rc(e), c = null;
|
|
3291
|
+
} }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Pf(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.M("_shadow"), h.className = this.M("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Nf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
|
|
3276
3292
|
var d = n[l];
|
|
3277
3293
|
if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
|
|
3278
3294
|
break;
|
|
3279
|
-
} return a; }, this.
|
|
3295
|
+
} return a; }, this.Qf = function (e) { if (e > this.rowlist.length - 1)
|
|
3280
3296
|
throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
|
|
3281
3297
|
t += this.rowlist[n].height; var a = this.rowlist[e]; return { top: t - a.height, height: a.height, bottom: t, i: e, data: a }; }, this.events.find = function (e) { if (!s.events.list || "undefined" == typeof s.events.list.length)
|
|
3282
3298
|
return null; if ("function" == typeof e)
|
|
3283
|
-
return s.
|
|
3299
|
+
return s.Rf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
|
|
3284
3300
|
if (s.events.list[n].id === e)
|
|
3285
3301
|
return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
|
|
3286
3302
|
for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
|
|
@@ -3291,13 +3307,13 @@ var DayPilot = { Global: {} };
|
|
|
3291
3307
|
} if ("object" == typeof e)
|
|
3292
3308
|
return s.events.findAll(function (t) { for (var n in e)
|
|
3293
3309
|
if (e[n] !== t.data[n])
|
|
3294
|
-
return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.
|
|
3310
|
+
return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Rf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
|
|
3295
3311
|
var a = new DayPilot.Event(s.events.list[n], s);
|
|
3296
3312
|
if (e(a))
|
|
3297
3313
|
return a;
|
|
3298
|
-
} return null; }, this.events.focus = function (e) { var t = s.
|
|
3314
|
+
} return null; }, this.events.focus = function (e) { var t = s.Sf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Sf(e)) {
|
|
3299
3315
|
var t = e.start(), n = s.getViewport();
|
|
3300
|
-
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.
|
|
3316
|
+
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.Tf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
|
|
3301
3317
|
var a = e.resource();
|
|
3302
3318
|
s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
|
|
3303
3319
|
} }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
|
|
@@ -3323,42 +3339,42 @@ var DayPilot = { Global: {} };
|
|
|
3323
3339
|
else {
|
|
3324
3340
|
var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
|
|
3325
3341
|
r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
|
|
3326
|
-
} }, this.events.
|
|
3342
|
+
} }, this.events.Uf = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.Vf(n.index); for (var a = 0; a < n.events.length; a++) {
|
|
3327
3343
|
var i = n.events[a].data;
|
|
3328
|
-
if (s.
|
|
3344
|
+
if (s.Wf(i, e)) {
|
|
3329
3345
|
t.push(n), n.events.splice(a, 1);
|
|
3330
3346
|
break;
|
|
3331
3347
|
}
|
|
3332
|
-
} }), t; }, this.events.
|
|
3348
|
+
} }), t; }, this.events.Xf = function (e) { if (!e)
|
|
3333
3349
|
return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
|
|
3334
3350
|
var a = t[n];
|
|
3335
|
-
s.
|
|
3351
|
+
s.Vf(a.index);
|
|
3336
3352
|
for (var i = 0; i < a.events.length; i++) {
|
|
3337
3353
|
var r = a.events[i];
|
|
3338
|
-
if (s.
|
|
3354
|
+
if (s.Wf(r.data, e))
|
|
3339
3355
|
return a.events[i];
|
|
3340
3356
|
}
|
|
3341
|
-
} return null; }, this.events.
|
|
3342
|
-
s.
|
|
3343
|
-
var o = s
|
|
3357
|
+
} return null; }, this.events.Yf = function (e) { var t = [], n = s.Zf(), a = DayPilot.indexOf(s.events.list, e); s.zb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
|
|
3358
|
+
s.Vf(i.index);
|
|
3359
|
+
var o = s.$f(e, i);
|
|
3344
3360
|
o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.yb.events[a]), t.push(i), n || (r = !0));
|
|
3345
|
-
} }), t; }, this.
|
|
3361
|
+
} }), t; }, this.Wf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
|
|
3346
3362
|
var t = s.events.find(e.id);
|
|
3347
3363
|
return s.events.remove(t), void s.events.add(e);
|
|
3348
|
-
} if (s.events.list.find(function (t) { return s.
|
|
3349
|
-
s.
|
|
3350
|
-
var n = s.events.
|
|
3351
|
-
e.commit(), n = n.concat(s.events.
|
|
3364
|
+
} if (s.events.list.find(function (t) { return s.Wf(t, e.data); })) {
|
|
3365
|
+
s.Ge._f && (s.Ge.skip = !0);
|
|
3366
|
+
var n = s.events.Uf(e.data);
|
|
3367
|
+
e.commit(), n = n.concat(s.events.Yf(e.data)), s.events.ag(n);
|
|
3352
3368
|
} }, this.events.remove = function (e) { if (e) {
|
|
3353
3369
|
if ("string" == typeof e || "number" == typeof e) {
|
|
3354
3370
|
var t = s.events.find(e);
|
|
3355
3371
|
return void s.events.remove(t);
|
|
3356
3372
|
}
|
|
3357
|
-
var n = s.
|
|
3358
|
-
n && s.events.list.splice(n.index, 1), s.
|
|
3359
|
-
var a = s.events.
|
|
3360
|
-
s.events.
|
|
3361
|
-
} }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.
|
|
3373
|
+
var n = s.bg(e.data);
|
|
3374
|
+
n && s.events.list.splice(n.index, 1), s.Ge._f && (s.Ge.skip = !0);
|
|
3375
|
+
var a = s.events.Uf(e.data);
|
|
3376
|
+
s.events.ag(a);
|
|
3377
|
+
} }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.bg(e); if (a) {
|
|
3362
3378
|
if (!i)
|
|
3363
3379
|
throw new DayPilot.Exception("Unexpected: event not found in list");
|
|
3364
3380
|
}
|
|
@@ -3367,77 +3383,77 @@ var DayPilot = { Global: {} };
|
|
|
3367
3383
|
throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
|
|
3368
3384
|
i || s.events.list.push(e.data);
|
|
3369
3385
|
} if (s.Ma) {
|
|
3370
|
-
s.
|
|
3371
|
-
var r = s.events.
|
|
3372
|
-
s.events.
|
|
3373
|
-
} }, this.events.
|
|
3386
|
+
s.Ge._f && (s.Ge.skip = !0);
|
|
3387
|
+
var r = s.events.Yf(e.data);
|
|
3388
|
+
s.events.ag(r);
|
|
3389
|
+
} }, this.events.cg = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.Wf(t, e))
|
|
3374
3390
|
return !1; if (t.resource !== e.resource)
|
|
3375
|
-
return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.
|
|
3391
|
+
return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.dg = { "rows": [] }, this.events.eg = null, this.events.bf = function () { clearTimeout(s.events.eg), s.events.eg = null, s.events.dg.rows = []; }, this.events.fg = 0, this.events.ag = function (e) { var t = s.events.dg.rows; e.forEach(function (e) { t.push(e); }), s.events.dg.rows = DayPilot.ua(t); var n = s.events.Bf; s.events.eg || (s.events.eg = setTimeout(n, s.events.fg)); }, this.events.Bf = function () { clearTimeout(s.events.eg), s.events.eg = null; var e = s.events.dg.rows; s.events.dg.rows = [], s.gg(e), s.hg(), s.Ma && (s.sf && s.cf(), s.na(), s.rf(e)); }, this.Ge = {}, this.Ge.enabled = !1, this.Ge.skip = !1, this.Ge.skipUpdate = function () { return s.Ge.skip; }, this.Ge.skipped = function () { s.Ge.skip = !1; }, this.Ge.ig = !1, this.Ge._f = !1, this.Bd = {}, this.Bd.reactDOM = null, this.Bd.react = null, this.jg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
|
|
3376
3392
|
return e; var n = t; if (e.ticks < t.ticks) {
|
|
3377
3393
|
for (; n.ticks > e.ticks;)
|
|
3378
|
-
n = n.addTime(60 * -s.
|
|
3394
|
+
n = n.addTime(60 * -s.Te() * 1e3);
|
|
3379
3395
|
return n;
|
|
3380
|
-
} var a = this.
|
|
3381
|
-
return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.
|
|
3396
|
+
} var a = this.Se(e); if (a.current)
|
|
3397
|
+
return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Pf = function (e) { var n = this.Nf(s.coords.y); if ("function" != typeof e.end)
|
|
3382
3398
|
throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
|
|
3383
|
-
throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.
|
|
3399
|
+
throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.kg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.jg(e.start()).getTime()); var d = 0; if (t.lg)
|
|
3384
3400
|
if (i) {
|
|
3385
|
-
var c = e.start(), u = this.
|
|
3386
|
-
d = t.
|
|
3387
|
-
var h = 60 * s.
|
|
3401
|
+
var c = e.start(), u = this.jg(c);
|
|
3402
|
+
d = t.lg.getTime() - u.getTime();
|
|
3403
|
+
var h = 60 * s.Te() * 1e3;
|
|
3388
3404
|
d = Math.floor(d / h) * h;
|
|
3389
3405
|
}
|
|
3390
3406
|
else
|
|
3391
|
-
d = t.
|
|
3407
|
+
d = t.lg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.mg && (f = e.start()); var v = s.snapToGrid; v && (f = this.jg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Te = function () { switch (this.scale) {
|
|
3392
3408
|
case "CellDuration": return this.cellDuration;
|
|
3393
3409
|
case "Minute": return 1;
|
|
3394
3410
|
case "Hour": return 60;
|
|
3395
3411
|
case "Day": return 1440;
|
|
3396
3412
|
case "Week": return 10080;
|
|
3397
|
-
} throw new DayPilot.Exception("can't guess cellDuration value"); }, this.
|
|
3413
|
+
} throw new DayPilot.Exception("can't guess cellDuration value"); }, this.ng = function (e) { return e.end.ticks - e.start.ticks; }, this.og = function () { var e = t.pg.width, n = t.pg.left, a = t.qg, i = t.mg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.pg.start = r, t.pg.end = o; }, this.rg = function () { var e = s.coords, n = t.mg.dpBorder, a = t.mg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.mg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
|
|
3398
3414
|
if (r = c, f) {
|
|
3399
|
-
var v = s.
|
|
3415
|
+
var v = s.Pe(d + c + h).cell, p = s.Pe(c).cell, m = p.left + p.width - c;
|
|
3400
3416
|
o = v.left + v.width - c, o < m && (o = m);
|
|
3401
3417
|
}
|
|
3402
3418
|
else
|
|
3403
3419
|
o = d + h;
|
|
3404
|
-
var g = s.
|
|
3405
|
-
c + o > g && (o = g - c), t.
|
|
3420
|
+
var g = s.He();
|
|
3421
|
+
c + o > g && (o = g - c), t.pg.left = c, t.pg.width = o, t.pg.style.left = c + "px", t.pg.style.width = o + "px";
|
|
3406
3422
|
}
|
|
3407
3423
|
else {
|
|
3408
3424
|
if ("left" !== n)
|
|
3409
3425
|
throw new DayPilot.Exception("Invalid dpBorder.");
|
|
3410
3426
|
f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
|
|
3411
3427
|
var y = c + d, b = l;
|
|
3412
|
-
f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.
|
|
3413
|
-
} s.
|
|
3414
|
-
var e = t.
|
|
3428
|
+
f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.pg.left = r, t.pg.width = o, t.pg.style.left = r + "px", t.pg.style.width = o + "px";
|
|
3429
|
+
} s.og(); }, this.sg = function () { if (s.coords && t.tg) {
|
|
3430
|
+
var e = t.ug, n = this.Pf(t.tg);
|
|
3415
3431
|
e.row = n.row, e.style.height = DayPilot.Util.atLeast(n.row.height, 0) + "px", e.style.top = n.top + "px", e.style.left = n.left + "px", e.style.width = n.width + "px", e.start = n.start, e.end = n.end;
|
|
3416
|
-
} }, this.
|
|
3417
|
-
var a = s.
|
|
3432
|
+
} }, this.vg = function () { return this.rowHeaderWidth; }, this.wg = function () { return this.xg(s.progressiveRowRenderingPreload); }, this.xg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
|
|
3433
|
+
var a = s.pe();
|
|
3418
3434
|
t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
|
|
3419
|
-
} return { "start": t, "end": n }; }, this.
|
|
3435
|
+
} return { "start": t, "end": n }; }, this.df = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.yg = !0; var t = this.vg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.fe + "px", s.divHeader = a, s.progressiveRowRendering)
|
|
3420
3436
|
n();
|
|
3421
3437
|
else
|
|
3422
3438
|
for (var i = this.rowlist.length, r = 0; r < i; r++)
|
|
3423
|
-
s.
|
|
3424
|
-
for (var e = this.
|
|
3425
|
-
e.start <= t && t < e.end ? s.
|
|
3439
|
+
s.zg(r); s.Ag(), this.divResScroll.appendChild(a); }, this.Bg = function () { if (s.progressiveRowRendering)
|
|
3440
|
+
for (var e = this.wg(), t = 0; t < s.rowlist.length; t++)
|
|
3441
|
+
e.start <= t && t < e.end ? s.zg(t) : s.Cg(t); }, this.Ag = function () { if (!s.S.Dg()) {
|
|
3426
3442
|
var e = s.divHeader, t = r();
|
|
3427
3443
|
t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
|
|
3428
3444
|
var n = r();
|
|
3429
3445
|
n.style.position = "relative", n.style.height = "100%", n.className = this.M("_rowheader"), t.appendChild(n);
|
|
3430
|
-
var a = this.
|
|
3431
|
-
t.style.width = a + "px", t.style.top = this.
|
|
3432
|
-
} }, this.
|
|
3433
|
-
var a = this.
|
|
3446
|
+
var a = this.vg();
|
|
3447
|
+
t.style.width = a + "px", t.style.top = this.fe + "px";
|
|
3448
|
+
} }, this.Cg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.pf = function (e) { this.Cg(e), this.zg(e); }, this.zg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
|
|
3449
|
+
var a = this.vg(), i = t[e];
|
|
3434
3450
|
if (i) {
|
|
3435
|
-
var o = this.
|
|
3451
|
+
var o = this.Eg(i), l = r();
|
|
3436
3452
|
l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
|
|
3437
3453
|
var d = o.row, c = this.rowHeaderWidth;
|
|
3438
3454
|
l.style.width = c + "px", l.style.border = "0px none";
|
|
3439
3455
|
var u = d.toolTip || d.toolTip;
|
|
3440
|
-
u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.
|
|
3456
|
+
u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.Fg;
|
|
3441
3457
|
var h = r();
|
|
3442
3458
|
h.style.width = c + "px", h.className = this.M("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
|
|
3443
3459
|
var f = d.backColor || d.backColor;
|
|
@@ -3457,15 +3473,15 @@ var DayPilot = { Global: {} };
|
|
|
3457
3473
|
case "center": m.style.justifyContent = "center";
|
|
3458
3474
|
}
|
|
3459
3475
|
h.appendChild(m);
|
|
3460
|
-
var g = d.areas || [], y = s.
|
|
3476
|
+
var g = d.areas || [], y = s.Gg(i);
|
|
3461
3477
|
DayPilot.Areas.attach(h, y, { areas: g });
|
|
3462
3478
|
var b = r();
|
|
3463
3479
|
b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.M("_resourcedivider"), h.appendChild(b);
|
|
3464
3480
|
var w = r(), x = r();
|
|
3465
3481
|
x.innerHTML = s._a(d.text, d.html), x.className = s.M("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
|
|
3466
|
-
var
|
|
3467
|
-
if (
|
|
3468
|
-
switch (m.style.display = "flex",
|
|
3482
|
+
var _ = d.verticalAlignment || d.verticalAlignment;
|
|
3483
|
+
if (_)
|
|
3484
|
+
switch (m.style.display = "flex", _) {
|
|
3469
3485
|
case "center":
|
|
3470
3486
|
m.style.alignItems = "center";
|
|
3471
3487
|
break;
|
|
@@ -3476,17 +3492,17 @@ var DayPilot = { Global: {} };
|
|
|
3476
3492
|
}
|
|
3477
3493
|
l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
|
|
3478
3494
|
}
|
|
3479
|
-
} }, this.
|
|
3495
|
+
} }, this.Fg = function (e) { var t = this.row, n = s.Gg(t, this.index); s.If(n, e); }, this.Hg = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
|
|
3480
3496
|
var e = {};
|
|
3481
|
-
e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.
|
|
3482
|
-
} }, this.
|
|
3497
|
+
e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Te())), s.Kf(e);
|
|
3498
|
+
} }, this.Ig = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
|
|
3483
3499
|
e.cancelBubble = !0, e.preventDefault();
|
|
3484
3500
|
var t = {};
|
|
3485
|
-
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.
|
|
3501
|
+
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Te()));
|
|
3486
3502
|
var n = {};
|
|
3487
3503
|
n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderRightClick && (s.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof s.onTimeHeaderRightClicked && s.onTimeHeaderRightClicked(n);
|
|
3488
|
-
} }, this.
|
|
3489
|
-
throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.
|
|
3504
|
+
} }, this.Gg = function (e) { return new DayPilot.Row(e, s); }, this.Vf = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Jg = {}, this.ia = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
|
|
3505
|
+
throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Jg = {}; for (var i = 0; i < n.length; i++) {
|
|
3490
3506
|
var r = n[i];
|
|
3491
3507
|
if (r) {
|
|
3492
3508
|
if ("object" != typeof r)
|
|
@@ -3498,21 +3514,21 @@ var DayPilot = { Global: {} };
|
|
|
3498
3514
|
if (!("string" == typeof r.id || "number" == typeof r.id))
|
|
3499
3515
|
throw new DayPilot.Exception("All events must have an id property (string or number)");
|
|
3500
3516
|
var o = "_" + r.id;
|
|
3501
|
-
if (s.
|
|
3517
|
+
if (s.Jg[o])
|
|
3502
3518
|
throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
|
|
3503
|
-
s.
|
|
3519
|
+
s.Jg[o] = !0, a && this.zb(i), t = s.Kg(r.resource);
|
|
3504
3520
|
for (var l = 0; t && l < t.length; l++) {
|
|
3505
|
-
var d = t[l], u = this
|
|
3521
|
+
var d = t[l], u = this.$f(r, d);
|
|
3506
3522
|
u && a && (u.cache = this.yb.events[i]);
|
|
3507
3523
|
}
|
|
3508
3524
|
}
|
|
3509
|
-
} s.rowlist.forEach(function (e) { s.
|
|
3525
|
+
} s.rowlist.forEach(function (e) { s.Lg(e); }), s.hg(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
|
|
3510
3526
|
var a = t[n];
|
|
3511
|
-
if (e && a.resetEvents(), s.
|
|
3527
|
+
if (e && a.resetEvents(), s.Vf(a.index), a.id) {
|
|
3512
3528
|
var i = typeof a.id + "_" + a.id;
|
|
3513
3529
|
c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
|
|
3514
3530
|
}
|
|
3515
|
-
} }, this.
|
|
3531
|
+
} }, this.Kg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Zf = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
|
|
3516
3532
|
var n = s.rowlist[t], a = n.id;
|
|
3517
3533
|
if (e[a])
|
|
3518
3534
|
return !0;
|
|
@@ -3521,31 +3537,31 @@ var DayPilot = { Global: {} };
|
|
|
3521
3537
|
a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
|
|
3522
3538
|
var r = {};
|
|
3523
3539
|
r.e = a, r.data = a, this.onBeforeEventRender(r);
|
|
3524
|
-
} t[e] = a; }, this.
|
|
3540
|
+
} t[e] = a; }, this.Lg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Ab); for (var t = 0; t < e.events.length; t++) {
|
|
3525
3541
|
var n = e.events[t];
|
|
3526
3542
|
e.putIntoLine(n);
|
|
3527
|
-
} }, this.
|
|
3543
|
+
} }, this.gg = function (e) { e = DayPilot.ua(e), e = s.qf(e), e.forEach(function (e) { s.Lg(e); }), e.forEach(function (e) { s.Mg(e); }); }, this.$f = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.xf(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
|
|
3528
3544
|
return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
|
|
3529
3545
|
var u = DayPilot.indexOf(s.events.list, e);
|
|
3530
3546
|
c = s.yb.events[u];
|
|
3531
3547
|
} if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
|
|
3532
|
-
return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.
|
|
3548
|
+
return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.kg(r - i)) {
|
|
3533
3549
|
var g = f.boxLeft, y = v.boxRight;
|
|
3534
3550
|
h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
|
|
3535
3551
|
}
|
|
3536
3552
|
else
|
|
3537
3553
|
h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = s.eventMinWidth; return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h; }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
|
|
3538
3554
|
return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < s.rowlist.length; t++) {
|
|
3539
|
-
var n = s.
|
|
3555
|
+
var n = s.Gg(s.rowlist[t]);
|
|
3540
3556
|
e.push(n);
|
|
3541
3557
|
} return e; }, this.rows.each = function (e) { s.rows.all().forEach(e); }, this.rows.forEach = function (e) { s.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
|
|
3542
|
-
var n = s.
|
|
3558
|
+
var n = s.Kg(e);
|
|
3543
3559
|
e || (n = s.rowlist);
|
|
3544
3560
|
var a = null;
|
|
3545
3561
|
return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, s) : null;
|
|
3546
3562
|
} if ("function" != typeof e)
|
|
3547
|
-
throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.
|
|
3548
|
-
return s.
|
|
3563
|
+
throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Gg(t)); }); if (r)
|
|
3564
|
+
return s.Gg(r); }, this.rows.load = function (e, t, n) { if (!e)
|
|
3549
3565
|
throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
|
|
3550
3566
|
n = JSON.parse(i.responseText);
|
|
3551
3567
|
}
|
|
@@ -3568,80 +3584,78 @@ var DayPilot = { Global: {} };
|
|
|
3568
3584
|
if (e = s.rows.find(t.id), !e)
|
|
3569
3585
|
return;
|
|
3570
3586
|
e.data = t;
|
|
3571
|
-
} var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.
|
|
3572
|
-
var
|
|
3573
|
-
|
|
3574
|
-
if (r
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3587
|
+
} var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Ng(r), l = s.Og(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Vf(l.index), s.Pg(l), s.Lg(l), s.pf(l.index), s.hf(), s.kf(); }, this.Pg = function (e) {
|
|
3588
|
+
for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
|
|
3589
|
+
var r = t[i];
|
|
3590
|
+
if (r) {
|
|
3591
|
+
if (r instanceof DayPilot.Event)
|
|
3592
|
+
throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
|
|
3593
|
+
if (r.resource === e.id) {
|
|
3594
|
+
a && this.zb(i);
|
|
3595
|
+
var o = this.$f(r, e);
|
|
3596
|
+
o && a && (o.cache = this.yb.events[i]);
|
|
3597
|
+
}
|
|
3580
3598
|
}
|
|
3581
3599
|
}
|
|
3582
|
-
}
|
|
3583
|
-
throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.
|
|
3584
|
-
var
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
if (this.lines[a].isFree(e, n))
|
|
3598
|
-
return a;
|
|
3599
|
-
} var i = t.Qg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t;
|
|
3600
|
-
}, this.Pg = function (e) { if (e)
|
|
3600
|
+
}, this.af = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
|
|
3601
|
+
throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Qg(e); }, this.ta = function () { return new DayPilot.Date(this.startDate); }, this.Tf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.ta(); }, this.visibleEnd = function () { return this.Tf(); }, this.Og = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s._a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.Fe, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
|
|
3602
|
+
var r = e.events[i], o = s.xf(r.end());
|
|
3603
|
+
DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
|
|
3604
|
+
} return a; }; }, t.Rg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
|
|
3605
|
+
var o = this[r];
|
|
3606
|
+
if (!(a < o.part.left || e > o.part.left + o.part.width - 1)) {
|
|
3607
|
+
if (DayPilot.contains(n, o.data))
|
|
3608
|
+
continue;
|
|
3609
|
+
return !1;
|
|
3610
|
+
}
|
|
3611
|
+
} return !0; }, e; }, t.findFreeLine = function (e, n) { for (var a = 0; a < this.lines.length; a++) {
|
|
3612
|
+
if (this.lines[a].isFree(e, n))
|
|
3613
|
+
return a;
|
|
3614
|
+
} var i = t.Rg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Qg = function (e) { if (e)
|
|
3601
3615
|
for (var t = s.rowlist, n = 0; n < e.length; n++)
|
|
3602
3616
|
if (e[n]) {
|
|
3603
3617
|
var a = {};
|
|
3604
3618
|
a.index = n;
|
|
3605
|
-
var i = this.
|
|
3619
|
+
var i = this.Ng(e[n], a), r = s.Og(i, parent);
|
|
3606
3620
|
r.index = n, t.push(r);
|
|
3607
|
-
} }, this.
|
|
3621
|
+
} }, this.Eg = function (e) { var t = {}; return t.row = this.Gg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Ng = function (e, t) { var n = { get $data() { return this.Fe; } }; for (var a in t)
|
|
3608
3622
|
n[a] = t[a]; for (var i in e)
|
|
3609
|
-
n[i] = e[i]; return n.html = s._a(e.name, e.html), n.
|
|
3623
|
+
n[i] = e[i]; return n.html = s._a(e.name, e.html), n.Fe = e, n; }, this.Sg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.M("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Tg, this.nav.top.ontouchmove = d.Ug, this.nav.top.ontouchend = d.Vg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.M("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.fb()), t.appendChild(n), t.appendChild(this.Wg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Je() + this.Ya() + "px", a.className = this.M("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Je() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.M("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Xg()), i.appendChild(s.Yg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.M("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.M("_divider_horizontal") + " " + this.M("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ja = function () { var e = this.Je(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Zg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.$g = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.wg(), a = n.start; a < n.end; a++) {
|
|
3610
3624
|
var i = t.rows[a];
|
|
3611
3625
|
if (i) {
|
|
3612
3626
|
var r = s.rowHeaderWidth;
|
|
3613
3627
|
i.style.width = r + "px";
|
|
3614
3628
|
i.firstChild.style.width = r + "px";
|
|
3615
3629
|
}
|
|
3616
|
-
} s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.
|
|
3617
|
-
var a = function () { var t = s.
|
|
3618
|
-
DayPilot.browser.ios ? t.
|
|
3630
|
+
} s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.gf = function () { this.Zg(), this.$g(); }, this.fb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Je() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.M("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.M("_corner_inner"), n.innerHTML = " ", this.divCorner = n, t.appendChild(n), t; }, this.Je = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this._g = null, this.Wg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.M("_rowheader_scroll"); var n = s.S.Dg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.ah = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s._g && clearTimeout(s._g), n) {
|
|
3631
|
+
var a = function () { var t = s.bh() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
|
|
3632
|
+
DayPilot.browser.ios ? t.ah && (s._g = setTimeout(a, 10)) : s._g = setTimeout(a, 10);
|
|
3619
3633
|
}
|
|
3620
3634
|
else
|
|
3621
|
-
s
|
|
3622
|
-
if (!s.
|
|
3623
|
-
return s.
|
|
3624
|
-
s.
|
|
3625
|
-
} }; if (!s.
|
|
3635
|
+
s._g = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Ke = e, e; }, this.ch = null, this.dh = null, this.eh = function () { var e = function () { s.fh(), s.lf(); }, t = function () { var t = s.nav.top; if (t) {
|
|
3636
|
+
if (!s.ch)
|
|
3637
|
+
return s.ch = {}, void (s.ch.width = t.offsetWidth);
|
|
3638
|
+
s.ch.width !== t.offsetWidth && (s.ch.width = t.offsetWidth, e());
|
|
3639
|
+
} }; if (!s.dh) {
|
|
3626
3640
|
var n = new ResizeObserver(DayPilot.debounce(t, 100));
|
|
3627
|
-
n.observe(s.nav.top), s.
|
|
3628
|
-
} }, this.
|
|
3641
|
+
n.observe(s.nav.top), s.dh = n;
|
|
3642
|
+
} }, this.fh = function () { s.R || (s.na(), s.gh(), s.yb.drawArea = null); }, this.gh = function () { var e = s.Ff; s.clearSelection(), s.Ff = e, s.Gf(e, { "justDraw": !0 }); }, this.Xg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Je() + "px", e.style.overflow = "hidden", e.className = s.M("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.He() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.bh(), "Max" === t && e > s.height ? s.height : e); }, this.bh = function () { var e; return this.fe !== -1 ? (e = this.fe, this.fe > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Yg = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Je() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.M("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.le = r(); var t = this.le; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.He(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.hh, t.onmousemove = this.ih, t.onmouseup = this.jh, t.oncontextmenu = this.kh, t.className = this.M("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.kh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.kh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.kh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.kh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e; }, this.qb = function () { t.lh || (t.lh = !0, DayPilot.re(document, "mouseup", t.ee), DayPilot.reNonPassive(document, "touchmove", t.mh), DayPilot.re(document, "touchend", t.nh)); }, this.oh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.lf, s.ph = this.nav.scroll.scrollLeft, s.qh = this.nav.scroll.scrollTop, this.divNorth && (s.rh = this.divNorth.clientWidth); }, this.uh = {}, this.uh.step = 300, this.uh.delay = 10, this.uh.mode = "display", this.uh.layers = !1, this.Mg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
|
|
3629
3643
|
for (var a = e.lines[n], i = 0; i < a.length; i++) {
|
|
3630
3644
|
var r = a[i];
|
|
3631
3645
|
r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
|
|
3632
3646
|
}
|
|
3633
3647
|
t += s.eventHeight;
|
|
3634
|
-
} }, this
|
|
3635
|
-
var t = this.
|
|
3636
|
-
"display" === this.
|
|
3637
|
-
var n = "Progressive" === this.dynamicEventRendering, a = this.
|
|
3638
|
-
s.rowlist.filter(function (e) { var t = e.top - l.
|
|
3648
|
+
} }, this._e = null, this.oa = function (e) { if (!s.R) {
|
|
3649
|
+
var t = this.uh.step;
|
|
3650
|
+
"display" === this.uh.mode ? this.divEvents.style.display = "none" : "visibility" === this.uh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
|
|
3651
|
+
var n = "Progressive" === this.dynamicEventRendering, a = this.pe(), i = a.pixels.top, r = a.pixels.bottom;
|
|
3652
|
+
s.rowlist.filter(function (e) { var t = e.top - l.vh(), a = t + e.height + 2 * l.vh(); return !n || !(a <= i || t >= r); }).forEach(function (n) { s.Mg(n); for (var a = 0; a < n.lines.length; a++)
|
|
3639
3653
|
for (var i = n.lines[a], r = 0; r < i.length; r++) {
|
|
3640
3654
|
var o = i[r], l = s.Va(o);
|
|
3641
3655
|
if (e && l && (t--, t <= 0))
|
|
3642
|
-
return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s
|
|
3643
|
-
} }), this.divEvents.style.display = "", this.
|
|
3644
|
-
} }, this.
|
|
3656
|
+
return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s._e = setTimeout(function () { s.oa(e); }, s.uh.delay));
|
|
3657
|
+
} }), this.divEvents.style.display = "", this.we();
|
|
3658
|
+
} }, this.uf = function (e) { var t = s.rowlist[e]; this.Mg(t); for (var n = 0; n < t.lines.length; n++)
|
|
3645
3659
|
for (var a = t.lines[n], i = 0; i < a.length; i++) {
|
|
3646
3660
|
var r = a[i];
|
|
3647
3661
|
this.Va(r);
|
|
@@ -3649,7 +3663,7 @@ var DayPilot = { Global: {} };
|
|
|
3649
3663
|
for (var e = this.elements.events.length, t = 0; t < e; t++) {
|
|
3650
3664
|
var n = this.elements.events[t];
|
|
3651
3665
|
this.Pa(n);
|
|
3652
|
-
} this.elements.events = []; }, this.
|
|
3666
|
+
} this.elements.events = []; }, this.tf = function (e) { if (this.elements.events) {
|
|
3653
3667
|
for (var t = this.elements.events.length, n = [], a = 0; a < t; a++) {
|
|
3654
3668
|
var i = this.elements.events[a];
|
|
3655
3669
|
i.event.part.dayIndex === e && (this.Pa(i), n.push(a));
|
|
@@ -3659,20 +3673,20 @@ var DayPilot = { Global: {} };
|
|
|
3659
3673
|
} }, this.Pa = function (e) { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
|
|
3660
3674
|
var n = t && t.Qa;
|
|
3661
3675
|
if (n) {
|
|
3662
|
-
var a = s.
|
|
3663
|
-
a ? s.
|
|
3676
|
+
var a = s.Bd.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
|
|
3677
|
+
a ? s.Bd.$d(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
|
|
3664
3678
|
}
|
|
3665
|
-
} e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.
|
|
3679
|
+
} e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.wh = function () { if ("Progressive" === this.dynamicEventRendering) {
|
|
3666
3680
|
if (s.dynamicEventRenderingCacheSweeping) {
|
|
3667
3681
|
var e = s.dynamicEventRenderingCacheSize || 0;
|
|
3668
3682
|
this.divEvents.style.display = "none";
|
|
3669
3683
|
for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
|
|
3670
3684
|
var i = this.elements.events[a];
|
|
3671
|
-
this.
|
|
3685
|
+
this.xh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
|
|
3672
3686
|
}
|
|
3673
3687
|
this.elements.events = t, this.divEvents.style.display = "";
|
|
3674
3688
|
}
|
|
3675
|
-
} }, this.
|
|
3689
|
+
} }, this.yh = function (e) { for (var t = this.pe(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
|
|
3676
3690
|
var i = this.elements.cells[a];
|
|
3677
3691
|
t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.gb(i));
|
|
3678
3692
|
} }, this.gb = function (e) { if (e && e.coords) {
|
|
@@ -3680,39 +3694,39 @@ var DayPilot = { Global: {} };
|
|
|
3680
3694
|
!function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
|
|
3681
3695
|
var n = t && t.Qa;
|
|
3682
3696
|
if (n) {
|
|
3683
|
-
var a = s.
|
|
3684
|
-
a ? s.
|
|
3697
|
+
var a = s.Bd.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
|
|
3698
|
+
a ? s.Bd.$d(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
|
|
3685
3699
|
}
|
|
3686
3700
|
} }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.yb.cells[t + "_" + n] = null;
|
|
3687
|
-
} }, this.
|
|
3688
|
-
return !1; for (var t = this.nav.scroll.scrollTop - l.
|
|
3701
|
+
} }, this.zh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
|
|
3702
|
+
return !1; for (var t = this.nav.scroll.scrollTop - l.vh(), n = t + this.nav.scroll.clientHeight + 2 * l.vh(), a = 0; a < this.rowlist.length; a++) {
|
|
3689
3703
|
var i = this.rowlist[a], r = i.top, o = i.top + i.height;
|
|
3690
3704
|
if (!e || !(r >= n || o <= t))
|
|
3691
3705
|
for (var s = 0; s < i.lines.length; s++)
|
|
3692
3706
|
for (var d = i.lines[s], c = 0; c < d.length; c++) {
|
|
3693
3707
|
var u = d[c];
|
|
3694
|
-
if (this.
|
|
3708
|
+
if (this.Ah(u))
|
|
3695
3709
|
return !0;
|
|
3696
3710
|
}
|
|
3697
|
-
} return !1; }, this.
|
|
3698
|
-
return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.
|
|
3699
|
-
return !0; var t = this.
|
|
3700
|
-
return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.
|
|
3701
|
-
return !1; var k = e.part.width, S = s.eventHeight, D = e.cache || e.data, M = D.borderRadius || s.eventBorderRadius; "number" == typeof M && (M += "px"); var T = D.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), S = DayPilot.Util.atLeast(0, S); var A = r(); A.style.position = "absolute", A.style.left = e.part.left + "px", A.style.top = h + e.part.top + "px", A.style.width = k + "px", A.style.height = S + "px", s.eventTextWrappingEnabled || (A.style.whiteSpace = "nowrap"), A.style.overflow = "hidden", A.className = this.M("_event"), D.cssClass && DayPilot.Util.addClass(A, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(A, this.M("_event_line" + e.part.line)), M && (A.style.borderRadius = M), this.showToolTip && (A.title = e.client.toolTip() || ""), A.onmousemove = this.
|
|
3711
|
+
} return !1; }, this.Ah = function (e) { if (e.rendered)
|
|
3712
|
+
return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.Bh(), a = n + this.nav.scroll.clientWidth + 2 * l.Bh(), i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.xh = function (e) { if (!e.rendered)
|
|
3713
|
+
return !0; var t = this.pe(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight; return r <= o || i >= l || (a <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
|
|
3714
|
+
return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.pe(), v = f.pixels.left - l.Bh(), p = f.pixels.right + l.Bh(), m = f.pixels.top, g = f.pixels.bottom, y = e.part.left, b = e.part.left + e.part.width, w = e.part.top + h, x = w + s.eventHeight, _ = p <= y || v >= b, C = g <= w || m >= x; if (!n && a && (_ || C))
|
|
3715
|
+
return !1; var k = e.part.width, S = s.eventHeight, D = e.cache || e.data, M = D.borderRadius || s.eventBorderRadius; "number" == typeof M && (M += "px"); var T = D.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), S = DayPilot.Util.atLeast(0, S); var A = r(); A.style.position = "absolute", A.style.left = e.part.left + "px", A.style.top = h + e.part.top + "px", A.style.width = k + "px", A.style.height = S + "px", s.eventTextWrappingEnabled || (A.style.whiteSpace = "nowrap"), A.style.overflow = "hidden", A.className = this.M("_event"), D.cssClass && DayPilot.Util.addClass(A, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(A, this.M("_event_line" + e.part.line)), M && (A.style.borderRadius = M), this.showToolTip && (A.title = e.client.toolTip() || ""), A.onmousemove = this.Ch, A.onmousedown = this.Dh, A.onmouseup = this.Eh, A.ontouchstart = d.Fh, A.ontouchmove = d.Gh, A.ontouchend = d.Hh, e.client.clickEnabled() && (A.onclick = this.Ue), "undefined" != typeof D.ariaLabel ? A.setAttribute("aria-label", D.ariaLabel) : A.setAttribute("aria-label", D.text), A.setAttribute("tabindex", "-1"); var E = r(); E.className = s.M("_event_inner"), M && (E.style.borderRadius = M), T && (E.style.padding = T), D.backColor && (E.style.background = D.backColor), D.fontColor && (E.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? E.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : E.style.borderColor = D.borderColor, D.backImage && (E.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (E.style.backgroundRepeat = D.backRepeat)), A.appendChild(E); var H = e.start().getTime() === e.part.start.getTime(), N = e.rawend().getTime() === e.part.end.getTime(); if (H || DayPilot.Util.addClass(A, this.M("_event_continueleft")), N || DayPilot.Util.addClass(A, this.M("_event_continueright")), e.client.barVisible() && k > 0) {
|
|
3702
3716
|
var R = 100 * e.part.barLeft / k, I = Math.ceil(100 * e.part.barWidth / k), P = r();
|
|
3703
3717
|
P.className = this.M("_event_bar"), P.style.position = "absolute", D.barBackColor && (P.style.backgroundColor = D.barBackColor);
|
|
3704
3718
|
var z = r();
|
|
3705
3719
|
z.className = this.M("_event_bar_inner"), z.style.left = R + "%", 0 < I && I <= 1 ? z.style.width = "1px" : z.style.width = I + "%", D.barColor && (z.style.backgroundColor = D.barColor), D.barImageUrl && (z.style.backgroundImage = "url(" + D.barImageUrl + ")"), P.appendChild(z), A.appendChild(P);
|
|
3706
3720
|
} A.row = i, A.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
|
|
3707
|
-
return void s.
|
|
3721
|
+
return void s.Ih(E, D.text, D.html); var t = {}; if (t.control = s, t.e = e, t.element = null, A.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
|
|
3708
3722
|
var n = E;
|
|
3709
3723
|
if (n) {
|
|
3710
3724
|
t.Qa = n;
|
|
3711
3725
|
var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
|
|
3712
3726
|
if (a) {
|
|
3713
|
-
if (!s.
|
|
3727
|
+
if (!s.Bd.reactDOM)
|
|
3714
3728
|
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
3715
|
-
s.
|
|
3729
|
+
s.Bd.Wc(t.element, n);
|
|
3716
3730
|
}
|
|
3717
3731
|
else if (i) {
|
|
3718
3732
|
if (!s.Sa.Ra)
|
|
@@ -3724,98 +3738,95 @@ var DayPilot = { Global: {} };
|
|
|
3724
3738
|
}
|
|
3725
3739
|
}
|
|
3726
3740
|
else
|
|
3727
|
-
E.innerHTML = e.client.innerHTML(); }(); var
|
|
3728
|
-
var e = s.durationBarVisible ? s.durationBarHeight : 0;
|
|
3729
|
-
U.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } });
|
|
3730
|
-
} }(), D.areas && (U = U.concat(D.areas)), DayPilot.Areas.attach(A, e, { areas: U }), this.elements.events.push(A), o.appendChild(A), e.rendered = !0, !0; }, this._a = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Hh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.uf = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
3741
|
+
E.innerHTML = e.client.innerHTML(); }(); var B = []; return function () { "Disabled" === s.eventDeleteHandling || D.deleteDisabled || B.push({ v: "Hover", w: 18, h: 18, top: "calc(50% - 9px)", right: 2, action: "None", css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } }); }(), D.areas && (B = B.concat(D.areas)), DayPilot.Areas.attach(A, e, { areas: B }), this.elements.events.push(A), o.appendChild(A), e.rendered = !0, !0; }, this._a = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ih = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.vf = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
3731
3742
|
var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
|
|
3732
3743
|
n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
|
|
3733
|
-
} }, this.
|
|
3744
|
+
} }, this.Jh = function (e) { if (!e)
|
|
3734
3745
|
return null; for (var t = 0; t < s.elements.events.length; t++) {
|
|
3735
3746
|
var n = s.elements.events[t];
|
|
3736
3747
|
if (n.event === e || n.event.data === e.data)
|
|
3737
3748
|
return n;
|
|
3738
|
-
} return null; }, this.
|
|
3739
|
-
return null; var n = s.rowlist[t.part.dayIndex]; return s.
|
|
3740
|
-
t = t.parentNode; s.
|
|
3749
|
+
} return null; }, this.Sf = function (e) { var t = s.events.Xf(e.data); if (!t)
|
|
3750
|
+
return null; var n = s.rowlist[t.part.dayIndex]; return s.Mg(n), s.Va(t, { "forced": !0 }), s.Jh(t); }, this.Ch = function (e) { for (var t = e.currentTarget; t && !t.event;)
|
|
3751
|
+
t = t.parentNode; s.Kh(t, e), s.Ye(e); }, this.We = {}, this.Dh = function (e) { s.Ye(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ve = !0, t.mg = this, t.qg = this.event, t.Lh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Mh(this, e)); }, this.Eh = function (e) { DayPilot.Util.mouseButton(e).right && s.ya.call(this, e); }, this.Mh = function (e, t) { var n = s.We; s.Ye(t), n.Nh = !0, n.We = e, n.tg = e.event, n.Lh = DayPilot.mc(t), n.Oh = DayPilot.mo3(e, t).x, n.lg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1;
|
|
3741
3752
|
DayPilot.Global.touch.start = !1;
|
|
3742
|
-
d.
|
|
3743
|
-
t.stopPropagation(), d.
|
|
3753
|
+
d.Of = [], d.relativeCoords = function (e) { return d.Ph(e); }, d.startResizing = function (e, t) { d.Qh(e, t); }, d.startMoving = function (e, t) { d.Mh(e, t); }, d.Fh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
3754
|
+
t.stopPropagation(), d.Rh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
3744
3755
|
var n = t.currentTarget;
|
|
3745
|
-
s.coords = d.
|
|
3756
|
+
s.coords = d.Ph(t);
|
|
3746
3757
|
var a = s.tapAndHoldTimeout;
|
|
3747
|
-
d.
|
|
3758
|
+
d.Of.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
|
|
3748
3759
|
case "Move": if (a.client.moveEnabled()) {
|
|
3749
3760
|
var i = e(t);
|
|
3750
|
-
d.
|
|
3761
|
+
d.Mh(n, i);
|
|
3751
3762
|
}
|
|
3752
3763
|
} }, a));
|
|
3753
|
-
} }, d.
|
|
3754
|
-
if (d.
|
|
3764
|
+
} }, d.Gh = function () { d.Rh(), DayPilot.Global.touch.start = !1; }, d.Hh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
|
|
3765
|
+
if (d.Rh(), DayPilot.Global.touch.start) {
|
|
3755
3766
|
DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
|
|
3756
3767
|
var t = e.currentTarget;
|
|
3757
|
-
setTimeout(function () { s.
|
|
3768
|
+
setTimeout(function () { s.Xe(t, e); });
|
|
3758
3769
|
}
|
|
3759
3770
|
setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
|
|
3760
|
-
} }, d.
|
|
3761
|
-
d.
|
|
3771
|
+
} }, d.Tg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
|
|
3772
|
+
d.Rh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
3762
3773
|
var t = s.tapAndHoldTimeout;
|
|
3763
|
-
d.
|
|
3764
|
-
s.coords = d.
|
|
3765
|
-
} }, d.
|
|
3766
|
-
return e.preventDefault(), void d.
|
|
3767
|
-
if (e.preventDefault(), s.coords = d.
|
|
3768
|
-
return void d.
|
|
3769
|
-
if (d.
|
|
3770
|
-
var n = d.
|
|
3771
|
-
n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.
|
|
3774
|
+
d.Of.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.coords = d.Ph(e), d.Sh = s.Th(); }, t));
|
|
3775
|
+
s.coords = d.Ph(e);
|
|
3776
|
+
} }, d.Ug = function (e) { if (d.Rh(), DayPilot.Global.touch.start = !1, t.mg)
|
|
3777
|
+
return e.preventDefault(), void d.Uh(); if (DayPilot.Global.touch.active) {
|
|
3778
|
+
if (e.preventDefault(), s.coords = d.Ph(e), t.We)
|
|
3779
|
+
return void d.Vh();
|
|
3780
|
+
if (d.Sh) {
|
|
3781
|
+
var n = d.Sh;
|
|
3782
|
+
n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.Gf(n);
|
|
3772
3783
|
}
|
|
3773
|
-
} }, d.debug = function () { }, d.
|
|
3774
|
-
if (t.
|
|
3784
|
+
} }, d.debug = function () { }, d.Vg = function (e) { d.Rh(); if (DayPilot.Global.touch.active) {
|
|
3785
|
+
if (t.We) {
|
|
3775
3786
|
e.preventDefault();
|
|
3776
|
-
var n = t.
|
|
3777
|
-
if (s !== t.
|
|
3787
|
+
var n = t.tg;
|
|
3788
|
+
if (s !== t.ug.calendar)
|
|
3778
3789
|
return;
|
|
3779
|
-
var a = t.
|
|
3780
|
-
DayPilot.Util.removeClass(t.
|
|
3790
|
+
var a = t.ug.start, r = t.ug.end, o = t.ug.row.id;
|
|
3791
|
+
DayPilot.Util.removeClass(t.We, s.M("_event_moving_source")), DayPilot.de(t.ug), t.ug.calendar = null, i().style.cursor = "", t.We = null, t.tg = null, t.ug = null, s.N(n, a, r, o);
|
|
3781
3792
|
}
|
|
3782
|
-
if (d.
|
|
3783
|
-
var l = d.
|
|
3784
|
-
d.
|
|
3793
|
+
if (d.Sh) {
|
|
3794
|
+
var l = d.Sh;
|
|
3795
|
+
d.Sh = null;
|
|
3785
3796
|
var c = s.elements.range2;
|
|
3786
|
-
c && c.overlapping ? s.clearSelection() : s.
|
|
3797
|
+
c && c.overlapping ? s.clearSelection() : s.Cf(l);
|
|
3787
3798
|
}
|
|
3788
3799
|
}
|
|
3789
3800
|
else if (DayPilot.Global.touch.start) {
|
|
3790
3801
|
if (s.coords.x < s.getScrollX())
|
|
3791
3802
|
return;
|
|
3792
|
-
var l = s.
|
|
3793
|
-
s.
|
|
3803
|
+
var l = s.Th();
|
|
3804
|
+
s.Gf(l);
|
|
3794
3805
|
var c = s.elements.range2;
|
|
3795
|
-
c && c.overlapping ? s.clearSelection() : s.
|
|
3796
|
-
} setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.
|
|
3797
|
-
clearTimeout(d.
|
|
3798
|
-
var e = t.
|
|
3799
|
-
t.
|
|
3800
|
-
} s.
|
|
3801
|
-
var e = t.
|
|
3802
|
-
t.
|
|
3803
|
-
} t.
|
|
3806
|
+
c && c.overlapping ? s.clearSelection() : s.Cf(l);
|
|
3807
|
+
} setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Rh = function () { for (var e = 0; e < d.Of.length; e++)
|
|
3808
|
+
clearTimeout(d.Of[e]); d.Of = []; }, d.Ph = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.le, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Mh = function (e, n) { t.We = e, t.tg = e.event, t.Lh = n; var a = DayPilot.abs(e); t.Oh = n.x - a.x, t.lg = s.getDate(s.coords.x, !0), t.ug = s.da(e), s.sg(); }, d.Qh = function (e, n) { t.mg = e, t.qg = e.event, t.mg.dpBorder = n, t.pg || (t.pg = s.da(e)), s.rg(); }, d.Uh = function () { if (!t.pg) {
|
|
3809
|
+
var e = t.mg;
|
|
3810
|
+
t.pg = s.da(e);
|
|
3811
|
+
} s.rg(); }, d.Vh = function () { if (!t.ug) {
|
|
3812
|
+
var e = t.We;
|
|
3813
|
+
t.ug = s.da(e);
|
|
3814
|
+
} t.ug.calendar.sg(); }, this.Kh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
|
|
3804
3815
|
var r = DayPilot.mo3(e, n);
|
|
3805
|
-
if (r && (s.eventOffset = r, !t.
|
|
3816
|
+
if (r && (s.eventOffset = r, !t.mg && !t.We)) {
|
|
3806
3817
|
var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
|
|
3807
|
-
r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.
|
|
3818
|
+
r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.mg || t.We || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
|
|
3808
3819
|
}
|
|
3809
|
-
} }, this.
|
|
3820
|
+
} }, this.Hf = function () { var e = s.Te(); return s.days * (1440 / e); }, this.Df = function (e) { if (e = e || t.Sh || s.Ff, !e)
|
|
3810
3821
|
return null; var n = s.rowlist[e.start.y]; if (!n)
|
|
3811
|
-
return null; var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid; u ? (a = s.
|
|
3822
|
+
return null; var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid; u ? (a = s.Qe(d).start, i = s.Qe(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.ef = function () { this.yb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
|
|
3812
3823
|
for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
|
|
3813
|
-
this.
|
|
3824
|
+
this.Wh(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.He(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Oe = function (e, t) { var n = null, a = this.S.Ne(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
|
|
3814
3825
|
case "Minute":
|
|
3815
3826
|
n = i.toString("m");
|
|
3816
3827
|
break;
|
|
3817
3828
|
case "Hour":
|
|
3818
|
-
n = "Clock12Hours" === s.S.
|
|
3829
|
+
n = "Clock12Hours" === s.S.Xh() ? i.toString("h tt", a) : i.toString("H", a);
|
|
3819
3830
|
break;
|
|
3820
3831
|
case "Day":
|
|
3821
3832
|
n = i.toString(a.datePattern);
|
|
@@ -3837,10 +3848,10 @@ var DayPilot = { Global: {} };
|
|
|
3837
3848
|
break;
|
|
3838
3849
|
case "Cell":
|
|
3839
3850
|
var r = (e.end.ticks - e.start.ticks) / 6e4;
|
|
3840
|
-
n = this.
|
|
3851
|
+
n = this.Yh(i, r);
|
|
3841
3852
|
break;
|
|
3842
3853
|
default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
3843
|
-
} return n; }, this.
|
|
3854
|
+
} return n; }, this.Yh = function (e, t) { var n = this.S.Ne(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.S.Xh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.fa() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Me = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
|
|
3844
3855
|
case "Minute":
|
|
3845
3856
|
e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
|
|
3846
3857
|
break;
|
|
@@ -3874,11 +3885,11 @@ var DayPilot = { Global: {} };
|
|
|
3874
3885
|
a = i;
|
|
3875
3886
|
break;
|
|
3876
3887
|
case "Cell":
|
|
3877
|
-
var d = this.
|
|
3888
|
+
var d = this.Se(e);
|
|
3878
3889
|
d.current && (a = d.current.end);
|
|
3879
3890
|
break;
|
|
3880
3891
|
default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
3881
|
-
} return a.getTime() > i.getTime() && (a = i), a; }, this.
|
|
3892
|
+
} return a.getTime() > i.getTime() && (a = i), a; }, this.Wh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Hg, u.oncontextmenu = this.Ig, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s._a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.M("_timeheadercol"), v = this.M("_timeheadercol_inner"); i && (f = this.M("_timeheadergroup"), v = this.M("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.M("_timeheader_cell")), DayPilot.Util.addClass(h, s.M("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.eb = function () { var e = this.nav.corner; if (e) {
|
|
3882
3893
|
var t = this.divCorner;
|
|
3883
3894
|
e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () { var e = {}; e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null, e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e); var t = s.divCorner; if (t) {
|
|
3884
3895
|
var n = s._a(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
|
|
@@ -3903,43 +3914,43 @@ var DayPilot = { Global: {} };
|
|
|
3903
3914
|
}
|
|
3904
3915
|
}
|
|
3905
3916
|
} e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas }); }();
|
|
3906
|
-
} }, this.
|
|
3917
|
+
} }, this.hg = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.sf = !0), e.height = t; }), s.sf && (s.yb.drawArea = null); }, this.ff = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
|
|
3907
3918
|
var n = e.index;
|
|
3908
3919
|
if (t.rows[n]) {
|
|
3909
3920
|
var a = t.rows[n];
|
|
3910
|
-
s.
|
|
3921
|
+
s.yg && (a.style.top = e.top + "px");
|
|
3911
3922
|
var i = e.height;
|
|
3912
3923
|
a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
|
|
3913
3924
|
}
|
|
3914
|
-
} }), s.
|
|
3915
|
-
return !1; if (s.
|
|
3916
|
-
return !1; var n = DayPilot.Util.mouseButton(e); if (s.
|
|
3925
|
+
} }), s.yg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.fe + "px"); }, this.hh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
|
|
3926
|
+
return !1; if (s.Ye(e), "Disabled" === s.timeRangeSelectedHandling)
|
|
3927
|
+
return !1; var n = DayPilot.Util.mouseButton(e); if ("undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.Zh())
|
|
3917
3928
|
return !1; if (n.middle || n.right)
|
|
3918
|
-
return !1; if (s
|
|
3919
|
-
return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s
|
|
3929
|
+
return !1; if (s.$h(s.coords))
|
|
3930
|
+
return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s._h = a, t.Sh = s.Th(), t.Sh && (t.ai = s), !1; }, this.Th = function () { var e = {}, t = s.Pe(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Nf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.Gf(e), e; }, this.jh = function (e) { if (s.We = {}, s.Ff) {
|
|
3920
3931
|
if (DayPilot.Util.mouseButton(e).left) {
|
|
3921
|
-
var n = s.
|
|
3922
|
-
if (s
|
|
3923
|
-
var a = function (e) { return function () { t.
|
|
3932
|
+
var n = s.Ff;
|
|
3933
|
+
if (s.$h(s.coords)) {
|
|
3934
|
+
var a = function (e) { return function () { t.bi = null; var n = s.Df(e); if (n) {
|
|
3924
3935
|
var a = {};
|
|
3925
3936
|
a.start = n.start, a.end = n.end, a.resource = n.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeClick && s.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof s.onTimeRangeClicked && s.onTimeRangeClicked(a);
|
|
3926
3937
|
} }; };
|
|
3927
3938
|
"Disabled" !== s.timeRangeClickHandling && a(n)();
|
|
3928
3939
|
}
|
|
3929
3940
|
}
|
|
3930
|
-
} }, this.
|
|
3941
|
+
} }, this.Zh = function () { return !!(t.mg || t.We || t.Sh) || !!s.We.Nh; }, this.dragInProgress = function () { return s.Zh(); }, this.Ye = function (e) { var t = DayPilot.mo3(s.le, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ih = function (e) { if (!DayPilot.Global.touch.active) {
|
|
3931
3942
|
var n = DayPilot.mc(e);
|
|
3932
|
-
if (s.
|
|
3933
|
-
DayPilot.distance(s.
|
|
3943
|
+
if (s.Ye(e), s.We.Nh) {
|
|
3944
|
+
DayPilot.distance(s.We.Lh, n) > 2 && (DayPilot.Util.copyProps(s.We, t), i().style.cursor = "move", s.We = {});
|
|
3934
3945
|
}
|
|
3935
|
-
t.
|
|
3936
|
-
} }, this.
|
|
3937
|
-
DayPilot.Util.addClass(t.
|
|
3938
|
-
var e = t.
|
|
3939
|
-
t.
|
|
3940
|
-
} s.
|
|
3941
|
-
return !1; var n = this.
|
|
3942
|
-
var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.
|
|
3946
|
+
t.mg && t.qg.calendar === s ? (t.mg.event || (t.mg.event = t.qg), s.ci()) : t.tg ? s.di() : t.Sh && t.Sh.calendar === s && (t.Sh.moved = !0, s.ei());
|
|
3947
|
+
} }, this.ei = function () { var e = t.Sh, n = s.Pe(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.Gf(e); }, this.ci = function () { t.pg || (t.pg = s.da(t.mg)), s.rg(); }, this.di = function () { if (!t.ug) {
|
|
3948
|
+
DayPilot.Util.addClass(t.We, s.M("_event_moving_source"));
|
|
3949
|
+
var e = t.tg;
|
|
3950
|
+
t.ug = s.da(e);
|
|
3951
|
+
} s.sg(); }, this.kh = function (e) { return e.cancelBubble = !0, !1; }, this.$h = function (e) { var t = s.Ff; if (!t || !t.start || !t.end)
|
|
3952
|
+
return !1; var n = this.Qf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.Gf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
|
|
3953
|
+
var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Qe(f), m = s.Qe(v);
|
|
3943
3954
|
t = p.left, n = m.left + m.width;
|
|
3944
3955
|
}
|
|
3945
3956
|
else
|
|
@@ -3947,91 +3958,87 @@ var DayPilot = { Global: {} };
|
|
|
3947
3958
|
y = r(), y.style.position = "absolute";
|
|
3948
3959
|
var b = r();
|
|
3949
3960
|
b.className = s.M("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
|
|
3950
|
-
} return y.className = s.M("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y; } if (e = e || t.
|
|
3961
|
+
} return y.className = s.M("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y; } if (e = e || t.Sh) {
|
|
3951
3962
|
var a = s.eventBorderRadius;
|
|
3952
3963
|
"number" == typeof a && (a += "px");
|
|
3953
3964
|
var i = s.snapToGrid, o = s.rowlist;
|
|
3954
3965
|
n(e);
|
|
3955
|
-
} }, this.
|
|
3956
|
-
return
|
|
3966
|
+
} }, this.fi = function (e) {
|
|
3967
|
+
return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time
|
|
3968
|
+
}, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args };
|
|
3969
|
+
}, this.getCoords = function () { if (!s.coords)
|
|
3970
|
+
return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Nf(e.y, e.grid).element; return e.row = s.Gg(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var a; if ("number" == typeof e)
|
|
3957
3971
|
a = s.zoomLevels[e];
|
|
3958
3972
|
else {
|
|
3959
3973
|
if ("string" != typeof e)
|
|
3960
3974
|
throw new DayPilot.Exception("Unexpected parameter type (string or number required): " + typeof e);
|
|
3961
|
-
var i = s.zoom.
|
|
3975
|
+
var i = s.zoom.gi(e);
|
|
3962
3976
|
a = s.zoomLevels[i];
|
|
3963
3977
|
} if (!a)
|
|
3964
|
-
throw new DayPilot.Exception("Zoom level not found: " + e + " (" + typeof e + ")"); (e !== s.zoom.active || n) && (n || (n = s.zoom.
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
break;
|
|
3977
|
-
case "right": t = n.end;
|
|
3978
|
-
}
|
|
3979
|
-
return t;
|
|
3980
|
-
}, this.zoom.gi = function (e, t) { var n = s.zoomLevels.length - 1; e > n && (e = n), e < 0 && (e = 0), s.zoom.active = e; var a = s.zoomLevels[e], i = {}; return i.date = t || new DayPilot.Date(s.startDate), i.level = a, DayPilot.Util.ownPropsAsArray(a.properties).forEach(function (e) { if (0 !== e.key.indexOf("on"))
|
|
3981
|
-
return "function" == typeof e.val ? void (s[e.key] = e.val(i)) : void (s[e.key] = e.val); }), i; }, this.Nf = {}, this.Nf.oa = null, this.Nf.drawCells = null, this.Nf.drawRows = null, this.Nf.click = null, this.Nf.resClick = [], this.Nf.updateFloats = null, this.kf = function () { if (!s.R) {
|
|
3982
|
-
s.if();
|
|
3978
|
+
throw new DayPilot.Exception("Zoom level not found: " + e + " (" + typeof e + ")"); (e !== s.zoom.active || n) && (n || (n = s.zoom.Sd(t)), n && (s.startDate = new DayPilot.Date(n).getDatePart()), s.zoom.hi(e, n), s.Ma && s.update(), n && s.scrollTo(n, null, t || s.zoomPosition)); }, this.zoom.gi = function (e) { return (s.zoomLevels || []).findIndex(function (t) { return t.id === e; }); }, this.zoom.Sd = function (e) { e = e || s.zoomPosition || "left"; var t = null; if (!s.nav.scroll)
|
|
3979
|
+
return null; var n = s.getViewport(); switch (e) {
|
|
3980
|
+
case "left":
|
|
3981
|
+
t = n.start;
|
|
3982
|
+
break;
|
|
3983
|
+
case "middle":
|
|
3984
|
+
t = n.start && n.start.addTime((s.getViewport().end.getTime() - s.getViewport().start.getTime()) / 2);
|
|
3985
|
+
break;
|
|
3986
|
+
case "right": t = n.end;
|
|
3987
|
+
} return t; }, this.zoom.hi = function (e, t) { var n = s.zoomLevels.length - 1; e > n && (e = n), e < 0 && (e = 0), s.zoom.active = e; var a = s.zoomLevels[e], i = {}; return i.date = t || new DayPilot.Date(s.startDate), i.level = a, DayPilot.Util.ownPropsAsArray(a.properties).forEach(function (e) { if (0 !== e.key.indexOf("on"))
|
|
3988
|
+
return "function" == typeof e.val ? void (s[e.key] = e.val(i)) : void (s[e.key] = e.val); }), i; }, this.Of = {}, this.Of.oa = null, this.Of.drawCells = null, this.Of.drawRows = null, this.Of.click = null, this.Of.resClick = [], this.Of.updateFloats = null, this.lf = function () { if (!s.R) {
|
|
3989
|
+
"undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.jf();
|
|
3983
3990
|
var e = s.nav.scroll;
|
|
3984
|
-
if (s.
|
|
3985
|
-
s.
|
|
3991
|
+
if (s.ph = e.scrollLeft, s.qh = e.scrollTop, s.rh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.ph), DayPilot.browser.ios && t.ah ? n() : s.divResScroll.scrollTop = s.qh, s.progressiveRowRendering && (s.Of.drawRows && (clearTimeout(s.Of.drawRows), s.Of.drawRows = null), s.scrollDelayRows > 0 ? s.Of.drawRows = setTimeout(function () { s.Bg(); }, s.scrollDelayRows) : s.Bg()), s.Of.drawCells && (clearTimeout(s.Of.drawCells), s.Of.drawCells = null), s.scrollDelayCells > 0)
|
|
3992
|
+
s.Of.drawCells = setTimeout(s.ii(), s.scrollDelayCells);
|
|
3986
3993
|
else {
|
|
3987
|
-
s.
|
|
3994
|
+
s.ii()();
|
|
3988
3995
|
}
|
|
3989
|
-
s.
|
|
3990
|
-
} }, this.
|
|
3996
|
+
s.Of.oa && (clearTimeout(s.Of.oa), s.Of.oa = null), s.scrollDelayEvents > 0 ? s.Of.oa = setTimeout(s.ji(), s.scrollDelayEvents) : s.oa(), s.Of.updateFloats && (clearTimeout(s.Of.updateFloats), s.Of.updateFloats = null), s.scrollDelayFloats > 0 ? s.Of.updateFloats = setTimeout(function () { s.ve(); }, s.scrollDelayFloats) : s.ve(), s.onScrollCalled = !0;
|
|
3997
|
+
} }, this.ii = function () { return function () { s && s.kf(); }; }, this.ji = function () { return function () { s && (s.zh() ? setTimeout(function () { s.wh(), setTimeout(function () { s.oa(!0); }, 50); }, 50) : s.we()); }; }, this.jf = function () { s.yb.drawArea = null; }, this.show = function () { s.visible = !0, s.ge = !0, s.nav.top.style.display = "", s.z(), s.fh(), s.lf(); }, this.hide = function () { s.visible = !1, s.ge = !1, s.nav.top.style.display = "none"; }, this.bg = function (e) { if (!s.events.list)
|
|
3991
3998
|
return null; for (var t = 0; t < this.events.list.length; t++) {
|
|
3992
3999
|
var n = this.events.list[t];
|
|
3993
|
-
if (s.
|
|
4000
|
+
if (s.Wf(n, e)) {
|
|
3994
4001
|
var a = {};
|
|
3995
4002
|
return a.ex = n, a.index = t, a;
|
|
3996
4003
|
}
|
|
3997
|
-
} return null; }, this.
|
|
4004
|
+
} return null; }, this.ki = function () { var e = this.pe(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
|
|
3998
4005
|
for (var o = t + r, s = 0; s < i; s++) {
|
|
3999
4006
|
var l = a + s;
|
|
4000
|
-
this.
|
|
4007
|
+
this.jd(o, l);
|
|
4001
4008
|
}
|
|
4002
|
-
this.
|
|
4003
|
-
} for (var d = this.
|
|
4004
|
-
this.
|
|
4009
|
+
this.li(o);
|
|
4010
|
+
} for (var d = this.wg(), l = d.start; l < d.end; l++)
|
|
4011
|
+
this.mi(l); }, this.kf = function () { if (!s.R) {
|
|
4005
4012
|
var e = s.rowlist;
|
|
4006
4013
|
if (e && e.length > 0) {
|
|
4007
4014
|
if (this.cellSweeping) {
|
|
4008
4015
|
var t = this.cellSweepingCacheSize;
|
|
4009
|
-
this.
|
|
4016
|
+
this.yh(t);
|
|
4010
4017
|
}
|
|
4011
|
-
this.
|
|
4018
|
+
this.ki();
|
|
4012
4019
|
}
|
|
4013
|
-
this.
|
|
4014
|
-
} }, this.
|
|
4020
|
+
this.sf = !1;
|
|
4021
|
+
} }, this.pe = function () { if (s.yb.drawArea)
|
|
4015
4022
|
return s.yb.drawArea; if (!this.nav.scroll)
|
|
4016
|
-
return null; var e = s.
|
|
4017
|
-
var i = t[e], o = i.height, l = i.top + o - 1, d = this.
|
|
4023
|
+
return null; var e = s.qh, t = {}, n = l.Bh(), a = l.vh(), i = s.ph - n, r = i + s.rh + 2 * n, o = 0, d = 0; o = s.Pe(i).x, d = s.Pe(r, !0).x; var c = this.Hf(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Nf(u).i, v = this.Nf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.yb.drawArea = t, t; }, this.He = function () { return s.Hf() * s.cellWidth; }, this.mi = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.yb.linesHorizontal[a]) {
|
|
4024
|
+
var i = t[e], o = i.height, l = i.top + o - 1, d = this.He(), c = r();
|
|
4018
4025
|
c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.M("_matrix_horizontal_line"), n.appendChild(c), this.yb.linesHorizontal[a] = c;
|
|
4019
|
-
} }, this.
|
|
4020
|
-
var n = s.divLines, a = s.
|
|
4026
|
+
} }, this.li = function (e) { var t = s.Qe(e); if (t) {
|
|
4027
|
+
var n = s.divLines, a = s.fe, i = "x_" + e;
|
|
4021
4028
|
if (!this.yb.linesVertical[i]) {
|
|
4022
4029
|
var o = t.left + t.width - 1, l = r();
|
|
4023
4030
|
l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.M("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.yb.linesVertical[i] = l;
|
|
4024
4031
|
}
|
|
4025
|
-
} }, this.
|
|
4032
|
+
} }, this.cf = function () { s.fe = s.ni(s.rowlist); }, this.ni = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
|
|
4026
4033
|
var a = e[n];
|
|
4027
4034
|
a.top = t, t += a.height;
|
|
4028
|
-
} return t; }, this.
|
|
4029
|
-
t.push(s.yb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); }); }, this.
|
|
4030
|
-
var n = s.
|
|
4035
|
+
} return t; }, this.hf = function () { s.elements.cells = [], s.yb.cells = [], s.divCells.innerHTML = "", s.oi(); }, this.oi = function () { s.divLines.innerHTML = "", s.yb.linesVertical = {}, s.yb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.wf = function (e) { var t = []; for (var n in s.yb.cells)
|
|
4036
|
+
t.push(s.yb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); }); }, this.jd = function (e, t) { if (this.Ma) {
|
|
4037
|
+
var n = s.Qe(e);
|
|
4031
4038
|
if (n) {
|
|
4032
4039
|
var a = s.rowlist, i = s.divCells, o = e + "_" + t;
|
|
4033
4040
|
if (!this.yb.cells[o]) {
|
|
4034
|
-
var l = this.
|
|
4041
|
+
var l = this.pi(e, t), d = s.qi(e, t), c = r();
|
|
4035
4042
|
if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.M("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
|
|
4036
4043
|
if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s._a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.M("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.M("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
|
|
4037
4044
|
switch (c.style.display = "flex", l.horizontalAlignment) {
|
|
@@ -4064,9 +4071,9 @@ var DayPilot = { Global: {} };
|
|
|
4064
4071
|
e.Qa = t;
|
|
4065
4072
|
var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
|
|
4066
4073
|
if (n) {
|
|
4067
|
-
if (!s.
|
|
4074
|
+
if (!s.Bd.reactDOM)
|
|
4068
4075
|
throw new DayPilot.Exception("Can't reach ReactDOM");
|
|
4069
|
-
s.
|
|
4076
|
+
s.Bd.Wc(e.element, t);
|
|
4070
4077
|
}
|
|
4071
4078
|
else if (a) {
|
|
4072
4079
|
if (!s.Sa.Ra)
|
|
@@ -4080,22 +4087,22 @@ var DayPilot = { Global: {} };
|
|
|
4080
4087
|
} }(), i.appendChild(c), this.elements.cells.push(c), this.yb.cells[o] = c;
|
|
4081
4088
|
}
|
|
4082
4089
|
}
|
|
4083
|
-
} }, this.
|
|
4084
|
-
return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.
|
|
4090
|
+
} }, this.qi = function (e, t) { var n = s.Qe(e); if (!n)
|
|
4091
|
+
return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Gg(a), properties: s.pi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
|
|
4085
4092
|
var d = e + "_" + t;
|
|
4086
|
-
if (s.beforeCellRenderCaching && s.
|
|
4093
|
+
if (s.beforeCellRenderCaching && s.if[d])
|
|
4087
4094
|
return l;
|
|
4088
|
-
s.
|
|
4089
|
-
} return l; }, this.clearSelection = function () { this.
|
|
4090
|
-
throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.
|
|
4091
|
-
throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.
|
|
4092
|
-
var e = l.
|
|
4095
|
+
s.if[d] = !0, this.onBeforeCellRender(l);
|
|
4096
|
+
} return l; }, this.clearSelection = function () { this.ri(); }, this.si = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ne(n), i = s.Se(e); if (!i.current)
|
|
4097
|
+
throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Se(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
|
|
4098
|
+
throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.si(e, t, n); s.Gf(i), a || setTimeout(function () { s.Cf(i); }, 0); }, this.Af = function () { var e = t.ug && t.ug.source; e && DayPilot.Util.removeClass(e, s.M("_event_moving_source")), DayPilot.de(t.ug), t.ug = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ri = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Ff = null, s.vi = null; }, l.Nd = function () { delete s.yb.headerHeight; }, l.ea = function () { return "Disabled" !== s.xssProtection; }, l.Ne = function () { return DayPilot.Locale.find(s.locale); }, l.Xh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Ne().timeFormat; }, l.fa = function () { if ("Auto" === s.weekStarts) {
|
|
4099
|
+
var e = l.Ne();
|
|
4093
4100
|
return e ? e.weekStarts : 0;
|
|
4094
|
-
} return s.weekStarts || 0; }, l.
|
|
4095
|
-
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.
|
|
4096
|
-
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.
|
|
4101
|
+
} return s.weekStarts || 0; }, l.Dg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.kg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Te() * 1e3; }, l.Bh = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
|
|
4102
|
+
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.vh = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
|
|
4103
|
+
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.pi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
|
|
4097
4104
|
return this.cellProperties[n]; if (!this.cellProperties[n]) {
|
|
4098
|
-
var i = a[t], r = i.id, o = s.
|
|
4105
|
+
var i = a[t], r = i.id, o = s.Qe(e), l = o.start, d = o.end, c = {};
|
|
4099
4106
|
c.start = l, c.end = d, c.resource = r;
|
|
4100
4107
|
var u = {};
|
|
4101
4108
|
u.business = s.isBusiness(c), this.cellProperties[n] = u;
|
|
@@ -4114,7 +4121,7 @@ var DayPilot = { Global: {} };
|
|
|
4114
4121
|
return !0;
|
|
4115
4122
|
if (r >= l)
|
|
4116
4123
|
return !1;
|
|
4117
|
-
} return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.
|
|
4124
|
+
} return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.wi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Je() + 2), this.na(); }, this.setHeight = this.wi, this.ne = function (e) { return s.Kg(e)[0]; }, this.xb = function () { if (this.id && this.id.tagName)
|
|
4118
4125
|
this.nav.top = this.id;
|
|
4119
4126
|
else {
|
|
4120
4127
|
if ("string" != typeof this.id)
|
|
@@ -4126,12 +4133,12 @@ var DayPilot = { Global: {} };
|
|
|
4126
4133
|
if (this.nav.top.dp === s)
|
|
4127
4134
|
return s;
|
|
4128
4135
|
throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
|
|
4129
|
-
} return this.
|
|
4130
|
-
var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.
|
|
4136
|
+
} return this.xi(), this.eh(), this; }, this.xi = function () { this.Sg(), this.qb(), this.ca(), this.oh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.rb(); var angular = s.Ge.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.lf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.jf(), this.wb(), this.Ma = !0; var t = s.ke; t ? s.scrollTo(t) : s.lf(); }, this.vb = null, this.tb = function (e) { if (e) {
|
|
4137
|
+
var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.je(this.data); } }, "scrollX": { "postInit": function () { this.data && s.me(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ie(this.data); } }, "zoom": { "preInit": function () { var e = this.data; if ("string" == typeof e) {
|
|
4131
4138
|
var t = e;
|
|
4132
|
-
e = s.zoom.
|
|
4133
|
-
} var n = e !== s.zoom.active, a = s.zoom.
|
|
4134
|
-
s.vb = t, s.
|
|
4139
|
+
e = s.zoom.gi(t);
|
|
4140
|
+
} var n = e !== s.zoom.active, a = s.zoom.Sd(); s.zoom.hi(e, a), n ? this.date = a : this.date = null; }, "postInit": function () { this.date && s.je(this.date, !1, s.zoomPosition); } } };
|
|
4141
|
+
s.vb = t, s.Ge.scrollToRequested && (t.scrollTo.data = s.Ge.scrollToRequested, s.Ge.scrollToRequested = null), s.Ge.scrollXRequested && (t.scrollX.data = s.Ge.scrollXRequested, s.Ge.scrollXRequested = null), s.Ge.scrollYRequested && (t.scrollY.data = s.Ge.scrollYRequested, s.Ge.scrollYRequested = null);
|
|
4135
4142
|
for (var n in e)
|
|
4136
4143
|
t[n] || (s[n] = e[n]);
|
|
4137
4144
|
for (var a in e)
|
|
@@ -4142,14 +4149,14 @@ var DayPilot = { Global: {} };
|
|
|
4142
4149
|
} }, this.wb = function () { var e = s.vb; for (var t in e) {
|
|
4143
4150
|
var n = e[t];
|
|
4144
4151
|
n.postInit && n.postInit();
|
|
4145
|
-
} s.vb = {}; }, this.
|
|
4146
|
-
var a = t.
|
|
4147
|
-
a || (a = n.createRoot(t), t.
|
|
4152
|
+
} s.vb = {}; }, this.Bd = {}, this.Bd.reactDOM = null, this.Bd.react = null, this.Bd.Wc = function (e, t) { var n = s.Bd.reactDOM; if ("function" == typeof n.createRoot) {
|
|
4153
|
+
var a = t.Zd;
|
|
4154
|
+
a || (a = n.createRoot(t), t.Zd = a), a.render(e);
|
|
4148
4155
|
}
|
|
4149
4156
|
else
|
|
4150
|
-
n.render(e, t); }, this.
|
|
4151
|
-
var n = e.
|
|
4152
|
-
setTimeout(function () { n.unmount(), e.
|
|
4157
|
+
n.render(e, t); }, this.Bd.$d = function (e) { var t = s.Bd.reactDOM; if ("function" == typeof t.createRoot) {
|
|
4158
|
+
var n = e.Zd;
|
|
4159
|
+
setTimeout(function () { n.unmount(), e.Zd = null; }, 0);
|
|
4153
4160
|
}
|
|
4154
4161
|
else
|
|
4155
4162
|
t.unmountComponentAtNode(e); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = s.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
@@ -4158,44 +4165,44 @@ var DayPilot = { Global: {} };
|
|
|
4158
4165
|
} }, this.Sa.Wa = function (e, t) { var n = s.Sa.Ra; if ("function" == typeof n.render) {
|
|
4159
4166
|
var a = e;
|
|
4160
4167
|
DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
|
|
4161
|
-
} }, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.
|
|
4168
|
+
} }, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.xf, this.internal.adjustEndNormalize = s.yf, this.internal.xssTextHtml = s._a, this.internal.touch = s.he, this.internal.skipUpdate = s.Ge.skipUpdate, this.internal.skipped = s.Ge.skipped, this.internal.loadOptions = s.tb, this.internal.postInit = s.wb, this.internal.enableAngular2 = function () { s.Ge.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Ge._f = !0; }, this.internal.resourcesFromAttr = function () { s.Ge.ig = !0; }, this.internal.evImmediateRefresh = function () { s.events.Bf(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.Bd.react = e, s.Bd.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.Bd, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Sa.Ra = e; }, this.internal.vueRef = function () { return s.Sa.Ra; }, this.internal.vueRendering = function () { return s.Sa.Ta; }, this.tb(o);
|
|
4162
4169
|
}, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
|
|
4163
4170
|
throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
|
|
4164
|
-
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.
|
|
4165
|
-
e.push(a.
|
|
4166
|
-
var n = t.
|
|
4167
|
-
n.coords = n.
|
|
4168
|
-
} if (t.
|
|
4171
|
+
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.yi = {}; var n = this.yi; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.zi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.zi.events.length; t++)
|
|
4172
|
+
e.push(a.zi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.zi.events.length; }, a.events.forRange = function (e, t) { return a.zi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); }; }, t.We = null, t.tg = null, t.Lh = null, t.mg = null, t.qg = null, t.Ve = !1, t.lh = !1, t.bi = null, t.Ai = null, t.rc = function () { DayPilot.ue(document, "mouseup", t.ee), DayPilot.ue(document, "touchmove", t.mh), DayPilot.ue(document, "touchend", t.nh), t.lh = !1; }, t.mh = function (e) { if (t.mg) {
|
|
4173
|
+
var n = t.mg.event.calendar;
|
|
4174
|
+
n.coords = n.he.Ph(e), n.he.Uh(), e.preventDefault();
|
|
4175
|
+
} if (t.We) {
|
|
4169
4176
|
e.preventDefault();
|
|
4170
|
-
var n = t.
|
|
4171
|
-
n.coords = n.
|
|
4172
|
-
} }, t.
|
|
4173
|
-
var a = function () { var e = t.
|
|
4174
|
-
if (setTimeout(function () { t.
|
|
4177
|
+
var n = t.tg.calendar;
|
|
4178
|
+
n.coords = n.he.Ph(e), n.he.Vh();
|
|
4179
|
+
} }, t.nh = function (e) { t.ah = !1, t.ee(e); }, t.ee = function (e) { if (t.mg) {
|
|
4180
|
+
var a = function () { var e = t.qg, n = e.calendar; i().style.cursor = "", t.mg = null, t.qg = null, DayPilot.de(t.pg), t.pg = null, n && (n.Bi = null); };
|
|
4181
|
+
if (setTimeout(function () { t.Ve = !1; }), !t.pg)
|
|
4175
4182
|
return void a();
|
|
4176
|
-
var r = t.
|
|
4183
|
+
var r = t.qg, o = r.calendar, s = t.pg.start, l = t.pg.end, d = "left" === t.mg.dpBorder ? "start" : "end";
|
|
4177
4184
|
a(), o.L(r, s, l, d);
|
|
4178
4185
|
}
|
|
4179
|
-
else if (t.
|
|
4180
|
-
var a = function () { DayPilot.Global.movingAreaData = null; var e = t.
|
|
4181
|
-
if (!t.
|
|
4186
|
+
else if (t.tg) {
|
|
4187
|
+
var a = function () { DayPilot.Global.movingAreaData = null; var e = t.ug && t.ug.calendar; t.ug && (DayPilot.de(t.ug), t.ug.calendar = null), i().style.cursor = "", t.We = null, t.tg = null, e && (e.zf = null); };
|
|
4188
|
+
if (!t.ug)
|
|
4182
4189
|
return void a();
|
|
4183
|
-
var r = t.
|
|
4190
|
+
var r = t.tg, o = t.ug.calendar;
|
|
4184
4191
|
if (!o)
|
|
4185
4192
|
return void a();
|
|
4186
|
-
if (t.
|
|
4193
|
+
if (t.ug.source = t.We, !t.ug.row)
|
|
4187
4194
|
return void a();
|
|
4188
|
-
var s = t.
|
|
4189
|
-
t.
|
|
4195
|
+
var s = t.ug.start, l = t.ug.end, c = t.ug.row.id;
|
|
4196
|
+
t.ug.calendar = null, i().style.cursor = "", t.We = null, t.tg = null, o.N(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
|
|
4190
4197
|
}
|
|
4191
|
-
else if (t.
|
|
4192
|
-
var u = DayPilot.Util.mouseButton(e), h = t.
|
|
4193
|
-
if (f.
|
|
4194
|
-
return clearTimeout(t.
|
|
4195
|
-
f.
|
|
4196
|
-
var v = function (e) { return function () { t.
|
|
4197
|
-
return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.
|
|
4198
|
-
} t.
|
|
4198
|
+
else if (t.Sh) {
|
|
4199
|
+
var u = DayPilot.Util.mouseButton(e), h = t.Sh, f = h.calendar, a = function () { };
|
|
4200
|
+
if (f.vi = null, t.bi)
|
|
4201
|
+
return clearTimeout(t.bi), t.bi = null, void a();
|
|
4202
|
+
f.Ff = h, t.Sh = null;
|
|
4203
|
+
var v = function (e) { return function () { t.bi = null, f.Cf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Ff = e; }; }, p = f.fi(h);
|
|
4204
|
+
return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.bi = null);
|
|
4205
|
+
} t.Oh = null, t.lg = null; };
|
|
4199
4206
|
}
|
|
4200
4207
|
}(DayPilot);
|
|
4201
4208
|
|
|
@@ -4665,7 +4672,6 @@ class DayPilotNavigatorComponent {
|
|
|
4665
4672
|
_hashEvents = "";
|
|
4666
4673
|
_onTrs = null;
|
|
4667
4674
|
_dateSet = false;
|
|
4668
|
-
_currentDate = null;
|
|
4669
4675
|
_eventsSet = false;
|
|
4670
4676
|
_date = DayPilot.Date.today();
|
|
4671
4677
|
get date() {
|
|
@@ -4675,6 +4681,17 @@ class DayPilotNavigatorComponent {
|
|
|
4675
4681
|
set date(value) {
|
|
4676
4682
|
this._date = value;
|
|
4677
4683
|
this._dateSet = true;
|
|
4684
|
+
// Apply immediately when control exists (works even when config is a signal and ngDoCheck returns early)
|
|
4685
|
+
const dp = this.control;
|
|
4686
|
+
if (dp) {
|
|
4687
|
+
const current = dp.selectionDay;
|
|
4688
|
+
if (current && value && current.getTime() === value.getTime()) {
|
|
4689
|
+
this._dateSet = false;
|
|
4690
|
+
return;
|
|
4691
|
+
}
|
|
4692
|
+
this._dateSet = false;
|
|
4693
|
+
dp.select(value);
|
|
4694
|
+
}
|
|
4678
4695
|
}
|
|
4679
4696
|
_events = [];
|
|
4680
4697
|
get events() {
|
|
@@ -4712,7 +4729,12 @@ class DayPilotNavigatorComponent {
|
|
|
4712
4729
|
const control = this.control;
|
|
4713
4730
|
const config = this.config();
|
|
4714
4731
|
if (control) {
|
|
4715
|
-
|
|
4732
|
+
const configToBeApplied = { ...config };
|
|
4733
|
+
// Keep _onTrs synchronized even when handler is removed
|
|
4734
|
+
this._onTrs = typeof configToBeApplied.onTimeRangeSelected === "function" ? configToBeApplied.onTimeRangeSelected : null;
|
|
4735
|
+
delete configToBeApplied.onTimeRangeSelected;
|
|
4736
|
+
delete configToBeApplied.selectionDay;
|
|
4737
|
+
control.internal.upd(configToBeApplied);
|
|
4716
4738
|
}
|
|
4717
4739
|
});
|
|
4718
4740
|
}
|
|
@@ -4789,7 +4811,8 @@ class DayPilotNavigatorComponent {
|
|
|
4789
4811
|
continue; // ignore
|
|
4790
4812
|
}
|
|
4791
4813
|
if (name === "onTimeRangeSelected") {
|
|
4792
|
-
|
|
4814
|
+
// FIX: capture from resolved config (works when config is a signal)
|
|
4815
|
+
this._onTrs = config.onTimeRangeSelected;
|
|
4793
4816
|
}
|
|
4794
4817
|
else {
|
|
4795
4818
|
dp[name] = config[name];
|
|
@@ -4799,7 +4822,6 @@ class DayPilotNavigatorComponent {
|
|
|
4799
4822
|
}
|
|
4800
4823
|
if (this._dateSet && this.date) {
|
|
4801
4824
|
this._dateSet = false;
|
|
4802
|
-
this._currentDate = dp.selectionDay;
|
|
4803
4825
|
dp.select(this.date);
|
|
4804
4826
|
}
|
|
4805
4827
|
this._hashOptions = hash;
|